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

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

tech