• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

log4j.properties in wsad

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Is there anyone using log4j in wsad apps? Will you enlighten me that where I should put the log4j.properties 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,
Ping
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have a seperate 'properties' project that contains all of the properties for various applications (including the log4j.properties file). We then add the /properties directory to the paths for the test server.
 
Ping Wang
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
That may be a good idea - to put all the properties in a separate project.
The reason my web app doesn't load the log4j.properties 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 log4j.properties is loaded from /WEB-INF/classes directory as expected.

Cheers,
Ping
 
Forget this weirdo. You guys wanna see something really neat? I just have to take off my shoe .... (hint: it's a tiny ad)
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic