Sorry about cross-post...
This one was unpackWARS="false"
Turned out to be tomcat host attribute unpackWARS inside conf/server.xml
I set it to true, and the context unpacked and the servlet could then
operate log4j.xml from within the physical unpacked context
___
Place all the resources into classpath and it shall
work.
It means that log4j.properties should be in
WEB-INF/classes and it will be picked up
autoamagically.
If yu need something then
this.getClass().getClassloader().getResource*
--- Ken nashua <[EMAIL PROTECTED]> wrote:
> Hi Folks,
>
> I tho
Thanks James,
Yes, I am using WAR file for my web app.
I am using tomcat-5.5.17
I would shudder to think that I need to configure tomcat somehow with a URL
specific or app specific context... I like things to be generic.
Any feedback on a solution would be great.
thanks
___
Is your webapp deployed in a .war file? What application server are you
using?
On 10/27/06, andyhot <[EMAIL PROTECTED]> wrote:
Dear ken, please do not cross-post.
I just got this email 3 times...
And i can't even find what the question is...
Cause it's sure that your getServletContext().getRe
Dear ken, please do not cross-post.
I just got this email 3 times...
And i can't even find what the question is...
Cause it's sure that your getServletContext().getRealPath("/") indeed
returns null.
Looks like a servlet context issue (configuration perhaps) to me...
Ken nashua wrote:
> Hi Folks
Hi Folks,
I thought it proper to integrate ConfigurationServlet to my webapp just like
the tacosdemo does.. just to initialize log4j
web.xml below...
--->HERE IS THE OUTPUT FROM TOMCAT CONSOLE:
java.io.FileNotFoundException: null\WEB-INF\log4j.properties (The system
cannot
find the path spe
Hi Folks,
I thought it proper to integrate ConfigurationServlet to my webapp just like
the tacosdemo does.. just to initialize log4j
web.xml below...
--->HERE IS THE OUTPUT FROM TOMCAT CONSOLE:
java.io.FileNotFoundException: null\WEB-INF\log4j.properties (The system
cannot
find the path spe