You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "McKeggie, Henry" <he...@headland-media.com> on 2000/05/16 19:26:44 UTC

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

I have the same problem. 

Publishing Engine could not be initialized.
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,
Compiled Code)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H
ttpConnectionHandler.java, Compiled Code)
	at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java
, Compiled Code)
	at java.lang.Thread.run(Thread.java, Compiled Code)

Running tomcat 3.1 on NT.  

<web-app>
   <servlet>
        <servlet-name>
            org.apache.cocoon.Cocoon
        </servlet-name>
        <servlet-class>
            org.apache.cocoon.Cocoon
        </servlet-class>
        <init-param>
            <param-name>
                properties
            </param-name>
            <param-value>
                cocoon.properties
            </param-value>
        </init-param>
    </servlet>
    <servlet-mapping>
        <servlet-name>
            org.apache.cocoon.Cocoon
        </servlet-name>
        <url-pattern>
            *.xml
        </url-pattern>
    </servlet-mapping>

I put cocoon.properties in every directory  I could find.


-----Original Message-----
From: Steven Maring [mailto:Steven.Maring@trcinc.com]
Sent: Tuesday, May 16, 2000 10:35 AM
To: 'cocoon-users@xml.apache.org'
Subject: RE: Publishing Error after install Cocoon 1.7.3 in
JRun2.3.3+Apac he 1.3.12+Window 20


I have experienced the EXACT same issue with WinNT.  I had to use Tomcat
for
demo purposes.  I prefer it, but the powers that be want JRun.

Basically, Cocoon complains about not being able to find the
cocoon.properties file.

Anybody run across this and been able to get it to work?

-Steve Maring

-----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.ja
va: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.handleReques
t(JR
unProxyServiceHandler.java:102)
	at 
com.livesoftware.jrun.service.ThreadConfigHandler.run(ThreadConfigHandle
r.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.ja
va: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.handleReques
t(JR
unProxyServiceHandler.java:102)
	at 
com.livesoftware.jrun.service.ThreadConfigHandler.run(ThreadConfigHandle
r.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.URLRewriter
Filt
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.Templ
ateF
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\jav
a_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\ser
vlet
.jar;C:\Work\Dev\portal-src\classes\activation.jar;C:\Work\Dev\portal-sr
c\cl
asses\mail.jar;C:\Work\Dev\portal-src\classes\PoolMan.jar;C:\Work\Dev\po
rtal
-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:\jdk
1.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