You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by ajamn <aj...@globalnet.co.uk> on 2000/10/26 00:10:48 UTC

Cocoon-1.8 with jakart-tomcat 3.1 installation

Unable to open resource: jakarta-tomcat/conf/cocoon.properties
java.io.FileNotFoundException: C:\jakarta-tomcat\webapps\ROOT\jakarta-tomcat\conf\cocoon.properties
	at java.io.FileInputStream.(FileInputStream.java:56)
	at sun.net.www.protocol.file.FileURLConnection.connect(Compiled Code)
	at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:162)
	at org.apache.cocoon.Cocoon.init(Cocoon.java:123)
	at org.apache.tomcat.core.ServletWrapper.initServlet(Compiled Code)
	at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
	at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
	at java.lang.Thread.run(Compiled Code)

I am getting this error when I goto "http:localhost:8080/Cocoon.xml"
Any ideas what the problem is ? Also what is the correct path format for the web.xml <param-value>
I have tried a number of alternatives thinking this is the problem.  This was my first try was it 
correct
c:/jakarta-tomcat/conf/cocoon.properties

Also Servlet.log says this
Context log path="/examples" :tomcat.errorPage: initContext log path="/examples" :default: initContext log path="/examples" :jsp: initContext log path="/test" :tomcat.errorPage: initContext log path="/test" :default: initContext log path="/test" :jsp: initContext log path="/admin" :tomcat.errorPage: initContext log path="/admin" :default: initContext log path="/admin" :jsp: initContext log path="" :tomcat.errorPage: initContext log path="" :default: initContext log path="" :jsp: initContext log path="" :org.apache.cocoon.Cocoon: initContext log path="/examples" :tomcat.errorPage: destroyContext log path="/examples" :default: destroyContext log path="/test" :tomcat.errorPage: destroyContext log path="/test" :default: destroy

Any help appreciated
Alistair


Re: Cocoon-1.8 with jakart-tomcat 3.1 installation

Posted by ro...@elastica.com.
Make the properties value a relative path from context root so 
just make it

conf/cocoon.properties

On Wed, 25 Oct 2000, ajamn wrote:

> It is in the /conf sub directory off c:/jakarta-tomcat and this is what I
> have added to it
> 
> <servlet>
>         <servlet-name>
>             org.apache.cocoon.Cocoon
>         </servlet-name>
>         <servlet-class>
>             org.apache.cocoon.Cocoon
>         </servlet-class>
> 
>         <init-param>
>             <param-name>properties</param-name>
>             <param-value>
>             c:/jakarta-tomcat/conf/cocoon.properties
>             </param-value>
>         </init-param>
> 
>  </servlet>
> ----- Original Message -----
> From: <ro...@elastica.com>
> To: <co...@xml.apache.org>
> Sent: Wednesday, October 25, 2000 11:17 PM
> Subject: Re: Cocoon-1.8 with jakart-tomcat 3.1 installation
> 
> 
> > Where is your web.xml and what does it contain?
> >
> > On Wed, 25 Oct 2000, ajamn wrote:
> >
> > > Unable to open resource: jakarta-tomcat/conf/cocoon.properties
> > > java.io.FileNotFoundException:
> C:\jakarta-tomcat\webapps\ROOT\jakarta-tomcat\conf\cocoon.properties
> > > at java.io.FileInputStream.(FileInputStream.java:56)
> > > at sun.net.www.protocol.file.FileURLConnection.connect(Compiled Code)
> > > at
> sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection
> .java:162)
> > > at org.apache.cocoon.Cocoon.init(Cocoon.java:123)
> > > at org.apache.tomcat.core.ServletWrapper.initServlet(Compiled Code)
> > > at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
> > > at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
> > > at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:160)
> > > at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
> > > at java.lang.Thread.run(Compiled Code)
> > >
> > > I am getting this error when I goto "http:localhost:8080/Cocoon.xml"
> > > Any ideas what the problem is ? Also what is the correct path format for
> the web.xml <param-value>
> > > I have tried a number of alternatives thinking this is the problem.
> This was my first try was it
> > > correct
> > > c:/jakarta-tomcat/conf/cocoon.properties
> > >
> > > Also Servlet.log says this
> > > Context log path="/examples" :tomcat.errorPage: initContext log
> path="/examples" :default: initContext log path="/examples" :jsp:
> initContext log path="/test" :tomcat.errorPage: initContext log path="/test"
> :default: initContext log path="/test" :jsp: initContext log path="/admin"
> :tomcat.errorPage: initContext log path="/admin" :default: initContext log
> path="/admin" :jsp: initContext log path="" :tomcat.errorPage: initContext
> log path="" :default: initContext log path="" :jsp: initContext log path=""
> :org.apache.cocoon.Cocoon: initContext log path="/examples"
> :tomcat.errorPage: destroyContext log path="/examples" :default:
> destroyContext log path="/test" :tomcat.errorPage: destroyContext log
> path="/test" :default: destroy
> > >
> > > Any help appreciated
> > > Alistair
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> >
> >
> 


Re: Cocoon-1.8 with jakart-tomcat 3.1 installation

Posted by Hao Wang <hb...@cs.wisc.edu>.
This is not the best solution, but I suggest that you change the line
      
       c:/jakarta-tomcat/conf/cocoon.properties

 to  cocoon.properties

and copy the cocoon.properties file to webapps/ROOT and restart the 
server. 

 Hao

On Wed, 25 Oct 2000, ajamn wrote:

> It is in the /conf sub directory off c:/jakarta-tomcat and this is what I
> have added to it
> 
> <servlet>
>         <servlet-name>
>             org.apache.cocoon.Cocoon
>         </servlet-name>
>         <servlet-class>
>             org.apache.cocoon.Cocoon
>         </servlet-class>
> 
>         <init-param>
>             <param-name>properties</param-name>
>             <param-value>
>             c:/jakarta-tomcat/conf/cocoon.properties
>             </param-value>
>         </init-param>
> 
>  </servlet>
> ----- Original Message -----
> From: <ro...@elastica.com>
> To: <co...@xml.apache.org>
> Sent: Wednesday, October 25, 2000 11:17 PM
> Subject: Re: Cocoon-1.8 with jakart-tomcat 3.1 installation
> 
> 
> > Where is your web.xml and what does it contain?
> >
> > On Wed, 25 Oct 2000, ajamn wrote:
> >
> > > Unable to open resource: jakarta-tomcat/conf/cocoon.properties
> > > java.io.FileNotFoundException:
> C:\jakarta-tomcat\webapps\ROOT\jakarta-tomcat\conf\cocoon.properties
> > > at java.io.FileInputStream.(FileInputStream.java:56)
> > > at sun.net.www.protocol.file.FileURLConnection.connect(Compiled Code)
> > > at
> sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection
> .java:162)
> > > at org.apache.cocoon.Cocoon.init(Cocoon.java:123)
> > > at org.apache.tomcat.core.ServletWrapper.initServlet(Compiled Code)
> > > at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
> > > at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
> > > at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:160)
> > > at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
> > > at java.lang.Thread.run(Compiled Code)
> > >
> > > I am getting this error when I goto "http:localhost:8080/Cocoon.xml"
> > > Any ideas what the problem is ? Also what is the correct path format for
> the web.xml <param-value>
> > > I have tried a number of alternatives thinking this is the problem.
> This was my first try was it
> > > correct
> > > c:/jakarta-tomcat/conf/cocoon.properties
> > >
> > > Also Servlet.log says this
> > > Context log path="/examples" :tomcat.errorPage: initContext log
> path="/examples" :default: initContext log path="/examples" :jsp:
> initContext log path="/test" :tomcat.errorPage: initContext log path="/test"
> :default: initContext log path="/test" :jsp: initContext log path="/admin"
> :tomcat.errorPage: initContext log path="/admin" :default: initContext log
> path="/admin" :jsp: initContext log path="" :tomcat.errorPage: initContext
> log path="" :default: initContext log path="" :jsp: initContext log path=""
> :org.apache.cocoon.Cocoon: initContext log path="/examples"
> :tomcat.errorPage: destroyContext log path="/examples" :default:
> destroyContext log path="/test" :tomcat.errorPage: destroyContext log
> path="/test" :default: destroy
> > >
> > > Any help appreciated
> > > Alistair
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 
> 

---------------------------
Hao Wang
Computer Science Department
University of Wisconsin
1210 W. Dayton St.
Madison, WI 53706


Re: Cocoon-1.8 with jakart-tomcat 3.1 installation

Posted by ajamn <aj...@globalnet.co.uk>.
It is in the /conf sub directory off c:/jakarta-tomcat and this is what I
have added to it

<servlet>
        <servlet-name>
            org.apache.cocoon.Cocoon
        </servlet-name>
        <servlet-class>
            org.apache.cocoon.Cocoon
        </servlet-class>

        <init-param>
            <param-name>properties</param-name>
            <param-value>
            c:/jakarta-tomcat/conf/cocoon.properties
            </param-value>
        </init-param>

 </servlet>
----- Original Message -----
From: <ro...@elastica.com>
To: <co...@xml.apache.org>
Sent: Wednesday, October 25, 2000 11:17 PM
Subject: Re: Cocoon-1.8 with jakart-tomcat 3.1 installation


> Where is your web.xml and what does it contain?
>
> On Wed, 25 Oct 2000, ajamn wrote:
>
> > Unable to open resource: jakarta-tomcat/conf/cocoon.properties
> > java.io.FileNotFoundException:
C:\jakarta-tomcat\webapps\ROOT\jakarta-tomcat\conf\cocoon.properties
> > at java.io.FileInputStream.(FileInputStream.java:56)
> > at sun.net.www.protocol.file.FileURLConnection.connect(Compiled Code)
> > at
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection
.java:162)
> > at org.apache.cocoon.Cocoon.init(Cocoon.java:123)
> > at org.apache.tomcat.core.ServletWrapper.initServlet(Compiled Code)
> > at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
> > at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
> > at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:160)
> > at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
> > at java.lang.Thread.run(Compiled Code)
> >
> > I am getting this error when I goto "http:localhost:8080/Cocoon.xml"
> > Any ideas what the problem is ? Also what is the correct path format for
the web.xml <param-value>
> > I have tried a number of alternatives thinking this is the problem.
This was my first try was it
> > correct
> > c:/jakarta-tomcat/conf/cocoon.properties
> >
> > Also Servlet.log says this
> > Context log path="/examples" :tomcat.errorPage: initContext log
path="/examples" :default: initContext log path="/examples" :jsp:
initContext log path="/test" :tomcat.errorPage: initContext log path="/test"
:default: initContext log path="/test" :jsp: initContext log path="/admin"
:tomcat.errorPage: initContext log path="/admin" :default: initContext log
path="/admin" :jsp: initContext log path="" :tomcat.errorPage: initContext
log path="" :default: initContext log path="" :jsp: initContext log path=""
:org.apache.cocoon.Cocoon: initContext log path="/examples"
:tomcat.errorPage: destroyContext log path="/examples" :default:
destroyContext log path="/test" :tomcat.errorPage: destroyContext log
path="/test" :default: destroy
> >
> > Any help appreciated
> > Alistair
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>


Re: Cocoon-1.8 with jakart-tomcat 3.1 installation

Posted by ro...@elastica.com.
Where is your web.xml and what does it contain?

On Wed, 25 Oct 2000, ajamn wrote:

> Unable to open resource: jakarta-tomcat/conf/cocoon.properties
> java.io.FileNotFoundException: C:\jakarta-tomcat\webapps\ROOT\jakarta-tomcat\conf\cocoon.properties
> 	at java.io.FileInputStream.(FileInputStream.java:56)
> 	at sun.net.www.protocol.file.FileURLConnection.connect(Compiled Code)
> 	at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:162)
> 	at org.apache.cocoon.Cocoon.init(Cocoon.java:123)
> 	at org.apache.tomcat.core.ServletWrapper.initServlet(Compiled Code)
> 	at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
> 	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
> 	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
> 	at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
> 	at java.lang.Thread.run(Compiled Code)
> 
> I am getting this error when I goto "http:localhost:8080/Cocoon.xml"
> Any ideas what the problem is ? Also what is the correct path format for the web.xml <param-value>
> I have tried a number of alternatives thinking this is the problem.  This was my first try was it 
> correct
> c:/jakarta-tomcat/conf/cocoon.properties
> 
> Also Servlet.log says this
> Context log path="/examples" :tomcat.errorPage: initContext log path="/examples" :default: initContext log path="/examples" :jsp: initContext log path="/test" :tomcat.errorPage: initContext log path="/test" :default: initContext log path="/test" :jsp: initContext log path="/admin" :tomcat.errorPage: initContext log path="/admin" :default: initContext log path="/admin" :jsp: initContext log path="" :tomcat.errorPage: initContext log path="" :default: initContext log path="" :jsp: initContext log path="" :org.apache.cocoon.Cocoon: initContext log path="/examples" :tomcat.errorPage: destroyContext log path="/examples" :default: destroyContext log path="/test" :tomcat.errorPage: destroyContext log path="/test" :default: destroy
> 
> Any help appreciated
> Alistair
> 
>