Hi Oskar,

I am using the options:
    -uriroot /$TOMCAT_HOME/webapps/AppName
    -d         /$TOMCAT_HOME/webapps/AppName/WEB-INF/classes
                to set the directory where the results of jspc should be placed
    -webxml    /OWN_DIR/webAppName.xml
    -webapp    /$TOMCAT_HOME/webapps/AppName
                to specify the directory that contains the jsp's

I remove the jsp's after running jspc from /$TOMCAT_HOME/webapps/AppName.

After running jspc, you should run javac to compile the generated java-files to
class files.

I update my own web.xml with the results of /$OWN_DIR/webAppName.xml,
and then everything runs fine.

Hope this help,

Sophie

Oskar Zinger schreef:

> What option did you use with jspc?  I am encountering the same problem.
> Thanks
> Oskar
>
> FRED wrote:
>
> > Hi Randy,
> >
> > Thank you for your reaction. I got it working. This will save me a lot
> > of time and will make my application more scalable.
> >
> > Sophie
> >
> > Randy Layman schreef:
> >
> > >         The answer is you can't.  Even if you could get it to generate the
> > > file names correctly, Tomcat still wouldn't use them.  What you need to do
> > > is to use jspc with the option that produces a web.xml file.  You then need
> > > to incorporate that with your web.xml file, compile the .java files, and you
> > > will have a webapp made up of exclusively servlets (and static content) - no
> > > more JSP to compile.
> > >
> > >         Randy
> > >
> > > > -----Original Message-----
> > > > From: Joost en Sooophie [mailto:[EMAIL PROTECTED]]
> > > > Sent: Saturday, June 09, 2001 1:59 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: jspc and deployment
> > > >
> > > >
> > > > Hi,
> > > >
> > > > My problem is the following:
> > > >
> > > > I am working on an EJB application. I want to pre-compile all the
> > > > jsp-pages before making the application available on the internet
> > > > (and someone clicking on the page, experiencing quite some delay).
> > > >
> > > > When the jsp MyJSP.jsp is compiled with jspc in Tomcat, files
> > > > MyJSP.java
> > > > and MyJSP.class are placed in the /TOMCAT_HOME/work directory. But
> > > > when I start the application on the internet, it creates the files
> > > > xxxMy_yyyJSP.java
> > > > and xxxMy_yyyJSP.class in the /TOMCAT_HOME/work directory.
> > > >
> > > > How can I configure jspc, so that it creates the files
> > > > xxxMy_yyyJSP.java and
> > > > xxxMy_yyyJSP.class in the /TOMCAT_HOME/work directory?
> > > >
> > > > Any answer or information or documentation is much appreciated.
> > > >
> > > > Sophie
> > > >
> > > >

Reply via email to