This content has been marked as final.
Show 5 replies
-
1. Re: Error Message From Log4j
elkner Jul 4, 2005 6:07 PM (in response to engelme)cd /opt/jboss4
ln -sf ../../lib/log4j.jar server/all/deploy/ejb3.deployer/log4j.jar
ln -sf ../../lib/log4j.jar server/default/deploy/ejb3.deployer/log4j.jar
? -
2. Re: Error Message From Log4j
engelme Jul 4, 2005 6:22 PM (in response to engelme)Thank you for the information, but it did not help. I believe that the problem is on the client side. Maybe to do with the jboss-remoting package.
Mike -
3. Re: Error Message From Log4j
elkner Jul 5, 2005 6:51 AM (in response to engelme)Yes - it was a little bit late and I didn't read carefully ... :(
Your problem is, that you probably need to configure log4j. E.g. create a file like /tmp/log4j.properties with the following content:log4j.rootCategory=INFO, stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%r %p [ %t ] %c - %m%n
And start your application with the option -Dlog4j.configuration=file:///tmp/log4j.properties .
Optionally you may include the file into your jar at the top level - than log4j will find and use it automatically ... For more info, read the log4j short manual...
Have fun,
jel. -
4. Re: Error Message From Log4j
bill.burke Jul 5, 2005 11:50 AM (in response to engelme)yes, you need to have a log4j.xml in your classpath. Download EJB3 Beta1 and you'll see that each tutorial example comes with a log4j.xml file.
-
5. Re: Error Message From Log4j
julesverne Jul 5, 2005 2:13 PM (in response to engelme)try adding jboss-common.jar