Re: Problem with precompiled JSP's (2nd Try)

2005-05-31 Thread Mike Baliel

Hi Bill,

	Thanks again for your response.  I believe (if I am not mistaken) that 
the method signature displayed in the error as No Such Method (i.e. 
the method expected based on the compiled JSP) is the same as the method 
you listed below.


Here is the error

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


Breaking down the signature it looks like this...
java.lang.NoSuchMethodError: org.apache.jasper.runtime.Jinclude(
 Ljavax/servlet/http/HttpServletRequest;  (ServletResponse request)
 Ljavax/servlet/http/HttpServletResponse; (ServletResponse response)
 Ljava/lang/String;   (String relativePath)
 Ljavax/servlet/jsp/JspWriter;(JspWriter out)
 Z(boolean flush)
)

These two methods appear to be the same... Am I missing something?

Best,
Mike

Bill Barker wrote:
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-namemjc_campus_tour/display-name
  servlet
  servlet-nametourArea0/servlet-name
  display-nametourArea0/display-name

servlet-classcom.atomogy.virtualtour.view.pages.tourArea0_jsp/servlet-class
  /servlet
  servlet
  servlet-nametourArea1/servlet-name
  display-nametourArea1/display-name

servlet-classcom.atomogy.virtualtour.view.pages.tourArea1_jsp/servlet-class
  /servlet
  servlet
  servlet-nametourArea2/servlet-name
  display-nametourArea2/display-name

servlet-classcom.atomogy.virtualtour.view.pages.tourArea2_jsp/servlet-class
  /servlet
  servlet
  servlet-nametourArea3/servlet-name
  display-nametourArea3/display-name

servlet-classcom.atomogy.virtualtour.view.pages.tourArea3_jsp/servlet-class
  /servlet
  servlet
  servlet-namefooter/servlet-name
  display-namefooter/display-name

servlet-classcom.atomogy.virtualtour.view.include.footer_jsp/servlet-class
  /servlet
  servlet
  servlet-nameheader/servlet-name
  display-nameheader/display-name

servlet-classcom.atomogy.virtualtour.view.include.header_jsp/servlet-class
  /servlet
  servlet-mapping
  servlet-nametourArea0/servlet-name
  url-pattern/pages/tourArea0.jsp/url-pattern
  /servlet-mapping
  servlet-mapping
  servlet-nametourArea1/servlet-name
  url-pattern/pages/tourArea1.jsp/url-pattern
  /servlet-mapping
  servlet-mapping
  servlet-nametourArea2/servlet-name
  url-pattern/pages/tourArea2.jsp/url-pattern
  /servlet-mapping
  servlet-mapping
  servlet-nametourArea3/servlet-name
  url-pattern/pages/tourArea3.jsp/url-pattern
  /servlet-mapping
   servlet-mapping
  servlet-namefooter/servlet-name
  url-pattern/include/footer.jsp/url-pattern
  /servlet-mapping
  servlet-mapping
  servlet-nameheader/servlet-name
  url-pattern/include/header.jsp/url-pattern
  /servlet-mapping
  welcome-file-list
  welcome-fileindex.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 

Re: Problem with precompiled JSP's (2nd Try)

2005-05-31 Thread Tim Funk
My guess is you are missing the tomcat 4 version of jasper-runtime.jar in 
your web-inf/lib dir.


If your precompile a webapp with tomcat 4 code(or I assume jetty uses jasper 
as its JSP engine). You need to supply jasper-runtime.jar with your webapp if 
you run it on a container running tomcat 5 (or not tomcat at all)


-Tim

Mike Baliel wrote:


Hi Bill,

Thanks again for your response.  I believe (if I am not mistaken) 
that the method signature displayed in the error as No Such Method 
(i.e. the method expected based on the compiled JSP) is the same as the 
method you listed below.


Here is the error

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 



Breaking down the signature it looks like this...
java.lang.NoSuchMethodError: org.apache.jasper.runtime.Jinclude(
 Ljavax/servlet/http/HttpServletRequest;  (ServletResponse request)
 Ljavax/servlet/http/HttpServletResponse; (ServletResponse response)
 Ljava/lang/String;   (String relativePath)
 Ljavax/servlet/jsp/JspWriter;(JspWriter out)
 Z  (boolean flush)
)

These two methods appear to be the same... Am I missing something?

Best,
Mike

Bill Barker wrote:

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.




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



Problem with precompiled JSP's (2nd Try)

2005-05-27 Thread Mike Baliel

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-namemjc_campus_tour/display-name
servlet
servlet-nametourArea0/servlet-name
display-nametourArea0/display-name

servlet-classcom.atomogy.virtualtour.view.pages.tourArea0_jsp/servlet-class
/servlet
servlet
servlet-nametourArea1/servlet-name
display-nametourArea1/display-name

servlet-classcom.atomogy.virtualtour.view.pages.tourArea1_jsp/servlet-class
/servlet
servlet
servlet-nametourArea2/servlet-name
display-nametourArea2/display-name

servlet-classcom.atomogy.virtualtour.view.pages.tourArea2_jsp/servlet-class
/servlet
servlet
servlet-nametourArea3/servlet-name
display-nametourArea3/display-name

servlet-classcom.atomogy.virtualtour.view.pages.tourArea3_jsp/servlet-class
/servlet
servlet
servlet-namefooter/servlet-name
display-namefooter/display-name

servlet-classcom.atomogy.virtualtour.view.include.footer_jsp/servlet-class
/servlet
servlet
servlet-nameheader/servlet-name
display-nameheader/display-name

servlet-classcom.atomogy.virtualtour.view.include.header_jsp/servlet-class
/servlet
servlet-mapping
servlet-nametourArea0/servlet-name
url-pattern/pages/tourArea0.jsp/url-pattern
/servlet-mapping
servlet-mapping
servlet-nametourArea1/servlet-name
url-pattern/pages/tourArea1.jsp/url-pattern
/servlet-mapping
servlet-mapping
servlet-nametourArea2/servlet-name
url-pattern/pages/tourArea2.jsp/url-pattern
/servlet-mapping
servlet-mapping
servlet-nametourArea3/servlet-name
url-pattern/pages/tourArea3.jsp/url-pattern
/servlet-mapping
 servlet-mapping
servlet-namefooter/servlet-name
url-pattern/include/footer.jsp/url-pattern
/servlet-mapping
servlet-mapping
servlet-nameheader/servlet-name
url-pattern/include/header.jsp/url-pattern
/servlet-mapping
welcome-file-list
welcome-fileindex.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 

Re: Problem with precompiled JSP's (2nd Try)

2005-05-27 Thread Bill Barker
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-namemjc_campus_tour/display-name
 servlet
 servlet-nametourArea0/servlet-name
 display-nametourArea0/display-name

 servlet-classcom.atomogy.virtualtour.view.pages.tourArea0_jsp/servlet-class
 /servlet
 servlet
 servlet-nametourArea1/servlet-name
 display-nametourArea1/display-name

 servlet-classcom.atomogy.virtualtour.view.pages.tourArea1_jsp/servlet-class
 /servlet
 servlet
 servlet-nametourArea2/servlet-name
 display-nametourArea2/display-name

 servlet-classcom.atomogy.virtualtour.view.pages.tourArea2_jsp/servlet-class
 /servlet
 servlet
 servlet-nametourArea3/servlet-name
 display-nametourArea3/display-name

 servlet-classcom.atomogy.virtualtour.view.pages.tourArea3_jsp/servlet-class
 /servlet
 servlet
 servlet-namefooter/servlet-name
 display-namefooter/display-name

 servlet-classcom.atomogy.virtualtour.view.include.footer_jsp/servlet-class
 /servlet
 servlet
 servlet-nameheader/servlet-name
 display-nameheader/display-name

 servlet-classcom.atomogy.virtualtour.view.include.header_jsp/servlet-class
 /servlet
 servlet-mapping
 servlet-nametourArea0/servlet-name
 url-pattern/pages/tourArea0.jsp/url-pattern
 /servlet-mapping
 servlet-mapping
 servlet-nametourArea1/servlet-name
 url-pattern/pages/tourArea1.jsp/url-pattern
 /servlet-mapping
 servlet-mapping
 servlet-nametourArea2/servlet-name
 url-pattern/pages/tourArea2.jsp/url-pattern
 /servlet-mapping
 servlet-mapping
 servlet-nametourArea3/servlet-name
 url-pattern/pages/tourArea3.jsp/url-pattern
 /servlet-mapping
  servlet-mapping
 servlet-namefooter/servlet-name
 url-pattern/include/footer.jsp/url-pattern
 /servlet-mapping
 servlet-mapping
 servlet-nameheader/servlet-name
 url-pattern/include/header.jsp/url-pattern
 /servlet-mapping
 welcome-file-list
 welcome-fileindex.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 
 

Re: Problem with precompiled JSP's (2nd Try)

2005-05-27 Thread Mike Baliel

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?



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-namemjc_campus_tour/display-name
   servlet
   servlet-nametourArea0/servlet-name
   display-nametourArea0/display-name

servlet-classcom.atomogy.virtualtour.view.pages.tourArea0_jsp/servlet-class
   /servlet
   servlet
   servlet-nametourArea1/servlet-name
   display-nametourArea1/display-name

servlet-classcom.atomogy.virtualtour.view.pages.tourArea1_jsp/servlet-class
   /servlet
   servlet
   servlet-nametourArea2/servlet-name
   display-nametourArea2/display-name

servlet-classcom.atomogy.virtualtour.view.pages.tourArea2_jsp/servlet-class
   /servlet
   servlet
   servlet-nametourArea3/servlet-name
   display-nametourArea3/display-name

servlet-classcom.atomogy.virtualtour.view.pages.tourArea3_jsp/servlet-class
   /servlet
   servlet
   servlet-namefooter/servlet-name
   display-namefooter/display-name

servlet-classcom.atomogy.virtualtour.view.include.footer_jsp/servlet-class
   /servlet
   servlet
   servlet-nameheader/servlet-name
   display-nameheader/display-name

servlet-classcom.atomogy.virtualtour.view.include.header_jsp/servlet-class
   /servlet
   servlet-mapping
   servlet-nametourArea0/servlet-name
   url-pattern/pages/tourArea0.jsp/url-pattern
   /servlet-mapping
   servlet-mapping
   servlet-nametourArea1/servlet-name
   url-pattern/pages/tourArea1.jsp/url-pattern
   /servlet-mapping
   servlet-mapping
   servlet-nametourArea2/servlet-name
   url-pattern/pages/tourArea2.jsp/url-pattern
   /servlet-mapping
   servlet-mapping
   servlet-nametourArea3/servlet-name
   url-pattern/pages/tourArea3.jsp/url-pattern
   /servlet-mapping
servlet-mapping
   servlet-namefooter/servlet-name
   url-pattern/include/footer.jsp/url-pattern
   /servlet-mapping
   servlet-mapping
   servlet-nameheader/servlet-name
   url-pattern/include/header.jsp/url-pattern
   /servlet-mapping
   welcome-file-list
   welcome-fileindex.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 

Re: Problem with precompiled JSP's (2nd Try)

2005-05-27 Thread Bill Barker

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-namemjc_campus_tour/display-name
servlet
servlet-nametourArea0/servlet-name
display-nametourArea0/display-name

servlet-classcom.atomogy.virtualtour.view.pages.tourArea0_jsp/servlet-class
/servlet
servlet
servlet-nametourArea1/servlet-name
display-nametourArea1/display-name

servlet-classcom.atomogy.virtualtour.view.pages.tourArea1_jsp/servlet-class
/servlet
servlet
servlet-nametourArea2/servlet-name
display-nametourArea2/display-name

servlet-classcom.atomogy.virtualtour.view.pages.tourArea2_jsp/servlet-class
/servlet
servlet
servlet-nametourArea3/servlet-name
display-nametourArea3/display-name

servlet-classcom.atomogy.virtualtour.view.pages.tourArea3_jsp/servlet-class
/servlet
servlet
servlet-namefooter/servlet-name
display-namefooter/display-name

servlet-classcom.atomogy.virtualtour.view.include.footer_jsp/servlet-class
/servlet
servlet
servlet-nameheader/servlet-name
display-nameheader/display-name

servlet-classcom.atomogy.virtualtour.view.include.header_jsp/servlet-class
/servlet
servlet-mapping
servlet-nametourArea0/servlet-name
url-pattern/pages/tourArea0.jsp/url-pattern
/servlet-mapping
servlet-mapping
servlet-nametourArea1/servlet-name
url-pattern/pages/tourArea1.jsp/url-pattern
/servlet-mapping
servlet-mapping
servlet-nametourArea2/servlet-name
url-pattern/pages/tourArea2.jsp/url-pattern
/servlet-mapping
servlet-mapping
servlet-nametourArea3/servlet-name
url-pattern/pages/tourArea3.jsp/url-pattern
/servlet-mapping
 servlet-mapping
servlet-namefooter/servlet-name
url-pattern/include/footer.jsp/url-pattern
/servlet-mapping
servlet-mapping
servlet-nameheader/servlet-name
url-pattern/include/header.jsp/url-pattern
/servlet-mapping
welcome-file-list
welcome-fileindex.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