cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stavros Kounis <skou...@gmail.com>
Subject CLI in 2.1.8 problems
Date Mon, 12 Dec 2005 11:53:01 GMT
hi all

i have just build 2.1.8 and try

C:\Server\cocoon-2.1.8>cocoon cli -x cli.xconf

unfortunately cli seem to be broken ?

i get an exception about ServletContext object

org.apache.avalon.framework.configuration.ConfigurationException: Cannot find Se
rvletContext object in application context

is anyone using CLI ?

ragards

stavros

---- error -----
cocoon.bat: using .\build\webapp as the webapp directory
-------------------- Loading --------------------
Processing repository: .\build\webapp\WEB-INF\lib
Adding jar: .\build\webapp\WEB-INF\lib\antlr-2.7.5.jar
Adding jar: .\build\webapp\WEB-INF\lib\asm-2.0.jar
Adding jar: .\build\webapp\WEB-INF\lib\asm-util-2.0.jar
Adding jar: .\build\webapp\WEB-INF\lib\avalon-framework-api-4.3.jar
Adding jar: .\build\webapp\WEB-INF\lib\avalon-framework-impl-4.3.jar
Adding jar: .\build\webapp\WEB-INF\lib\avalon-logkit-2.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\axis-1.2.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\axis-jaxrpc-1.2.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\axis-saaj-1.2.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\batik-all-1.6.jar
Adding jar: .\build\webapp\WEB-INF\lib\bsf-2.3.0.jar
Adding jar: .\build\webapp\WEB-INF\lib\castor-0.9.6-xml.jar
Adding jar: .\build\webapp\WEB-INF\lib\chaperon-20040205.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-2.1.8-deprecated.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-2.1.8.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-ajax-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-apples-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-asciiart-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-authentication-fw-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-axis-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-batik-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-bsf-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-captcha-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-chaperon-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-cron-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-databases-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-deli-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-eventcache-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-fop-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-forms-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-hsqldb-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-html-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-itext-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-javaflow-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-jcr-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-jfor-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-jms-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-jsp-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-linkrewriter-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-linotype-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-lucene-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-mail-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-midi-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-naming-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-ojb-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-paranoid-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-petstore-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-poi-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-profiler-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-proxy-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-python-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-qdox-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-querybean-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-repository-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-serializers-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-serializers-charsets-0.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-session-fw-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-slide-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-slop-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-stx-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-taglib-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-tour-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-validation-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-velocity-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-web3-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-webdav-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-xmldb-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-xsltal-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\cocoon-xsp-block.jar
Adding jar: .\build\webapp\WEB-INF\lib\commons-beanutils-core-1.7.jar
Adding jar: .\build\webapp\WEB-INF\lib\commons-cli-1.0.jar
Adding jar: .\build\webapp\WEB-INF\lib\commons-codec-1.3.jar
Adding jar: .\build\webapp\WEB-INF\lib\commons-collections-3.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\commons-dbcp-1.2.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\commons-discovery-0.2.jar
Adding jar: .\build\webapp\WEB-INF\lib\commons-httpclient-2.0.2.jar
Adding jar: .\build\webapp\WEB-INF\lib\commons-jexl-1.0.jar
Adding jar: .\build\webapp\WEB-INF\lib\commons-jxpath-1.2.jar
Adding jar: .\build\webapp\WEB-INF\lib\commons-lang-2.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\commons-logging-1.0.4.jar
Adding jar: .\build\webapp\WEB-INF\lib\commons-pool-1.2.jar
Adding jar: .\build\webapp\WEB-INF\lib\commons-transaction-1.0.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\daisy-htmlcleaner-1.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\daisy-util-1.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\db-ojb-1.0.3.jar
Adding jar: .\build\webapp\WEB-INF\lib\deli-x050330.jar
Adding jar: .\build\webapp\WEB-INF\lib\ehcache-1.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\excalibur-component-2.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\excalibur-datasource-2.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\excalibur-i18n-1.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\excalibur-instrument-api-2.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\excalibur-instrument-mgr-api-2.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\excalibur-instrument-mgr-http-2.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\excalibur-instrument-mgr-impl-2.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\excalibur-io-1.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\excalibur-logger-2.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\excalibur-naming-1.0.jar
Adding jar: .\build\webapp\WEB-INF\lib\excalibur-pool-api-2.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\excalibur-pool-impl-2.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\excalibur-pool-instrumented-2.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\excalibur-sourceresolve-2.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\excalibur-store-2.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\excalibur-xmlutil-2.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\fop-0.20.5.jar
Adding jar: .\build\webapp\WEB-INF\lib\geronimo-spec-activation-1.0.2-rc4.jar
Adding jar: .\build\webapp\WEB-INF\lib\geronimo-spec-javamail-1.3.1-rc5.jar
Adding jar: .\build\webapp\WEB-INF\lib\geronimo-spec-jms-1.1-rc3.jar
Adding jar: .\build\webapp\WEB-INF\lib\geronimo-spec-jta-1.0.1B-rc3.jar
Adding jar: .\build\webapp\WEB-INF\lib\groovy-1.0-jsr-03.jar
Adding jar: .\build\webapp\WEB-INF\lib\hsqldb-1.8.0.2.jar
Adding jar: .\build\webapp\WEB-INF\lib\icu4j-2.8.jar
Adding jar: .\build\webapp\WEB-INF\lib\itext-1.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\jackrabbit-1.0-dev-r292737.jar
Adding jar: .\build\webapp\WEB-INF\lib\jackrabbit-commons-1.0-dev-r292737.jar
Adding jar: .\build\webapp\WEB-INF\lib\jakarta-bcel-20040329.jar
Adding jar: .\build\webapp\WEB-INF\lib\jakarta-oro-2.0.8.jar
Adding jar: .\build\webapp\WEB-INF\lib\jakarta-regexp-1.4.jar
Adding jar: .\build\webapp\WEB-INF\lib\jakarta-slide-webdavlib-2.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\javacApi-0.9.jar
Adding jar: .\build\webapp\WEB-INF\lib\javacImpl-0.9.jar
Adding jar: .\build\webapp\WEB-INF\lib\jcr-1.0.jar
Adding jar: .\build\webapp\WEB-INF\lib\jcs-1.2.5-dev-20050313.jar
Adding jar: .\build\webapp\WEB-INF\lib\jdbi-1.3.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\jdom-1.0.jar
Adding jar: .\build\webapp\WEB-INF\lib\jdtcore-3.0.2.jar
Adding jar: .\build\webapp\WEB-INF\lib\jena-2.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\jfor-0.7.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\jing-20030619.jar
Adding jar: .\build\webapp\WEB-INF\lib\joost-20040330.jar
Adding jar: .\build\webapp\WEB-INF\lib\jtidy-04aug2000r7-dev.jar
Adding jar: .\build\webapp\WEB-INF\lib\log4j-1.2.12.jar
Adding jar: .\build\webapp\WEB-INF\lib\lucene-1.4.3.jar
Adding jar: .\build\webapp\WEB-INF\lib\nekodtd-0.1.11.jar
Adding jar: .\build\webapp\WEB-INF\lib\nekohtml-0.9.5.jar
Adding jar: .\build\webapp\WEB-INF\lib\pizza-1.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\poi-2.5.1-final-20040804.jar
Adding jar: .\build\webapp\WEB-INF\lib\qdox-1.5.jar
Adding jar: .\build\webapp\WEB-INF\lib\quartz-1.5.0.jar
Adding jar: .\build\webapp\WEB-INF\lib\rhino1.5r4-continuations-R26.jar
Adding jar: .\build\webapp\WEB-INF\lib\servlet_2_2.jar
Adding jar: .\build\webapp\WEB-INF\lib\slide-kernel-2.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\slide-stores-2.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\slide-webdavservlet-2.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\util.concurrent-1.3.4.jar
Adding jar: .\build\webapp\WEB-INF\lib\velocity-1.4.jar
Adding jar: .\build\webapp\WEB-INF\lib\wsdl4j-1.5.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\xalan-2.7.0.jar
Adding jar: .\build\webapp\WEB-INF\lib\xercesImpl-2.7.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\xindice-1.1b4.jar
Adding jar: .\build\webapp\WEB-INF\lib\xml-apis-1.3.02.jar
Adding jar: .\build\webapp\WEB-INF\lib\xml-commons-resolver-1.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\xmldb-api-20030701.jar
Adding jar: .\build\webapp\WEB-INF\lib\xmldb-common-20030701.jar
Adding jar: .\build\webapp\WEB-INF\lib\xmldb-xupdate-20040205.jar
Adding jar: .\build\webapp\WEB-INF\lib\xmlrpc-1.1.jar
Adding jar: .\build\webapp\WEB-INF\lib\xreporter-expression-20040701.jar
-------------------- Executing -----------------
Main Class: org.apache.cocoon.Main
------------------------------------------------------------------------
cocoon 2.1.8
Copyright (c) 1999-2005 Apache Software Foundation. All rights reserved.
------------------------------------------------------------------------


DEBUG   2005-12-12 13:50:09.549 [        ] (): Getting handle to context directo
ry 'C:\Server\cocoon-2.1.8\build\webapp'
DEBUG   2005-12-12 13:50:09.599 [        ] (): Getting handle to working directo
ry 'build/work'
DEBUG   2005-12-12 13:50:09.720 [        ] (): Added new LogTargetFactory of typ
e cocoon
DEBUG   2005-12-12 13:50:09.730 [        ] (): Added new LogTargetFactory of typ
e servlet
DEBUG   2005-12-12 13:50:09.730 [        ] (): Added new LogTargetFactory of typ
e stream
DEBUG   2005-12-12 13:50:09.780 [        ] (): Added new LogTarget of id main
DEBUG   2005-12-12 13:50:09.780 [        ] (): Added new LogTarget of id depreca
tion
FATAL_E 2005-12-12 13:50:09.780 [        ] (): Exception caught
org.apache.avalon.framework.configuration.ConfigurationException: Cannot find Se
rvletContext object in application context
        at org.apache.avalon.excalibur.logger.factory.ServletTargetFactory.creat
eTarget(ServletTargetFactory.java:85)
        at org.apache.avalon.excalibur.logger.DefaultLogTargetManager.configure(
DefaultLogTargetManager.java:92)
        at org.apache.avalon.framework.container.ContainerUtil.configure(Contain
erUtil.java:201)
        at org.apache.avalon.excalibur.logger.LogKitLoggerManager.setupTargetMan
ager(LogKitLoggerManager.java:457)
        at org.apache.avalon.excalibur.logger.LogKitLoggerManager.configure(LogK
itLoggerManager.java:403)
        at org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:14
3)
        at org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:98)
        at org.apache.cocoon.Main.main(Main.java:320)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at Loader.invokeMain(Unknown Source)
        at Loader.run(Unknown Source)
        at Loader.main(Unknown Source)
Caused by: org.apache.avalon.framework.context.ContextException: Unable to resol
ve context key: servlet-context
        at org.apache.avalon.framework.context.DefaultContext.get(DefaultContext
.java:118)
        at org.apache.avalon.framework.context.DefaultContext.get(DefaultContext
.java:121)
        at org.apache.avalon.excalibur.logger.factory.ServletTargetFactory.creat
eTarget(ServletTargetFactory.java:81)
        ... 14 more
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at Loader.invokeMain(Unknown Source)
        at Loader.run(Unknown Source)
        at Loader.main(Unknown Source)
Caused by: org.apache.avalon.framework.configuration.ConfigurationException: Can
not find ServletContext object in application context
        at org.apache.avalon.excalibur.logger.factory.ServletTargetFactory.creat
eTarget(ServletTargetFactory.java:85)
        at org.apache.avalon.excalibur.logger.DefaultLogTargetManager.configure(
DefaultLogTargetManager.java:92)
        at org.apache.avalon.framework.container.ContainerUtil.configure(Contain
erUtil.java:201)
        at org.apache.avalon.excalibur.logger.LogKitLoggerManager.setupTargetMan
ager(LogKitLoggerManager.java:457)
        at org.apache.avalon.excalibur.logger.LogKitLoggerManager.configure(LogK
itLoggerManager.java:403)
        at org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:14
3)
        at org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:98)
        at org.apache.cocoon.Main.main(Main.java:320)
        ... 7 more
Caused by: org.apache.avalon.framework.context.ContextException: Unable to resol
ve context key: servlet-context
        at org.apache.avalon.framework.context.DefaultContext.get(DefaultContext
.java:118)
        at org.apache.avalon.framework.context.DefaultContext.get(DefaultContext
.java:121)
        at org.apache.avalon.excalibur.logger.factory.ServletTargetFactory.creat
eTarget(ServletTargetFactory.java:81)
        ... 14 more

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


Mime
View raw message