Hallo listmembers,

I am using the Cocoon command line to generate static pages from my site. I
was not successful with that, because
every time an action which uses the "ObjectModelHelper.getContext(" method
throws an Exception. (see below)

This ONLY happens during the uses of the CLI, not when I use cocoon through
Tomcat.

...
    Context context = ObjectModelHelper.getContext(objectModel);  <--
NulPointerException thrown here
    context.setAttribute("oberrubrik",  oberrubrik);
....

Here is the batch file which calls the command line of cocoon.

set
CLASSPATH=C:\PROGRA~2\J2SDK1~1.0\jre\lib\rt.jar;C:\PROGRA~2\TOMCAT~1.1\commo
n\lib\tools.jar;C:\PROGRA~2\TOMCAT~1.1\common\lib\servlet.jar;C:\PROGRA~2\TO
MCAT~1.1\webapps\development\WEB-INF\classes\
cd web-inf\lib
subst z: .
set CLASSPATH=%CLASSPATH%;z:\avalon-excalibur-vm14-20020705.jar
......all other jarsfrom WEB-INF/lib...
set CLASSPATH=%CLASSPATH%;z:\xt-19991105.jar
cd ..\..\..
subst y: .
cd development

java org.apache.cocoon.Main
-cC:/PROGRA~2/TOMCAT~1.1/webapps/development
-dy:/static/
-uWARN
-wy:/work/
-Cy:/development/WEB-INF/cocoon.xconf index.html

subst z: /D
subst y: /D

Do you see any errors that could cause this exception?

Robert



---------------------------------------------------------------------
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:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to