cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.D. Williams" <jdwilli...@austin.rr.com>
Subject CLI in 2.1.9: Cannot find ServletContext object
Date Tue, 19 Dec 2006 17:14:26 GMT
I have Googled for this exception, read the docs for 2.1, and cannot
figure this out.

I did a ./build.sh clean, then built a minimal webapp and verified that
it worked. No blocks, no samples, bare minimum.

Then, I copied servlet-2.3.jar from
$COCOON_INSTALL_DIRECTORY/tools/jetty/lib to
$COCOON_INSTALL_DIRECTORY/build/webapp/WEB-INF/lib

I even added $COCOON_INSTALL_DIRECTORY/build/webapp/WEB-INF/lib to my
classpath.

The cli.xconf contains the following:

   <context-dir>build/webapp</context-dir>
   <config-file>WEB-INF/cocoon.xconf</config-file>
   <work-dir>build/work</work-dir>
   <dest-dir>build/dest</dest-dir>

I ran the CLI using the demo cli.xconf and got the following fatal
error.

jdw@jdw-desktop:~/cocoon-2.1.9$ ./cocoon.sh cli -x cli.xconf
./cocoon.sh: using ./build/webapp as the webapp directory
------------------------------------------------------------------------
cocoon 2.1.9
Copyright (c) 1999-2006 Apache Software Foundation. All rights reserved.
------------------------------------------------------------------------


DEBUG   2006-12-19 11:07:33.386 [        ] (): Getting handle to context
directory 'build/webapp'
DEBUG   2006-12-19 11:07:33.425 [        ] (): Getting handle to working
directory 'build/work'
DEBUG   2006-12-19 11:07:33.624 [        ] (): Added new
LogTargetFactory of type cocoon
DEBUG   2006-12-19 11:07:33.626 [        ] (): Added new
LogTargetFactory of type servlet
DEBUG   2006-12-19 11:07:33.628 [        ] (): Added new
LogTargetFactory of type stream
DEBUG   2006-12-19 11:07:33.779 [        ] (): Added new LogTarget of id
main
DEBUG   2006-12-19 11:07:33.782 [        ] (): Added new LogTarget of id
deprecation
FATAL_E 2006-12-19 11:07:33.786 [        ] (): Exception caught
org.apache.avalon.framework.configuration.ConfigurationException: Cannot
find ServletContext object in application context



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


Mime
View raw message