Hi all, I'm trying to get a subsitemap together that I can put together my first authentication app. I'm getting an exception: "org.apache.avalon.framework.component.ComponentException: Could not find component".
I did a little sleuthing with a JPDA stethoscope, seems that the subsitemap that I am defining my components in is not overriding the main sitemap properly. I think this to be true because the configuration that is being set to the component in the code is the configuration out of the main sitemap.xconf, not the one out of my mount directory (I opened the node up with the debugger). The sitemap in my mount directory is a bastard child of the authentication documentation and what I found in the main sitemap.xconf. Hopefully this is a stupid newbie error. The stack trace of the exception and subsitemap out of my mount directory is below. Thanks a bunch for any assistance, hope your weekends are going great! Brian +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ stack trace org.apache.avalon.framework.component.ComponentException: Could not find component at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:340) at org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentManager.java:215) at org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentManagerProxy.lookup(DefaultComponentFactory.java:319) at org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentManagerProxy.lookup(DefaultComponentFactory.java:319) at org.apache.cocoon.webapps.authentication.acting.AuthAction.act(AuthAction.java:116) at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:127) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:157) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:158) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:152) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:325) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:309) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:132) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:157) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:158) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:152) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:325) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:309) at org.apache.cocoon.Cocoon.process(Cocoon.java:588) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1009) <snip/> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sitemap.xconf <?xml version="1.0"?> <!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by Brian Topping (Digidemic, Inc.) --> <!-- minimal sitemap for Cocoon 2 test --> <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0"> <!-- ======= Components ======= --> <map:components> <map:generators default="file"/> <map:transformers default="xslt"/> <map:readers default="resource"/> <map:serializers default="html"/> <map:selectors default="browser"/> <map:matchers default="wildcard"> <map:matcher name="wildcard" src="org.apache.cocoon.matching.WildcardURIMatcherFactory"/> </map:matchers> <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:components> <!-- ======= Pipelines ======= --> <map:pipelines> <map:component-configurations> <!-- Define component configuration here --> <org.apache.cocoon.webapps.authentication.components.AuthenticationManager> <handlers> <handler name="bill2handler"> <redirect-to uri="cocoon://bill2login"/> </handler> </handlers> </org.apache.cocoon.webapps.authentication.components.AuthenticationManager> </map:component-configurations> <map:pipeline> <map:match pattern="member/**/*.html"> <map:act type="auth-protect"> <map:parameter name="handler" value="bill2handler"/> <map:generate src="cocoon:/{1}/index.xml"/> <map:transform src="request-to-html.xsl"/> <map:serialize/> </map:act> </map:match> <map:match pattern="bill2login"> <map:act type="auth-login"> <map:parameter name="handler" value="bill2handler"/> <map:parameter name="parameter_userid" value="request:name"/> <map:parameter name="parameter_password" value="request:password"/> <map:redirect-to uri="authentication-successful"/> </map:act> <!-- authentication failed: --> <map:generate src="auth_failed.xml"/> <map:transform src="request-to-html.xsl"/> <map:serialize/> </map:match> <map:match pattern="**/*.xml"> <map:generate type="request"/> <map:serialize type="xml"/> </map:match> <map:match pattern="**/*.html"> <map:generate src="cocoon:/{1}/index.xml"/> <map:transform src="request-to-html.xsl"/> <map:serialize/> </map:match> </map:pipeline> </map:pipelines> </map:sitemap> _________________________________________________________ If you have some ice cream, I will give it to you. If you have no ice cream, I will take it away from you. - Ice Cream Koan --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>