ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Gibbs" <dgi...@agency.com>
Subject RE: JspcC task classpath problem
Date Thu, 27 Jun 2002 14:15:21 GMT
Have you included the xercesImpl.jar, xmlParserAPIs.jar in your classpath as
well ?
I have been striggling with this task as well.
See if you can run jasper from the command line sort of like this.
"..." of course represents an arbitrary path.

Drive:\jdk1.3.1_03\jre\bin\java.exe
-classpath
"C:\...\lib\servlet.jar;C:\...\lib\ant.jar;C:\...\lib\jasper-compiler.jar;C:
\...\lib\jasper-runtime.jar;C:\...\lib\xmlParserAPIs.jar;C:\...\lib\xercesIm
pl.jar;C:\...\lib\j2ee.jar;C:\...\lib\variouswhatever.jar;"
org.apache.jasper.JspC
-d "C:\...\build\generated"
-p com.fu.bar.jsp
-v9
-uriroot "C:\...\source\site"
-uribase "C:\...\source\site"
-die9
"C:\...\source\site\admin\error.jsp"

I can run the task but end up with null pointer exceptions being thrown from
JspC.

I am also running Ant 1.5 Beta3 on Linux with Tomcat 4.0.4 libs ( jasper ).

Dave

-----Original Message-----
From: Matt Koss [mailto:m.koss@open.ac.uk]
Sent: 27 June 2002 14:04
To: ant-user@jakarta.apache.org
Subject: JspcC task classpath problem



I get the following message when running jspc task :

[jspc] Compiling 28 source files
/home/mk666/src/Artemis/ClockworkTool/tools/work/Standalone/localhost/Clockw
orkTool

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


my ant lib directory does contains jasper-compiler.jar, jasper-runtime.jar
and
optional.jar, so I don't know what's wrong.

I have looked at the process list and there are all these jar files in the
classpath.

Running Ant 1.5 Beta3 on Linux with Tomcat 4.0.4 libs ( jasper ).


Cheers

Matt

--
Matt Koss
Knowledge Media Institute
Open University
e-mail: m.koss@open.ac.uk

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message