File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Websphere and the fly likes in wsad Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark " in wsad" Watch " in wsad" New topic
Author in wsad

Ping Wang

Joined: Mar 20, 2003
Posts: 7
Is there anyone using log4j in wsad apps? Will you enlighten me that where I should put the file so that the wsad test server can pick it up.
I tried to put it under /WEB-INF and /WEB-INF/classes, it doesn't seem to work.
Which directory is the test server's working directory anyway?
Thanks in advance,
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

We have a seperate 'properties' project that contains all of the properties for various applications (including the file). We then add the /properties directory to the paths for the test server.
Ping Wang

Joined: Mar 20, 2003
Posts: 7
That may be a good idea - to put all the properties in a separate project.
The reason my web app doesn't load the is because the wsad has a default ws-commons-logging.jar, and it was used instead of the commons-logging.jar from Jakatar. After I remove ws-commons-logging.jar from the classpath, the commons-loggin.jar from Jakatar is used and the is loaded from /WEB-INF/classes directory as expected.

I agree. Here's the link:
subject: in wsad
Similar Threads
Problem with Setting up Jakarta Logging with AXIS
Problem with Tomcat 5.5
problem of log4j in tomcat 4.1.27
Logging Error with Spring+Log4j