I've had this same problem before.
It has to do with the wrong jar files in the wrong directories. I believe
it's in the FAQ.
rename xerces/xalan to 1xerces/1xalan,
remove jaxp.jar and one more jar, but I can't remember which one :)
On Tue, 7 Aug 2001, Kaufman, Noah wrote:
> Folks:
>
> Actually, I guess I spoke too quickly before. Although we have
> gotten the latest build of Tomcat to run under Visual Age for Java, we
> are not able to make Beta 2 of Cocoon 2 work in this configuration.
>
> The cocoon.log file has a lot of information in it, but the
> error can be summed up by saying that for some reason Cocoon is unable
> to locate the proper component handler to read its own sitemap.
>
> Has anyone had any experience with running Cocoon 2 under Tomcat
> inside of VAJ, and if so - what do we need to do to make this work
> properly.
>
> I have enclosed the output from the relevant section of the log
> (the tail end) after my signature.
>
> Sincerely,
>
> Noah Kaufman
> Metatomix, Inc.
>
> --------- tail end of cocoon.log starts here ----------
>
> DEBUG 99722 [cocoon ] (HttpProcessor[8080][4]): ComponentFactory
> creating new instance of
> org.apache.cocoon.components.source.SourceHandlerImpl.
> DEBUG 99722 [cocoon ] (HttpProcessor[8080][4]): Getting the
> SourceFactories
> DEBUG 99722 [cocoon ] (HttpProcessor[8080][4]): Beginning sitemap
> regeneration
> DEBUG 99722 [cocoon ] (HttpProcessor[8080][4]): Resolving
> 'sitemap.xmap'
> DEBUG 99722 [cocoon ] (HttpProcessor[8080][4]): Making URL from
> file:C:\Program Files\Jakarta Tomcat 4.0\webapps\cocoon\sitemap.xmap
> DEBUG 99722 [cocoon ] (HttpProcessor[8080][4]): Resolved to
> 'file:C:/Program Files/Jakarta Tomcat 4.0/webapps/cocoon/sitemap.xmap'
> DEBUG 99722 [cocoon ] (HttpProcessor[8080][4]): Resolving ''
> DEBUG 99722 [cocoon ] (HttpProcessor[8080][4]): Making URL from
> file:/C:/Program Files/Jakarta Tomcat 4.0/webapps/cocoon/
> DEBUG 99722 [cocoon ] (HttpProcessor[8080][4]): Resolved to
> 'file:/C:/Program Files/Jakarta Tomcat 4.0/webapps/cocoon/'
> DEBUG 99722 [cocoon ] (Thread-17): Making URL from file:C:\Program
> Files\Jakarta Tomcat 4.0\webapps\cocoon\sitemap.xmap
> DEBUG 99722 [cocoon ] (Thread-17): UnnamedSelector:
> ComponentSelector could not find the component for hint:
> org\apache\cocoon\www\sitemap_xmap
> DEBUG 99722 [cocoon ] (Thread-17): Could not access component for
> hint: org\apache\cocoon\www\sitemap_xmap
> DEBUG 99722 [cocoon ] (Thread-17): The instance was not accessible,
> creating it now.
> DEBUG 99722 [cocoon ] (Thread-17): ComponentFactory creating new
> instance of org.apache.cocoon.www.sitemap_xmap.
> DEBUG 99722 [cocoon ] (Thread-17): looking up shorthand store,
> returning null
> DEBUG 99722 [cocoon ] (Thread-17): looking up shorthand
> url-factory, returning null
> DEBUG 99722 [cocoon ] (Thread-17): looking up shorthand
> source-handler, returning null
> DEBUG 99722 [cocoon ] (Thread-17): looking up shorthand
> program-generator, returning null
> DEBUG 99722 [cocoon ] (Thread-17): looking up shorthand jsp-engine,
> returning null
> DEBUG 99722 [cocoon ] (Thread-17): looking up shorthand
> programming-languages, returning null
> DEBUG 99722 [cocoon ] (Thread-17): looking up shorthand
> classloader, returning null
> DEBUG 99722 [cocoon ] (Thread-17): looking up shorthand
> markup-languages, returning null
> DEBUG 99722 [cocoon ] (Thread-17): looking up shorthand
> datasources, returning null
> DEBUG 99722 [cocoon ] (Thread-17): looking up shorthand
> stream-pipeline, returning
> org.apache.cocoon.components.pipeline.StreamPipeline
> DEBUG 99722 [cocoon ] (Thread-17): Adding component
> (org.apache.cocoon.components.pipeline.StreamPipeline =
> org.apache.cocoon.components.pipeline.CachingStreamPipeline)
> DEBUG 99722 [cocoon ] (Thread-17): Attempting to get Handler for:
> org.apache.cocoon.components.pipeline.StreamPipeline
> DEBUG 99722 [cocoon ] (Thread-17): Handler type =
> org.apache.avalon.excalibur.component.PoolableComponentHandler
> DEBUG 99722 [cocoon ] (Thread-17): looking up shorthand
> stream-cache, returning null
> DEBUG 99722 [cocoon ] (Thread-17): looking up shorthand
> event-pipeline, returning
> org.apache.cocoon.components.pipeline.EventPipeline
> DEBUG 99722 [cocoon ] (Thread-17): Adding component
> (org.apache.cocoon.components.pipeline.EventPipeline =
> org.apache.cocoon.components.pipeline.CachingEventPipeline)
> DEBUG 99722 [cocoon ] (Thread-17): Attempting to get Handler for:
> org.apache.cocoon.components.pipeline.EventPipeline
> DEBUG 99722 [cocoon ] (Thread-17): Handler type =
> org.apache.avalon.excalibur.component.PoolableComponentHandler
> DEBUG 99722 [cocoon ] (Thread-17): looking up shorthand
> event-cache, returning null
> DEBUG 99722 [cocoon ] (Thread-17): looking up shorthand sitemap,
> returning null
> WARN 99722 [cocoon ] (Thread-17): Looking up component on an
> uninitialized ComponentManager:
> org.apache.cocoon.generation.GeneratorSelector
> DEBUG 99722 [cocoon ] (Thread-17): Could not find ComponentHandler,
> attempting to create one for role:
> org.apache.cocoon.generation.GeneratorSelector
> ERROR 99722 [cocoon ] (Thread-17): Error compiling sitemap
> java.lang.InternalError: (Ex02) An error has occurred.
> java.lang.Throwable(java.lang.String)
> java.lang.Error(java.lang.String)
> java.lang.VirtualMachineError(java.lang.String)
> java.lang.InternalError(java.lang.String)
> java.lang.Class
> java.lang.ClassLoader.findLoadedClass(java.lang.String)
> java.lang.Class
> java.lang.ClassLoader.loadClass(java.lang.String, boolean)
> java.lang.Class
> java.lang.ClassLoader.loadClass(java.lang.String)
> org.apache.avalon.framework.component.Component
> org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(j
> ava.lang.String)
> org.apache.avalon.framework.component.Component
> org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(j
> ava.lang.String)
> void
> org.apache.cocoon.sitemap.AbstractSitemap.compose(org.apache.avalon.fram
> ework.component.ComponentManager)
> java.lang.Object
> org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstanc
> e()
> void
> org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initial
> ize()
> void
> org.apache.cocoon.components.language.generator.GeneratorSelector.addGen
> erator(org.apache.avalon.framework.component.ComponentManager,
> java.lang.Object, java.lang.Class)
> void
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.add
> CompiledComponent(org.apache.avalon.framework.component.ComponentManager
> , java.lang.String, java.lang.Class)
>
> org.apache.cocoon.components.language.generator.CompiledComponent
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loa
> d(org.apache.avalon.framework.component.ComponentManager,
> java.lang.String, java.lang.String, java.lang.String,
> org.apache.cocoon.environment.SourceResolver)
> void org.apache.cocoon.sitemap.Handler.run()
> void java.lang.Thread.run()
>
> DEBUG 99722 [cocoon ] (HttpProcessor[8080][4]): Changing Cocoon
> context(sitemap.xmap) to prefix()
> DEBUG 99722 [cocoon ] (HttpProcessor[8080][4]): from
> context(file:/C:/Program Files/Jakarta Tomcat 4.0/webapps/cocoon/) and
> prefix()
> DEBUG 99722 [cocoon ] (HttpProcessor[8080][4]): at URI
> DEBUG 99722 [cocoon ] (HttpProcessor[8080][4]): New context is
> file:/C:/Program Files/Jakarta Tomcat 4.0/webapps/cocoon/
> ERROR 99722 [cocoon ] (HttpProcessor[8080][4]): Problem with
> servlet
> org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is
> not available. Please check C:\Program Files\Jakarta Tomcat
> 4.0\webapps\cocoon\WEB-INF\logs\cocoon.log for the exact error.
> java.lang.Throwable(java.lang.String)
> java.lang.Exception(java.lang.String)
> org.apache.avalon.framework.CascadingException(java.lang.String,
> java.lang.Throwable)
> org.apache.cocoon.ProcessingException(java.lang.String,
> java.lang.Throwable)
> void
> org.apache.cocoon.sitemap.Manager.setupProcessing(org.apache.cocoon.envi
> ronment.Environment, org.apache.cocoon.sitemap.Handler,
> java.lang.String, java.lang.String)
> boolean
> org.apache.cocoon.sitemap.Manager.invoke(org.apache.avalon.framework.com
> ponent.ComponentManager, org.apache.cocoon.environment.Environment,
> java.lang.String, java.lang.String, boolean, boolean)
> boolean
> org.apache.cocoon.Cocoon.process(org.apache.cocoon.environment.Environme
> nt)
> void
> org.apache.cocoon.servlet.CocoonServlet.service(javax.servlet.http.HttpS
> ervletRequest, javax.servlet.http.HttpServletResponse)
> void
> javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
> javax.servlet.ServletResponse)
> void
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(javax.s
> ervlet.ServletRequest, javax.servlet.ServletResponse)
> void
> org.apache.catalina.core.ApplicationFilterChain.doFilter(javax.servlet.S
> ervletRequest, javax.servlet.ServletResponse)
> void
> org.apache.catalina.core.StandardWrapperValve.invoke(org.apache.catalina
> .Request, org.apache.catalina.Response,
> org.apache.catalina.ValveContext)
> void
> org.apache.catalina.core.StandardPipeline.invokeNext(org.apache.catalina
> .Request, org.apache.catalina.Response)
> void
> org.apache.catalina.core.StandardPipeline.invoke(org.apache.catalina.Req
> uest, org.apache.catalina.Response)
> void
> org.apache.catalina.core.ContainerBase.invoke(org.apache.catalina.Reques
> t, org.apache.catalina.Response)
> void
> org.apache.catalina.core.StandardContextValve.invoke(org.apache.catalina
> .Request, org.apache.catalina.Response,
> org.apache.catalina.ValveContext)
> void
> org.apache.catalina.core.StandardPipeline.invokeNext(org.apache.catalina
> .Request, org.apache.catalina.Response)
> void
> org.apache.catalina.core.StandardPipeline.invoke(org.apache.catalina.Req
> uest, org.apache.catalina.Response)
> void
> org.apache.catalina.core.ContainerBase.invoke(org.apache.catalina.Reques
> t, org.apache.catalina.Response)
> void
> org.apache.catalina.core.StandardContext.invoke(org.apache.catalina.Requ
> est, org.apache.catalina.Response)
> void
> org.apache.catalina.core.StandardHostValve.invoke(org.apache.catalina.Re
> quest, org.apache.catalina.Response, org.apache.catalina.ValveContext)
> void
> org.apache.catalina.core.StandardPipeline.invokeNext(org.apache.catalina
> .Request, org.apache.catalina.Response)
> void
> org.apache.catalina.valves.AccessLogValve.invoke(org.apache.catalina.Req
> uest, org.apache.catalina.Response, org.apache.catalina.ValveContext)
> void
> org.apache.catalina.core.StandardPipeline.invokeNext(org.apache.catalina
> .Request, org.apache.catalina.Response)
> void
> org.apache.catalina.core.StandardPipeline.invoke(org.apache.catalina.Req
> uest, org.apache.catalina.Response)
> void
> org.apache.catalina.core.ContainerBase.invoke(org.apache.catalina.Reques
> t, org.apache.catalina.Response)
> void
> org.apache.catalina.core.StandardEngineValve.invoke(org.apache.catalina.
> Request, org.apache.catalina.Response, org.apache.catalina.ValveContext)
> void
> org.apache.catalina.core.StandardPipeline.invokeNext(org.apache.catalina
> .Request, org.apache.catalina.Response)
> void
> org.apache.catalina.core.StandardPipeline.invoke(org.apache.catalina.Req
> uest, org.apache.catalina.Response)
> void
> org.apache.catalina.core.ContainerBase.invoke(org.apache.catalina.Reques
> t, org.apache.catalina.Response)
> void
> org.apache.catalina.connector.http.HttpProcessor.process(java.net.Socket
> )
> void org.apache.catalina.connector.http.HttpProcessor.run()
> void java.lang.Thread.run()
>
> INFO 99722 [cocoon ] (HttpProcessor[8080][4]): '' Processed by
> Apache Cocoon 2.0b2 in 10.004 seconds.
>
> ---------------------------------------------------------------------
> 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]>
>
---------------------------------------------------------------------
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]>