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 17:13:34 GMT
I had to pile absolutely everything in to the jspc classpath attribute as
follows, that got me past the NoClassDefFoundError. Crank the verbosity of
Ant up (-verbose) and you will see the command that the task tries to
execute.

I'll try using the -webapp form as you have done.

	<jspc srcdir="../${site}"
	      destdir="${build}/generated"
	      package="com.***.***.jsp"

classpath="../../lib/servlet.jar;../../lib/ant.jar;../../lib/jasper-compiler
.jar;../../lib/jasper-runtime.jar;../../lib/xmlParserAPIs.jar;../../lib/xerc
esImpl.jar;${base.classpath}"
	      uriroot="${site}"
	      verbose="9">
	  <include name="**/*.jsp" />
	</jspc>

Dave

-----Original Message-----
From: Matt Koss [mailto:m.koss@open.ac.uk]
Sent: 27 June 2002 17:26
To: Ant Users List
Subject: Re: JspcC task classpath problem



Hello,

I am running JDK 1.4.0 so xerces is already there.
I can run jspc from the command line as e.g. :

java -cp
"../lib/jasper-runtime.jar:../lib/jasper-compiler.jar:../lib/servlet.jar"
org.apache.jasper.JspC -webapp outputdir

So looks like only these 3 jar files are needed.

However, no matter what I do, I can't run jspc task.

I would really like to know how do people actually run this task ?

Cheers

Matt

On Thursday 27 June 2002 3:15 pm, Dave Gibbs wrote> 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\xercesI
>m 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/Clock
>w 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