Tomcat web application - using JAR

J

Joe

Hi,

I am running a web application installed using a 3rd party product on
Tomcat 4. I am customising the application and trying to call my own
classes which I have packaged in a JAR.

The web application can call the Jar classes fine (I added the full
path to the classpath in catalina.bat). But when I reference classes
within the web app (under WEB-INF/classes) from my classes within the
JAR it throws a NoClassDefFoundError exception. It seems as though it
can't go back find the classes within the webapp when its reached the
JAR.

I tried adding the classpath the WEB-INF/classes directory which seems
to work but then I get another exception at a later point
javax.servlet.ServletException: org/apache/regexp/RESyntaxException

Am I using external JARs with Tomcat the right way?

Many thanks in advance.

Joe.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top