cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dietmar Haffner" <dietmar.haff...@gefasoft.de>
Subject Cocoon2 and IBM Visual Age WebSphere Test Environment?
Date Fri, 31 Aug 2001 17:40:20 GMT
Hi,

I'm trying to get Cocoon-2.0b2 running on the WebSphere Test Environment
that comes with Visual Age for Java 3.5.3.  As I didn't find any reference
in the docs, on the web site, in the FAQS and this mailing lists archives
(only Cocoon 1.*), I proceeded to try on my self.  I:
- created a new in VAJ
- imported the sources and lib/*.jar from Cocoon
- resolved all "problems" reported by VAJ
- added the VAJ project to the servlet engines class path
- copied Cocoons directory "webapp" to the web root as "/cocoon"
- added a servlet for Cocoon to WebSpheres "default_app.webapp"

One problem is, I can't seem to be able to get all path references right.
Cocoon is looking for some files in "C:\...\web\cocoon\..." and for others
in "C:\cocoon\...". For the moment I took the easy way out and simply
duplicated the directory.  This way at least WebSphere is able to load and
initialize the Cocoon Servlet.

Now, when I try to load "http://localhost:8080/cocoon" in the browser, I get
a page with the title "Cocoon 2 - Internal server error" telling me "The
sitemap handler's sitemap is not available. Please check
/cocoon/WEB-INF/logs/cocoon2.log for the exact error".

The file "cocoon2.log" is almost 50k, so I don't want to post all of it
here.  As I don't really understand it, I looked up to the start of the
warnings and errors following the (only) request in it.  This is what it
says:

============================================================
[...]
DEBUG   16790   [cocoon  ] (Thread-11): looking up shorthand sitemap,
returning null
WARN    16793   [cocoon  ] (Thread-11): Looking up component on an
uninitialized ComponentManager:
org.apache.cocoon.generation.GeneratorSelector
DEBUG   16793   [cocoon  ] (Thread-11): Could not find ComponentHandler,
attempting to create one for role:
org.apache.cocoon.generation.GeneratorSelector
ERROR   16795   [cocoon  ] (Thread-11): 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(java.
lang.String) 	org.apache.avalon.framework.component.Component
org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(java.
lang.String) 	void
org.apache.cocoon.sitemap.AbstractSitemap.compose(org.apache.avalon.framewor
k.component.ComponentManager) 	java.lang.Object
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance()
void
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
) 	void
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat
or(org.apache.avalon.framework.component.ComponentManager, java.lang.Object,
java.lang.Class) 	void
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.addComp
iledComponent(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.load(or
g.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
16795   [cocoon  ] (Server Thread): Changing Cocoon
context(/cocoon/sitemap.xmap) to prefix()
DEBUG   16797   [cocoon  ] (Server Thread): 	from
context(file:/C:/Programme/IBM/VisualAge for Java/ide/project_resources/IBM
WebSphere Test Environment/hosts/default_host/default_app/web/) and prefix()
DEBUG   16797   [cocoon  ] (Server Thread): 	at URI cocoon
DEBUG   16799   [cocoon  ] (Server Thread): New context is
file:/C:/Programme/IBM/VisualAge for Java/ide/project_resources/IBM
WebSphere Test Environment/hosts/default_host/default_app/web/
ERROR   16800   [cocoon  ] (Server Thread): Problem with servlet
org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not
available. Please check /cocoon/WEB-INF/logs/cocoon2.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.environm
ent.Environment, org.apache.cocoon.sitemap.Handler, java.lang.String,
java.lang.String) 	boolean
org.apache.cocoon.sitemap.Manager.invoke(org.apache.avalon.framework.compone
nt.ComponentManager, org.apache.cocoon.environment.Environment,
java.lang.String, java.lang.String, boolean, boolean) 	boolean
org.apache.cocoon.Cocoon.process(org.apache.cocoon.environment.Environment)
void
org.apache.cocoon.servlet.CocoonServlet.service(javax.servlet.http.HttpServl
etRequest, javax.servlet.http.HttpServletResponse) 	void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) 	void
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(javax.servlet.
ServletRequest, javax.servlet.ServletResponse)
[...]
============================================================

If you have an idea what could be wrong here and what I can do to fix it,
please help!!!

Thanks in advance,

Dietmar


---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message