cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kaufman, Noah" <nkauf...@metatomix.com>
Subject Debugging Custom Generators & Transformers in VAJ
Date Wed, 15 Aug 2001 21:19:46 GMT

	I apologize for posting this over here, but after some thought
it seemed like the folks who read this list might be better equipped to
answer this.

	I work for company that is developing a series of custom
generators, transformers, and serializers.  Since we are new (relatively
speaking) to Cocoon we would like to able to debug our custom Cocoon 2
code using a debugger.

	We use Visual Age for Java, and we have gotten the latest build
of Tomcat to run inside of VAJ, but 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.  Thank you very much for your
assistance.

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.

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message