This content has been marked as final.
Show 3 replies
-
1. Re: Log4j Logging in a module
indranil32 Oct 21, 2013 4:30 AM (in response to kotinao7)1 of 1 people found this helpful<module name="org.jboss.logging"/> -- This is enough for dependency. Please remove the others are test it.
-
2. Re: Log4j Logging in a module
kotinao7 Oct 21, 2013 6:39 AM (in response to indranil32)Thx for your hint!
I am using Log4j in the module, so I get a ClassDefFoundError.
java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at.provider.DelegationProvider.<clinit>(DelegationProvider.java:41)
at.test.TestServlet.doGet(TestServlet.java:34)
javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
-
3. Re: Log4j Logging in a module
jamezp Oct 28, 2013 5:45 PM (in response to kotinao7)If you're only using log4j, then that's all you need to import is org.apache.log4j.
For why the logs aren't showing up. Are you attempting to configure the log4j log manager in your code? Also do you have a log4j configuration file in your module?
--
James R. Perkins