Hi Jake, Thanks for your kind information.
I am using JBOSS as server and I am using JBOSS Studio 2.0 as an IDE. Could you please send me any sample EAR application with log4j? Regards, Baji Shaik Jacob Kjome wrote: > > > What server? If Weblogic, try placing log4j.jar in the EAR's APP-INF/lib > and the > config in APP-INF/classes. You won't need to place log4j in each webapp. > > Jake > > > > On 9/30/2011 8:12 AM, shaikbaji.forums wrote: >> >> Hi, >> >> I have designed a EAR project, It contains few EJB projects and one WEB >> project. I want to use the same log file across all the sub projects in >> that >> EAR so can you please send me any sample application which is same as my >> requirement. >> >> >> I just tried like as follow: >> >> >> 1)I have copied the same log4j.properties file in every EJB and WEB >> project >> SRC folder. >> >> 2)I have added the depended log4j.jar files to EAR and have given >> reference >> to the EJB projects. >> >> 3)I have copied the log4j.jar to WEB-INF/lib folder of my WEB project. >> >> >> When I am running my application, It's logging only my WEB project logs, >> It's not logging my EJB project logs. >> >> >> Kindly help me out. >> >> >> Thanks in advance!!! >> >> >> Regards, >> Baji > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > -- View this message in context: http://old.nabble.com/Log4j-sample-example-with-EAR-application-tp32569225p32665592.html Sent from the Log4j - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
