tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Kofon" <pko...@hotmail.com>
Subject Tomcat 4.0b7 and getRequestDispatcher().forward()
Date Thu, 01 Jan 1970 00:00:00 GMT
Hi,
I moved an application from T3.2.2 to T4.0b7 and I get the following error 
message when a call is made to getRequestDispatcher().forward() in the 
doPost() method of two servlets like this:

getServletConfig().getServletContext().getRequestDispatcher("/pages/my.jsp").forward(request,

response);

The strange thing is that from one servlet within the same application, I 
don't get the error message. I take the same application back to T3.2.2 and 
everything is fine. I simply don't get it!

Regards,

Paul.

A Servlet Exception Has Occurred
Exception Report:
org.apache.jasper.JasperException: Unable to compile class for JSP
	at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:543)
	at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
	at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:458)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
	at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
	at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:430)
	at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:354)
	at DomBuilderServlet.doPost(DomBuilderServlet.java:103)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:1145)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:215)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2314)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1000)
	at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1093)
	at java.lang.Thread.run(Thread.java:484)

Root Cause:
java.lang.SecurityException: sealing violation
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:234)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at 
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:670)
	at 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:1088)
	at 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:987)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
	at 
org.apache.jasper.compiler.JspParseEventListener.(JspParseEventListener.java:148)
	at org.apache.jasper.compiler.ParserController.(ParserController.java:154)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209)
	at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:528)
	at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
	at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:458)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
	at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
	at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:430)
	at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:354)
	at DomBuilderServlet.doPost(DomBuilderServlet.java:103)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:1145)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:215)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2314)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1000)
	at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1093)
	at java.lang.Thread.run(Thread.java:484)




_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


Mime
View raw message