You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Sy...@swisscom.com on 2002/10/17 16:16:25 UTC

2.1-dev authentication sample doesn't work

Hello,

I have just installed the last dev snapshot of Cocoon and try to run the samples.
All work fine except the authentication sample.
This error appears:

Apache Tomcat/4.0.6 - HTTP Status 500 - Internal Server Error
--------------------------------------------------------------------------------
type: Exception report
message: Internal Server Error
description: The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
exception:
java.lang.IllegalStateException
	at org.apache.catalina.connector.ResponseFacade.reset(ResponseFacade.java:243)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1106)
	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.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:479)


I use Tomcat 4.0.6 with JDK 1.3.1_05 and my OS is Windows NT 4.0.

Is there something to install before working with the Cocoon authentication mechanism?

Thank you
Sylvain

---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


How to return last-modified

Posted by Ryan Agler <ry...@hotmail.com>.
Anyone know how to make Cocoon return a last-modified header when
reading xml files from disk?  I found some mention of adding an
"expires" attribute to <map:pipeline>, but what I really need is to
return last-modified for the files I'm reading.  Any Ideas?

Thanks,
Ryan Agler   

---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: 2.1-dev authentication sample doesn't work

Posted by Antonio Gallardo Rivera <ag...@agsoftware.dnsalias.com>.
Sorry, I misspelled it. :)

Compile the sources two times. The the CVS 2.1 version will work fine.

Antonio Gallardo

El Jueves, 17 de Octubre de 2002 08:28, Antonio Gallardo Rivera escribió:
> There is a bug in the build process, compiled it two times. Then it will
> work.
>
> Antonio Gallardo
>
> El Jueves, 17 de Octubre de 2002 08:16, Sylvain.Thevoz@swisscom.com 
escribió:
> > Hello,
> >
> > I have just installed the last dev snapshot of Cocoon and try to run the
> > samples. All work fine except the authentication sample.
> > This error appears:
> >
> > Apache Tomcat/4.0.6 - HTTP Status 500 - Internal Server Error
> > -------------------------------------------------------------------------
> >-- ----- type: Exception report
> > message: Internal Server Error
> > description: The server encountered an internal error (Internal Server
> > Error) that prevented it from fulfilling this request. exception:
> > java.lang.IllegalStateException
> > 	at
> > org.apache.catalina.connector.ResponseFacade.reset(ResponseFacade.java:24
> >3) at
> > org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1106)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > 	at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat
> >io nFilterChain.java:247) at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte
> >rC hain.java:193) at
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve
> >.j ava:243) at
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav
> >a: 566) at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:47
> >2) at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve
> >.j ava:190) at
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav
> >a: 566) at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:47
> >2) 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:
> >18 0) at
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav
> >a: 566) at
> > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVal
> >ve .java:170) at
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav
> >a: 564) at
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
> >17 0) at
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav
> >a: 564) at
> > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
> > at
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav
> >a: 564) at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:47
> >2) at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.j
> >av a:174) at
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav
> >a: 566) at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:47
> >2) at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
> > org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.ja
> >va
> >
> >:1027) at
> >
> > org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1
> >12 5) at java.lang.Thread.run(Thread.java:479)
> >
> >
> > I use Tomcat 4.0.6 with JDK 1.3.1_05 and my OS is Windows NT 4.0.
> >
> > Is there something to install before working with the Cocoon
> > authentication mechanism?
> >
> > Thank you
> > Sylvain
> >
> > ---------------------------------------------------------------------
> > 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:     <co...@xml.apache.org>
> > For additional commands, e-mail:   <co...@xml.apache.org>
>
> ---------------------------------------------------------------------
> 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:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>

---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: 2.1-dev authentication sample doesn't work

Posted by Antonio Gallardo Rivera <ag...@agsoftware.dnsalias.com>.
There is a bug in the build process, compiled it two times. Then it will work.

Antonio Gallardo

El Jueves, 17 de Octubre de 2002 08:16, Sylvain.Thevoz@swisscom.com escribió:
> Hello,
>
> I have just installed the last dev snapshot of Cocoon and try to run the
> samples. All work fine except the authentication sample.
> This error appears:
>
> Apache Tomcat/4.0.6 - HTTP Status 500 - Internal Server Error
> ---------------------------------------------------------------------------
>----- type: Exception report
> message: Internal Server Error
> description: The server encountered an internal error (Internal Server
> Error) that prevented it from fulfilling this request. exception:
> java.lang.IllegalStateException
> 	at
> org.apache.catalina.connector.ResponseFacade.reset(ResponseFacade.java:243)
> at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1106)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
>nFilterChain.java:247) at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
>hain.java:193) at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
>ava: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.j
>ava:190) 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.StandardContext.invoke(StandardContext.java:2347)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:18
>0) 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:17
>0) 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.jav
>a: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:112
>5) at java.lang.Thread.run(Thread.java:479)
>
>
> I use Tomcat 4.0.6 with JDK 1.3.1_05 and my OS is Windows NT 4.0.
>
> Is there something to install before working with the Cocoon authentication
> mechanism?
>
> Thank you
> Sylvain
>
> ---------------------------------------------------------------------
> 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:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>

---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: 2.1-dev authentication sample doesn't work

Posted by Rob Johnston <rj...@juniper.net>.
I got the same error when using 2.1-dev with Tomcat 4.0.4.  The problem
disappeared when I upgraded Tomcat to 4.1.12.  Some patch applied
between Sept 24 and Sept 25th that causes this IllegalStateException.
(0924 works with 4.0.4, 0925 doesn't...)

Hope this is your problem and it helps,

thanks,
rob

On Thu, 17 Oct 2002, Sylvain.Thevoz@swisscom.com wrote:

> Hello,
> 
> I have just installed the last dev snapshot of Cocoon and try to run the samples.
> All work fine except the authentication sample.
> This error appears:
> 
> Apache Tomcat/4.0.6 - HTTP Status 500 - Internal Server Error
> --------------------------------------------------------------------------------
> type: Exception report
> message: Internal Server Error
> description: The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
> exception:
> java.lang.IllegalStateException
> 	at org.apache.catalina.connector.ResponseFacade.reset(ResponseFacade.java:243)
> 	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1106)
> 	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.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:479)
> 
> 
> I use Tomcat 4.0.6 with JDK 1.3.1_05 and my OS is Windows NT 4.0.
> 
> Is there something to install before working with the Cocoon authentication mechanism?
> 
> Thank you
> Sylvain
> 
> ---------------------------------------------------------------------
> 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:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>

---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>