Hello, I am using Cocoon 2.0.3 with Tomcat 4.0.4. I have activated the Parent Component Manager to use my own "SimpleLuceneCocoonIndexerImpl" and other classes.... When Cocoon starts I get an exception:
WARN (2002-10-24) 13:10.15:386 [core.manager] (Unknown-URI) Unknown-thread/ExcaliburComponentManager: ComponentLocator exception from parent CM during lookup. org.apache.avalon.framework.component.ComponentException: Could not find component at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(Excal iburComponentManager.java:367) at innovations.pcm.ParentComponentManager.lookup(Unknown Source) at org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(Excal iburComponentManager.java:299) at org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentMa nager.java:167) at org.apache.avalon.excalibur.component.DefaultComponentFactory$ComponentManag erProxy.lookup(DefaultComponentFactory.java:314) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.compose (ProgramGeneratorImpl.java:166) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De faultComponentFactory.java:170) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize( ThreadSafeComponentHandler.java:98) at org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(E xcaliburComponentManager.java:158) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:270) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1237 ) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:435) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91 8) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: 3279) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3421) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:478) at org.apache.catalina.core.StandardHost.install(StandardHost.java:738) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:155) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131) at org.apache.catalina.core.StandardHost.start(StandardHost.java:638) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) DEBUG (2002-10-24) 13:10.15:396 [core.manager] (Unknown-URI) Unknown-thread/ExcaliburComponentManager: Could not find ComponentHandler, attempting to create one for role: org.apache.cocoon.components.language.generator.ServerPagesSelector The method in the Component Manager that throw the Exception -> public void initialize() throws Exception { this.logger.debug("Looking up component manager configuration at : " + this.jndiName); Hashtable environment = new Hashtable(); environment.put(Context.INITIAL_CONTEXT_FACTORY, MemoryInitialContextFactory.class.getName()); // // Yes, this is cheating, but the Excalibur in-memory naming provider // is transient. That is, it doesn't store objects persistently and // is more like a HashMap. // // Should be: // Context initialContext = new InitialContext(environment); // Context initialContext = Configurator.initialContext; Configuration config = (Configuration) initialContext.lookup(this.jndiName); // We ignore the setRoleManager call, as ExcaliburComponentManager handles that // in configure(). this.delegate.setLogger(logger); this.delegate.contextualize(new DefaultContext()); this.delegate.configure(config); this.delegate.initialize(); this.logger.debug("Component manager successfully initialized."); } Any suggestions?? Thanks Holger Protzek --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>