• Post Reply Bookmark Topic Watch Topic
  • New Topic

log4j.properties in ear file  RSS feed

N Naveen
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a ear file which contains only and ejb-jar file and no war modules.

I have configured log4j in the following way.
Add the log4j.properties,commons-logging.properties to the base directory of the ejb.jar.
In the manifest.mf of the ejb-jar,i added the commons-logging.jar and log4j.jar as entries in the classpath.then placed the jars in the base directory of the ear.
Now this works fine.

However,I dont want the log4j.properties embedded in the ejb-jar file as this makes it difficult for the admins to change/edit.

i want the log4j.properties in the base directory of the .ear file.
I tried placing the properties file in the base directory and adding a entry as log4j.properties in the manifest.mf of the ejb-jar .but still doesnt work.

I am using IBM websphere 5.1 app server.

Need info how to enable log4j in the above scenario.
will be thnkful to anyone who can shed some light on this topic.

Thanks in advance,
Naveen Nagarajan

p.s:Moderator , i am adding this topic in IBM Websphere too.
Not sure where to post. If required,please delete this post from one of
the places.Sorry for the duplicates.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!