ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Gibbs" <>
Subject java.lang.NoClassDefFoundError: org/apache/jasper/JspC
Date Mon, 24 Jun 2002 16:15:16 GMT
I hope some-one has solved this no-doubt simple problem,

I am trying to use the jspc optional task and get the following error.

"[java] java.lang.NoClassDefFoundError: org/apache/jasper/JspC
[java] Exception in thread "main"

I am using 1.5Beta3. I have the distributed "optional.jar" in the lib
directory. I have copied "jasper-runtime.jar" and "jasper-compiler.jar" to
the lib directory.

The LOCALCLASSPATH echoed from the ant.bat is as follows

Files\Apache Group\Tomcat 4.1\common\endorsed\xercesImpl.jar;C:\Program
Files\Apache Group\Tomcat
4.1\common\endorsed\xmlParserAPIs.jar;D:\DB2\java\;D:\DB2\java\ru;D:\DB2\java\;D:\DB2\bin;C:\Documents and

There is some duplication in there because I have been trashing a bit
tragically at this problem.

Do y'all believe the error to be as reported  or could it be some further
dependency ? As a reality check I have been trying to run jspc.bat from the
tomcat 4.1 distribution and am getting a similarly inexplicable
NoClassDefFoundError for "org/xml/sax/SAXException". I'm a bit puzzled since
this class is distributed in "..\common\endorsed\xmlParserAPIs.jar".
Is it something to do with the uninitialised property
which I find in the jasper.bat file ? I'm not sure about the meaning if the
"endorsed directories".

I'd be very grateful if some-one who has worked through this could help.
btw.. JAVA_HOME, ANT_HOME, CATALINA_HOME, JASPER_HOME environment variables
all appear to be correctly set.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message