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: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
|