cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: Install error win2000 IBM jdk 1.3.0 Websphere 4.0.2 Cocoon 2.0.2
Date Fri, 03 May 2002 15:46:47 GMT
Ok, that's the old websphere bug and I guess that they again changed the
behavior of encodeRedirectURL.


Take a look at the HttpEnvironment class in the Cocoon:

        // FIXME (VG): WebSphere 4.0/4.0.1 bug
        if (!newURL.startsWith("/") && newURL.indexOf(':') == -1 &&
redirect.indexOf(':') != -1) {
            getLogger().debug("Redirect: WebSpehere Bug Detected!");
            String base = NetUtils.getPath(request.getRequestURI());
            if (base.startsWith("/")) {
                base = base.substring(1);
            }
            redirect = response.encodeRedirectURL(base + '/' + newURL);
        }

And play with this piece of code.


Vadim

--
Resistance is futile. 

> -----Original Message-----
> From: Jon Pallas [mailto:jon_pallas@hotmail.com]
> Sent: Wednesday, April 03, 2002 10:31 AM
> To: cocoon-users@xml.apache.org
> Subject: Re: Install error win2000 IBM jdk 1.3.0 Websphere 4.0.2
Cocoon 2.0.2
> 
> Thanks Vadim
> The logs were helpfull.  The access.log shows that there is an change
in the
> context after it says
> "No pipeline matched request: /cocoon/documents/index.html"
> and then it g
> 
> The initilal link on the home page is
> http://localhost:9080/cocoon/documents/index
> 
> this gets redirected to
> 
> http://localhost:9080/cocoon/cocoon/documents/index.html
> 
> Notice the /cocoon/cocoon/ bit
> 
> if i change this to http://localhost:9080/cocoon/documents/index.html
it
> works fine
> 
> I get a similar thing going to
> http://localhost:9080/cocoon/cocoon/samples/poi/welcome
> 
> So it geting confused with the context?
> 
> I am looking in sitemap.xmap for the "documents" and comparing it to
the
> "search" search works but note realy sure of what to look for.
> 
> Thanks
> Jon
> 
> 
> 
> org.apache.cocoon.ResourceNotFoundException: No pipeline matched
request:
> /cocoon/documents/index.html
>  at
org.apache.cocoon.www.sitemap_xmap.process(www\sitemap_xmap.java:3847)
>  at
org.apache.cocoon.www.sitemap_xmap.process(www\sitemap_xmap.java:3085)
>  at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
>  at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
>  at
>
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154
)
>  at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
>  at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
>  at
>
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletMan
ager
> .java:827)
>  at
>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLife
cycl
> eServlet.java:167)
>  at
>
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleSe
rvle
> t.java:297)
>  at
>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifec
ycle
> Servlet.java:110)
>  at
>
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.jav
a:47
> 2)
>  at
>
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(Servle
tMan
> ager.java:1012)
>  at
>
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletM
anag
> er.java:913)
>  at
>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispat
ch(W
> ebAppRequestDispatcher.java:523)
>  at
>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppReq
uest
> Dispatcher.java:282)
>  at
>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequ
estD
> ispatcher.java:112)
>  at
>
com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:91
)
>  at
>
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvo
ker.
> java:184)
>  at
>
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(Cach
edIn
> vocation.java:67)
>  at
>
com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(Cach
eabl
> eInvocationContext.java:106)
>  at
>
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(Servlet
Requ
> estProcessor.java:125)
>  at
>
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEList
ener
> .java:315)
>  at
>
com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnectio
n.ja
> va:60)
>  at
>
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:
323)
>  at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
>  at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)
> DEBUG   (2002-04-03) 15:34.11:511   [access](/cocoon/documents/index)
> Servlet.Engine.Transports:9/AbstractEnvironment: Changing Cocoon
context
> DEBUG   (2002-04-03) 15:34.11:511   [access](/cocoon/documents/index)
> Servlet.Engine.Transports:9/AbstractEnvironment:   from
>
context(file:/C:/WebSphere/AppServer/installedApps/cocoon.ear/cocoon.war
/)
> and prefix()
> DEBUG   (2002-04-03) 15:34.11:511   [access](/cocoon/documents/index)
> Servlet.Engine.Transports:9/AbstractEnvironment:   to
context(sitemap.xmap)
> and prefix()
> DEBUG   (2002-04-03) 15:34.11:511   [access](/cocoon/documents/index)
> Servlet.Engine.Transports:9/AbstractEnvironment:   at URI
documents/index
> DEBUG   (2002-04-03) 15:34.11:511   [access](/cocoon/documents/index)
> Servlet.Engine.Transports:9/AbstractEnvironment: New context is
> file:/C:/WebSphere/AppServer/installedApps/cocoon.ear/cocoon.war/
> DEBUG   (2002-04-03) 15:34.11:511   [access](/cocoon/documents/index)
> Servlet.Engine.Transports:9/HttpEnvironment: Redirect: WebSpehere Bug
> Detected!
> DEBUG   (2002-04-03) 15:34.11:511   [access](/cocoon/documents/index)
> Servlet.Engine.Transports:9/HttpEnvironment: Sending redirect to
> 'http://localhost:9080/cocoon/cocoon/documents/index.html'
> DEBUG   (2002-04-03) 15:34.11:521   [access](/cocoon/documents/index)
> Servlet.Engine.Transports:9/AbstractEnvironment: Set the URI Prefix
(OLD=,
> NEW=)
> DEBUG   (2002-04-03) 15:34.11:521   [access](/cocoon/documents/index)
> Servlet.Engine.Transports:9/AbstractEnvironment: Reset context to
> file:/C:/WebSphere/AppServer/installedApps/cocoon.ear/cocoon.war/
> INFO    (2002-04-03) 15:34.11:521   [access](/cocoon/documents/index)
> Servlet.Engine.Transports:9/CocoonServlet: 'documents/index' Processed
by
> Apache Cocoon 2.0.2 in 20 milliseconds.
> DEBUG   (2002-04-03) 15:34.11:531
> [access](/cocoon/cocoon/documents/index.html)
> Servlet.Engine.Transports:9/AbstractEnvironment: Changing Cocoon
context
> DEBUG   (2002-04-03) 15:34.11:531
> [access](/cocoon/cocoon/documents/index.html)
> Servlet.Engine.Transports:9/AbstractEnvironment:   from
>
context(file:/C:/WebSphere/AppServer/installedApps/cocoon.ear/cocoon.war
/)
> and prefix()
> DEBUG   (2002-04-03) 15:34.11:531
> [access](/cocoon/cocoon/documents/index.html)
> Servlet.Engine.Transports:9/AbstractEnvironment:   to
context(sitemap.xmap)
> and prefix()
> DEBUG   (2002-04-03) 15:34.11:531
> [access](/cocoon/cocoon/documents/index.html)
> Servlet.Engine.Transports:9/AbstractEnvironment:   at URI
> cocoon/documents/index.html
> DEBUG   (2002-04-03) 15:34.11:531
> [access](/cocoon/cocoon/documents/index.html)
> Servlet.Engine.Transports:9/AbstractEnvironment: New context is
> file:/C:/WebSphere/AppServer/installedApps/cocoon.ear/cocoon.war/
> DEBUG   (2002-04-03) 15:34.11:541
> [access](/cocoon/cocoon/documents/index.html)
> Servlet.Engine.Transports:9/AbstractEnvironment: Set the URI Prefix
(OLD=,
> NEW=)
> DEBUG   (2002-04-03) 15:34.11:541
> [access](/cocoon/cocoon/documents/index.html)
> Servlet.Engine.Transports:9/AbstractEnvironment: Reset context to
> file:/C:/WebSphere/AppServer/installedApps/cocoon.ear/cocoon.war/
> WARN    (2002-04-03) 15:34.11:541
> [access](/cocoon/cocoon/documents/index.html)
> Servlet.Engine.Transports:9/CocoonServlet: The resource was not found
> org.apache.cocoon.ResourceNotFoundException: No pipeline matched
request:
> /cocoon/documents/index.html
>  at
org.apache.cocoon.www.sitemap_xmap.process(www\sitemap_xmap.java:3847)
>  at
org.apache.cocoon.www.sitemap_xmap.process(www\sitemap_xmap.java:3085)
>  at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
>  at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
>  at
>
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154
)
>  at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
>  at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
>  at
>
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletMan
ager
> .java:827)
>  at
>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLife
cycl
> eServlet.java:167)
>  at
>
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleSe
rvle
> t.java:297)
>  at
>
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifec
ycle
> Servlet.java:110)
>  at
>
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.jav
a:47
> 2)
>  at
>
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(Servle
tMan
> ager.java:1012)
>  at
>
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletM
anag
> er.java:913)
>  at
>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispat
ch(W
> ebAppRequestDispatcher.java:523)
>  at
>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppReq
uest
> Dispatcher.java:282)
>  at
>
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequ
estD
> ispatcher.java:112)
>  at
>
com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:91
)
>  at
>
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvo
ker.
> java:184)
>  at
>
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(Cach
edIn
> vocation.java:67)
>  at
>
com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(Cach
eabl
> eInvocationContext.java:106)
>  at
>
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(Servlet
Requ
> estProcessor.java:125)
>  at
>
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEList
ener
> .java:315)
>  at
>
com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnectio
n.ja
> va:60)
>  at
>
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:
323)
>  at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
>  at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)
> 
> 
> ----- Original Message -----
> From: "Vadim Gritsenko" <vadim.gritsenko@verizon.net>
> To: <cocoon-users@xml.apache.org>
> Sent: Friday, May 03, 2002 3:16 PM
> Subject: RE: Install error win2000 IBM jdk 1.3.0 Websphere 4.0.2
Cocoon
> 2.0.2
> 
> 
> > > From: Jon Pallas [mailto:jon_pallas@hotmail.com]
> > >
> > > Hi All
> > >
> > > I have problem running Cocoon on websphere, it works on some of
the
> > pages
> > > from the install
> > > but on others for  example.
> > > http://localhost:9080/cocoon/cocoon/documents/index.html
> > >
> > > it dosnt i think that the under underling error message is.
> > > "Cannot set header. Response already committed."
> > > Is this error to do with the page buffer size?? How can i make it
> > bigger??
> >
> > ...
> >
> > >         at
> > >
> >
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(WebAppD
> > ispa
> > > tcherResponse.java:68)
> > >         at
> > >
> >
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1024)
> > >         at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
> >
> >
> > Check Cocoon's error log. I feel that the exception you see occurs
when
> > CocoonServlet tries to process other exception occurred somewhere
inside
> > Cocoon.
> >
> >
> > Vadim
> >
> > --
> > Resistance is futile.
> >


---------------------------------------------------------------------
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