wood burning stoves 2.0*
The moose likes Other Java Products and Servers and the fly likes setting up Log4J in Orion webapps Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "setting up Log4J in Orion webapps" Watch "setting up Log4J in Orion webapps" New topic
Author

setting up Log4J in Orion webapps

Phil Johnston
Greenhorn

Joined: Jul 25, 2005
Posts: 6
So - I've put the log4j.jar in my orion/lib directory, and (as per everything I've read) I've put the log4j.xml config file in the web-inf/classes directory in my war file.

but it doesn't pick it up. with debugging switched on, it wants to look only in the same directory as the log4j.jar file, which isn't what I want it to do.

if I have to, I'll put the jar file into the war (or ear) file, and put the xml file in the same directory as that, but I'd rather not have to do that. any ideas?
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
I've put the log4j.jar in my orion/lib directory, and ... I've put the log4j.xml config file in the web-inf/classes directory in my war file.

if I have to, I'll put the jar file into the war (or ear) file, and put the xml file in the same directory as that, but I'd rather not have to do that. any ideas?


I think that if you put the log4j.xml file into the war, you also need to put the log4j.jar into the war. As far as I know, that is the way it is typically done. Putting the xml file into the lib directory won't work.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Phil Johnston
Greenhorn

Joined: Jul 25, 2005
Posts: 6
Thanks Marilyn - though I'm having great difficulty in even doing that.

I've got my ear file set up as so:

myear
/META-INF
/META-INF/MANIFEST.MF
/myejbs.jar
/log4j-1.2.9.jar
/thirdparty1.jar
/mywar.war

now - by my reckoning, this should be fine, no?

but I'm not getting my jar files picked up by myejbs.jar classes.

have I missed something out?

do I have to put an entry in my MANIFEST.MF to point to the jar files?

Thanks in advance for any help,

Phil
Jag Bains
Ranch Hand

Joined: Nov 19, 2002
Posts: 39
hi,

I have my log4j.jar and my log4j.properties in my Orion/lib dir.

That seems to work fine for me
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: setting up Log4J in Orion webapps
 
Similar Threads
How to deploy a web application in ORION
How to configure a separate log file(Log4j) for a specific application in JBoss?
I am looking for a little help setting up Tomcat for Ant build/deploy
Using Sun App Server instead of Orion
How to deploy a web application in ORION