cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juraj misovych <jaso...@student.utc.sk>
Subject problem with user authentification handler
Date Sun, 01 Dec 2002 09:55:37 GMT
i try to make site in this design:

main sitemap and two subsitemap
i have mounted this two sites in main sitemap.

sitemap1
-------------------------------------------------------
.....
<map:actions>
            <map:action name="sunRise-auth" 
src="org.apache.cocoon.sunshine.sunrise.acting.AuthAction">
                <handlers>
                    <handler name="UserHandler" 
xmlns:map="http://apache.org/cocoon/sitemap/1.0" 
xmlns:sunshine="http://sunshine.sundn.de/sunshine/1.0">
                        <redirect-to uri="cocoon://login"/>
                        <authentication 
uri="http://localhost/cocoon/elza/user/make_authorize"/>
                        <!--                        -->
                    </handler>
                </handlers>
            </map:action>
        </map:actions>
.....
-------------------------------------------------------
sitemap2
-------------------------------------------------------
..........
<map:actions>
            <map:action name="sunRise-auth" 
src="org.apache.cocoon.sunshine.sunrise.acting.AuthAction">
                <handlers>
                    <handler name="TeacherHandler" 
xmlns:map="http://apache.org/cocoon/sitemap/1.0" 
xmlns:sunshine="http://sunshine.sundn.de/sunshine/1.0">
                        <redirect-to uri="cocoon://login"/>
                        <authentication 
uri="http://localhost/cocoon/elza/teacher/make_authorize"/>
                        <!--                        -->
                    </handler>
                </handlers>
            </map:action>
        </map:actions>
.....
-------------------------------------------------------




when i login in one subsite all its OK, but when i try to login into 
second downt work, i must stop tomcat,
i obtain this error:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------





  Cocoon 2 - Internal server error

------------------------------------------------------------------------

*type* fatal

*message* _Handler not found: TeacherHandler_

*description* _org.apache.cocoon.ProcessingException: Handler not found: 
TeacherHandler_

*sender* org.apache.cocoon.servlet.CocoonServlet

*source* Cocoon servlet

*stack-trace*

org.apache.cocoon.ProcessingException: Handler not found: TeacherHandler
	at org.apache.cocoon.sunshine.sunrise.SunRise.checkAuthentication(SunRise.java:752)
	at org.apache.cocoon.sunshine.sunrise.acting.AuthAction.act(AuthAction.java:122)
	at org.apache.cocoon.www.elza.project.elza.teacher.sitemap_xmap.matchN100CB(C:\server\app\Tomcat_4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/elza/project/elza/teacher\sitemap_xmap.java:1004)
	at org.apache.cocoon.www.elza.project.elza.teacher.sitemap_xmap.process(C:\server\app\Tomcat_4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/elza/project/elza/teacher\sitemap_xmap.java:624)
	at org.apache.cocoon.www.elza.project.elza.teacher.sitemap_xmap.process(C:\server\app\Tomcat_4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/elza/project/elza/teacher\sitemap_xmap.java:550)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
	at org.apache.cocoon.sitemap.AbstractSitemap.invoke(AbstractSitemap.java:308)
	at org.apache.cocoon.www.elza.project.elza.sitemap_xmap.matchN101C1(C:\server\app\Tomcat_4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/elza/project/elza\sitemap_xmap.java:1593)
	at org.apache.cocoon.www.elza.project.elza.sitemap_xmap.process(C:\server\app\Tomcat_4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/elza/project/elza\sitemap_xmap.java:1296)
	at org.apache.cocoon.www.elza.project.elza.sitemap_xmap.process(C:\server\app\Tomcat_4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www/elza/project/elza\sitemap_xmap.java:1215)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
	at org.apache.cocoon.sitemap.AbstractSitemap.invoke(AbstractSitemap.java:308)
	at org.apache.cocoon.www.sitemap_xmap.matchN1037E(C:\server\app\Tomcat_4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:4100)
	at org.apache.cocoon.www.sitemap_xmap.process(C:\server\app\Tomcat_4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3206)
	at org.apache.cocoon.www.sitemap_xmap.process(C:\server\app\Tomcat_4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3119)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
	at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:152)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:579)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043)
	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:260)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
	at java.lang.Thread.run(Thread.java:536)

*request-uri*

/cocoon/elza/teacher/main

*path-info*

elza/teacher/main

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

i dont know where can be a problem.
know somebody how to solve this problem ???

I have
sdk1.4
tomcat 4.1
cocoon204




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


Mime
View raw message