cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Janne K. Olesen <...@mobi-tech.com>
Subject 2 cocoons runnning in one tomcat instance
Date Fri, 29 Jun 2007 10:44:59 GMT
Hallo there,

may be this question is more tomcat related than cocoon, but nevertheless:

I tried to configure two <Context>-elements inside tomcats 'server.xml', to enable linked
jars inside both cocoons.

<Host ...>

 <Context path="cocoon1" allowLinking="true" docBase="cocoon1">
   <Resources className="org.apache.naming.resources.FileDirContext" allowLinking="true"
caseSensitive="true"/>
 </Context>

 <Context path="" allowLinking="true" docBase="cocoon2">
   <Resources className="org.apache.naming.resources.FileDirContext" allowLinking="true"
caseSensitive="true"/>
 </Context>

</Host>

There are to cocoon folders placed in "tomcat/webapps" named cocoon1 and cocoon2. 

Tomcat starts fine without the first <Context>-element, both cocoons are working put
symlinks for jar doesn't work in cocoon1. After adding the <Context>-element for 'cocoon1',
I get an exception (see below) when starting tomcat. 

Any ideas are welcome

Greetings Janne


29 Jun 2007 11:15:41.863 [ERROR] [main] [access] - Exception reloading
org.apache.avalon.framework.configuration.ConfigurationException: Error trying to load configurations
        at org.apache.cocoon.Cocoon.configure(Cocoon.java:426)
        at org.apache.cocoon.Cocoon.initialize(Cocoon.java:336)
        at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)
        at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1429)
        at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:499)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapperjava:981)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4044)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:448)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.io.FileNotFoundException
        at org.apache.naming.resources.DirContextURLConnection.getInputStream(DirContextURLConnection.java:298)
        at org.apache.excalibur.source.impl.URLSource.getInputStream(URLSource.java:284)
        at org.apache.cocoon.components.source.impl.DelayedRefreshSourceWrapper.getInputStream(DelayedRefreshSourceWrapper.java:68)
        at org.apache.cocoon.components.source.SourceUtil.getInputSource(SourceUtil.java:522)
        at org.apache.cocoon.Cocoon.configure(Cocoon.java:422)
        ... 21 more




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


Mime
View raw message