You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Henning von Bargen <H....@Triestram-Partner.de> on 2000/08/17 09:16:53 UTC
AW: cocoon2 installation issues: Now it is working
I checked out the latest sources (Thursday, 17.August 2000 at about 8:00AM)
built, copied cocoon.war and webapp
_AND_
changed my tomcat.bat to ues exactly the same JAR files in the same order as
OD did
and then it worked!
It seems that my previous verison of tomcat.bat was missing bsf.jar and
jakarta-regexp-1.1.jar.
Henning
> -----Ursprüngliche Nachricht-----
> Von: Giacomo Pati [SMTP:Giacomo.Pati@pwr.ch]
> Gesendet am: Mittwoch, 16. August 2000 23:56
> An: cocoon-users@xml.apache.org
> Betreff: Re: cocoon2 installation issues
>
> Joel Bethea wrote:
> >
> > i followed your example and got a fresh version from CVS, rebuilt it,
and
> > put everything in the right places. im using your classpath ordering.
Both
> > the rebuilt versions of cocoon.jar and cocoon.war were larger than the
> > originals. however, i get the same problem (NullPointerException in
> > SiteMapHandler). apparently there is a setting somewhere that isn't
> > correct?
> >
> > im trying to install it on WinNT4/Sun JDK1.2.2/Tomcat 3.1
> >
> > > -----Original Message-----
> > > From: OD [mailto:od@feersumendjinns.com]
> > > Sent: Wednesday, August 16, 2000 12:25 PM
> > > To: cocoon-users@xml.apache.org
> > > Subject: Re: cocoon2 installation issues
> > >
> > >
> > > Just updated from the CVS, C2 is working fine for me. Nice
> > > new status page.
> > > The output in Netscape Navigator is odd but fine in Internet Explorer.
> > >
> > > WIN98SE, Sun jdk1.3, Tomcat 3.1, Cocoon2 (CVS 16/08/2k 17:23 GMT)
> > > Standard build, copied .war to to tomcat's webapps directory.
> > >
> > > CLASSPATH:
> > >
> > > set CLASSPATH=.
> > > set CLASSPATH=%TOMCAT_HOME%\classes
> > > rem Cocoon2
> > > set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\cocoon.jar
> > > set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\xerces_1_1_2.jar
> > > set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\xalan_1_0_1.jar
> > > set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\fop_0_13_0.jar
> > > set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\svgv_0_8.jar
> > > set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\jstyle.jar
> > > set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\js.jar
> > > set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\AvalonAware.jar
> > > set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\bsf.jar
> > > set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\jakarta-regexp-1.1.jar
> > > rem Tomcat
> > > set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\webserver.jar
> > > set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\jasper.jar
> > > set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\xml.jar
> > > set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\servlet.jar
> > > set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar
> > >
> > >
> > > Corey
> > >
> > >
> > > ----- Original Message -----
> > > From: Stefano Mazzocchi <st...@apache.org>
> > > To: <co...@xml.apache.org>
> > > Sent: Tuesday, August 15, 2000 7:02 PM
> > > Subject: Re: cocoon2 installation issues
> > >
> > >
> > > > Joel Bethea wrote:
> > > > >
> > > > > Hi,
> > > > >
> > > > > In trying to get Cocoon2 up and running, I encounter the
> > > following error
> > > > > when i try to access the welcome page:
> > > > >
> > > > > Cocoon 2.0: Exception
> > > > > Class: java.lang.NullPointerException
> > > > > Message: null
> > > > > java.lang.NullPointerException
> > > > > at
> > > > >
> > > org.apache.cocoon.sitemap.SitemapHandler.process(SitemapHandle
> > > r.java:145)
> > > > > at
> > > org.apache.cocoon.sitemap.SitemapManager.invoke(SitemapManager
> > > .java:84)
> > > > > at org.apache.cocoon.Cocoon.process(Cocoon.java:178)
> > > > > at
> > > org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.
> > > java:142)
> > > > > at
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > > > at
> > > > >
> > > org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWra
> > > pper.java:503)
> > > > > at
> > > org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
> > > > > at
> > > > >
> > > org.apache.tomcat.service.http.HttpConnectionHandler.processCo
> > > nnection(HttpC
> > > > > onnectionHandler.java:160)
> > > > > at
> > > > >
> > > org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEnd
> > > point.java:338
> > > > > )
> > > > > at java.lang.Thread.run(Unknown Source)
> > > > >
> > > > > I've looked for possible conflicts in the included .jar files, and
> > > concluded
> > > > > that this problem is caused by something else. Right
> > > now, (correct me
> > > if I
> > > > > am wrong, please), i think the cause could be that the URL in the
> > > following
> > > > > line from the sitemap.xmap file is not valid:
> > > > >
> > > > > <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
> > > > >
> > > > > I have also tried the
> > http://xml.apache.org/cocoon/sitemap/1.0 but it
> > > > doesn't work either. Has anyone else had this problem and fixed it,
or
> > does
> > > > anyone know for certain that the URL is correct?
> > > > thanks...
> > >
> > > I'm traking down the problem right now and, no, it's not a classpath
> > > issue but something wrong in the code that Giacomo updated before
> > > leaving for vacation (Giacomo, try doing a clean rebuild and tell us
if
> > > your stuff works on your machine because I'm having the same problem
> > > here)
>
> Ok, guys :) I regularly do clean rebuilds to check if my hacks still
> working (especially lately before commiting changes)
>
> I use 'sh ./build.sh clean package webapp'.
> I do 'rm -rf $TOMCAT_HOME/webapps/cocoon*'.
> I have copied all jars from $COCOON_HOME/lib to $TOMCAT_HOME/lib except
> ant.jar, servlet_2_2.jar and stylebook-1.0-b2.jar
> I copy $COCOON_HOME/build/cocoon/cocoon.jar to $TOMCAT_HOME/lib
> and copy $COCOON_HOME/build/cocoon/cocoon.war to $TOMCAT_HOME/webapp.
> I start TOMCAT and point my browser to
> http://localhost:8080/cocoon/welcome and voilà it rocks.
>
> I use tomcat from the cvs several days ago and have build it with
> 'build.sh dist'. My $TOMCAT_HOME is the dist/tomcat directory created by
> the build.sh and I have no other apps running therein.
>
> I have absolutely no idea where your problems are. The stacktrace from
> above tells me that there is something wrong with the compilation of the
> generated sitemap. Try to compile the generated source by hand (or isn't
> there any in your repository?)
>
> Giacomo
>
>
> --
> PWR GmbH, Organisation & Entwicklung Tel: +41 (0)1 856 2202
> Giacomo Pati, CTO/CEO Fax: +41 (0)1 856 2201
> Hintereichenstrasse 7 Mailto:Giacomo.Pati@pwr.ch
> CH-8166 Niederweningen Web: http://www.pwr.ch
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org