cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Gallardo Rivera <agalla...@agsoftware.dnsalias.com>
Subject Re: Cocoon in multiple webapp
Date Tue, 17 Sep 2002 03:24:04 GMT
Try this maybe it helps you:

If you are using 1.4 (I am using 1.4.1RC) You must to copy the following 
libraries to your Java libs:

PROBLEM: When you are trying to use sunRise and your plataform is (or 
similar):

        Cocoon 2.0.3
        Tomcat 2.1.8 or 2.1.9
        Java 1.4 or 1.4.1

You get the following error:

java.lang.NullPointerException

java.lang.NullPointerException at
org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:869)
at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871)
at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871)
at org.apache.cocoon.sunshine.xml.XMLUtil.getNodeListFromPath(XMLUtil.java:836
at 
org.apache.cocoon.sunshine.context.SimpleSessionContext.getXML(SimpleSession 
Context.java:173)
at org.apache.cocoon.sunshine.sunrise.SunRise.isAuthenticated(SunRise.java:691
....

CAUSE:
You have to configure java to work with this libraries:
        xalan-2.3.1.jar
        xercesImpl-2.0.0.jar
        xml-apis.jar

SOLUTION:
1-Stop Tomcat.
2-Create a directory named "endorsed" at $JAVA_HOME/jre/lib/
3-Copy from Cocoon the following files to the recent created directory:
        xalan-2.3.1.jar
        xercesImpl-2.0.0.jar
        xml-apis.jar
4-Restart Tomcat

THANKS:

Many thanks to Matthew Langham that provide me the link to:

http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102927633032114&w=2

Antonio Gallardo


CocoonServlet.java

El Lunes, 16 de Septiembre de 2002 15:15, Ryan Agler escribió:
> Also a lot of times when I'm trying to get things to work with Tomcat
> requiring me to stop-and-start it a lot, "catalina.sh stop" wont kill
> all the java processes on my system.  Then I get all kinds of errors
> when I start it back up.  Make sure there are no rogue processes running
> and if there are, kill them.  In the stop section of my catalina.sh file
> I added a line to not only kill all processes, but also delete the work
> directory:
>
> rm -rf $CATALINA_HOME/work
> killall /jdk/bin/java
>
> good luck
>
> -----Original Message-----
> From: Alejandro Raiczyk [mailto:alejandror@technisys.net]
> Sent: Monday, September 16, 2002 2:38 PM
> To: 'cocoon-users@xml.apache.org'
> Subject: RE: Cocoon in multiple webapps
>
> I´ve tried, but it didn´t work:
> type fatal
> message null
> description java.lang.NullPointerException
> sender org.apache.cocoon.servlet.CocoonServlet
> source Cocoon servlet
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message