cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gunjan Doshi" <gdo...@softhome.net>
Subject Re: Not able to find cocoon.properties file
Date Tue, 21 Nov 2000 00:20:53 GMT
Thanks
I was wandering if it ispossible to change this default lookup relative to web-app\root directory
Gunjan
  ----- Original Message ----- 
  From: Srinivas Konchada 
  To: cocoon-users@xml.apache.org 
  Sent: Monday, November 20, 2000 6:56 PM
  Subject: Re: Not able to find cocoon.properties file


  The path to cocoon.properties should be relative to your webapp root directory.
  So the easy way is copy cocoon.properties to c:\jakarta-tomcat\webapps\ROOT\conf  (create
conf directory, if not there) and
  in your web.xml file give conf/cocoon.properties as the value for <param-value>

  Srinivas
    ----- Original Message ----- 
    From: Gunjan Doshi 
    To: cocoon-users@xml.apache.org 
    Sent: Monday, November 20, 2000 3:47 PM
    Subject: Not able to find cocoon.properties file


    Friends:
    Following is the configuration I use:
    Win NT Server
    Tomcat 3.1
    Jdk1.2.2
    Cocoon 1.8

    My cocoon.properties file is on f drive and tomcat engine is on c drive. The tomcat engine
is not able to find the properties file.

    Following is the servlet declaration in the web.xml file in tomcat
    <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>
    F://cocoon-1.8//conf//cocoon.properties
       
      </param-value>
     </init-param>
    </servlet>

    This is the error I get when I type http://localhost:8080/Cocoon.xml

java.io.FileNotFoundException: C:\jakarta-tomcat\webapps\ROOT\F:\cocoon-1.8\conf\cocoon.properties
(The filename, directory name, or volume label syntax is incorrect)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.(FileInputStream.java:68)
	at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:72)
	at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:136)
	at org.apache.cocoon.Cocoon.init(Cocoon.java:123)
	at org.apache.tomcat.core.ServletWrapper.initServlet(ServletWrapper.java, Compiled Code)
	at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, 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(SimpleTcpEndpoint.java:338)
	at java.lang.Thread.run(Thread.java:479)

 
Thanks in advance
Gunjan 


Mime
View raw message