Hi Ghufran,

if i ran the below mentioned jsp file to compile all jsp i am getting error
with this stacktrace
java.lang.ClassNotFoundException: org.apache.jsp.jsp.precompile_jsp
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131)
        at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:63)
        at
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:597)
        at
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:137)
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:314)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
        at java.lang.Thread.run(Thread.java:619)


but the java class and java file is available in the correct location...
i am working in linux with tomcat running in root user. so the java and
class file will be also in root rights.. is there any relation between
these?

-Arvind S

*
"Many of lifes failure are people who did not realize how close they were to
success when they gave up."
-Thomas Edison*


On Wed, May 27, 2009 at 8:17 PM, Ghufran <ghufra...@vopium.com> wrote:

> Try this
>
>
>
>
>
> Some JSP containers (as per section 8.4.2 of the JSP 1.2 specification)
> support the capability of precompiling a JSP page.
>
> To precompile a JSP page, access the page with a query string of
> ?jsp_precompile
>
> http://hostname.com/mywebapp/mypage.jsp?jsp_precompile
>
>
>
>
>
> see more details at http://www.rgagnon.com/javadetails/java-0414.html
>
>
>
>
>
> Regards
>
> Ghufran
>
>
>
> -----Original Message-----
> From: S Arvind [mailto:arvindw...@gmail.com]
> Sent: Wednesday, May 27, 2009 6:31 PM
> To: Tomcat Users List
> Subject: Re: Compile JSP before the first request arrives
>
>
>
> can you give me the good docs about this..
>
>
>
> -Arvind S
>
>
>
> *
>
> "Many of lifes failure are people who did not realize how close they were
> to
>
> success when they gave up."
>
> -Thomas Edison
>
>
>
> *
>
> On Wed, May 27, 2009 at 6:23 PM, David Smith <d...@cornell.edu> wrote:
>
>
>
> > S Arvind wrote:
>
> > > Is there any way to pre-compile all the jsp files, when we are
> deploying
>
> > in
>
> > > the production environment?
>
> > >
>
> > > -Arvind S
>
> > >
>
> > > *
>
> > >
>
> > > "Many of lifes failure are people who did not realize how close they
> were
>
> > to
>
> > > success when they gave up."
>
> > > -Thomas Edison*
>
> > >
>
> > >
>
> > Yes ... depends on your build environment.  Most offer some means of
>
> > pre-compiling the jsps to servlets.
>
> >
>
> > --David
>
> >
>
> > ---------------------------------------------------------------------
>
> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>
> > For additional commands, e-mail: users-h...@tomcat.apache.org
>
> >
>
> >
>
> No virus found in this incoming message.
>
> Checked by AVG - www.avg.com
>
> Version: 8.5.339 / Virus Database: 270.12.39/2134 - Release Date: 05/25/09
> 18:14:00
>
>

Reply via email to