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 19:25:15 UTC

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:87)
	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(JRunProxyServiceHandler.java:102)
	at 
com.livesoftware.jrun.service.ThreadConfigHandler.run(ThreadConfigHandler.java, 
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:87)
	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(JRunProxyServiceHandler.java:102)
	at 
com.livesoftware.jrun.service.ThreadConfigHandler.run(ThreadConfigHandler.java, 
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.URLRewriterFilter
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.TemplateFilter
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:\Work\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_src;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\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_src;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.jar

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