You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Roshd Afzar Co." <ro...@neda.net> on 2000/10/09 14:35:44 UTC

problem running cocoon 1.8 under J2EE RI 1.2.1

hi!

I try to make Cocoon 1.8 work on Sun's J2EE RI 1.2.1 but it somehow fails. I
sucessfully managed to run the Cocoon.xml but if I try to use Cocoon with
any other xml file I get this exception:

Error found handling the request.
org.xml.sax.SAXParseException: File
"file:C:/java/j2sdkee1.2.1/public_html/org.apache.cocoon.Cocoon" not found.
	at
org.apache.cocoon.parser.AbstractParser.fatalError(AbstractParser.java:105)
	at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1037)
	at
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(Defa
ultEntityHandler.java:512)
	at org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:304)
	at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:899)
	at org.apache.cocoon.parser.XercesParser.parse(XercesParser.java:84)
	at org.apache.cocoon.parser.AbstractParser.parse(AbstractParser.java:83)
	at
org.apache.cocoon.producer.ProducerFromFile.getDocument(ProducerFromFile.jav
a:78)
	at org.apache.cocoon.Engine.handle(Engine.java:340)
	at org.apache.cocoon.Cocoon.service(Cocoon.java:167)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
	at
org.apache.tomcat.core.ServiceInvocationHandler.method(ServletWrapper.java:6
26)
	at
org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper.java:5
34)
	at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:378)
	at org.apache.tomcat.core.Context.handleRequest(Context.java:644)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:440)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:144)
	at org.apache.tomcat.service.TcpConnectionThread.run(TcpEndpoint.java:310)
	at java.lang.Thread.run(Thread.java:484)

BTW, anyone out there been able to use cocoon with J2EE RI? Any installation
instruction?

What I've done is as follows:
j2ee.jar is expanded to lib/classes dir, moved
org/apache/tomcat/deployment/web.xml to public_html dir. Also moved
cocoon.properties to public_html. web.xml modified to have *.xml URL handled
by cocoon, cocoon servlet's param-value=/cocoon.properties. J2ee's classpath
(setenv.bat) modified to have cocoon and firends jar files as the first jar
files in j2ee's classpath. Cocoon.xml is shown correctly but any other file
throws the specified exception.

regrds,
Ara