Hi Ghufran, The problem is not in that, problem is in http://www.rgagnon.com/javadetails/java-0414.html that u provide in previous post
if i run that jsp file i am getting that stack trace... I am in tomcat 5.5 -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 Thu, May 28, 2009 at 4:54 PM, Ghufran <ghufra...@vopium.com> wrote: > Hi > > > > If your jsp can be successfully invoked at this url > > http://hostname.com/mywebapp/mypage.jsp > > > > > > Then it should also get pre compiled by invoking this url > > <http://hostname.com/mywebapp/mypage.jsp?jsp_precompile> > http://hostname.com/mywebapp/mypage.jsp?jsp_precompile > > or try this > > http://hostname.com/mywebapp/mypage.jsp?jsp_precompile=true > > > > > > Regards > > Ghufran > > > > -----Original Message----- > From: S Arvind [mailto:arvindw...@gmail.com] > Sent: Thursday, May 28, 2009 3:03 PM > To: Tomcat Users List > Subject: Re: Compile JSP before the first request arrives > > > > 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.jav > a:137) > > at > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 > 14) > > 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(Application > FilterChain.java:269) > > at > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh > ain.java:188) > > at > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja > va:213) > > at > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja > va: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.processC > onnection(Http11BaseProtocol.java:665) > > at > > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav > a:528) > > at > > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo > rkerThread.java:81) > > at > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav > a: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 > > > > > > > > No virus found in this incoming message. > > Checked by AVG - www.avg.com > > Version: 8.5.339 / Virus Database: 270.12.43/2138 - Release Date: 05/27/09 > 18:21:00 > >