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 
 

Performance gain using precompiled JSP's

2004-03-17 Thread Anand Ravi
Hi List!

I would like to know if there are any metrics available on the performance
gain achieved by using precompiled jsp's and custom tag pooling.

Thanks and Regards,
Anand Ravi




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



precompiled jsp's as a part of application war file

2003-06-08 Thread Rob
I would like to bundle my application into a single .war file.
In addition I would like to include the precompiled .jsp files
in the war file as opposed to the .jsp files themselves.
Is there a way to do this?  I would like to deploy my
application to a target without a `javac`.
A description of how would be appreciated, particularly
where within my hierarchy I place the class files and how it
affects the requests for those .jsp files (ie can a person still
type in http://www.foo.com/myapp/my.jsp) or do they end up
being used as servlets instead?
Thanks

Rob

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


Re: precompiled jsp's as a part of application war file

2003-06-08 Thread Tim Funk
- Precompile your jsp's
- Precompiling also involves changing your web.xml to map jsp files to the 
compiled version of your class

Precompiling involves translating your jsp's to class files webapp build time 
(instead of run time) via jspc(?). The class files will reside in your 
WEB-INF/classes directory somewhere.

I have never done precompiling in 4.X (so I don't the actual tech 
instructions of how to do so)



-Tim

Rob wrote:
I would like to bundle my application into a single .war file.
In addition I would like to include the precompiled .jsp files
in the war file as opposed to the .jsp files themselves.
Is there a way to do this?  I would like to deploy my
application to a target without a `javac`.
A description of how would be appreciated, particularly
where within my hierarchy I place the class files and how it
affects the requests for those .jsp files (ie can a person still
type in http://www.foo.com/myapp/my.jsp) or do they end up
being used as servlets instead?
Thanks

Rob

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



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


RE: precompiled jsp's as a part of application war file

2003-06-08 Thread Euan Guttridge
Tomcat documentation advises pre-compilation is used only to test all your
jsps compile ok. Not to deploy pre-compiled jsps but instead to use
something like httpunit, or a webload script to automatically call your jsps
to be compiled by tomcat. However the Jasper documentation states to go
ahead to use Ant's jspc task to precompile then deploy! 

If you want to give it a go the Ant  Jasper documentation for jspc is all
you should need. 
http://ant.apache.org/manual/index.html 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html#Web%20Appl
ication%20Compilation. 
Also check out Maven - it has a web.xml merge function you could use to
fully automate a build,compile, deploy script.

You could also try the alpha Tomcat 5. Quoted from
http://jakarta.apache.org/tomcat/
Refactored application deployer, with an optional standalone deployer
allowing validation and compilation of a web application before putting it
in production. 

I would be interested to hear how and what you do..

Cheers
Euan



-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: 08 June 2003 19:01
To: Tomcat Users List
Subject: Re: precompiled jsp's as a part of application war file


- Precompile your jsp's
- Precompiling also involves changing your web.xml to map jsp files to the 
compiled version of your class

Precompiling involves translating your jsp's to class files webapp build
time 
(instead of run time) via jspc(?). The class files will reside in your 
WEB-INF/classes directory somewhere.

I have never done precompiling in 4.X (so I don't the actual tech 
instructions of how to do so)



-Tim

Rob wrote:
 I would like to bundle my application into a single .war file.
 In addition I would like to include the precompiled .jsp files
 in the war file as opposed to the .jsp files themselves.
 
 Is there a way to do this?  I would like to deploy my
 application to a target without a `javac`.
 
 A description of how would be appreciated, particularly
 where within my hierarchy I place the class files and how it
 affects the requests for those .jsp files (ie can a person still
 type in http://www.foo.com/myapp/my.jsp) or do they end up
 being used as servlets instead?
 
 Thanks
 
 Rob
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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

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



Re: precompiled jsp's as a part of application war file

2003-06-08 Thread Bill Barker
You have a bunch of servlet-mappings in your web.xml file that map that maps
the jsp URL to the pre-compiled class.  Jspc will generate these for you.

One gotcha with doing this is that TC 4.x won't find welcome-files (e.g.
index.jsp) unless there is an actual file with that name.  The file can be
empty, but it has to exist.

Rob [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I would like to bundle my application into a single .war file.
 In addition I would like to include the precompiled .jsp files
 in the war file as opposed to the .jsp files themselves.

 Is there a way to do this?  I would like to deploy my
 application to a target without a `javac`.

 A description of how would be appreciated, particularly
 where within my hierarchy I place the class files and how it
 affects the requests for those .jsp files (ie can a person still
 type in http://www.foo.com/myapp/my.jsp) or do they end up
 being used as servlets instead?

 Thanks

 Rob




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



Can precompiled jsp's be used with any web server?

2001-10-26 Thread Alex Colic

Hi,

If I create a war file which holds precompiled jsp's will they work with any
web server? I am wondering about how to develop a generic war file that is
not tied to the web server.



Regards

Alex




RE: Precompiled jsp's

2001-10-25 Thread Alex Colic

Hi,

I am figuring this out myself. I used the -webxml flag to create a new
web.xml file. It takes the jsp files and creates servlet and servlet mapping
entries. I then copied these entries over to my original web.xml file. I
then started my app. It worked fine.

Although in the servlet mappings, the JSPC creates:

 servlet-mapping
  url-pattern\pwUnexpectedErrorPage.jsp/url-pattern
  servlet-namepwUnexpectedErrorPage/servlet-name
  /servlet-mapping

When I think they should be:

servlet-mapping
  servlet-namepwUnexpectedErrorPage/servlet-name
  url-pattern/pwUnexpectedErrorPage.jsp/url-pattern
  /servlet-mapping

I am saying this because when I start Tomcat 3.2.3 with the original
mappings I get xml errors. When I modify the mappings to the below, the app
runs fine.

The only problem I have is that I can't seem to get a precompiled JSP to
work as a welcome file.

Regards

Alex




Re: Precompiled jsp's

2001-10-25 Thread Oskar Zinger

need to do servlet and servlet-mapping tags in your web.xml filr for
each jsp

Thys De Wet (ZA) wrote:

 Ok so I got my  JSP's compiled into class files..
 Placed them in /WEB-INF/classes..
 Now how do I tell Tomcat 3.2.3 to use these class files ...

 ANy help

 PLEASE ..

 *begs on knees*

 **
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 the system manager.

 This footnote also confirms that this email message has been swept by
 MIMEsweeper for the presence of computer viruses.

 www.mimesweeper.com
 **




Re: Precompiled jsp's

2001-10-25 Thread Thomas Crook

You need to include the URL to servlet mappings in
your web.xml file. The -webinc switch will generate
the mappings. Here's the command line I use:

jspc -d jsp2java -p com.myco.myapp.jsp -webinc
WEB-INF/jspc.xml -webapp .

After Ant runs the jspc command I have it run a javac
task which places the class files in
WEB-INF/classes/com/myco/myapp/jsp

Then I run a small script to insert the webinc
generated file jspc.xml into web.xml


===
Thys De Wet (ZA) wrote:

Ok so I got my  JSP's compiled into class files..
Placed them in /WEB-INF/classes..
Now how do I tell Tomcat 3.2.3 to use these class
files ... 

ANy help 

PLEASE ..

*begs on knees*



**
This email and any files transmitted with it are
confidential and
intended solely for the use of the individual or
entity to whom they
are addressed. If you have received this email in
error please notify
the system manager.

This footnote also confirms that this email message
has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**




http://briefcase.yahoo.com.au - Yahoo! Briefcase
- Manage your files online.



Re: Precompiled jsp's

2001-10-25 Thread Nikola Milutinovic

 Why are you pre-compiling the JSP's?
 Doesn't Tomcat do that automatically?

How do you precompile JSPs on startup? I know they can be precompiled if called with 
that precompile URL. But suppose I had a lot of JSPs and I would like to tell Tomcat 
to precompile a defined portion of them into run-time servlets, so I could avoid that 
initial lag of first-time-run JSP.

Nix.



RE: Precompiled jsp's

2001-10-25 Thread Randy Layman



 -Original Message-
 From: Barry White [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 24, 2001 1:16 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Precompiled jsp's
 
 
 Why are you pre-compiling the JSP's?
 Doesn't Tomcat do that automatically?

Tomcat does to it automatically, but there are two primary reasons that
people want to precompile JSPs for distribution:
1.  You can't legally deploy the JDK/tools.jar that Tomcat needs to
compile without an agreement with Sun.  Precompiling eliminates the need for
the JDK, simply a JRE is now needed.

2.  It makes it more difficult for people to view and modify the
source code of your application.  This way, over ambitious people aren't
modifying their source code in an effort to fix your bugs and crackers
have to put forth more effort to find vulnerabilities (scaning Java byte
code is more difficult than scanning JSP souce).

Randy

 
 - Original Message - 
 From: Thys De Wet (ZA) [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, October 24, 2001 5:12 AM
 Subject: Precompiled jsp's
 
 
  Ok so I got my  JSP's compiled into class files..
  Placed them in /WEB-INF/classes..
  Now how do I tell Tomcat 3.2.3 to use these class files ... 
  
  ANy help 
  
  PLEASE ..
  
  *begs on knees*
  
  
  
  
 **
  This email and any files transmitted with it are confidential and
  intended solely for the use of the individual or entity to whom they
  are addressed. If you have received this email in error 
 please notify
  the system manager.
  
  This footnote also confirms that this email message has 
 been swept by
  MIMEsweeper for the presence of computer viruses.
  
  www.mimesweeper.com
  
 **
  
 



Precompiled jsp's

2001-10-24 Thread Thys De Wet (ZA)

Ok so I got my  JSP's compiled into class files..
Placed them in /WEB-INF/classes..
Now how do I tell Tomcat 3.2.3 to use these class files ... 

ANy help 

PLEASE ..

*begs on knees*



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



Re: Precompiled jsp's

2001-10-24 Thread dhay



You have to define them in your web.xml, for each jsp like this:

   servlet
servlet-nameindex/servlet-name
servlet-classJspServ.index/servlet-class
   /servlet

   servlet-mapping
servlet-nameindex/servlet-name
url-pattern/index.jsp/url-pattern
   /servlet-mapping

where JspServ is directory you have placed them in.

Hope that helps,

Dave





Thys De Wet (ZA) [EMAIL PROTECTED] on
10/24/2001 05:12:37 AM

Please respond to [EMAIL PROTECTED]

To:   '[EMAIL PROTECTED]'
  [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Precompiled jsp's



Ok so I got my  JSP's compiled into class files..
Placed them in /WEB-INF/classes..
Now how do I tell Tomcat 3.2.3 to use these class files ...

ANy help

PLEASE ..

*begs on knees*



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**









Re: Precompiled jsp's

2001-10-24 Thread Barry White

Why are you pre-compiling the JSP's?
Doesn't Tomcat do that automatically?

- Original Message - 
From: Thys De Wet (ZA) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 24, 2001 5:12 AM
Subject: Precompiled jsp's


 Ok so I got my  JSP's compiled into class files..
 Placed them in /WEB-INF/classes..
 Now how do I tell Tomcat 3.2.3 to use these class files ... 
 
 ANy help 
 
 PLEASE ..
 
 *begs on knees*
 
 
 
 **
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 the system manager.
 
 This footnote also confirms that this email message has been swept by
 MIMEsweeper for the presence of computer viruses.
 
 www.mimesweeper.com
 **
 




RE: Precompiled jsp's

2001-10-24 Thread Randy Layman

Create servlet mappings from the desired URL (i.e. /directory/file.jsp) to
the generated class names.  If you are using JSPC to precompile the files,
pass it the --webxml flag and it will generate the relevant portion of the
web.xml for you.

Randy


 -Original Message-
 From: Thys De Wet (ZA) [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 24, 2001 5:13 AM
 To: '[EMAIL PROTECTED]'
 Subject: Precompiled jsp's
 
 
 Ok so I got my  JSP's compiled into class files..
 Placed them in /WEB-INF/classes..
 Now how do I tell Tomcat 3.2.3 to use these class files ... 
 
 ANy help 
 
 PLEASE ..
 
 *begs on knees*
 
 
 
 **
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 the system manager.
 
 This footnote also confirms that this email message has been swept by
 MIMEsweeper for the presence of computer viruses.
 
 www.mimesweeper.com
 **
 



Re: Precompiled jsp's

2001-10-24 Thread Carl Bacher

You should be putting your uncompiled jsp's in your context's root
directory (webapps/your-context/your.jsp). Tomcat will do the compiling
for you.

When you access it via http://host:port/your-context/your.jsp, Tomcat will
compile it for you and put the class file (and source file) in the 'work'
directory, probably tomcat/work/your-context.

If it's already been compiled and the timestamp on the compiled version is
more recent than the timestamp on your.jsp file, it will use the compiled
version it already has.

Carl


Thys De Wet (ZA) wrote:

 Ok so I got my  JSP's compiled into class files..
 Placed them in /WEB-INF/classes..
 Now how do I tell Tomcat 3.2.3 to use these class files ...

 ANy help

 PLEASE ..

 *begs on knees*

 **
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 the system manager.

 This footnote also confirms that this email message has been swept by
 MIMEsweeper for the presence of computer viruses.

 www.mimesweeper.com
 **