[seam-dev] Using jboss-logging in your AS7 app

Shane Bryzak sbryzak at redhat.com
Wed Aug 17 02:50:08 EDT 2011


Hey guys,

In case you don't know how to do this already, to set up your app to use 
jboss-logging in AS7 you need to add the following line to the 
META-INF/MANIFEST.MF file in your deployment:

Dependencies: org.jboss.logging,org.jboss.logmanager

The easiest way is to automate this as part of your Maven build by 
adding the following snippet to your pom.xml.  Here's an example:

<build>
<finalName>seam-university</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
<archive>
<manifestEntries>
<Dependencies>org.slf4j.impl,org.jboss.logging,org.jboss.logmanager</Dependencies>
</manifestEntries>
</archive>
</configuration>
</plugin>

Stuart has also written a great article about class loading in AS7, 
which you can find at 
https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7 - I 
recommend that all Seam devs read it.

Thanks to Stuart for the above tip, and for the article.  Module leads, 
can you please update your examples if they use jboss-logging (most 
examples, if not all will most likely use it indirectly through solder).

Shane



More information about the seam-dev mailing list