cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Eichenhofer <eichenho...@seitenbau.com>
Subject portal-fw: problems setting up a new konfiguration
Date Mon, 01 Dec 2003 18:29:48 GMT
Hi, 

i'm trying to create a eclipse project to develop a portal. 
what i did so far: 
- downloaded cocoon 2.1.3
- ran build.bat, played with the examples, decided this is great stuff
- then i build the target eclipse-project an createt a eclipse project 
according to a wiki-doc i found at cocoon.apache.org (LoadInEclipse)
- started tomcat via eclipse/sysdeo plugin
- tried a simple pipline 

so far everything works great. 

when i try to set up a sitemap with a <authentication-manager> the 
problems start. basically i just want to protect a sample file to see how 
everything works. 
so i copied stuff from the portal-fw sitemap to my sitemap and tried to 
protect the above mentioned simple pipeline. 
this works in the webapp that was created by build.bat, but not in the 
webapp created by build eclipse project. 
the error: 

Could not find component (key 
[org.apache.cocoon.webapps.authentication.AuthenticationManager]) 
(Key='org.apache.cocoon.webapps.authentication.AuthenticationManager')

so i guess i'm probably not making the right connections between the 
configuration files. 
my sitemap seems to be right, works in the sample webapp. i'm probably 
missing some avalon configuration parameters in cocoon.xconf, but can't 
really find them. 

could somebody please point out what i'm obviously overlooking?

thnx 

Stefan 


sitemap: 

<?xml version="1.0"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<map:components>
<map:actions>
        <map:action name="auth-protect" 
src="org.apache.cocoon.webapps.authentication.acting.AuthAction"/>
        <map:action name="auth-login" 
src="org.apache.cocoon.webapps.authentication.acting.LoginAction"/>
        <map:action name="auth-logout" 
src="org.apache.cocoon.webapps.authentication.acting.LogoutAction"/>
        <map:action name="auth-loggedIn" 
src="org.apache.cocoon.webapps.authentication.acting.LoggedInAction"/>
</map:actions>
<map:generators default="file">
        <map:generator label="content" name="portal2" 
src="org.apache.cocoon.webapps.portal.generation.PortalGenerator"/>
        <map:generator label="content" name="portal-conf2" 
src="org.apache.cocoon.webapps.portal.generation.ConfigurationGenerator"/>
</map:generators>
</map:components>
<map:pipelines>


this works 
<map:pipeline>
        <map:match pattern="HelloWorld">
                <map:generate src="helloworld.xml"/>
                <map:transform src="helloworld.xsl"/>
                <map:serialize/>
        </map:match>
</map:pipeline>

<map:component-configurations>
        <authentication-manager>
        <handlers>
                <handler name="portalHandler">
                <redirect-to uri="HelloWorldNoAuth"/>
                <authentication uri="cocoon:raw:/sunrise-authuser"/> 
                <applications>
<---snip---->
                </applications>
                </handler>
        </handlers>
        </authentication-manager>
</map:component-configurations>

this causes the exception
<map:pipeline>
        <map:match pattern="HelloWorldSicher">
        <map:act type="auth-protect">
        <map:parameter name="handler" value="portalHandler" />
        <map:generate src="helloworld.xml"/>
        <map:transform src="helloworld.xsl"/>
        <map:serialize/>
        </map:act>
        </map:match> 
</map:pipeline>


</map:pipelines>
</map:sitemap>






Exception complete:

WARN    (2003-12-01) 19:07.54:361   [sitemap] 
(/c231/officenet/HelloWorldSicher) Thread-8/ExcaliburComponentManager: 
ComponentLocator exception from parent CM during lookup.
org.apache.avalon.framework.component.ComponentException: Could not find 
component (key 
[org.apache.cocoon.webapps.authentication.AuthenticationManager])
        at 
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:297)
        at 
org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentManager.java:324)
        at 
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:226)
        at 
org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentManager.java:324)
        at 
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:226)
        at 
org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentManager.java:324)
        at 
org.apache.avalon.framework.service.WrapperServiceManager.lookup(WrapperServiceManager.java:106)
        at 
org.apache.cocoon.webapps.authentication.acting.AuthAction.act(AuthAction.java:99)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:152)
        at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
        at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:163)
        at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:152)
        at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:354)
        at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:307)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:133)
        at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
        at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:163)
        at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:152)
        at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:354)
        at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:307)
        at org.apache.cocoon.Cocoon.process(Cocoon.java:656)
        at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1112)
        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:256)
        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:2416)
        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:171)
        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:601)
        at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
        at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
        at java.lang.Thread.run(Thread.java:536)
DEBUG   (2003-12-01) 19:07.54:381   [sitemap] 
(/c231/officenet/HelloWorldSicher) Thread-8/ExcaliburComponentManager: 
Could not find component for role: 
org.apache.cocoon.webapps.authentication.AuthenticationManager
WARN    (2003-12-01) 19:07.54:381   [sitemap] 
(/c231/officenet/HelloWorldSicher) Thread-8/ExcaliburComponentManager: 
ComponentLocator exception from parent CM during lookup.
org.apache.avalon.framework.component.ComponentException: Could not find 
component (key 
[org.apache.cocoon.webapps.authentication.AuthenticationManager])
        at 
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:297)
        at 
org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentManager.java:324)
        at 
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:226)
        at 
org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentManager.java:324)
        at 
org.apache.avalon.framework.service.WrapperServiceManager.lookup(WrapperServiceManager.java:106)
        at 
org.apache.cocoon.webapps.authentication.acting.AuthAction.act(AuthAction.java:99)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:152)
        at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
        at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:163)
        at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:152)
        at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:354)
        at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:307)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:133)
        at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164)
        at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:163)
        at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:152)
        at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:354)
        at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:307)
        at org.apache.cocoon.Cocoon.process(Cocoon.java:656)
        at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1112)
        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:256)
        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:2416)
        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:171)
        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:601)
        at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
        at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
        at java.lang.Thread.run(Thread.java:536)
DEBUG   (2003-12-01) 19:07.54:391   [sitemap] 
(/c231/officenet/HelloWorldSicher) Thread-8/ExcaliburComponentManager: 
Could not find component for role: 
org.apache.cocoon.webapps.authentication.AuthenticationManager
Mime
View raw message