cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <pati_giac...@yahoo.com>
Subject Re: cocoon2.0a2 installation issues
Date Wed, 30 Aug 2000 11:00:40 GMT

--- Stefano Mazzocchi <stefano@apache.org> wrote:
> Joel Bethea wrote:
> > 
> > > Joel Bethea wrote:
> > > >
> > > > hi,
> > > > i have obtained the latest version of cocoon2 from cvs,
> > > built it, and
> > > > installed it.  however the default welcome page still does
> > > not come up
> > > > properly.  whereas before i simply got a nullpointerexception
> in the
> > > > sitemaphandler class, now i get the following message:
> > >
> > > Yes, I cleaned up the exception handling... now it should be more
> > > informative.
> > >
> > > > Cocoon 2.0a2: exception
> > > > Class: org.apache.cocoon.components.language.LanguageException
> > > > Message: _D_._tomcat._webapps._cocoon._sitemap_xmap
> > > > org.apache.cocoon.components.language.LanguageException:
> > > > _D_._tomcat._webapps._cocoon.sitemap_xmap
> > > >         at
> > > >
> > > org.apache.cocoon.components.language.programming.java.JavaLan
> > > guage.loadProg
> > > > ram(JavaLanguage.java:114)
> > > >         at
> > > >
> > > org.apache.cocoon.components.language.programming.CompiledProg
> > > rammingLanguag
> > > > e.load(CompiledProgrammingLanguage.java:174)
> > > >         at
> > > >
> > > org.apache.cocoon.components.language.generator.ProgramGenerat
> > > orImpl.load(Pr
> > > > ogramGeneratorImpl.java:210)
> > > >         at
> > >
> org.apache.cocoon.sitemap.SitemapHandler.run(SitemapHandler.java:147)
> > > >         at java.lang.Thread.run(Unknown Source)
> > > >
> > > > so, in both versions (v.2 and 2.0a2) my problem has somehow
> > > involved the
> > > > sitemapping.  im still a little suspicious about the
> > > following line in the
> > > > sitemap.xmap file:
> > > >
> > > > <map:sitemap
> xmlns:map="http://xml.apache.org/cocoon/sitemap/1.0">
> > > >
> > > > since the URL doesn't seem to exist.
> > >
> > > Hmmm, read the namespace spec: the URI is just a pointer, it
> doesn't
> > > have to exist since it's never accessed. The use of the web
> naming is
> > > just a convenient method for enforcing uniqueness of namespaces.
> > >
> > > > my classpath information (from tomcat.bat) is as follows:
> > > >
> > > > 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_3.jar
> > > >         set
> > > CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\xalan_1_2_D01.jar
> > > >         set
> > > CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\fop_0_14_1-dev.jar
> > > >         set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\svgv.jar
> > > >         set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\jstyle.jar
> > > >         set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\js.jar
> > >
> > > rhino.jar and js.jar are the exact same thing.
> > >
> > > >         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
> > > >
> > > >         set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\rhino.jar
> > > >         set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\ss_css2.jar
> > > >         set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\svg-dom.jar
> > > >         set
> CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\bsfengines.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
> > > >
> > > > has anyone else had this problem? fixed this problem?
> > > could the problem
> > > > perhaps be with tomcat?
> > >
> > > Hmmm, look in the d:\tomcat\work\ directory for the Cocoon temp
> > > directory and tell us if you find the sitemap class or anything
> in
> > > there.
> > 
> > here is the directory structure in tomcat\work:
> > 
> >
>
localhost_8080%2Fcocoon\_d_\_tomcat\_webapps\_cocoon\_sitemap_xmap.java
> > 
> > the _sitemap_xmap.java file has nothing in it however.
> 
> Well, this clearly shows we have some problems in the exception
> handling
> system for XSP subsystem: throwing a LanguageException without
> telling
> us what's wrong is not really useful, I'd guess.

I know that compile errors are shown at the browser but don't know if
it is also the case for xslt errors (applying logicsheets).

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

__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

Mime
View raw message