tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramesh Kumar . T" <rameshku...@india.adventnet.com>
Subject Re: precompilations
Date Fri, 24 Nov 2000 10:51:54 GMT
Miles Daffin wrote:

> Hi,
>
> I have tried invoking jspc as suggested below (Windows). Have a look at what
> happens - basicly the arg file cannot be found even though it is DEFINITELY
> valid.
> --
> E:\TOMCAT\3.2-b7>bin\jspc
> E:\TOMCAT\3.2-b7\webapps\examples\jsp\snp\snoop.jsp
> Including all jars in .\lib in your CLASSPATH.
>
> Using CLASSPATH:
> .\classes;.\lib\ant.jar;.\lib\jasper.jar;.\lib\jaxp.jar;.\lib\parser.jar;.\l
> ib\servlet.jar;.\lib\webserver.jar;D:\Tools\Junit32\junit
> .jar;C:\IBMDebug\lib\dertrjrt.jar;.;C:\SQLLIB\java\db2java.zip;C:\SQLLIB\jav
> a\runtime.zip;;D:\JDKs\Sun1.3\lib\tools.jar
>
> 2000-11-24 10:28:08 - The file argument
> 'E:\TOMCAT\3.2-b7\webapps\examples\jsp\snp\jsp\snp\snoop.jsp' does not exist
> E:\TOMCAT\3.2-b7>
> --
>
> Why?

There seems to be a problem in the  batch file check it out ,
see the path  in bold above

> And what kind of output will I get when the file is found?
>

you will get a servlet (java ) file


>
> Miles
>
> ----- Original Message -----
> From: "Ramesh Kumar . T" <rameshkumar@india.adventnet.com>
> To: <tomcat-user@jakarta.apache.org>
> Sent: Friday, November 24, 2000 6:12 AM
> Subject: Re: precompilations
>
> > Carlos wrote:
> >
> > > if i execute the jspc.sh (./jspc.sh) the system says me:
> > > Exception in thread "main" java.lang.NoClassDefFoundError:
> > > org/apache/jasper/JspC
> > > how can i well?
> >
> > Go to the tomcat's home directory
> > and execute
> > ./bin/JspC.sh  <fileName>
> >
> > Ex: ./bin.JspC.sh ./webapps/examples/jsp/snp/snoop.jsp
> >
> >
> > >
> > > thanks
> > > ----- Original Message -----
> > > From: "Ramesh Kumar . T" <rameshkumar@india.adventnet.com>
> > > To: <tomcat-user@jakarta.apache.org>
> > > Sent: Thursday, November 23, 2000 2:34 PM
> > > Subject: Re: precompilations
> > >
> > > > "Michael H. La Budde" wrote:
> > > >
> > > > > At 11/23/2000 09:29 AM +0100, you wrote:
> > > > > >Is Possible the tomcat precompile the pages?
> > > >
> > > > Use the jspc.sh/bat file to precompile the jsp pages
> > > > it comes by default with tomcat
> > > > That will make things easier
> > > >
> > > > >
> > > > > >there is any precompilation mode?
> > > > > >there is anything to precompile?
> > > > >
> > > > > Here are two possibilities for precompiling all your jsp pages so
> that
> > > > > users won't have to incur that overhead:
> > > > >
> > > > > 1) Take a look at conf/test-tomcat.xml in your tomcat distribution.
> This
> > > is
> > > > > an ant build file which is used to exercize the test context. You
> should
> > > be
> > > > > able to easily clone this to execute your own...
> > > > >
> > > > > 2) Download Apache JMeter and put together the necessary test
> scenarios
> > > to
> > > > > run your app (thus, once again, precompiling your pages).
> > > > >
> > > > > >what means <load-servlet-on-startup> ?
> > > > >
> > > > > Just what it says. Your servlet will be loaded (and it's init()
> method
> > > > > called) upon tomcat startup. The higher the number the sooner it
> will be
> > > > > loaded. I'm not sure what the valid range of numbers is, I think
> I've
> > > seen
> > > > > anything between -21467 and 36535....
> > > > >
> > > > > >thanks
> > > > > >Carlos
> > > > >
> > > > > Hope this helps,
> > > > >
> > > > > Mike
> > > >
> > > >
> >

Mime
View raw message