You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Darko Zivkovic <da...@sigma-systems.com> on 2000/09/28 20:51:54 UTC
Unable to open resource: $TOMCAT_HOME/conf/cocoon.properties
Greetings,
One more very new user with probable configuration problem:
I am trying to follow instructions (from very good book "Java and XML" -
Bertt McLaughlin) to set stand alone Tomcat and Cocoon 1.8.
Running Test sample returns:
Unable to open resource:
/home/darkoz/xml/jakarta-tomcat/conf/cocoon.properties
java.io.FileNotFoundException:
/home/darkoz/xml/jakarta-tomcat/webapps/ROOT/home/darkoz/xml/jakarta-tomcat/
conf/cocoon.properties (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:68)
at
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:7
1)
at
sun.net.www.protocol.file.FileURLConnection.getInputStream(Compiled Code)
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(Compi
led Code)
at
org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
/home/darkoz/xml/jakarta-tomcat/conf/cocoon.properties is with read all
privileges.
What could be reason for referencing following PATH in exception:
/home/darkoz/xml/jakarta-tomcat/webapps/ROOT/home/darkoz/xml/jakarta-tomcat/
conf/cocoon.properties where file is in /home/darkoz/xml/jakarta-tomcat/conf
??
web.xml fragment is :
<!-- Added by DZ to enable Cocoon
-->
<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>
/home/darkoz/xml/jakarta-tomcat/conf/cocoon.properties
</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>
org.apache.cocoon.Cocoon
</servlet-name>
<url-pattern>
*.xml
</url-pattern>
</servlet-mapping>
<!-- END of Added by DZ to enable Cocoon
-->
Best Regards
Darko Zivkovic
(416) 943-9696 x 2305