File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes Problems with cocoon Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Problems with cocoon" Watch "Problems with cocoon" New topic

Problems with cocoon

raul tebar

Joined: Oct 02, 2001
Posts: 2
Hello, I need some help,
After installing cocoon I've tried to run the Cocoon.xml example, but
it reports me this error (see error.txt at end).
Can anybody help me out with this so I can progress with the installation,
many thanks in advance.
Raul Tebar
error.txt -------------------
Publishing Engine could not be initialized.
java.lang.RuntimeException: Error creating org.apache.cocoon.processor.xsp.XSPProcessor: make sure the needed classes can be found in the classpath (org/apache/turbine/services/resources/TurbineResourceService)
at org.apache.cocoon.framework.Manager.create(
at org.apache.cocoon.framework.Router.init(
at org.apache.cocoon.framework.Manager.create(
at org.apache.cocoon.Engine.<init>(
at org.apache.cocoon.Engine.getInstance(
at org.apache.cocoon.Cocoon.init(
at org.apache.tomcat.core.ServletWrapper.doInit(
at org.apache.tomcat.core.Handler.init(
at org.apache.tomcat.core.ServletWrapper.init(
at org.apache.tomcat.core.Handler.service(
at org.apache.tomcat.core.ServletWrapper.service(
at org.apache.tomcat.core.ContextManager.internalService(
at org.apache.tomcat.core.ContextManager.service(
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(
at org.apache.tomcat.service.TcpWorkerThread.runIt(
at org.apache.tomcat.util.ThreadPool$

Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 672
You have to play hard with the classpath. Make sure xerces/xalan that came with Cocoon are before any other xml parsers. You can rename jar files etc.

We love Java programming. It is contagious, very cool, and lot of fun. - Peter Coad, Java Design

Crazy Bikes created by m-Power
I agree. Here's the link:
subject: Problems with cocoon
It's not a secret anymore!