Deploying a Jersey webapp on Jboss AS 7

it has already been mentioned in this post : https://community.jboss.org/message/744530#744530 , you can just ask the resteasy module to not scan for other JAX RS implementations in your webapp; just add this to your web.xml : <context-param> <param-name>resteasy.scan</param-name> <param-value>false</param-value> </context-param> <context-param> <param-name>resteasy.scan.providers</param-name> <param-value>false</param-value> </context-param> <context-param> <param-name>resteasy.scan.resources</param-name> <param-value>false</param-value> </context-param> worked fine for me

jboss 7 oracle datasource configuration

Here’s a link about the data source configuration for JBoss 7 that of course work with 7.1 https://community.jboss.org/wiki/DataSourceConfigurationInAS7 The example is configuring a MySQL example. This is what i did for an Oracle Driver <datasource jndi-name=”java:/sigap_ws_receiver” pool-name=”sigap_ws_receiver” enabled=”true”> <connection-url>jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=off)(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.1)(PORT=1524))(CONNECT_DATA=(SERVICE_NAME=profepa)(SERVER=DEDICATED)))</connection-url> <driver>com.oracle</driver> <pool> <min-pool-size>3</min-pool-size> <max-pool-size>5</max-pool-size> </pool> <security> <user-name>user</user-name> <password>pass</password> </security> <validation> <exception-sorter class-name=”org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter”/> </validation> <timeout> <blocking-timeout-millis>5000</blocking-timeout-millis> <idle-timeout-minutes>5</idle-timeout-minutes> … Read more

Logback and Jboss 7 – don’t work together?

You need to exclude the servers version of slf4j from your deployment. Create a jboss-deployment-structure.xml file and place it in either your WARS META-INF or WEB-INF directory. The contents of the file should look like this: <jboss-deployment-structure> <deployment> <!– Exclusions allow you to prevent the server from automatically adding some dependencies –> <exclusions> <module name=”org.slf4j” … Read more

Best Practice for loading 3rd party JARs in JBoss AS7 standalone deployment?

For smaller dependencies that’re private to a deployment, keep ’em in WEB-INF/lib in your .war, that’s what it’s for. If you’re using Maven that should be pretty much automatic and transparent for anything in the <compile/> scope. For big, complex dependencies or dependencies that’ll be shared between several apps, use option (4): Deploy each logical … Read more

Hibernate generates negative id values when using a sequence

The new behaviour is the followings: AllocationSize is a range of primary key values reserved for Hibernate. And the select seq.nextval from dual will be done only after hibernate consumed this range of primary keys. So you must declare the same value on both allocationSize (Hibernate) and sequence increment by (DB) When explicitly set allocationSize=500, … Read more

Spring Java Config vs Jboss 7

I was using @SpringBootApplication As I read in this thread I needed to: Change the mapping of the DispatcherServlet to “/*” instead of “https://stackoverflow.com/” (by adding a @Bean of type ServletRegistrationBean with a servlet named “dispatcherServlet”) In this url I found the code solution: Add Servlet Mapping to dispatch servlet @SpringBootApplication public class Application extends … Read more

Plugin execution not covered by lifecycle configuration (JBossas 7 EAR archetype)

This is a “feature” of the M2E plugin that had been introduced a while ago. It’s not directly related to the JBoss EAR plugin but also happens with most other Maven plugins. If you have a plugin execution defined in your pom (like the execution of maven-ear-plugin:generate-application-xml), you also need to add additional config information … Read more