JSP compile Error

General discussion on the JZOS batch launcher and toolkit
Post Reply
dj

JSP compile Error

Post by dj »

I have implemented a web service under Tomcat 4.1.31 running on z/OS and I want to invoke it from a JSP page however the classpath does not appear to be set correctly for JSP compiles. When I attempt to add the axis and jaxrpc jar files (for the webservice invocation) to the startup CLASSPATH for the JZOS JVM I get an error that looks like a class conflict or missing class. Any thoughts? Thanks.

Apache Tomcat/4.1.31
Exception during startup processing
java.lang.reflect.InvocationTargetException: java.lang.ExceptionInInitializerError: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JLogger does not implement Log
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532)

dj
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

It looks like you have a class loader conflict. Perhaps you have versions of the log4j jar in both your webapp /WEF-INF/lib and in a common or system Tomcat classpath?

If you google: tomcat org.apache.commons.logging.impl.Log4JLogger does not implement Log

there are some articles that might help:

http://www.theserverside.com/discussion ... d_id=32474
http://www.qos.ch/logging/classloader.jsp
Post Reply