Cocoon users,

I am using Cocoon 2.0.3 and Tomcat 4.0.4.  I have a redirect-to in place in my 
sitemap that looks like this:

    <!-- 
        Redirect to index page.
    -->
    <map:match pattern="">
        <map:redirect-to uri="index"/>
    </map:match>
    
Everytime I hit the page http://localhost:8080/gwd_webapp/ I get the following 
error message in access.log:
.
.
.

DEBUG   (2002-09-19) 13:36.25:108   [access] (/gwd_webapp/) HttpProcessor[8080]
[4]/AbstractEnvironment:   from context
(file:/C:/java/tomcat404/webapps/gwd_webapp/) and prefix()
DEBUG   (2002-09-19) 13:36.25:108   [access] (/gwd_webapp/) HttpProcessor[8080]
[4]/AbstractEnvironment:   to context(sitemap.xmap) and prefix()
DEBUG   (2002-09-19) 13:36.25:108   [access] (/gwd_webapp/) HttpProcessor[8080]
[4]/AbstractEnvironment:   at URI 
DEBUG   (2002-09-19) 13:36.25:108   [access] (/gwd_webapp/) HttpProcessor[8080]
[4]/AbstractEnvironment: New context is 
file:/C:/java/tomcat404/webapps/gwd_webapp/
DEBUG   (2002-09-19) 13:36.25:118   [access] (/gwd_webapp/) HttpProcessor[8080]
[4]/HttpEnvironment: Sending redirect to 'index'
DEBUG   (2002-09-19) 13:36.25:118   [access] (/gwd_webapp/) HttpProcessor[8080]
[4]/AbstractEnvironment: Set the URI Prefix (OLD=, NEW=)
DEBUG   (2002-09-19) 13:36.25:118   [access] (/gwd_webapp/) HttpProcessor[8080]
[4]/AbstractEnvironment: Reset context to 
file:/C:/java/tomcat404/webapps/gwd_webapp/
INFO    (2002-09-19) 13:36.25:118   [access] (/gwd_webapp/) HttpProcessor[8080]
[4]/CocoonServlet: '' Processed by Apache Cocoon 2.0.3 in 30 milliseconds.
ERROR   (2002-09-19) 13:36.25:118   [access] (Unknown-URI) Unknown-
thread/CocoonServlet: Cocoon servlet threw an Exception while trying to close 
stream.
java.io.IOException: The stream has been closed
        at org.apache.catalina.connector.ResponseStream.flush
(ResponseStream.java:237)
        at org.apache.cocoon.servlet.CocoonServlet.service
(CocoonServlet.java:1126)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        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:190)
        at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:566)
        at org.apache.catalina.valves.CertificatesValve.invoke
(CertificatesValve.java:246)
        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.StandardContext.invoke
(StandardContext.java:2347)
        at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:180)
        at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:566)
        at org.apache.catalina.valves.ErrorDispatcherValve.invoke
(ErrorDispatcherValve.java:170)
        at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:564)
        at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:170)
        at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:564)
        at org.apache.catalina.valves.AccessLogValve.invoke
(AccessLogValve.java:468)
        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:174)
        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:1027)
        at org.apache.catalina.connector.http.HttpProcessor.run
(HttpProcessor.java:1125)
        at java.lang.Thread.run(Thread.java:536)
.
.
.

The page redirects correctly, but that error message is worrisome.  I looked in 
the cocoon access.log, and it is showing the same error on redirects.  If I 
access http://localhost:8080/cocoon/documents/index.html I get this error:

.
.
.
DEBUG   (2002-09-19) 13:42.47:709   [access] (/cocoon/documents/index) 
HttpProcessor[8080][0]/AbstractEnvironment: Changing Cocoon context
DEBUG   (2002-09-19) 13:42.47:709   [access] (/cocoon/documents/index) 
HttpProcessor[8080][0]/AbstractEnvironment:   from context
(file:/C:/java/tomcat404/webapps/cocoon/) and prefix()
DEBUG   (2002-09-19) 13:42.47:709   [access] (/cocoon/documents/index) 
HttpProcessor[8080][0]/AbstractEnvironment:   to context(sitemap.xmap) and 
prefix()
DEBUG   (2002-09-19) 13:42.47:709   [access] (/cocoon/documents/index) 
HttpProcessor[8080][0]/AbstractEnvironment:   at URI documents/index
DEBUG   (2002-09-19) 13:42.47:709   [access] (/cocoon/documents/index) 
HttpProcessor[8080][0]/AbstractEnvironment: New context is 
file:/C:/java/tomcat404/webapps/cocoon/
DEBUG   (2002-09-19) 13:42.47:729   [access] (/cocoon/documents/index) 
HttpProcessor[8080][0]/HttpEnvironment: Sending redirect to 'index.html'
DEBUG   (2002-09-19) 13:42.47:749   [access] (/cocoon/documents/index) 
HttpProcessor[8080][0]/AbstractEnvironment: Set the URI Prefix (OLD=, NEW=)
DEBUG   (2002-09-19) 13:42.47:749   [access] (/cocoon/documents/index) 
HttpProcessor[8080][0]/AbstractEnvironment: Reset context to 
file:/C:/java/tomcat404/webapps/cocoon/
INFO    (2002-09-19) 13:42.47:749   [access] (/cocoon/documents/index) 
HttpProcessor[8080][0]/CocoonServlet: 'documents/index' Processed by Apache 
Cocoon 2.0.3 in 50 milliseconds.
ERROR   (2002-09-19) 13:42.47:749   [access] (Unknown-URI) Unknown-
thread/CocoonServlet: Cocoon servlet threw an Exception while trying to close 
stream.
java.io.IOException: The stream has been closed
        at org.apache.catalina.connector.ResponseStream.flush
(ResponseStream.java:237)
        at org.apache.cocoon.servlet.CocoonServlet.service
(CocoonServlet.java:1126)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        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:190)
        at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:566)
        at org.apache.catalina.valves.CertificatesValve.invoke
(CertificatesValve.java:246)
        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.StandardContext.invoke
(StandardContext.java:2347)
        at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:180)
        at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:566)
        at org.apache.catalina.valves.ErrorDispatcherValve.invoke
(ErrorDispatcherValve.java:170)
        at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:564)
        at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:170)
        at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:564)
        at org.apache.catalina.valves.AccessLogValve.invoke
(AccessLogValve.java:468)
        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:174)
        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:1027)
        at org.apache.catalina.connector.http.HttpProcessor.run
(HttpProcessor.java:1125)
        at java.lang.Thread.run(Thread.java:536)
.
.
.

Any help on figuring out why this error is occurring would be greatly 
appreciated. 

Thank you!


---
Amanda Drake
Oak Grove Software
[EMAIL PROTECTED]

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

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

Reply via email to