"Mike Baliel" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Thanks for replying Bill....
>
> I have Tomcat 5.0 installed and I checked the jasper-runtime.jar located 
> at Tomcat5.0\common\lib and in my copy the method exists... ?
>
> Are you looking in jasper-compiler or jasper-runtime?
>

Admittedly, I'm looking at the 5.5 version (since I removed the 5.0 version 
here long ago :).  However, I didn't think that there were such major 
changes in Jasper between 5.0 and 5.5 (and a quick check of the CVS log 
confirms it :).  The signature in all recent versions of TC 5.x 
jasper-runtimes is:
    public static void include(ServletRequest request,
                               ServletResponse response,
                               String relativePath,
                               JspWriter out,
                               boolean flush)
        throws IOException, ServletException {

which is clearly different from your pre-compiled JSPs.

>
>
> Bill Barker wrote:
>> 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" <[EMAIL PROTECTED]> wrote in message 
>> news:[EMAIL PROTECTED]
>>
>>>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: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> -- 
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.322 / Virus Database: 267.1.0 - Release Date: 5/27/2005 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to