cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Örjan Pålsson <orjan.pals...@ausystem.se>
Subject Problem with RequestDispatcher and XSP
Date Tue, 17 Apr 2001 13:18:21 GMT
Hello,
I am trying to make a forward from a XSP page to an error page and I cannot
get it to work. I'm using Windows 2000, IBM java 1.2.2, Resin 1.1.5 as
webserver and Cocoon 1.8.2. Can anyone tell me what I'm doing wrong?
The XSP page is stripped down to the following:
<?xml version="1.0"?>
<?cocoon-process type="xsp"?>
<xsp:page language="java" xmlns:xsp="http://www.apache.org/1999/XSP/Core">
<xsp:structure>
    <xsp:include>javax.servlet.RequestDispatcher</xsp:include>
</xsp:structure>
<page>
<xsp:logic>	
	boolean error = true;
	if (error)
	{
		RequestDispatcher rd =
request.getRequestDispatcher("error.html");
		rd.forward(request,response);
		return;
	}			
</xsp:logic>
</page>
</xsp:page>

and I get the following error message:

java.lang.ClassCastException:
org.apache.cocoon.response.HttpServletResponseFacade
	at
com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.java:78
)
	at
_C_._Projects._BlueFactory._apps._xsl._fwdtest.populateDocument(_fwdtest.jav
a:65)
	at
org.apache.cocoon.processor.xsp.XSPPage.getDocument(XSPPage.java:97)
	at
org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java:527)
	at org.apache.cocoon.Engine.handle(Engine.java:384)
	at org.apache.cocoon.Cocoon.service(Cocoon.java:183)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:83)
	at
com.caucho.server.http.AbstractRequest.service(AbstractRequest.java:452)
	at
com.caucho.server.http.AbstractRequest.service(AbstractRequest.java:395)
	at
com.caucho.server.http.PageCache$Entry.service(PageCache.java:256)
	at com.caucho.server.http.PageCache.service(PageCache.java:105)
	at com.caucho.server.http.VirtualHost.service(VirtualHost.java:424)
	at com.caucho.server.http.Request.dispatch(Request.java:212)
	at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:207)
	at
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:139)
	at com.caucho.server.TcpConnection.run(TcpConnection.java:142)
	at java.lang.Thread.run(Thread.java:481)

Thanks

Orjan


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message