Re: AW: Please initialize the log4j system properly
Re: AW: Please initialize the log4j system properly
- Subject: Re: AW: Please initialize the log4j system properly
- From: Baiss Eric Magnusson <email@hidden>
- Date: Wed, 7 Jul 2004 11:21:18 -0700
Thanks for your replies, but some of you are being too platform
specific.
I am not using Tomcat.
I am not using Servlets per se.
There is no such notion of the "src directory of your web service",
other than the Documents directory of Apache.
There is no such thing as a .bat file and I don't have a </classes>
directory in my web applications server (WebObjects).
My server is MacOSXS, running Apache, it is, of course, Unix based.
I modified <log4j.properties>, changing INFO to DEBUG and I was able to
see all the output on my development machine, on the server where the
problem is, I can't find a location where Axis will read
<log4j.properties>. I have moved it everywhere, maybe the problem is
upstream from the <log4j.properties> reading.
The problem is I get a NoClassDefFoundError thrown
at
org.apache.axis.handlers.BasicHandler.<clinit>(BasicHandler.java:43).
at org.apache.axis.client.Service.getAxisClient(Service.java:104)
And the <log4j.properties> is of no help, since it is never being read
by Axis.
And most curiously it works on the development machine, MacOSX with
Apache, when running the WebObjects app thru XCode Build&Run.
On Jul 6, 2004, at 11:35 PM, Dorner Thomas wrote:
Hi Baiss Eric,
Put this in your Catalina.bat at the bottom, in the line starts with
%_EXECJAVA% %JAVA_OPTS% ÊTALINA_OPTS% ÞBUG_OPTS%....
-Dlog4j.debug -Dlog4j.configuration=log4j.config.xml
and put your log4j.properties.xml in the /classes directory
Tomi
In the first encounter of this line, which is the first use of Axis:
org.apache.axis.client.Service service = new
org.apache.axis.client.Service();
The following 2 msgs are written to console:
log4j:WARN No appenders could be found for logger
(org.apache.axis.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system properly.
I have <log4j.properties> in the same directory as the axis jars.
----
Baiss Eric Magnusson
<http://www.Track-Your-Finances.com>
<http://www.CascadeWebDesign.com>
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.