Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 82258 invoked from network); 20 Oct 2003 18:09:55 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 20 Oct 2003 18:09:55 -0000 Received: (qmail 15721 invoked by uid 500); 20 Oct 2003 18:09:39 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 15355 invoked by uid 500); 20 Oct 2003 18:09:36 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 15338 invoked from network); 20 Oct 2003 18:09:36 -0000 Received: from unknown (HELO hyperion.site5.com) (64.21.152.2) by daedalus.apache.org with SMTP; 20 Oct 2003 18:09:36 -0000 Received: from evans-258-3.berkeley.edu ([128.32.10.220]) by hyperion.site5.com with esmtp (Exim 4.24) id 1ABeTC-0001CM-3x for users@cocoon.apache.org; Mon, 20 Oct 2003 14:09:30 -0400 User-Agent: Microsoft-Entourage/10.1.1.2418 Date: Mon, 20 Oct 2003 11:09:16 -0700 Subject: Re: Command line interface From: Justin Makeig To: Message-ID: In-Reply-To: <3F9232A3.2070202@upaya.co.uk> Mime-version: 1.0 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hyperion.site5.com X-AntiAbuse: Original Domain - cocoon.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - makeig.com X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Argh. After struggling with cocoon.sh and Upayavira's helpful email, I stil= l can't get the CLI to work. I just need to push the result of http://localhost:8080/toc into the the file /usr/local/jakarta-tomcat-4.1.27/webapps/cocoon/cde/xml/toc.xml. I've attached the relevant configuration below. Any help would be much appreciated. Thanks. - Justin Tomcat =3D=3D=3D=3D=3D=3D /usr/local/jakarta-tomcat-4.1.27/webapps/cocoon cde/ sitemap.xmap cli.xconf sitemap.xmap -> offloads logic to cde/sitemap.xmap WEB-INF/ CLI script =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D /usr/local/cocoon/cocoon-2.1.1 cocoon.sh cli.xconf =3D=3D=3D=3D=3D=3D=3D=3D=3D =20 /usr/local/jakarta-tomcat-4.1.27/webapps/cocoon /usr/local/jakarta-tomcat-4.1.27/webapps/cocoon/WEB-INF/cocoon= . xconf build/work =20 */* =20 command line =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ./cocoon.sh cli -x /usr/local/jakarta-tomcat-4.1.27/webapps/cocoon/cli.xcon= f Excpetions =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Exception in thread "main" java.lang.reflect.InvocationTargetException ... Caused by: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest On 10/18/03 11:43 PM, "Upayavira" wrote: > Justin, >=20 >> I've read the documentation and the Wiki as well the most recent CLI thr= eads >> in July and earlier this month. However, I can't seem to figure out how = to >> configure the cli.xconf for my webapp. >>=20 >> The site I'm building is dynamic, using Cocoon 2.1.1 to transform aggreg= ated >> XML docs at run-time. Part of this aggregation is a static table of cont= ents >> (TOC) document that is generated at design-time with a transform on Coco= on's >> directory generator output. >>=20 >> >> >> >> >> >> >> >>=20 >> I request http://server:8080/toc to generate the XML in my browser. By h= and, >> I paste the resulting XML into a file called toc.xml. This is a mind >> numbingly arduous process that I hoped to automate in the deployment pro= cess >> with Ant. However, the first step is generating toc.xml with Cocoon's >> command line interface. Because I need to use the directory generator, I >> don't see a way around this. >> =20 >>=20 > Shouldn't be a problem. >=20 >> To install Cocoon 2.1.1, I built a minimalist WAR that I deployed in Tom= cat. >> This, of course, doesn=B9t include all of the goodies in the build directo= ry >> of the installation directory. Where do I put my custom cli.xconf file? >>=20 > Anywhere. But it must be referred to via an absolute path, or relative > to the cocoon.sh file. >=20 >> In >> my cocoon-2.1.2/build directory or in my tomcat/webapps/cocoon directory= ? >> Also, given my path confusion, I'm not sure how to set the = , >>=20 > The root of your webapp - the folder containing your sitemap.xmap and > your WEB-INF folder. >=20 >> ,=20 >>=20 > Path, from your config directory (or absolute) to your cocoon.xconf > (optional) >=20 >> ,=20 >>=20 > A working directory, can be anywhere. >=20 >> and elements. >>=20 > The folder where you want your files written (if not specified in a > node @dest attribute. Therefore not relevent in your case. >=20 >> Finally, is this the >> correct for generating the URL http://server:8080/toc into the fil= e >> site/xml/toc.xml within tomcat/webapps/cocoon? >>=20 >> >> =20 >>=20 > Yup. That looks fine. >=20 >> Here are the interesting parts of my cli.xconf (currently located in >> tomcat/webapps/cocoon/): >>=20 >> >> /usr/local/jakarta-tomcat-4.1.27/webapps/cocoon/cde >> >> >> /usr/local/jakarta-tomcat-4.1.27/webapps/cocoon/WEB-INF/cocoon.xconf >> >> build/work >> >> /usr/local/jakarta-tomcat-4.1.27/webapps/cocoon/cde/xml >> >>=20 >> ... >> =20 >>=20 > Your config file path is missing 'cde' I think. >=20 >> >>=20 >> Run from the commandline using >>=20 >> ./cocoon.sh cli -x /usr/local/jakarta-tomcat-4.1.27/webapps/cocoon/cli.x= conf >> =20 >>=20 > The cocoon.sh script is configured to work off a built Cocoon with the > webapp in build/webapp. You can try setting COCOON_HOME environment > variable to the path to your webapp (same as context-dir) before running = it. >=20 >> I'm getting the error >>=20 >> Cannot find CatalogManager.properties >>=20 > You can ignore that one. Now fixed in latest Cocoon in CVS. >=20 >> Exception in thread "main" java.lang.reflect.InvocationTargetException >> ... >> Caused by: java.lang.NoClassDefFoundError: >> javax/servlet/http/HttpServletRequest >> =20 >>=20 > You need to have servlet2_X.jar in your classpath, which is defined in > cocoon.sh. >=20 >> I'm very confused. Any help would be much appreciated. >> =20 >>=20 > Does that help? >=20 > Regards, Upayavira >=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org >=20 >=20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org