You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Mac Schwarz <mc...@phil.uni-erlangen.de> on 2000/07/14 14:21:54 UTC
[Q] Error creating org.apache.cocoon.producer.ProducerFromRequest
Hi,
after playing with Cocoon2 for a while I decided to switch to Cocoon
1.7.5-dev.
I removed my Tomcat 3.1 installation, downloaded Tomcat 3.1 binary,
installed it and tested the examples. Works fine.
I did a checkout from the xml-cocoon CVS repository today and build
cocoon.jar. I copied cocoon.jar from the xml-cocoon/build directory and
fop_0_12_1.jar, turbine-pool.jar, xalan_1_0_1.jar and xerces_1_0_3.jar
from xml-cocoon/lib to /opt/tomcat/lib.
Then I made the subdirectories /opt/tomcat/webapps/cocoon and
/opt/tomcat/webapps/cocoon/WEB-INF, copied web.xml to the WEB-INF
directory and changed the path for cocoon.properties to the relative
path WEB-INF/cocoon.properties within the conext. I made a directory
'repository' in WEB-INF to match the 'processor.xsp.repository =
./repository' directive in cocoon.properties.
By starting Tomcat via startup.sh the CLASSAPTH reported by the script
is
classPath=".:
/opt/tomcat/bin/../lib/ant.jar:
/opt/tomcat/bin/../lib/cocoon.jar:
/opt/tomcat/bin/../lib/fop_0_12_1.jar:
/opt/tomcat/bin/../lib/jasper.jar:
/opt/tomcat/bin/../lib/servlet.jar:
/opt/tomcat/bin/../lib/test:
/opt/tomcat/bin/../lib/turbine-pool.jar:
/opt/tomcat/bin/../lib/webserver.jar:
/opt/tomcat/bin/../lib/xalan_1_0_1.jar:
/opt/tomcat/bin/../lib/xerces_1_0_3.jar:
/opt/tomcat/bin/../lib/xml.jar:
/usr/java/lib/tools.jar"
The cocoon context is added also:
Context log: path="/cocoon" Automatic context load
docBase="/opt/tomcat/webapps/cocoon"
Context log: path="/cocoon" Adding context path="/cocoon"
docBase="/opt/tomcat/webapps/cocoon"
At least I copied the index.(xml|xsl) files from xml-cocoon/samples to
/opt/tomcat/webapps/cocoon
While trying to access http://localhost:8080/cocoon/index.xml or
http://localhost:8080/cocoon/Cocoon.xml I get following error
-----------------------------------------------------------------------
Publishing Engine could not be initialized.
java.lang.RuntimeException: Error creating
org.apache.cocoon.producer.ProducerFromRequest: class is not found
at
org.apache.cocoon.framework.Manager.create(Manager.java:106)
at
org.apache.cocoon.framework.Router.init(Router.java:80)
at
org.apache.cocoon.producer.ProducerFactory.init(ProducerFactory.java:72)
at
org.apache.cocoon.framework.Manager.create(Manager.java:101)
at org.apache.cocoon.Engine.(Engine.java:159)
at org.apache.cocoon.Engine.getInstance(Engine.java:202)
at org.apache.cocoon.Cocoon.init(Cocoon.java:141)
at
org.apache.tomcat.core.ServletWrapper.initServlet(ServletWrapper.java:315)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:445)
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:484)
-----------------------------------------------------------------------
The system I use is
Solaris 8 x86
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-beta)
Tomcat 3.1 binary
Cocoon 1.7.5-dev from CVS checked out at 07/14/00
with fop_0_12_1.jar, turbine-pool.jar, xalan_1_0_1.jar, xerces_1_0_3.jar
Xerces is before xml.jar in the CLASSPATH and the file cocoon.properties
is read (I verified this by changing the path to an non-existing
property file in web.xml). There are no additional errors in the
servlet.log file of Tomcat.
BTW: 'build.sh' completes without errors but 'build.sh dist' fails with
[...]
Copying 117 files to /home/mac/xml-cocoon/dist/cocoon-1.7.5-dev/src
Copying 153 files to /home/mac/xml-cocoon/dist/cocoon-1.7.5-dev/docs
Copying 192 files to /home/mac/xml-cocoon/dist/cocoon-1.7.5-dev/docs/api
Copying 102 files to /home/mac/xml-cocoon/dist/cocoon-1.7.5-dev/samples
BUILD FATAL ERROR: srcdir does not exist!
and following errors while compiling:
[...]
[exec] Constructing Javadoc information...
[error] javadoc: warning - Cannot find class com.ibm.bsf.BSFManager
[error] javadoc: warning - Cannot find class com.ibm.bsf.BSFException
[error] javadoc: warning - Cannot find class
org.apache.java.util.Configurations
[...]
[exec] Generating
/home/mac/xml-cocoon/build/javadocs/deprecated-list.html...
[error] javadoc: warning - org.apache.cocoon.xml.util.XPathAPI: Tag
@see:illegal character: ":" in "http://www.w3.org/TR/xpath"
[...]
[exec] Generating
/home/mac/xml-cocoon/build/javadocs/org/apache/cocoon/xml/util/XPathAPI.html...
[exec] Tag @see: Malformed: http://www.w3.org/TR/xpath
[error] javadoc: warning - Tag @see: Class or Package not found:
org.apache.xalan.xpath.XNull
[error] javadoc: warning - Tag @see: Class or Package not found:
org.apache.xalan.xpath.XRTreeFrag
[exec] Generating
/home/mac/xml-cocoon/build/javadocs/serialized-form.html...
[error] javadoc: warning - Tag @see: Class or Package not found:
org.apache.xalan.xpath.XNull
[error] javadoc: warning - Tag @see: Class or Package not found:
org.apache.xalan.xpath.XRTreeFrag
Am I missing something or is there a problem with the current CVS
snapshot?
Regards,
Mac
--
Mac Schwarz / AERIA Projekt / Inst. f. Klassische Archaeologie
e-mail: mac@aeria.phil.uni-erlangen.de / Tel.: 09131-85-24791
FAU Erlangen-Nuernberg / Kochstr.4 / 91054 Erlangen
<http://www.phil.uni-erlangen.de/~p1altar/aeriahome.html>
Re: [Q] Error creating org.apache.cocoon.producer.ProducerFromRequest
Posted by Donald Ball <ba...@webslingerZ.com>.
My bad - I removed ProducerFromRequest without removing it from the cocoon
properties file. I'll check in a revised cocoon.properties momentarily -
but in the meantime, you can just remove that line from your local copy.
- donald
On Fri, 14 Jul 2000, Mac Schwarz wrote:
> Hi,
>
> after playing with Cocoon2 for a while I decided to switch to Cocoon
> 1.7.5-dev.
>
> I removed my Tomcat 3.1 installation, downloaded Tomcat 3.1 binary,
> installed it and tested the examples. Works fine.
>
> I did a checkout from the xml-cocoon CVS repository today and build
> cocoon.jar. I copied cocoon.jar from the xml-cocoon/build directory and
> fop_0_12_1.jar, turbine-pool.jar, xalan_1_0_1.jar and xerces_1_0_3.jar
> from xml-cocoon/lib to /opt/tomcat/lib.
>
> Then I made the subdirectories /opt/tomcat/webapps/cocoon and
> /opt/tomcat/webapps/cocoon/WEB-INF, copied web.xml to the WEB-INF
> directory and changed the path for cocoon.properties to the relative
> path WEB-INF/cocoon.properties within the conext. I made a directory
> 'repository' in WEB-INF to match the 'processor.xsp.repository =
> ./repository' directive in cocoon.properties.
>
> By starting Tomcat via startup.sh the CLASSAPTH reported by the script
> is
>
> classPath=".:
> /opt/tomcat/bin/../lib/ant.jar:
> /opt/tomcat/bin/../lib/cocoon.jar:
> /opt/tomcat/bin/../lib/fop_0_12_1.jar:
> /opt/tomcat/bin/../lib/jasper.jar:
> /opt/tomcat/bin/../lib/servlet.jar:
> /opt/tomcat/bin/../lib/test:
> /opt/tomcat/bin/../lib/turbine-pool.jar:
> /opt/tomcat/bin/../lib/webserver.jar:
> /opt/tomcat/bin/../lib/xalan_1_0_1.jar:
> /opt/tomcat/bin/../lib/xerces_1_0_3.jar:
> /opt/tomcat/bin/../lib/xml.jar:
> /usr/java/lib/tools.jar"
>
> The cocoon context is added also:
>
> Context log: path="/cocoon" Automatic context load
> docBase="/opt/tomcat/webapps/cocoon"
> Context log: path="/cocoon" Adding context path="/cocoon"
> docBase="/opt/tomcat/webapps/cocoon"
>
> At least I copied the index.(xml|xsl) files from xml-cocoon/samples to
> /opt/tomcat/webapps/cocoon
>
> While trying to access http://localhost:8080/cocoon/index.xml or
> http://localhost:8080/cocoon/Cocoon.xml I get following error
> -----------------------------------------------------------------------
> Publishing Engine could not be initialized.
>
> java.lang.RuntimeException: Error creating
> org.apache.cocoon.producer.ProducerFromRequest: class is not found
> at
> org.apache.cocoon.framework.Manager.create(Manager.java:106)
> at
> org.apache.cocoon.framework.Router.init(Router.java:80)
> at
> org.apache.cocoon.producer.ProducerFactory.init(ProducerFactory.java:72)
> at
> org.apache.cocoon.framework.Manager.create(Manager.java:101)
> at org.apache.cocoon.Engine.(Engine.java:159)
> at org.apache.cocoon.Engine.getInstance(Engine.java:202)
> at org.apache.cocoon.Cocoon.init(Cocoon.java:141)
> at
> org.apache.tomcat.core.ServletWrapper.initServlet(ServletWrapper.java:315)
> at
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:445)
> 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:484)
>
> -----------------------------------------------------------------------
>
> The system I use is
> Solaris 8 x86
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-beta)
> Tomcat 3.1 binary
> Cocoon 1.7.5-dev from CVS checked out at 07/14/00
> with fop_0_12_1.jar, turbine-pool.jar, xalan_1_0_1.jar, xerces_1_0_3.jar
>
> Xerces is before xml.jar in the CLASSPATH and the file cocoon.properties
> is read (I verified this by changing the path to an non-existing
> property file in web.xml). There are no additional errors in the
> servlet.log file of Tomcat.
>
> BTW: 'build.sh' completes without errors but 'build.sh dist' fails with
>
> [...]
> Copying 117 files to /home/mac/xml-cocoon/dist/cocoon-1.7.5-dev/src
> Copying 153 files to /home/mac/xml-cocoon/dist/cocoon-1.7.5-dev/docs
> Copying 192 files to /home/mac/xml-cocoon/dist/cocoon-1.7.5-dev/docs/api
> Copying 102 files to /home/mac/xml-cocoon/dist/cocoon-1.7.5-dev/samples
> BUILD FATAL ERROR: srcdir does not exist!
>
> and following errors while compiling:
> [...]
> [exec] Constructing Javadoc information...
> [error] javadoc: warning - Cannot find class com.ibm.bsf.BSFManager
> [error] javadoc: warning - Cannot find class com.ibm.bsf.BSFException
> [error] javadoc: warning - Cannot find class
> org.apache.java.util.Configurations
> [...]
> [exec] Generating
> /home/mac/xml-cocoon/build/javadocs/deprecated-list.html...
> [error] javadoc: warning - org.apache.cocoon.xml.util.XPathAPI: Tag
> @see:illegal character: ":" in "http://www.w3.org/TR/xpath"
> [...]
> [exec] Generating
> /home/mac/xml-cocoon/build/javadocs/org/apache/cocoon/xml/util/XPathAPI.html...
> [exec] Tag @see: Malformed: http://www.w3.org/TR/xpath
> [error] javadoc: warning - Tag @see: Class or Package not found:
> org.apache.xalan.xpath.XNull
> [error] javadoc: warning - Tag @see: Class or Package not found:
> org.apache.xalan.xpath.XRTreeFrag
> [exec] Generating
> /home/mac/xml-cocoon/build/javadocs/serialized-form.html...
> [error] javadoc: warning - Tag @see: Class or Package not found:
> org.apache.xalan.xpath.XNull
> [error] javadoc: warning - Tag @see: Class or Package not found:
> org.apache.xalan.xpath.XRTreeFrag
>
>
> Am I missing something or is there a problem with the current CVS
> snapshot?
>
> Regards,
> Mac
>