cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Geissler" <M.Geiss...@wika.de>
Subject Antw: Cocoon CLI
Date Tue, 25 Jul 2006 06:08:03 GMT
Hello Yves,

have you looked at 
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=114439702920763&w=2

I think its mainly the servlet.jar file you have to copy.

Regards Martin


>>> yves.vindevogel@implements.be Montag, 24. Juli 2006 23:19 >>>
Hi,

I'm trying to store a page with :
./cocoon.sh cli -x ./cli.xconf http://127.0.0.1/index.html -d /tmp

And I get this error:


./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-07-24 23:03:01.195 [        ] (): Getting handle to
context 
directory 'build/webapp'
DEBUG   2006-07-24 23:03:01.239 [        ] (): Getting handle to
working 
directory 'build/work'
DEBUG   2006-07-24 23:03:01.349 [        ] (): Added new 
LogTargetFactory of type cocoon
DEBUG   2006-07-24 23:03:01.352 [        ] (): Added new 
LogTargetFactory of type servlet
DEBUG   2006-07-24 23:03:01.354 [        ] (): Added new 
LogTargetFactory of type stream
DEBUG   2006-07-24 23:03:01.389 [        ] (): Added new LogTarget of
id 
main
DEBUG   2006-07-24 23:03:01.390 [        ] (): Added new LogTarget of
id 
deprecation
FATAL_E 2006-07-24 23:03:01.395 [        ] (): Exception caught
org.apache.avalon.framework.configuration.ConfigurationException:
Cannot 
find ServletContext object in application context
        at 
org.apache.avalon.excalibur.logger.factory.ServletTargetFactory.createTarget(ServletTargetFactory.java:85)
        at 
org.apache.avalon.excalibur.logger.DefaultLogTargetManager.configure(DefaultLogTargetManager.java:92)
        at 
org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:201)
        at 
org.apache.avalon.excalibur.logger.LogKitLoggerManager.setupTargetManager(LogKitLoggerManager.java:457)
        at 
org.apache.avalon.excalibur.logger.LogKitLoggerManager.configure(LogKitLoggerManager.java:403)
        at 
org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:143)
        at
org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:99)
        at org.apache.cocoon.Main.main(Main.java:319)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        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 resolve 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.createTarget(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(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at Loader.invokeMain(Unknown Source)
        at Loader.run(Unknown Source)
        at Loader.main(Unknown Source)
Caused by: 
org.apache.avalon.framework.configuration.ConfigurationException:
Cannot 
find ServletContext object in application context
        at 
org.apache.avalon.excalibur.logger.factory.ServletTargetFactory.createTarget(ServletTargetFactory.java:85)
        at 
org.apache.avalon.excalibur.logger.DefaultLogTargetManager.configure(DefaultLogTargetManager.java:92)
        at 
org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:201)
        at 
org.apache.avalon.excalibur.logger.LogKitLoggerManager.setupTargetManager(LogKitLoggerManager.java:457)
        at 
org.apache.avalon.excalibur.logger.LogKitLoggerManager.configure(LogKitLoggerManager.java:403)
        at 
org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:143)
        at
org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:99)
        at org.apache.cocoon.Main.main(Main.java:319)
        ... 7 more
Caused by: org.apache.avalon.framework.context.ContextException: Unable

to resolve 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.createTarget(ServletTargetFactory.java:81)
        ... 14 more



What am I forgetting ?

Regards
Yves




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


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


Mime
View raw message