Hi!

I just want to give you some feedback concerning my trials to get a cocoon application
running under IBM Websphere 5.0 EE.

The main problem were broken redirects. Due to a hint from
someone expirencing similar troubles using jetty I found the following workaround:

Changing redirects from something like:

   <map:match pattern="documents/index">
      <map:redirect-to uri="index.html">

to:

   <map:match pattern="documents/index">
      <map:redirect-to uri="{request:contextPath}/documents/index.html"/>

seems to fix most of these problems. 
Still it's probably not the most elegant solution, is it ?

----

Another issue was that WAS 5.0EE seems to want to use it's own version of the 
xml-apis.jar and the xsltc.jar.
Removing both from the WEB-INF/lib directory seems to solve the worst errors 
(java.lang.AbstractMethodError, etc.)
but there are still errors in error.log like:

ERROR   (2003-02-03) 13:15.17:023   [core.xslt-processor] 
(/vdt/vdtportal/sunspotdemo-portal-start) Servlet.Engine.Transports : 
0/XSLTProcessorImpl: Cannot find the requested TrAX factory 
'org.apache.xalan.xsltc.trax.TransformerFactoryImpl'. Using default TrAX 
Transformer Factory instead.

Can this be savely ignored ?

----

While the application now seems to run, I still get errors like the following on the 
console (nothing errors.log or core.log):

[2/3/03 13:01:44:493 CET]  4fe545a WebGroup      I SRVE0180I: [Cocoon2 Demo] [/vdt] 
[Servlet.LOG]: ERROR   (2003-02-03) 
13:01.44:493   [root    ] (/vdt/vdtportal/sunspotdemocss-vdt.css) 
Servlet.Engine.Transports : 0/CocoonServlet: Problem with Cocoon 
servlet
java.net.SocketException: Connection reset by peer: socket write error
        at java.net.SocketOutputStream.socketWrite(Native Method)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:103)
        at com.ibm.ws.io.Stream.write(Stream.java:26)
        at com.ibm.ws.io.WriteStream.flushMyBuf(WriteStream.java:145)
        at com.ibm.ws.io.WriteStream.flush(WriteStream.java:137)
        at com.ibm.ws.http.ResponseStream.flush(ResponseStream.java:323)
        at com.ibm.ws.io.WriteStream.flush(WriteStream.java:139)
        at com.ibm.ws.webcontainer.http.HttpConnection.flush(HttpConnection.java:379)
        at com.ibm.ws.webcontainer.srp.SRPConnection.flush(SRPConnection.java:242)
        at com.ibm.ws.webcontainer.srt.SRTOutputStream.flush(SRTOutputStream.java:45)
        at 
com.ibm.ws.webcontainer.srt.BufferedServletOutputStream.flushBytes(BufferedServletOutputStream.java:354)
        at 
com.ibm.ws.webcontainer.srt.BufferedServletOutputStream.flush(BufferedServletOutputStream.java:331)
        at 
org.apache.cocoon.util.BufferedOutputStream.realFlush(BufferedOutputStream.java:153)
        at 
org.apache.cocoon.environment.AbstractEnvironment.commitResponse(AbstractEnvironment.java:489)
        at org.apache.cocoon.Cocoon.process(Cocoon.java:607)
        at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1104)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at 
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
        at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
        at 
com.ibm.ws.webcontainer.servlet.ServicingServletState.service(StrictLifecycleServlet.java:333)
        at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
        at 
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:258)
        at 
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
        at 
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
        at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:872)
        at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:491)
        at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:173)
        at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
        at 
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:199)
        at 
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
        at 
com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114)
        at 
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:187)
        at 
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:331)
        at 
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
        at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432)
        at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)

[2/3/03 13:01:44:874 CET]  4fe545a WebGroup      I SRVE0180I: [Cocoon2 Demo] [/vdt] 
[Servlet.LOG]: ERROR   (2003-02-03) 
13:01.44:874   [root    ] (Unknown-URI) Unknown-thread/CocoonServlet: Cocoon servlet 
threw an Exception while trying to close 
stream.
java.net.SocketException: Connection reset by peer: socket write error
        at java.net.SocketOutputStream.socketWrite(Native Method)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:103)
        at com.ibm.ws.io.Stream.write(Stream.java:26)
        at com.ibm.ws.io.WriteStream.flushMyBuf(WriteStream.java:145)
        at com.ibm.ws.io.WriteStream.flush(WriteStream.java:137)
        at com.ibm.ws.http.ResponseStream.flush(ResponseStream.java:323)
        at com.ibm.ws.io.WriteStream.flush(WriteStream.java:139)
        at com.ibm.ws.webcontainer.http.HttpConnection.flush(HttpConnection.java:379)
        at com.ibm.ws.webcontainer.srp.SRPConnection.flush(SRPConnection.java:242)
        at com.ibm.ws.webcontainer.srt.SRTOutputStream.flush(SRTOutputStream.java:45)
        at 
com.ibm.ws.webcontainer.srt.BufferedServletOutputStream.flushBytes(BufferedServletOutputStream.java:354)
        at 
com.ibm.ws.webcontainer.srt.BufferedServletOutputStream.flush(BufferedServletOutputStream.java:331)
        at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1227)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at 
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
        at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
        at 
com.ibm.ws.webcontainer.servlet.ServicingServletState.service(StrictLifecycleServlet.java:333)
        at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
        at 
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:258)
        at 
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
        at 
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
        at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:872)
        at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:491)
        at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:173)
        at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
        at 
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:199)
        at 
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
        at 
com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114)
        at 
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:187)
        at 
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:331)
        at 
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
        at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432)
        at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)

[2/3/03 13:01:46:836 CET]  4fe545a WebGroup      E SRVE0026E: [Servlet 
Error]-[Cocoon2]: java.lang.IllegalStateException: ERROR: 
Cannot set header. Response already committed.
        at 
com.ibm.ws.webcontainer.srt.SRTServletResponse.setStatus(SRTServletResponse.java:748)
        at 
com.ibm.ws.webcontainer.servlet.HttpServletResponseProxy.setStatus(HttpServletResponseProxy.java:87)
        at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1189)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at 
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
        at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
        at 
com.ibm.ws.webcontainer.servlet.ServicingServletState.service(StrictLifecycleServlet.java:333)
        at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
        at 
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:258)
        at 
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
        at 
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
        at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:872)
        at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:491)
        at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:173)
        at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
        at 
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:199)
        at 
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
        at 
com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114)
        at 
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:187)
        at 
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:331)
        at 
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
        at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432)
        at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)

[2/3/03 13:01:48:677 CET]  4fe545a WebApp        E SRVE0115E: Error occurred while 
invoking error reporter 
com.ibm.ws.webcontainer.servlet.exception.UncaughtServletException: Server caught 
unhandled exception from servlet [Cocoon2]: 
ERROR: Cannot set header. Response already committed.
        at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:912)
        at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:491)
        at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:173)
        at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
        at 
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:199)
        at 
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
        at 
com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114)
        at 
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:187)
        at 
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:331)
        at 
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
        at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432)
        at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)

[2/3/03 13:01:48:718 CET]  4fe545a WebGroup      I SRVE0180I: [Cocoon2 Demo] [/vdt] 
[Servlet.LOG]: Error page exception  The 
server cannot use the error page specified for your application because of the 
exception printed below.
[2/3/03 13:01:48:728 CET]  4fe545a WebGroup      I SRVE0181I: [Cocoon2 Demo] [/vdt] 
[Servlet.LOG]: Error Page Exception: : 
com.ibm.ws.webcontainer.webapp.WebAppErrorReport: Server caught unhandled exception 
from servlet [Cocoon2]: null
        at com.ibm.ws.webcontainer.webapp.WebApp.handleError(WebApp.java:1025)
        at com.ibm.ws.webcontainer.webapp.WebApp.sendError(WebApp.java:836)
        at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:121)
        at 
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:199)
        at 
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
        at 
com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114)
        at 
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:187)
        at 
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:331)
        at 
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
        at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432)
        at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)

While this seems not to have any effect on the output, I still dont't feel very 
comfortable about it.
And I have no idea what's going on here :-(

Any comments to this and also to the issues mentioned above are very welcome!

thanks,

Gernot.





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

Reply via email to