Luis Rivera wrote:

I have a web service which will JNI to access the application, which
according to the documentation should be placed in the shared/classes
directory. I did so and I got a dreaded
java.lang.reflect.InvocationTargetException, which I believe is a class
loader problem.

You need to put the Axis jar in the WEB-INF/lib of your webapp. It wasn't clear in the original message whether you'd done it like this.

That's because the common classloader is the *parent* of your webapp's classloader, and thus can't see any classes that are in your webapp. So you can't put the Axis library there.

Note: only axis.jar itself really needs to go into the webapp's WEB-INF/lib. The rest of the Axis jars (saaj.jar, etc.) can go into common/lib, if you have many webapps in the same Tomcat instance that use Axis.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to