Hi,

I have succeeded in getting Cocoon 2.0.4 to run with Websphere 5.0.2, and
have been able to develop a test site with it.

There are two things you need to do:
1: The web.xml file needs to be edited . There is an <init-param> element,
with a <param-name> element with a value of "load-class". This element has a
comment in the value of the <param-value> element. This appears to be
upsetting WebSphere. You need to remove the comment.

2: The server configuration needs to be altered so the classloader is set to
Parent Last. I have done this for both the parent ear file and the cocoon
war file. Be warned, if the class loader is not set, the Cocoon application
can go into a recurring loop. If this happens, you need to delete the
servers temporary cache and re-publish the server.

I hope this helps

I have not had time to determine what causes any of this, or if there is a
"better" way, but this is what works for us at the moment.

Regards
Gordon J Barnes
Elsevier Ltd


-----Original Message-----
From: Brook, Andy [mailto:[EMAIL PROTECTED]
Sent: 10 July 2003 09:04
To: [EMAIL PROTECTED]
Subject: Anyone got Cocoon 2.x on Websphere 5.x ?


Hi all,
I've got cocoon running under tomcat _no_worries_ but can I get it running
under Websphere 5? _no_way_!
 
Context:
I'm using 'struts-cocoon' with 2.1m2 /3 compiled for JDK1.3 which is what
Websphere 5 is using (yea, been there!)
I get an interesting exception during the JSP processing, seemingly relating
to an internal Classloader problem.
 
There seems to be nothing I can configure within WSAD (the IBM dev program
built on eclipse) to affect server parameters, I've traced the class-loader
to be related to a 'trace server'
(http://publib7b.boulder.ibm.com/wasinfo1/en/info/aes/ae/utrb_traceservice.h
tml )...
 
Has anyone had cocoon running under websphere 5? I
 
Thanks,
Andy.
[EMAIL PROTECTED]
 
----------------------------------------------------------------------------
---
 
Stack:
 
Internal Server Error
Message: Exception JspGenerator.generate()
 
Description: org.apache.cocoon.ProcessingException: Exception 
JspGenerator.generate(): java.lang.ClassCastException: 
com.ibm.ws.classloader.JarClassLoader
 
Sender: org.twdata.struts.CocoonHandler
 
Source: Cocoon Servlet
 
request-uri
 
/struts-cocoon/editRegistration.do
 
full exception chain stacktrace
 
Original Exception: java.lang.ClassCastException: 
com.ibm.ws.classloader.JarClassLoader
      at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:268)
      at 
org.apache.cocoon.components.jsp.JSPEngineImpl.executeJSP(JSPEngineImpl.java
:121)
      at 
org.apache.cocoon.generation.JspGenerator.generate(JspGenerator.java:120)
      at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLP
ipeline(AbstractProcessingPipeline.java:545)
      at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline
.processXMLPipeline(AbstractCachingProcessingPipeline.java:217)
      at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(Abs
tractProcessingPipeline.java:489)
      at 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri
alizeNode.java:150)
      at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:84)
      at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:164)
      at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:108)
      at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:162)
      at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:108)
      at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:162)
      at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:325)
      at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:307)
      at org.apache.cocoon.Cocoon.process(Cocoon.java:628)
      at org.twdata.struts.CocoonHandler.process(CocoonHandler.java:1161)
      at 
org.twdata.struts.CocoonRequestProcessor.processPath(CocoonRequestProcessor.
java:176)
      at 
org.twdata.struts.CocoonRequestProcessor.processForwardConfig(CocoonRequestP
rocessor.java:214)
      at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
      at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
      at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at 
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServle
tInstance.java:110)
      at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecy
cleServlet.java:174)
      at 
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServ
let.java:313)
      at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecyc
leServlet.java:116)
      at 
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java
:258)
      at 
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidSer
vletReferenceState.java:42)
      at 
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletIns
tanceReference.java:40)
      at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(
WebAppRequestDispatcher.java:872)
      at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppReques
tDispatcher.java:491)
      at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequest
Dispatcher.java:173)
      at 
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
      at 
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker
.java:199)
      at 
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(C
achedInvocation.java:71)
      at 
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletReq
uestProcessor.java:182)
      at 
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListene
r.java:331)
      at 
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.jav
a:56)
      at 
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432)
      at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343)
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)
 
 
 
 
 
This message (including any attachments) may contain confidential
information intended for a specific individual and purpose. If you are not
the intended recipient, delete this message. If you are not the intended
recipient, disclosing, copying, distributing, or taking any action based on
this message is strictly prohibited.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to