Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic in ear file

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, to the base directory of the ejb.jar.
In the 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 embedded in the ejb-jar file as this makes it difficult for the admins to change/edit.

i want the in the base directory of the .ear file.
I tried placing the properties file in the base directory and adding a entry as in the 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