You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jean-Claude Moissinac <jc...@gmail.com> on 2005/05/12 17:46:31 UTC

Using Cocoon as a command line tool

Hello

I'm trying to use Cocoon as a command line tool.
I've read
http://cocoon.apache.org/2.1/userdocs/offline/cli.html
and the related pages.

I've found a cli.xconf file in the root of my installation.
It is different from the one in the cli.html page.

I've tried 
- cli.xconf in the distribution
- an xconf file copied from the cli.html page
- some personal xconf files derived from the previous

My attempt are with command like:
cocoon.bat cli -x cli.xconf

All the attempt fails.
After a lot of trace in the window, I get :
trying to register database
trying to register database
Cannot find CatalogManager.properties
Exception in the thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMetodAccessorImpl.invoke0(Native Method)
...

and the process stops.
(I'm working with Cocoon 2.1.7 on Windows XP; this install is working)

I don't find what is wrong.
Is someone able to help?

Thank's in advance
-- 
-- 
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: moissinac@enst.fr
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

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


Re: Using Cocoon as a command line tool

Posted by Jean-Claude Moissinac <jc...@gmail.com>.
Thank's for your help but
>    "lib\optional\servlet-2_3.jar"
doesn't exist in my standard installation of cocoon 2.1.7
I will try to get it elsewhere.

Best regards

Jean-Claude

On 5/13/05, Simon Mieth <si...@gmx.de> wrote:
> On Thu, 12 May 2005 17:46:31 +0200
> Jean-Claude Moissinac <jc...@gmail.com> wrote:
> 
> > Hello
> >
> > I'm trying to use Cocoon as a command line tool.
> > I've read
> > http://cocoon.apache.org/2.1/userdocs/offline/cli.html
> > and the related pages.
> >
> > I've found a cli.xconf file in the root of my installation.
> > It is different from the one in the cli.html page.
> >
> > I've tried
> > - cli.xconf in the distribution
> > - an xconf file copied from the cli.html page
> > - some personal xconf files derived from the previous
> >
> > My attempt are with command like:
> > cocoon.bat cli -x cli.xconf
> >
> > All the attempt fails.
> > After a lot of trace in the window, I get :
> > trying to register database
> > trying to register database
> > Cannot find CatalogManager.properties
> > Exception in the thread "main"
> > java.lang.reflect.InvocationTargetException at
> > sun.reflect.NativeMetodAccessorImpl.invoke0(Native Method) ...
> >
> > and the process stops.
> > (I'm working with Cocoon 2.1.7 on Windows XP; this install is working)
> >
> > I don't find what is wrong.
> > Is someone able to help?
> >
> Hi Jean-Claude,
> 
> * copy
>    "lib\optional\servlet-2_3.jar"
>    to
>    "build\webapp\WEB-INF\lib"
> 
>     inside your cocoon folder.
> 
> It should work now.  Maybe the information is missing on
> the pages you read, but it is needed.
> 
> Best Regards,
> 
> Simon
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 


-- 
-- 
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: moissinac@enst.fr
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

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


Re: Using Cocoon as a command line tool

Posted by Upayavira <uv...@upaya.co.uk>.
rebuild without the jms block.

Upayavira


Jean-Claude Moissinac wrote:

> Now, I'm going forward, but I stop after this error:
> ...
> - For the jms block to work you must install and start a JMS server and place th
> e client jar in WEB-INF/lib.
> - The default server, OpenJMS is configured in cocoon.xconf but is not bundled w
> ith Cocoon.
> 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)
> ...
> 
> I need to identify the OpenJMS  jar, I suppose.
> 
> Jean-Claude
> On 5/13/05, Simon Mieth <si...@gmx.de> wrote:
> 
>>On Fri, 13 May 2005 14:47:50 +0200
>>Jean-Claude Moissinac <jc...@gmail.com> wrote:
>>
>>
>>>I doesn't find a servlet jar in lib/Optional
>>>but I find these:
>>>servlet_2_2.jar in lib/core
>>>servlet-2.3.jar in tools/jetty/lib
>>>Does one of these do the trick?
>>
>>Hi,
>>
>>yes take one of these jars.
>>
>>Best Regards,
>>
>>Simon
>>
>>---------------------------------------------------------------------
>>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


Re: Using Cocoon as a command line tool

Posted by Jean-Claude Moissinac <jc...@gmail.com>.
Now, I'm going forward, but I stop after this error:
...
- For the jms block to work you must install and start a JMS server and place th
e client jar in WEB-INF/lib.
- The default server, OpenJMS is configured in cocoon.xconf but is not bundled w
ith Cocoon.
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)
...

I need to identify the OpenJMS  jar, I suppose.

Jean-Claude
On 5/13/05, Simon Mieth <si...@gmx.de> wrote:
> On Fri, 13 May 2005 14:47:50 +0200
> Jean-Claude Moissinac <jc...@gmail.com> wrote:
> 
> > I doesn't find a servlet jar in lib/Optional
> > but I find these:
> > servlet_2_2.jar in lib/core
> > servlet-2.3.jar in tools/jetty/lib
> > Does one of these do the trick?
> 
> Hi,
> 
> yes take one of these jars.
> 
> Best Regards,
> 
> Simon
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 


-- 
-- 
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: moissinac@enst.fr
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

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


Re: Using Cocoon as a command line tool

Posted by Simon Mieth <si...@gmx.de>.
On Fri, 13 May 2005 14:47:50 +0200
Jean-Claude Moissinac <jc...@gmail.com> wrote:

> I doesn't find a servlet jar in lib/Optional
> but I find these:
> servlet_2_2.jar in lib/core
> servlet-2.3.jar in tools/jetty/lib
> Does one of these do the trick?

Hi,

yes take one of these jars.  

Best Regards,

Simon

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


Re: Using Cocoon as a command line tool

Posted by Jean-Claude Moissinac <jc...@gmail.com>.
I doesn't find a servlet jar in lib/Optional
but I find these:
servlet_2_2.jar in lib/core
servlet-2.3.jar in tools/jetty/lib
Does one of these do the trick?

Jean-Claude

On 5/13/05, Simon Mieth <si...@gmx.de> wrote:
> On Thu, 12 May 2005 17:46:31 +0200
> Jean-Claude Moissinac <jc...@gmail.com> wrote:
> 
> > Hello
> >
> > I'm trying to use Cocoon as a command line tool.
> > I've read
> > http://cocoon.apache.org/2.1/userdocs/offline/cli.html
> > and the related pages.
> >
> > I've found a cli.xconf file in the root of my installation.
> > It is different from the one in the cli.html page.
> >
> > I've tried
> > - cli.xconf in the distribution
> > - an xconf file copied from the cli.html page
> > - some personal xconf files derived from the previous
> >
> > My attempt are with command like:
> > cocoon.bat cli -x cli.xconf
> >
> > All the attempt fails.
> > After a lot of trace in the window, I get :
> > trying to register database
> > trying to register database
> > Cannot find CatalogManager.properties
> > Exception in the thread "main"
> > java.lang.reflect.InvocationTargetException at
> > sun.reflect.NativeMetodAccessorImpl.invoke0(Native Method) ...
> >
> > and the process stops.
> > (I'm working with Cocoon 2.1.7 on Windows XP; this install is working)
> >
> > I don't find what is wrong.
> > Is someone able to help?
> >
> Hi Jean-Claude,
> 
> * copy
>    "lib\optional\servlet-2_3.jar"
>    to
>    "build\webapp\WEB-INF\lib"
> 
>     inside your cocoon folder.
> 
> It should work now.  Maybe the information is missing on
> the pages you read, but it is needed.
> 
> Best Regards,
> 
> Simon
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 


-- 
-- 
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: moissinac@enst.fr
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm

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


Re: Using Cocoon as a command line tool

Posted by Simon Mieth <si...@gmx.de>.
On Thu, 12 May 2005 17:46:31 +0200
Jean-Claude Moissinac <jc...@gmail.com> wrote:

> Hello
> 
> I'm trying to use Cocoon as a command line tool.
> I've read
> http://cocoon.apache.org/2.1/userdocs/offline/cli.html
> and the related pages.
> 
> I've found a cli.xconf file in the root of my installation.
> It is different from the one in the cli.html page.
> 
> I've tried 
> - cli.xconf in the distribution
> - an xconf file copied from the cli.html page
> - some personal xconf files derived from the previous
> 
> My attempt are with command like:
> cocoon.bat cli -x cli.xconf
> 
> All the attempt fails.
> After a lot of trace in the window, I get :
> trying to register database
> trying to register database
> Cannot find CatalogManager.properties
> Exception in the thread "main"
> java.lang.reflect.InvocationTargetException at
> sun.reflect.NativeMetodAccessorImpl.invoke0(Native Method) ...
> 
> and the process stops.
> (I'm working with Cocoon 2.1.7 on Windows XP; this install is working)
> 
> I don't find what is wrong.
> Is someone able to help?
> 
Hi Jean-Claude,

* copy 
   "lib\optional\servlet-2_3.jar"
   to
   "build\webapp\WEB-INF\lib"
   
    inside your cocoon folder.

It should work now.  Maybe the information is missing on
the pages you read, but it is needed.

Best Regards,

Simon


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