Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 5134 invoked from network); 27 Jun 2002 17:46:21 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by 209.66.108.5 with SMTP; 27 Jun 2002 17:46:21 -0000 Received: (qmail 3736 invoked by uid 97); 27 Jun 2002 17:46:19 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 3720 invoked by uid 97); 27 Jun 2002 17:46:19 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 3708 invoked by uid 98); 27 Jun 2002 17:46:18 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Content-Type: text/plain; charset="iso-8859-1" From: Matt Koss Reply-To: m.koss@open.ac.uk Organization: KMi To: Ant Users List Subject: Re: JspcC task classpath problem Date: Thu, 27 Jun 2002 18:45:59 +0100 User-Agent: KMail/1.4.1 References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200206271845.59160.m.koss@open.ac.uk> X-Spam-Rating: 209.66.108.5 1.6.2 0/1000/N X-Spam-Rating: 209.66.108.5 1.6.2 0/1000/N I got it working. There must have been a problem with how I set the classpath. First I managed to get working this : And then I tried a similar thing with jspc : which also works fine. I have noticed that jspc has a nested webapp tag, but I didn't get it wor= king.=20 E.g. I cannot specify it alone, I have to keep "include" tag as well, whi= ch=20 is somehow strange. Another problem is with using javac to compile generated *.java files : It looks like tomcat ignores the compiled files, i.e. it doesn't load the= m=20 faster. Seems like tomcat somehow recompiles them again, and for some reason it=20 creates more *.class files then when I compiled them with javac. Anybody knows what does it mean ? Thanks for the help Cheers Matt =20 On Thursday 27 June 2002 6:13 pm, Dave Gibbs wrote: > 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. > > =09 =09 destdir=3D"${build}/generated" > =09 package=3D"com.***.***.jsp" > > classpath=3D"../../lib/servlet.jar;../../lib/ant.jar;../../lib/jasper-c= ompile >r > .jar;../../lib/jasper-runtime.jar;../../lib/xmlParserAPIs.jar;../../lib= /xer >c esImpl.jar;${base.classpath}" > =09 uriroot=3D"${site}" > =09 verbose=3D"9"> > =09 > =09 > > 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.ja= r" > 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 t= he > 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.j= ar;C > > > \...\lib\jasper-runtime.jar;C:\...\lib\xmlParserAPIs.jar;C:\...\lib\xer= cesI > > >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 thro= wn > > 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/C= lock > > >w orkTool > > > > [java] Exception in thread "main" java.lang.NoClassDefFoundError: > > =09=09org/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 i= n > > the classpath. > > > > Running Ant 1.5 Beta3 on Linux with Tomcat 4.0.4 libs ( jasper ). > > > > > > Cheers > > > > Matt --=20 Matt Koss Knowledge Media Institute Open University e-mail: m.koss@open.ac.uk -- To unsubscribe, e-mail: For additional commands, e-mail: