I get a NoClassDefError on the following line
        private static Log log = LogFactory.getLog(
BasicHandler.class.getName() );
of BasicHandler.java

I have determined that Axis will not read <log4j.properties> on my
server no matter where I put the file, nor does it say it is failing to
read it, but maybe that's by design.

Are you sure you don't have a permission problem on log4j-1.2.8.jar? commons-logging.jar?
The directory it is in?
Where did you put the jar files?
What user is axis running under?
What container are you running in (Tomcat/JBoss/...)? Where is it installed?
If you are sure all of that is correct - print the classpath at runtime from the code and check again.


Does something like this find log4j.properties in your runtime environment?
URL url = this.getClass().getClassLoader().getResource("log4j.properties");


Google for JWihch.java and use the guts to search for LogFactory in your runtime class path

I don't think your error has anything to do with log4j.properties, Java
version or operating sytem - it looks like you are missing some runtime
piece of commons logging or log4j.

joe



Reply via email to