You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Robin Green <gr...@hotmail.com> on 2001/01/10 20:59:12 UTC
Re: how to set the 'properties' init parameter correctly for IBM WebS phere ?
The error message is due to a bug in WebSphere. There is a workaround in the
latest CVS cocoon.
http://xml.apache.org/from-cvs/
Whether you specify the location of cocoon.properties as relative or
absolute depends on the servlet engine. It will either be an absolute path
(e.g. c:\foo\bar ) or relative to the Cocoon webapp.
Pascal Noppe <pn...@reference.be> wrote:
>I tried to get Cocoon 1.8 to work with IBM WebSphere application server.
>I get the following error trying to call one of the sample xml-files from a
>browser window.
>In the Cocoon.class, the error occurs at the getResource() method which
>takes the properties init param as a parameter.
>I suppose i did not set the properties init parameter for the Cocoon
>servlet
>correctly.
>cocoon.properties is in <websphere
>root>\hosts\default_host\Cocoon\properties
>If I get it right, i should specify the path to cocoon.properties relative
>to the 'current context root', but i can not figure out what that context
>root could be for the Cocoon servlet (application).
>In WebSphere I am able to configure a document root, but that one doesn't
>work apparently...
>I tried the absolute path (D:\WebSphere\...) - i got the same error.
>
>Anyone tried this before ?
>
>Thanks a lot for any suggestions !
>
>sincerely,
>pascal
>
>
>Unable to open resource: properties/cocoon.properties
> java.net.MalformedURLException: unknown protocol: classloader
> at java.io.IOException.(IOException.java:49)
> at
>java.net.MalformedURLException.(MalformedURLException.java:44)
> at java.net.URL.(URL.java(Compiled Code))
> at java.net.URL.(URL.java(Compiled Code))
> at java.net.URL.(URL.java:310)
> at
>com.ibm.servlet.engine.srt.WebGroup.getResource(WebGroup.java:254)
> at
>com.ibm.servlet.engine.webapp.WebApp.getResource(WebApp.java:888)
> at org.apache.cocoon.Cocoon.init(Cocoon.java:122)
> at
>com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.ja
>va:558)
> at
>com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleSe
>rvlet.java:136)
> at
>com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycl
>eServlet.java:244)
> at
>com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleSer
>vlet.java:102)
> at
>com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:277)
> at
>javax.servlet.GenericServlet.init(GenericServlet.java:258)
> at
>com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:
>71)
> at
>com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServlet
>Manager.java:88)
> at
>com.ibm.servlet.engine.webapp.WebAppServletManager.getServletReference(WebAp
>pServletManager.java:132)
> at
>com.ibm.servlet.engine.webapp.WebApp.getServletReference(WebApp.java:281)
> at
>com.ibm.servlet.engine.webapp.WebAppRequestDispatcherInfo.calculateInfo(WebA
>ppRequestDispatcherInfo.java:139)
> at
>com.ibm.servlet.engine.webapp.WebAppRequestDispatcherInfo.(WebAppRequestDisp
>atcherInfo.java:43)
> at
>com.ibm.servlet.engine.webapp.WebApp.getRequestDispatcher(WebApp.java:932)
> at
>com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.
>java:73)
> at
>com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn
>vocation.java:67)
> at
>com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ
>estProcessor.java:155)
> at
>com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener
>.java:300)
> at
>com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQ
>EventListenerImp.java:230)
> at
>com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventL
>istenerImp.java:104)
> at
>com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQE
>ventSource.java:212)
> at
>com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRu
>nnable.notifyService(SQWrapperEventSource.java:347)
> at
>com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRu
>nnable.run(SQWrapperEventSource.java:216)
> at
>com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run
>(OutOfProcThread.java:248)
> at java.lang.Thread.run(Thread.java:481)
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.