I've got a web service using Tomcat/Axis that implements
org.apache.catalina.LifecycleListener. I have an entry in my server.xml
file that looks like:
<Context path="/axis" docBase="axis" debug="0" reloadable="true">
<Listener className="org.swri.its.c2c.xml.C2CMessageProcessor"/>
</Context>
My problem is that when it tries to instantiate the class, I get the
following exception:
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category
at
org.apache.axis.handlers.BasicHandler.<clinit>(BasicHandler.java:78)
at
org.apache.axis.client.Service.getAxisClient(Service.java:119)
at org.apache.axis.client.Service.<init>(Service.java:130)
I have the log4j-core.jar class in my CLASSPATH. I have even tried to
extract the jar file into classes, but it still can't find it. I'm
using the log4j-core.jar file that came with axis-alpha3. I'm also
using Java 1.4.0. I've tried with 1.3.1_01 and older/newer versions of
log4j, but to no avail.
Any ideas?
Thanks,
Mike