Hi -

I'm having trouble getting classes loaded properly.  I have a workaround,
but I think the problem is more endemic and is (at least potentially)
preventing other resources from loading properly.

I'm running Tomcat 4.0.4 on Debian, with JDK 1.4.1 underneath.  I have
gotten all the tomcat examples running properly, so I proceded to go ahead
with my project.  Here's the top of a JSP file:

<%@ page contentType="text/html" %>
<%@ page import="ShopBean" %>
<%@ page import="org.exolab.castor.*" %>
<!-- Bean initialization throws exceptions... -->

The fact that the bean throws exceptions is unsurprising, since I just
started writing it.  But they were all turning up like this:

java.lang.NoClassDefFoundError: org/apache/jasper/runtime/JspException

This means that the JspException class itself can't be found, right?  That's
what I thought, so I checked to make sure the jasper jars were installed
(though they must be since the examples are running), and sure enough:

/usr/share/tomcat4/lib/jasper-runtime.jar
/usr/share/tomcat4/lib/jasper-compiler.jar

( /usr/share/tomcat4 is my CATALINA_HOME, as established in the debian
'tomcat4' package installation).  Frustrated, I tried adding this line at
the top of my JSP:

<%@ page import="org.apache.jasper.runtime.JspException" %>

... and it worked, to the extent that the JspException was thrown and I was
able to see the "real" exception my bean was throwing.  Certainly one
shouldn't have to explicitly include the libraries like this?  Can anyone
help enlighten me as to what's wrong with my class path, or class loader?
I'd also be more than happy to RTFM, if someone can direct me to it.


Thanks for any help,
_________________________________

 Robert Kent  -  (617) 413-3510
     http://www.rjk-comm.com/
_________________________________



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to