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