tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reto Badertscher" ...@i-netsystems.com>
Subject Exception when forwarding
Date Tue, 28 Aug 2001 07:20:52 GMT
Hi,


When forwarding a request to a servlet called 'Controller'

----- Code Snippet
try {
   javax.servlet.RequestDispatcher rqd =
   req.getRequestDispatcher("Controller?action=someaction");
   rqd.forward(req,res);
   return;
 }catch (Exception e)  {
   LogService.log(appAlias,"LoginWorker.handleIdentifiedUser","
   forwarding",e,LogService.ERROR);
 }
----
i get the following exception (redirecting is working with IE):

--- Copy from the application log
[23.08.2001 20:24:00] - LoginWorker.handleIdentifiedUser (E):  forwarding
java.lang.ClassCastException: org.apache.velocity.app.HttpServletRequestWrap
	at
org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherIm
pl.java:172)
	at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:162)
	at
com.abc.iframe.smi.worker.LoginWorker.handleIdentifiedUser(LoginWorker.java:
156)
	at ImisLogin.handleIdentifiedUser(ImisLogin.java:74)
	at com.abc.iframe.smi.worker.LoginWorker.perform(LoginWorker.java:74)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.abc.iframe.smi.SMIServlet.handleEvent(SMIServlet.java:528)
	at com.abc.iframe.smi.SMIServlet.handleRequest(SMIServlet.java:464)
	at
org.apache.velocity.servlet.VelocityServlet.doRequest(VelocityServlet.java:3
33)
	at
org.apache.velocity.servlet.VelocityServlet.doPost(VelocityServlet.java:303)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
	at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:484)
-----
Can anybody tell me what's going wrong?
We are using Velocity as a template engine and Tomcat 3.2 as the application
server.
Thanks for any help and tip in advance

Reto


Mime
View raw message