Hi,

I have tools.jar in my classpath set in /etc/profile.

Now when tomcat startsup via a script in /etc/init.d,
and I try and recompile jsp's, it does not locate
tools.jar for "on-the-fly" jsp compilation

I finally copied it to WEB-INF/lib, and restarted tomcat.

That works, but I am sure that there is a better way
to set the calsspath etc.

Any ideas ?
Thanks
Shahed




----- Original Message -----
From: "Luis Olivares" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 02, 2001 1:03 PM
Subject: Re: Deploying precompiled jsp without .jsp file


> Pretty interesting, so now I have all my webapp "extra-packed".
>
> Does this method causes any secondary effects?
>
> Regards.
>
> ----- Original Message -----
> From: "Randy Layman" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, August 02, 2001 11:28 AM
> Subject: RE: Deploying precompiled jsp without .jsp file
>
>
> >
> > It won't work quite the way that you are proposing, but there is a
> > way to accomplish this.  First, use jspc.sh|.bat to precompile your
JSPs.
> > (Use the -webxml option).  Now, use javac to compile the .java from jspc
> to
> > .class.  Copy this to the WEB-INF/classes or incorporate into a jar in
> > WEB-INF/lib.  Now modify your web.xml file to include the fragment
> produced
> > by jspc.  And that's it.  All of your webapp is now a bunch of servlets
> > without any JSP files.
> >
> > Randy
> >
> >
> > > -----Original Message-----
> > > From: Shahed A Moolji [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, August 02, 2001 12:15 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Deploying precompiled jsp without .jsp file
> > >
> > >
> > > Hi,
> > >
> > > Is it possible to distribute precompiled jsp's using
> > > standalone tomcat, but not distribute the .jsp source file ?
> > >
> > > Also, is the same possible when tomcat is integrated with
> > > Apache etc ?
> > >
> > > ie. I go to http://myserver.com:8080/a.jsp and a.jsp does not exist
> > > under the webapps/<context> directory, but a precompiled class
> > > does exist under the WORK directory.
> > >
> > > Thanks
> > > Shahed.
> > >
>
>

Reply via email to