tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: Problem with precompiled JSP's (2nd Try)
Date Sat, 28 May 2005 00:20:43 GMT
I just checked, and there is indeed NoSuchMethod in Tomcat 5.

You need to re-precompile your JSPs using the jspc from Tomcat 5 for it to 
work.  It's not enough to just move the class files over, since they 
reference the Jasper version that they were compiled with.

"Mike Baliel" <mbaliel@atomogy.com> wrote in message 
news:42974CAE.7020506@atomogy.com...
> Hello,
>
>     I have an application that is currently running under JBoss 3.2.x with 
> Jetty that I would like to get running on Tomcat 5.X.  I have precompiled 
> all of the JSP's and mapped them to there respective JSP path in the 
> web.xml.  Here is a sample fragment of the web.xml:
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 
> 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
> <web-app id="WebApp">
>     <display-name>mjc_campus_tour</display-name>
>     <servlet>
>         <servlet-name>tourArea0</servlet-name>
>         <display-name>tourArea0</display-name>
>
> <servlet-class>com.atomogy.virtualtour.view.pages.tourArea0_jsp</servlet-class>
>     </servlet>
>     <servlet>
>         <servlet-name>tourArea1</servlet-name>
>         <display-name>tourArea1</display-name>
>
> <servlet-class>com.atomogy.virtualtour.view.pages.tourArea1_jsp</servlet-class>
>     </servlet>
>     <servlet>
>         <servlet-name>tourArea2</servlet-name>
>         <display-name>tourArea2</display-name>
>
> <servlet-class>com.atomogy.virtualtour.view.pages.tourArea2_jsp</servlet-class>
>     </servlet>
>     <servlet>
>         <servlet-name>tourArea3</servlet-name>
>         <display-name>tourArea3</display-name>
>
> <servlet-class>com.atomogy.virtualtour.view.pages.tourArea3_jsp</servlet-class>
>     </servlet>
>     <servlet>
>         <servlet-name>footer</servlet-name>
>         <display-name>footer</display-name>
>
> <servlet-class>com.atomogy.virtualtour.view.include.footer_jsp</servlet-class>
>     </servlet>
>     <servlet>
>         <servlet-name>header</servlet-name>
>         <display-name>header</display-name>
>
> <servlet-class>com.atomogy.virtualtour.view.include.header_jsp</servlet-class>
>     </servlet>
>     <servlet-mapping>
>         <servlet-name>tourArea0</servlet-name>
>         <url-pattern>/pages/tourArea0.jsp</url-pattern>
>     </servlet-mapping>
>     <servlet-mapping>
>         <servlet-name>tourArea1</servlet-name>
>         <url-pattern>/pages/tourArea1.jsp</url-pattern>
>     </servlet-mapping>
>     <servlet-mapping>
>         <servlet-name>tourArea2</servlet-name>
>         <url-pattern>/pages/tourArea2.jsp</url-pattern>
>     </servlet-mapping>
>     <servlet-mapping>
>         <servlet-name>tourArea3</servlet-name>
>         <url-pattern>/pages/tourArea3.jsp</url-pattern>
>     </servlet-mapping>
>      <servlet-mapping>
>         <servlet-name>footer</servlet-name>
>         <url-pattern>/include/footer.jsp</url-pattern>
>     </servlet-mapping>
>     <servlet-mapping>
>         <servlet-name>header</servlet-name>
>         <url-pattern>/include/header.jsp</url-pattern>
>     </servlet-mapping>
>     <welcome-file-list>
>         <welcome-file>index.jsp</welcome-file>
>     </welcome-file-list>
> </web-app>
>
>
> The error message that I get when trying to run the application on Tomcat 
> is as follows:
>
>
> 2005-05-26 09:33:03 StandardWrapperValve[tourArea0]: Servlet.service() for 
> servlet tourArea0 threw exception
> java.lang.NoSuchMethodError: 
> org.apache.jasper.runtime.JspRuntimeLibrary.include(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljava/lang/String;Ljavax/servlet/jsp/JspWriter;Z)V
>     at 
> com.atomogy.virtualtour.view.pages.tourArea0_jsp._jspService(tourArea0_jsp.java:43)
>     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>     at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>     at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>     at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>     at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>     at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>     at 
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>     at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>     at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>     at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>     at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>     at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>     at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>     at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>     at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>     at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>     at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>     at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>     at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>     at 
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>     at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
>     at 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
>     at 
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>     at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>     at java.lang.Thread.run(Thread.java:534)
>
>
> Tomcat appears to be choking on the JSP includes.....   I have traversed 
> all of the "Jasper" related jars and the method 
> (org.apache.jasper.runtime.JspRuntimeLibrary.include) definitely exists. I 
> have also made sure that the JspC that I am using to compile the JSP's is 
> indeed the JspC located at [TOMCAT_HOME\common\lib\jasper-compiler.jar].
>
> Any insight into this problem would be greatly appreciated.
>
> Thanks,
>
>
> -- 
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.322 / Virus Database: 266.11.17 - Release Date: 5/25/2005 




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message