cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "alan johnson" <alanmace...@gmail.com>
Subject Problems using the CLI
Date Mon, 21 Aug 2006 10:52:10 GMT
Hello everyone,

I'm having some problems using the CLI utility for cocoon,

Im getting the following stack trace but have no idea how to resolve the
issue!

I am using the  sample xconf file provided on
http://cocoon.apache.org/2.1/userdocs/offline/configuration.html, I already
have cocoon built and running,

Any help is greatly appreciated,

Alan.

DEBUG   2006-08-21 11:37:49.078 [        ] (): Getting handle to context
directory 'build/webapp/xconf'
DEBUG   2006-08-21 11:37:49.140 [        ] (): Getting handle to working
directory 'build/work'
DEBUG   2006-08-21 11:37:49.343 [        ] (): Added new LogTargetFactory of
type cocoon
DEBUG   2006-08-21 11:37:49.343 [        ] (): Added new LogTargetFactory of
type servlet
DEBUG   2006-08-21 11:37:49.390 [        ] (): Added new LogTargetFactory of
type stream
DEBUG   2006-08-21 11:37:49.484 [        ] (): Added new LogTarget of id
main
DEBUG   2006-08-21 11:37:49.484 [        ] (): Added new LogTarget of id
deprecation
FATAL_E 2006-08-21 11:37:49.499 [        ] (): 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

Mime
View raw message