tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Danno Ferrin <shem...@earthlink.net>
Subject Re: JSP precompile for Tomcat
Date Mon, 10 Jul 2000 18:38:02 GMT
use the nightly build or a 3.2 beta release.  This is a bug that is
fixed in the tree but exists in 3.1.

Stephen Zhou wrote:
> 
> Thank you so much, Danno,
> what is syntex to use -webinf and -webapp,
> I tried following:
> bin/jspc.sh -webapp /usr/local/apache/tomcat/webapps/myapp -webxml
> /usr/local/apache/tomcat/webapps/myapp/WEB-INF/web.xml
> get error:
> Exception in thread "main" java.lang.NullPointerException
>         at java.io.File.<init>(File.java:181)
>         at org.apache.jasper.JspC.parseFiles(JspC.java:454)
>         at org.apache.jasper.JspC.main(JspC.java:601)
> 
> any help will be really appreciated.
> stephen
> 
> -----Original Message-----
> From: Danno Ferrin [mailto:shemnon@earthlink.net]
> Sent: Friday, July 07, 2000 12:40 PM
> To: tomcat-user@jakarta.apache.org
> Subject: Re: JSP precompile for Tomcat
> 
> you need to do the servlet mappings, use either the -webinc or -webinf
> options, and put those in the web.xml.  This will map the servlets to an
> alias of the pages.
> 
> Stephen Zhou wrote:
> >
> > Hi,
> > does anyone has experience on precompile jsp pages using jspc tool?
> > I used jspc to create servlet(java file) for a jsp page, compiled it and
> > then put into WEB-INF/classes directory, but tomcat can't recognize it, it
> > still process it in its working directory:
> > _0002fcom_0002fsubdir_0002flogin_0002ejsplogin.class
> > _0002fcom_0002fsubdir_0002flogin_0002ejsplogin_jsp_0.java
> > Thanks in for help.
> > stephen

Mime
View raw message