You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Michael Wechner <mi...@wyona.com> on 2006/03/11 08:37:39 UTC
1.4-dev: export CLI doesn't seem to work anymore
Hi
I receive the following exception when I execute ./build.sh export
-Dpublication=default
....
export:
Copying 36 files to
/home/michi/src/apache/lenya/trunk/build/lenya/webapp/lenya/pubs/default/content/live------------------------------------------------------------------------
cocoon 2.1.9-dev
Copyright (c) 1999-2005 Apache Software Foundation. All rights reserved.
------------------------------------------------------------------------
DEBUG 2006-03-11 08:34:50.953 [ ] (): Getting handle to context
directory 'build/lenya/webapp'
DEBUG 2006-03-11 08:34:50.980 [ ] (): Getting handle to working
directory 'build/lenya/work'
DEBUG 2006-03-11 08:34:51.818 [ ] (): Added new
LogTargetFactory of type cocoon
DEBUG 2006-03-11 08:34:51.819 [ ] (): Added new
LogTargetFactory of type servlet
DEBUG 2006-03-11 08:34:51.839 [ ] (): Added new
LogTargetFactory of type stream
DEBUG 2006-03-11 08:34:51.899 [ ] (): Added new LogTarget of id
main
DEBUG 2006-03-11 08:34:51.900 [ ] (): Added new LogTarget of id
deprecation
FATAL_E 2006-03-11 08:34:51.924 [ ] (): 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)
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)
... 7 more
Exception in thread "main"
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)
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)
... 7 more
BUILD FAILED
/home/michi/src/apache/lenya/trunk/src/targets/export-build.xml:44: Java
returned: 1
Any idea what might be wrong?
Thanks
Michi
--
Michael Wechner
Wyona - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
michael.wechner@wyona.com michi@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Re: 1.4-dev: export CLI doesn't seem to work anymore
Posted by Thorsten Scherler <th...@apache.org>.
El sáb, 11-03-2006 a las 08:37 +0100, Michael Wechner escribió:
> org.apache.avalon.framework.configuration.ConfigurationException:
> Cannot
> find ServletContext object in application context
That is just a wild guess and a shot in the dark.
Can it be that the cli is not aware of the ServletContext (context://)?
salu2
--
thorsten
"Together we stand, divided we fall!"
Hey you (Pink Floyd)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org