cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yves.vindevo...@telenet.be
Subject Re: Antw: Cocoon CLI
Date Tue, 25 Jul 2006 07:22:33 GMT
When I disable the logging in the cli.xconf file, I get passed this problem, but I run into
this one ...

C:\Program Files\cocoon-2.1.9>cocoon cli -x .\cli.xconf -d c:\temp http://127.0.
0.1:8888/index.html
cocoon.bat: using .\build\webapp as the webapp directory
------------------------------------------------------------------------
cocoon 2.1.9
Copyright (c) 1999-2006 Apache Software Foundation. All rights reserved.
------------------------------------------------------------------------


trying to register database
trying to register database
 INFO [main] (QuartzScheduler.java:195) - Quartz Scheduler v.1.5.1 created.
 INFO [main] (RAMJobStore.java:138) - RAMJobStore initialized.
 INFO [main] (DirectSchedulerFactory.java:331) - Quartz scheduler 'Cocoon
 INFO [main] (DirectSchedulerFactory.java:333) - Quartz scheduler version: 1.5.1

 INFO [main] (QuartzScheduler.java:400) - Scheduler Cocoon_$_Tue_Jul_25_09:19:42
_CEST_2006 started.
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:585)
        at Loader.invokeMain(Unknown Source)
        at Loader.run(Unknown Source)
        at Loader.main(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest
Wrapper
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
4)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
        at java.lang.Class.getConstructor0(Class.java:2640)
        at java.lang.Class.newInstance0(Class.java:321)
        at java.lang.Class.newInstance(Class.java:303)
        at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInst
ance(DefaultComponentFactory.java:195)
        at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.init
ialize(ThreadSafeComponentHandler.java:108)
        at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addC
omponent(ExcaliburComponentSelector.java:705)
        at org.apache.cocoon.components.ExtendedComponentSelector.configure(Exte
ndedComponentSelector.java:228)
        at org.apache.avalon.framework.container.ContainerUtil.configure(Contain
erUtil.java:201)
        at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInst
ance(DefaultComponentFactory.java:289)
        at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.init
ialize(ThreadSafeComponentHandler.java:108)
        at org.apache.avalon.excalibur.component.ExcaliburComponentManager.looku
p(ExcaliburComponentManager.java:278)
        at org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComp
onentManager.java:335)
        at org.apache.avalon.framework.service.WrapperServiceManager.lookup(Wrap
perServiceManager.java:68)
        at org.apache.cocoon.portal.impl.PortalManagerImpl.service(PortalManager
Impl.java:85)
        at org.apache.avalon.framework.container.ContainerUtil.service(Container
Util.java:143)
        at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInst
ance(DefaultComponentFactory.java:271)
        at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.init
ialize(ThreadSafeComponentHandler.java:108)
        at org.apache.avalon.excalibur.component.ExcaliburComponentManager.initi
alize(ExcaliburComponentManager.java:524)
        at org.apache.cocoon.components.CocoonComponentManager.initialize(Cocoon
ComponentManager.java:566)
        at org.apache.avalon.framework.container.ContainerUtil.initialize(Contai
nerUtil.java:244)
        at org.apache.cocoon.Cocoon.initialize(Cocoon.java:342)
        at org.apache.avalon.framework.container.ContainerUtil.initialize(Contai
nerUtil.java:244)
        at org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:17
6)
        at org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:99)
        at org.apache.cocoon.Main.main(Main.java:319)
        ... 7 more


>----- Oorspronkelijk bericht -----
>Van: Martin Geissler [mailto:M.Geissler@wika.de]
>Verzonden: dinsdag, juli 25, 2006 08:08 AM
>Aan: users@cocoon.apache.org
>Onderwerp: Antw: Cocoon CLI
>
>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
>
>
>



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


Mime
View raw message