You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Joey Yue <jo...@hotmail.com> on 2000/05/16 20:01:59 UTC

RE: Publishing Error after install Cocoon 1.7.3 in JRun2.3.3+Apac he 1.3.12+Window 20

I changed cocoon.properties to httpd dir too. Here is what I did.

In Apache\conf\httpd.conf, the DocumentRoot setting is
<Directory "C:/Work/Dev/portal-src/portal-htdocs">

Therefore, I copied cocoon.properties to 
C:/Work/Dev/portal-src/portal-htdocs/Cocoon/ ,and then edited 
servlet.Cocoon.args=properties=/Cocoon/cocoon.properties
(I tried ./Cocoon/cocoon.properties too...)
in servlet.properties

I still got the same error message.

Any idea.

-- Joey

>From: Steven Maring <St...@trcinc.com>
>Reply-To: cocoon-users@xml.apache.org
>To: "'cocoon-users@xml.apache.org'" <co...@xml.apache.org>
>Subject: RE: Publishing Error after install Cocoon 1.7.3 in JRun2.3.3+Apac 
>he 1.3.12+Window 20
>Date: Tue, 16 May 2000 13:38:08 -0400
>
>Oops.  My bad.  As Robin Green points out, you must specify the
>cocoon.properties in your init args as relative to the httpd server root.
>
>I did this on Tomcat, but not on JRun.
>
>Thanks Robin!
>
>-----Original Message-----
>From: Joey Yue [mailto:joeyfish@hotmail.com]
>Sent: Tuesday, May 16, 2000 1:25 PM
>To: cocoon-users@xml.apache.org
>Subject: Publishing Error after install Cocoon 1.7.3 in JRun2.3.3+Apache
>1.3.12+Window 20
>
>
>After installed Cocoon following the instruction in Allaire JRun and Apache
>Cocoon user list, I still CANNOT get the xml page to show. Here is what I
>got when I called the http://localhost/portal/samples/index.xml and
>HelloWorld.xml
>
>Publishing Engine could not be initialized.
>java.lang.NullPointerException
>	at org.apache.cocoon.Cocoon.init(Cocoon.java:135)
>	at
>com.livesoftware.jrun.JRunServletLoader.loadServlet(JRunServletLoader.java:8
>7)
>	at com.livesoftware.jrun.JRun.getServlet(JRun.java:538)
>	at com.livesoftware.jrun.JRun.getServlet(JRun.java:494)
>	at com.livesoftware.jrun.JRun.runServlet(JRun.java, Compiled Code)
>	at
>com.livesoftware.jrun.JRunGeneric.handleConnection(JRunGeneric.java:116)
>	at
>com.livesoftware.jrun.JRunGeneric.handleProxyConnection(JRunGeneric.java:78)
>	at
>com.livesoftware.jrun.service.proxy.JRunProxyServiceHandler.handleRequest(JR
>unProxyServiceHandler.java:102)
>	at
>com.livesoftware.jrun.service.ThreadConfigHandler.run(ThreadConfigHandler.ja
>va,
>Compiled Code)
>
>Bottom is the error msg in JRun Log files, my JRun properties file setting
>like rule, classpath and properties.
>
>I will greatly appreciate to any idea and thought. Thanks in advanced.
>
>-- Joey
>
>1....ERROR IN JRUN LOG FILES
>//**
>java.lang.ClassNotFoundException: com.ibm.xml.parsers.SAXParser
>java.lang.ClassNotFoundException: com.ibm.xml.parsers.SAXParser
>	at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code)
>	at java.lang.Exception.<init>(Exception.java, Compiled Code)
>	at
>java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java,
>Compiled Code)
>	at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code)
>	at java.security.AccessController.doPrivileged(Native Method)
>	at java.net.URLClassLoader.findClass(URLClassLoader.java, Compiled
>Code)
>	at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
>	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java,
>Compiled Code)
>	at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
>	at java.lang.Class.forName0(Native Method)
>	at java.lang.Class.forName(Class.java:124)
>	at com.livesoftware.xml.XT.<init>(XT.java:35)
>	at com.livesoftware.xml.XT.<init>(XT.java:27)
>	at com.livesoftware.jsp.JSPCompiler.<init>(JSPCompiler.java:39)
>	at com.livesoftware.jsp.JSPServlet.init(JSPServlet.java:43)
>	at
>com.livesoftware.jrun.JRunServletLoader.loadServlet(JRunServletLoader.java:8
>7)
>	at com.livesoftware.jrun.JRun.getServlet(JRun.java:538)
>	at com.livesoftware.jrun.JRun.getServlet(JRun.java:494)
>	at com.livesoftware.jrun.JRun.runServlet(JRun.java, Compiled Code)
>	at
>com.livesoftware.jrun.JRunGeneric.handleConnection(JRunGeneric.java:116)
>	at
>com.livesoftware.jrun.JRunGeneric.handleProxyConnection(JRunGeneric.java:78)
>	at
>com.livesoftware.jrun.service.proxy.JRunProxyServiceHandler.handleRequest(JR
>unProxyServiceHandler.java:102)
>	at
>com.livesoftware.jrun.service.ThreadConfigHandler.run(ThreadConfigHandler.ja
>va,
>Compiled Code)
>Could not open the IOStream for logging
>java.io.FileNotFoundException: /opt/triactive/portal-dev/portal.log (The
>system cannot find the path specified)
>NO LOGFILE! 2000-05-15 15:35:57|INFO: 1 session (0 logged in, 0 new)
>**/
>
>2..... ERROR WHEN CALL http://localhost/servlet/org.apache.cocoon.Cocoon
>
>
>The servlet initialization argument "properties" was not found.
>Please, make sure Cocoon is able to find its configurations or it won't be
>able to execute correctly.
>A template for such configurations may be found in the file
>"/conf/cocoon.properties" in the distribution.
>Warning: this page has been dynamically generated.
>
>
>3...... SETTING IN JRUN
>
>A. In C:\JRun\jsm-default\properties\jsm.properties
>
>java.classpath=E:\\Apache\\cocoon-1.7.3\\bin\\cocoon.jar;
><< I broke it to piece for better reading in mail >>
>C:\\JRun\\classes;
>C:\\JRun\\jsm-default\\classes;
>C:\\JRun\\lib\\jrun.jar;
>C:\\JRun\\lib\\servlet.jar;
>C:\\JRun\\webl\\WebL.jar;
>C:\\JRun\\lib\\jsp.jar;
>C:\\JRun\\lib\\xt.jar;
>C:\\JRun\\lib\\fesi.jar;
>C:\\JRun\\lib\\cfanywhere.jar;
>C:\\JRun\\lib\\NetComponents.jar;
>C:\\JRun\\lib\\OROMatcher.jar;
>C:\\JRun\\lib\\tools.jar;
>C:\\JRun\\instantdb\\classes;
>C:\\JRun\\lib\\jrunadmin\\jrunadmin.jar;
>C:\\jdk1.2.2\\lib\\classes.zip;
>C:\\jdk1.2.2\\lib\\rt.jar;
>C:\\jdk1.2.2\\lib\\i18n.jar;
>C:\\jdk1.2.2\\jre\\lib\\rt.jar;
>C:\\jdk1.2.2\\jre\\lib\\i18n.jar;
>C:\\jdk1.2.2\\lib\\tools.jar;
>C:\\JRun\\lib\\jrunadmin\\swing.jar;
>E:\\Apache\\cocoon-1.7.3\\lib\\ant.jar;
>E:\\Apache\\cocoon-1.7.3\\lib\\fop_0_12_1.jar;
>E:\\Apache\\cocoon-1.7.3\\lib\\xalan_1_0_1.jar;
>E:\\Apache\\cocoon-1.7.3\\lib\\xerces_1_0_3.jar;
>
>B. In C:\JRun\jsm-default\services\jse\properties\rules.properties
>/servlet/=invoker
>*.jrun=invoker
>*.shtml=ssifilter
>*.jsp=com.livesoftware.jsp.JSPServlet
>*.thtml=template
>*.xml=Cocoon
>jws/=file
>
>C. Edit C:\JRun\jsm-default\services\jse\properties\servlets.properties
>servlet.file.code=com.livesoftware.servlets.file.FileServlet
>servlet.file.args=
>servlet.file.preload=true
>servlet.ssifilter.code=com.livesoftware.jrun.plugins.ssi.SSIFilter
>servlet.ssifilter.args=
>servlet.ssifilter.preload=true
>servlet.urlfilter.code=com.livesoftware.jrun.plugins.filters.URLRewriterFilt
>er
>servlet.urlfilter.args=
>servlet.urlfilter.preload=true
>servlet.jsp.code=com.livesoftware.jrun.plugins.jsp.JSP
>servlet.jsp.args=
>servlet.jsp.preload=true
>servlet.templatefilter.code=com.livesoftware.jrun.plugins.template.TemplateF
>ilter
>servlet.templatefilter.args=
>servlet.templatefilter.preload=false
>servlet.Cocoon.code=org.apache.cocoon.Cocoon
>servlet.Cocoon.args=properties=/JRun/cocoon/cocoon.properties
>servlet.Cocoon.preload=false
>
>
>D. ClassPath in Window 2000
>
>C:\JRun\lib\servlet.jar;C:\Work\Dev\portal-src\classes\activation.jar;C:\Wor
>k\Dev\portal-src\classes\mail.jar;C:\Work\Dev\portal-src\classes\PoolMan.jar
>;C:\Work\Dev\portal-src\classes\classes12.zip;C:\Work\Dev\portal-src\java_sr
>c;D:\orant\orb\classes\yoj.jar;D:\orant\orb\classes\share.zip;%ANT_HOME%\lib
>\xml.jar;C:\jdk1.2.2\lib\tools.jar;%ANT_HOME%\lib\ant.jarC:\JRun\lib\servlet
>.jar;C:\Work\Dev\portal-src\classes\activation.jar;C:\Work\Dev\portal-src\cl
>asses\mail.jar;C:\Work\Dev\portal-src\classes\PoolMan.jar;C:\Work\Dev\portal
>-src\classes\classes12.zip;C:\Work\Dev\portal-src\java_src;D:\orant\orb\clas
>ses\yoj.jar;D:\orant\orb\classes\share.zip;%ANT_HOME%\lib\xml.jar;C:\jdk1.2.
>2\lib\tools.jar;%ANT_HOME%\lib\ant.jar
>
>________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: cocoon-users-help@xml.apache.org
>

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


Re: Can cocoon1.7.3 run on Tomcat3.1 or JavaWebServer?

Posted by Berin Loritsch <bl...@infoplanning.com>.
This is a familiar problem.  Check the mailing lists, and the answer follows:

Place the cocoon.properties within your context--
$TOMCAT_HOME/webapps/ROOT/WEB-INF/cocoon.properties

And set the path to the file relative to the context root.
<init-param>/WEB-INF/cocoon.properties</init-param>


Bo Li wrote:

> I installed cocoon1.7.3 on JavaWebServer2.0 and Tomcat 3.1 separately but it
> doesn't work while cocoon1.7.2 works very well.
>
> *******
> java.lang.NullPointerException
>  at org.apache.cocoon.Cocoon.init(Cocoon.java:135)
>  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(HttpC
> onnectionHandler.java:160)
>  at
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java,
> Compiled Code)
>  at java.lang.Thread.run(Thread.java:479
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org


Can cocoon1.7.3 run on Tomcat3.1 or JavaWebServer?

Posted by Bo Li <bo...@groupserve.com>.
I installed cocoon1.7.3 on JavaWebServer2.0 and Tomcat 3.1 separately but it
doesn't work while cocoon1.7.2 works very well.

*******
java.lang.NullPointerException
 at org.apache.cocoon.Cocoon.init(Cocoon.java:135)
 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(HttpC
onnectionHandler.java:160)
 at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java,
Compiled Code)
 at java.lang.Thread.run(Thread.java:479