Re: Problem with Tag files in Tomcat 5.0.7

2003-08-19 Thread Yann Cébron
This is known problem in 5.0.7 (can't find the Bugzilla ID right now),
but try setting suppressSmap to true in your conf/web.xml.

HTH,
Yann

 Hi

  There is a problem in running JSP2 examples for Tag files. I just removed
the Servlet mapping generated by JSPC from the web.xml for jsp-examples
context and started to access directly JSP files.


  HTTP Status 500 -
 -

 type Exception report

 message

 description The server encountered an internal error () that prevented it
from fulfilling this request.

 exception
 org.apache.jasper.JasperException: Unable to compile class for JSP
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
61)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
00) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)



 root cause
 java.lang.IllegalArgumentException: -52
org.apache.jasper.compiler.SmapStratum$LineInfo.setOutputLineIncrement(SmapS
tratum.java:124)
org.apache.jasper.compiler.SmapStratum.optimizeLineSection(SmapStratum.java:
221) org.apache.jasper.compiler.SmapUtil.evaluateNodes(SmapUtil.java:490)
org.apache.jasper.compiler.SmapUtil.generateSmap(SmapUtil.java:123)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:301)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:453)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
55)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
00) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)



 note The full stack trace of the root cause is available in the Tomcat
logs.

 -
 Apache Tomcat/5.0.7


 -
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software




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



Problem with Tag files in Tomcat 5.0.7

2003-08-18 Thread thanuj kumar
Hi
 
 There is a problem in running JSP2 examples for Tag files. I just removed the Servlet 
mapping generated by JSPC from the web.xml for jsp-examples context and started to 
access directly JSP files.
 
 
 HTTP Status 500 - 
-

type Exception report

message 

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception 
org.apache.jasper.JasperException: Unable to compile class for JSP  
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:561) 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:300) 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)   
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)



root cause 
java.lang.IllegalArgumentException: -52 
org.apache.jasper.compiler.SmapStratum$LineInfo.setOutputLineIncrement(SmapStratum.java:124)
org.apache.jasper.compiler.SmapStratum.optimizeLineSection(SmapStratum.java:221)   
 org.apache.jasper.compiler.SmapUtil.evaluateNodes(SmapUtil.java:490)
org.apache.jasper.compiler.SmapUtil.generateSmap(SmapUtil.java:123) 
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:301) 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:453)  
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)  
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:555) 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:300) 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)   
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)



note The full stack trace of the root cause is available in the Tomcat logs.

-
Apache Tomcat/5.0.7


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software