You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by service <se...@allopoiesis.de> on 2005/09/01 17:56:52 UTC

CLI - command line interface

Hello,

 

cocoon 2.1.7  // java 1.4.2 // tomcat 5.0.28 // win xp 5.1.26

 

I try to use the default cocoon.bat and cli.xconf to export content ...
unfortunately not really successful. Starting point is the clean compiled
cocoon 2.1.7. 

 

Cocoon runs smoothly in the tomcat servlet container.

 

I've already checked http://cocoon.apache.org/2.1/userdocs/offline/cli.html

But couldn't get hints how to resolve the issue.

 

Any ideas, hints or directions where to go to?

 

Many thanks in advance, 

Markus

 

 

 

Here is what I get:

 

>>-------------------- Executing -----------------

>>Main Class: org.apache.cocoon.Main

>>------------------------------------------------------------------------ 

>>cocoon 2.1.7

>>Copyright (c) 1999-2005 Apache Software Foundation. All rights reserved.

>>------------------------------------------------------------------------ 

>>trying to register database

>>trying to register database

 

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:324)

      at Loader.invokeMain(Unknown Source)

      at Loader.run(Unknown Source)

      at Loader.main(Unknown Source)

Caused by: java.lang.NoClassDefFoundError:
javax/servlet/http/HttpSessionBindingListener

      at java.lang.ClassLoader.defineClass0(Native Method)

      at java.lang.ClassLoader.defineClass(ClassLoader.java:539)

      at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)

      at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)

      at java.net.URLClassLoader.access$100(URLClassLoader.java:55)

      at java.net.URLClassLoader$1.run(URLClassLoader.java:194)

      at java.security.AccessController.doPrivileged(Native Method)

      at java.net.URLClassLoader.findClass(URLClassLoader.java:187)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:289)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:235)

      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

      at
org.apache.cocoon.components.flow.ContinuationsManagerImpl.configure(Continu
ationsManagerImpl.java:155)

      at
org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.
java:240)

      at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:269)

      at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
ThreadSafeComponentHandler.java:108)

      at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(E
xcaliburComponentManager.java:522)

      at
org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonCompone
ntManager.java:561)

      at
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil
.java:283)

      at org.apache.cocoon.Cocoon.initialize(Cocoon.java:282)

      at
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil
.java:283)

      at
org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:171)

      at org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:98)

      at org.apache.cocoon.Main.main(Main.java:320)

      ... 7 more

Exception in thread "main"

 


Re: AW: CLI - command line interface

Posted by Joerg Heinicke <jo...@gmx.de>.
On 01.09.2005 18:38, service wrote:

> Thank you Jeroen, 
> 
> 
>>It looks to me that you are missing the servletapi jar file.
>>Name should be something like: servletapi-2.3.jar
> 
> 
> Yes, it is located in the tomcat common/lib directory: servlet-api.jar.
> 
> But why is it relevant for the CLI? I thought it would not yuse Tomcat or
> Jetty ...

That's correct. But some blocks ask for the servlet stuff. If they are 
not excluded, the servlet.jar is needed.

Joerg

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


AW: CLI - command line interface

Posted by service <se...@allopoiesis.de>.
Thank you Jeroen, 

> It looks to me that you are missing the servletapi jar file.
> Name should be something like: servletapi-2.3.jar

Yes, it is located in the tomcat common/lib directory: servlet-api.jar.

But why is it relevant for the CLI? I thought it would not yuse Tomcat or
Jetty ...

Cheers, Markus



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


Re: CLI - command line interface

Posted by Jeroen Reijn <j....@hippo.nl>.
Hi

It looks to me that you are missing the servletapi jar file.
Name should be something like: servletapi-2.3.jar

Can you find it somewhere in your Tomcat lib directory?

Greetz,

Jeroen

service wrote:
> Hello,
> 
>  
> 
> cocoon 2.1.7  // java 1.4.2 // tomcat 5.0.28 // win xp 5.1.26
> 
>  
> 
> I try to use the default cocoon.bat and cli.xconf to export content ... 
> unfortunately not really successful. Starting point is the clean 
> compiled cocoon 2.1.7.
> 
>  
> 
> Cocoon runs smoothly in the tomcat servlet container.
> 
>  
> 
> I've already checked http://cocoon.apache.org/2.1/userdocs/offline/cli.html
> 
> But couldn't get hints how to resolve the issue.
> 
>  
> 
> Any ideas, hints or directions where to go to?
> 
>  
> 
> Many thanks in advance,
> 
> Markus
> 
>  
> 
>  
> 
>  
> 
> Here is what I get:
> 
>  
> 
>> >-------------------- Executing -----------------
> 
>> >Main Class: org.apache.cocoon.Main
> 
>> >------------------------------------------------------------------------
> 
>> >cocoon 2.1.7
> 
>> >Copyright (c) 1999-2005 Apache Software Foundation. All rights reserved.
> 
>> >------------------------------------------------------------------------
> 
>> >trying to register database
> 
>> >trying to register database
> 
>  
> 
> 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:324)
> 
>       at Loader.invokeMain(Unknown Source)
> 
>       at Loader.run(Unknown Source)
> 
>       at Loader.main(Unknown Source)
> 
> Caused by: java.lang.NoClassDefFoundError: 
> javax/servlet/http/HttpSessionBindingListener
> 
>       at java.lang.ClassLoader.defineClass0(Native Method)
> 
>       at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
> 
>       at 
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
> 
>       at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> 
>       at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> 
>       at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> 
>       at java.security.AccessController.doPrivileged(Native Method)
> 
>       at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> 
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
> 
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> 
>       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
> 
>       at 
> org.apache.cocoon.components.flow.ContinuationsManagerImpl.configure(ContinuationsManagerImpl.java:155)
> 
>       at 
> org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:240)
> 
>       at 
> org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:269)
> 
>       at 
> org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:108)
> 
>       at 
> org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:522)
> 
>       at 
> org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:561)
> 
>       at 
> org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:283)
> 
>       at org.apache.cocoon.Cocoon.initialize(Cocoon.java:282)
> 
>       at 
> org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:283)
> 
>       at 
> org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:171)
> 
>       at org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:98)
> 
>       at org.apache.cocoon.Main.main(Main.java:320)
> 
>       ... 7 more
> 
> Exception in thread "main"
> 
>  
> 

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


AW: CLI - command line interface

Posted by service <se...@allopoiesis.de>.
> >
> See http://wiki.apache.org/cocoon/CommandLine
> Down near the bottom is a note on the error you're seeing.
> 
> In short, copy cocoon-2.1.7/lib/core to
> cocoon-2.1.7/build/webapp/WEB-INF/lib (actual filenames may vary).
> Lars

Thank you, thank you, thank you ... that was it. 
Seriously, it cost me more than one day. I will check the wiki more
thoroughly next time.

Cheers, Markus



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


Re: CLI - command line interface

Posted by Lars Huttar <la...@sil.org>.
service wrote:

> Hello,
>
>  
>
> cocoon 2.1.7  // java 1.4.2 // tomcat 5.0.28 // win xp 5.1.26
>
>  
>
> I try to use the default cocoon.bat and cli.xconf to export content 
> ... unfortunately not really successful. Starting point is the clean 
> compiled cocoon 2.1.7.
>
>  
>
> Cocoon runs smoothly in the tomcat servlet container.
>
>  
>
> I've already checked 
> http://cocoon.apache.org/2.1/userdocs/offline/cli.html
>
> But couldn't get hints how to resolve the issue.
>
See http://wiki.apache.org/cocoon/CommandLine
Down near the bottom is a note on the error you're seeing.

In short, copy cocoon-2.1.7/lib/core to 
cocoon-2.1.7/build/webapp/WEB-INF/lib (actual filenames may vary).
Lars

>  
>
> Any ideas, hints or directions where to go to?
>
>  
>
> Many thanks in advance,
>
> Markus
>
>  
>
>  
>
>  
>
> Here is what I get:
>
>  
>
>>>-------------------- Executing -----------------
>
>>>Main Class: org.apache.cocoon.Main
>
>>>------------------------------------------------------------------------
>
>>>cocoon 2.1.7
>
>>>Copyright (c) 1999-2005 Apache Software Foundation. All rights reserved.
>
>>>------------------------------------------------------------------------
>
>>>trying to register database
>
>>>trying to register database
>
>  
>
> 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:324)
>
>       at Loader.invokeMain(Unknown Source)
>
>       at Loader.run(Unknown Source)
>
>       at Loader.main(Unknown Source)
>
> Caused by: java.lang.NoClassDefFoundError: 
> javax/servlet/http/HttpSessionBindingListener
>
>       at java.lang.ClassLoader.defineClass0(Native Method)
>
>       at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
>
>       at 
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
>
>       at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
>
>       at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
>
>       at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
>
>       at java.security.AccessController.doPrivileged(Native Method)
>
>       at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
>
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
>
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>
>       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
>
>       at 
> org.apache.cocoon.components.flow.ContinuationsManagerImpl.configure(ContinuationsManagerImpl.java:155)
>
>       at 
> org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:240)
>
>       at 
> org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:269)
>
>       at 
> org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:108)
>
>       at 
> org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:522)
>
>       at 
> org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:561)
>
>       at 
> org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:283)
>
>       at org.apache.cocoon.Cocoon.initialize(Cocoon.java:282)
>
>       at 
> org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:283)
>
>       at 
> org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:171)
>
>       at org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:98)
>
>       at org.apache.cocoon.Main.main(Main.java:320)
>
>       ... 7 more
>
> Exception in thread "main"
>
>  
>


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