Hi Peter,

The docs are not very good on this.  There is good news and bad news.  The
bad news is that even using JSPC all you get is a bunch of uncompiled
servlets.  You still have the slowdown at runtime with the first compile
into class files.  You can go in and compile the servlets but getting the
classpaths correct is difficult and in many cases the command line is too
long to be processed.

The good new is that there are ant scripts for doing all of this for you in
4.1.12. Check the Manager App How-To in the docs for details.

Rick

----- Original Message -----
From: "peter lin" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 02, 2002 8:14 AM
Subject: 4.1.12 JSPC question


>
> I'm trying to get JSPC to work correctly and compile my webapp, but I am
> having a bit of difficulty. jspc with tomcat 4.0.3 worked fine, but
> 4.1.12 is having trouble resolving the included files and is therefore
> throwing NPE.  I've gone through every tomcat 4 doc on the site and I've
> read through the javadoc, but it's still unclear to me which jspc
> options are required and which are not.
>
> I've managed to compile single jsp files, but not a webapp.  Here is an
> example of the command I am using.
>
> C:\tomcat\bin>jspc -webapp c:\project\myapp -d
> c:\tomcat\work\Standalone\localhost\_ -uriroot c:\project\myapp -uribase
> c:\project\myapp
>
> I'm hoping it's just stupid user error on my part. One thing is my pages
> use JSTL <c:import> as well as other JSTL tags.
>
> peter



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

Reply via email to