|
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 _______________________________________________ seam-dev mailing list [hidden email] https://lists.jboss.org/mailman/listinfo/seam-dev |
|
On 08/17/2011 08:50 AM, Shane Bryzak wrote:
> 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). Can we please add that directly to the seam-solder-logging jar instead? (or whatever it will be called after the logging is moved to its own module) Adding > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-jar-plugin</artifactId> > <configuration> > <archive> > <manifestEntries> > <Dependencies>org.jboss.logging,org.jboss.logmanager</Dependencies> > </manifestEntries> > </archive> > </configuration> > </plugin> to the solder/logging/pom.xml seems to work... -- Marek > > Shane > > _______________________________________________ > seam-dev mailing list > [hidden email] > https://lists.jboss.org/mailman/listinfo/seam-dev _______________________________________________ seam-dev mailing list [hidden email] https://lists.jboss.org/mailman/listinfo/seam-dev |
|
In reply to this post by Shane Bryzak-4
I'm not sure if Seam relies on slf4j, but JBoss Logging does not. So if
Seam doesn't, that dependency is not needed. On 08/16/2011 11:50 PM, Shane Bryzak wrote: > 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 > > _______________________________________________ > seam-dev mailing list > [hidden email] > https://lists.jboss.org/mailman/listinfo/seam-dev -- James R. Perkins JBoss by Red Hat _______________________________________________ seam-dev mailing list [hidden email] https://lists.jboss.org/mailman/listinfo/seam-dev |
|
Sorry, I should have clarified that - slf4j just happened to be used in
the app the I pasted the XML snippet from. On 19/08/11 10:24, James Perkins wrote: > I'm not sure if Seam relies on slf4j, but JBoss Logging does not. So if > Seam doesn't, that dependency is not needed. > > On 08/16/2011 11:50 PM, Shane Bryzak wrote: >> 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 >> >> _______________________________________________ >> seam-dev mailing list >> [hidden email] >> https://lists.jboss.org/mailman/listinfo/seam-dev _______________________________________________ seam-dev mailing list [hidden email] https://lists.jboss.org/mailman/listinfo/seam-dev |
|
In reply to this post by Marek Schmidt
Yes, this will be going into the seam-logging jar's manifest, so users
won't need to add it themselves (as long as they use seam-logging). On 18/08/11 17:36, Marek Schmidt wrote: > On 08/17/2011 08:50 AM, Shane Bryzak wrote: >> 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). > > Can we please add that directly to the seam-solder-logging jar > instead? (or whatever it will be called after the logging is moved to > its own module) > > Adding > >> <plugin> >> <groupId>org.apache.maven.plugins</groupId> >> <artifactId>maven-jar-plugin</artifactId> >> <configuration> >> <archive> >> <manifestEntries> >> <Dependencies>org.jboss.logging,org.jboss.logmanager</Dependencies> >> </manifestEntries> >> </archive> >> </configuration> >> </plugin> > > > to the solder/logging/pom.xml seems to work... > > -- > Marek > >> >> Shane >> >> _______________________________________________ >> seam-dev mailing list >> [hidden email] >> https://lists.jboss.org/mailman/listinfo/seam-dev > _______________________________________________ seam-dev mailing list [hidden email] https://lists.jboss.org/mailman/listinfo/seam-dev |
| Powered by Nabble | Edit this page |
