cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henning von Bargen <H.vonBar...@Triestram-Partner.de>
Subject AW: Cocoon2.0a2 problem: Null pointer exception in SitemapHandler .pro cess (...Environment)
Date Fri, 25 Aug 2000 14:06:37 GMT
It was my fault, 
I had the line for bsf.jar in tomcat.bat commented out.
Now it works for hello.html and hello.pdf, but hello.svg results in:

org.xml.sax.SAXException
Error in the Cocoon 2 pipeline
error
Prefix not declared
Details
from
cocoon-pipeline
Description
org.xml.sax.SAXException: Prefix not declared
extra info
stacktrace
org.xml.sax.SAXException: Prefix not declared

Henning

> -----Urspr√ľngliche Nachricht-----
> Von:	Henning von Bargen [SMTP:H.vonBargen@triestram-partner.de]
> Gesendet am:	Freitag, 25. August 2000 15:51
> An:	cocoon-users@xml.apache.org
> Betreff:	Cocoon2.0a2 problem: Null pointer exception in
SitemapHandler.pro cess (...Environment)
> 
> I had Cocoon2 successfully running on WinNT, Apache 1.3.12, Tomcat 3.1
> Today I updated the Cocoon2 sources from CVS,
> and now the webapp is not working anymore.
> 
> When I request http://pc0031/cocoon/hello.html the result is
> 
> Cocoon 2.0a2: exception
> Class: java.lang.NullPointerException
> Message: null
> java.lang.NullPointerException
> boolean
>
org.apache.cocoon.sitemap.SitemapHandler.process(org.apache.cocoon.environme
> nt.Environment)
> boolean
>
org.apache.cocoon.sitemap.SitemapManager.invoke(org.apache.cocoon.environmen
> t.Environment, java.lang.String, java.lang.String, boolean)
> boolean
>
org.apache.cocoon.Cocoon.process(org.apache.cocoon.environment.Environment)
> void
>
org.apache.cocoon.servlet.CocoonServlet.service(javax.servlet.http.HttpServl
> etRequest, javax.servlet.http.HttpServletResponse)
> void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
> javax.servlet.ServletResponse)
> void
>
org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.core.R
> equest, org.apache.tomcat.core.Response)
> void
>
org.apache.tomcat.core.ContextManager.service(org.apache.tomcat.core.Request
> , org.apache.tomcat.core.Response)
> void
>
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
> (org.apache.tomcat.service.TcpConnection, java.lang.Object[])
> void org.apache.tomcat.service.TcpConnectionThread.run()
> void java.lang.Thread.run()
> 
> I guess it's a matter of paths or classpaths or libraries, but I have no
> idea where to search.
> Here's my config:
> 
> Apache httpd.conf  includes file e:/jakarta-tomcat/conf/tom-apache.conf.
> BTW: The Tomcat-created tomcat-apache.conf didn't work, 
> it's missing a "SetHandler jserv-servlet"
> for the directory E:\jakarta-tomcat\webapps\cocoon obviously.
> 
> ===========================================
> 
> tom-apache.conf looks as follows:
> <snip>
> 
> AddType test/jsp .jsp
> AddHandler jserv-servlet .jsp
> 
> Alias /cocoon E:\jakarta-tomcat\webapps\cocoon
> <Directory "E:\jakarta-tomcat\webapps\cocoon">
>     Options Indexes FollowSymLinks
>     SetHandler jserv-servlet
> </Directory>
> ApJServMount /cocoon/servlet /cocoon
> <Location /cocoon/WEB-INF/ >
>     AllowOverride None
>     deny from all
> </Location>
> 
> </snip>
> 
> I didn't change anything in the sitemap or webapp directory except the SQL
> properties in sitemap.xmap.
> ===========================================
> 
> My Environment is as follows:
> set TOMCAT_HOME=e:\jakarta-tomcat
> set JAVA_HOME=e:\progra~1\oracle\jdevel~1.0\java1.2\jre
> set PATH=%JAVA_HOME%\bin;%JAVA_HOME%\..\bin;%WINDIR%\System32;%WINDIR%
> set CLASSPATH=
> 
> ===========================================
> 
> File TOMCAT.BAT:
> 
> @echo off
> rem A batch file to start/stop tomcat server.
> 
> rem This batch file written and tested under Windows NT
> rem Improvements to this file are welcome
> 
> rem Guess TOMCAT_HOME if it is not present
> 
> if not "%TOMCAT_HOME%" == "" goto gothome
> 
> SET TOMCAT_HOME=.
> if exist %TOMCAT_HOME%\bin\tomcat.bat goto gothome
> 
> SET TOMCAT_HOME=..
> if exist %TOMCAT_HOME%\bin\tomcat.bat goto gothome
> 
> SET TOMCAT_HOME=
> echo Unable to determine the value of TOMCAT_HOME.
> goto eof
> 
> :gothome
> 
> rem Set up the CLASSPATH that we need
> 
> set cp=%CLASSPATH%
> 
> set CLASSPATH=.
> 
> set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\cocoon.jar
> set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\AvalonAware.jar
> rem set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\bsf.jar
> set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\bsfengines.jar
> set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\fop_0_14_1-dev.jar
> set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\jakarta-regexp-1.1.jar
> set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\jstyle.jar
> rem set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\js.jar
> set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\rhino.jar
> set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\servlet_2_2.jar
> set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\ss_css2.jar
> set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\stylebook-1.0-b2.jar
> set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\svg-dom.jar
> set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\svgv.jar
> set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\xalan_1_2_D01.jar
> set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\xerces_1_1_3.jar
> 
> rem set CLASSPATH=%TOMCAT_HOME%\classes
> set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\classes
> 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
> rem set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar
> set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\..\lib\tools.jar
> set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\classes111.zip
>  
> if "%cp%" == "" goto next
> 
> rem else
> set CLASSPATH=%CLASSPATH%;%cp%
> 
> :next
> if "%1" == "start" goto startServer
> if "%1" == "stop" goto stopServer
> if "%1" == "run" goto runServer
> if "%1" == "env" goto setupEnv
> if "%1" == "ant" goto runAnt
> if "%1" == "jspc" goto runJspc
> 
> echo Usage:
> echo tomcat (start^|run^|env^|stop)
> echo         start - start tomcat in a separate window
> echo         run   - start tomcat in the current window
> echo         env   - setup the environment for tomcat
> echo         stop  - stop tomcat
> echo         ant   - run ant with tomcat context
> echo         jspc  - run jsp pre compiler
> goto cleanup
> 
> :startServer
> echo Starting tomcat in new window
> echo Using classpath: %CLASSPATH%
> start java %TOMCAT_OPTS% -Dtomcat.home="%TOMCAT_HOME%"
> org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9
> goto cleanup
> 
> :runServer
> rem Start the Tomcat Server
> echo Using classpath: %CLASSPATH%
> java %TOMCAT_OPTS% -Dtomcat.home="%TOMCAT_HOME%"
> org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9
> goto cleanup
> 
> :stopServer
> rem Stop the Tomcat Server
> echo Using classpath: %CLASSPATH%
> java %TOMCAT_OPTS% -Dtomcat.home="%TOMCAT_HOME%"
> org.apache.tomcat.startup.Tomcat -stop %2 %3 %4 %5 %6 %7 %8 %9
> goto cleanup
> goto cleanup
> 
> :runAnt
> rem Run ant
> set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\ant.jar
> echo Using classpath: %CLASSPATH%
> java %ANT_OPTS% -Dant.home="%TOMCAT_HOME%" -Dtomcat.home="%TOMCAT_HOME%"
> org.apache.tools.ant.Main %2 %3 %4 %5 %6 %7 %8 %9
> goto cleanup
> 
> :runJspc
> rem Run ant
> echo Using classpath: %CLASSPATH%
> java %JSPC_OPTS% -Dtomcat.home="%TOMCAT_HOME%" org.apache.jasper.JspC %2
%3
> %4 %5 %6 %7 %8 %9
> goto cleanup
> 
> :setupEnv
> set cp=%CLASSPATH%
> 
> :cleanup
> rem clean up
> 
> set CLASSPATH=%cp%
> set port=
> set host=
> set test=
> set jsdkJars=
> set jspJars=
> set beanJars=
> set miscJars=
> set appJars=
> set appClassPath=
> set cp=
> 
> rem pause
> :eof
> ===========================================
> 
> And here are the libraries in e:/Jakarta-Tomcat/lib:
> 
> 24.08.00  14:27         <DIR>          .
> 24.08.00  14:27         <DIR>          ..
> 21.08.00  08:23                248.416 ant.jar
> 14.08.00  11:41                 51.555 AvalonAware.jar
> 14.08.00  11:41                 50.369 bsf.jar
> 21.08.00  19:29                 26.618 bsfengines.jar
> 30.08.99  17:05                414.139 classes111.zip
> 24.08.00  14:07                210.822 cocoon.jar
> 14.08.00  11:40                370.612 fop_0_13_0.jar
> 21.08.00  19:29                542.361 fop_0_14_1-dev.jar
> 14.08.00  11:41                 29.795 jakarta-regexp-1.1.jar
> 18.04.00  21:56                193.943 jasper.jar
> 14.08.00  11:41                331.417 js.jar
> 14.08.00  11:41                 25.391 jstyle.jar
> 21.08.00  19:29                331.417 rhino.jar
> 18.04.00  21:56                 40.809 servlet.jar
> 14.08.00  11:18                 40.944 servlet_2_2.jar
> 21.08.00  19:29                 87.941 ss_css2.jar
> 14.08.00  11:18                 62.237 stylebook-1.0-b2.jar
> 21.08.00  19:29                141.324 svg-dom.jar
> 21.08.00  19:29                345.169 svgv.jar
> 14.08.00  11:41                233.694 svgv_0_8.jar
> 14.08.00  14:40         <DIR>          test
> 18.04.00  21:56                474.266 webserver.jar
> 14.08.00  11:41                857.171 xalan_1_0_1.jar
> 21.08.00  19:29                862.960 xalan_1_2_D01.jar
> 14.08.00  11:40              1.591.855 xerces_1_1_2.jar
> 21.08.00  19:29              1.489.678 xerces_1_1_3.jar
> 18.04.00  21:56                132.473 xml.jar
>               29 Datei(en)      9.187.376 Bytes
>                          13.504.692.224 Bytes frei
> 
> 
> ---------------------------------------------------------------------
> 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