Hello, as far as i know there is a bug with portlets and cli build your cocoon whithout portlets.
For some reason you have to copy the file servlet_2_2.jar from cocoon-home/ lib/optional to the folder cocoon-home/build/WEB-Inf/lib of your build. I also used the xml config code from the docs of the ant task in my cli.xkonf and it works. commented all original xml out and inserted the xml from the ant task xml code. Not shure why i dit it, but worked for me. build.xml for ant located in cocoon-home/build/ <?xml version="1.0"?> <project default="cocoon" basedir="."> <property name="cocoon.context" value="webapp"/> <path id="cocoon.classpath"> <dirset dir="${cocoon.context}/WEB-INF/classes"/> <fileset dir="${cocoon.context}/WEB-INF/lib" includes="*.jar"/> </path> <taskdef name="cocoon" classname="org.apache.cocoon.CocoonTask" classpathref="cocoon.classpath"/> <target name="cocoon"> <cocoon verbose="false" classpathref="cocoon.classpath" follow-links="false" precompile-only="false" confirm-extensions="false" context-dir="${cocoon.context}" config-file="WEB-INF/cocoon.xconf" work-dir="build/work" dest-dir="build/dest" default-filename="index.html" accept="*/*"> <broken-links type="xml" file="brokenlinks.xml" generate="false" extension=".error"/> <logging log-kit="${cocoon.context}/WEB-INF/logkit.xconf" logger="cli" level="DEBUG" /> <uris name="intranet" follow-links="false"> <uri type="append" src-prefix="" src="intranet/index.html" dest="build/dest/"/> <uri type="append" src-prefix="" src="intranet/kostenstellen/ksttree.xml" dest="build/dest/"/> <uri type="append" src-prefix="" src="intranet/organigramm/orgtree.xml" dest="build/dest/"/> <uri type="append" src-prefix="" src="intranet/personalstatistik/personalstatistik.xml" dest="build/dest/"/> <!--<uri type="append" src-prefix="" src="intranet/invest/zugang.xml" dest="build/dest/"/> <uri type="append" src-prefix="" src="intranet/invest/planistges.xml" dest="build/dest/"/> <uri type="append" src-prefix="" src="intranet/invest/best.xml" dest="build/dest/"/>--> <!--<uri type="append" src-prefix="" src="intranet/invest/bestand.xml" dest="build/dest/"/>--> <!--<uri type="append" src-prefix="" src="intranet/invest/kstpi.xml" dest="build/dest/"/>--> <!-- <uri type="append" src-prefix="" src="intranet/invest/plan.xml" dest="build/dest/"/>--> </uris> </cocoon> </target> <target name="clear"> <delete dir="build"/> </target> </project> Regards Martin >>> [EMAIL PROTECTED] Donnerstag, 4. März 2004 13:24:30 >>> i a fresh 2.1.4 installation without to touch anything just try to run cocoon cli -x cli.xconf i get an error about [portlet] i have try to test a cvs snapshot (yesterday night) with tha same result -- stavros ----- the stack trace ----- .. .. Opening database: C:\Server\2.1-production\2.1.4\build\webapp\WEB-INF\db\cocoondb HSQLDB server 1.7.1 is running Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly Thu Mar 04 14:14:42 EET 2004 Listening for connections ... ERROR 2004-03-04 14:14:43.816 [cli.mana] (): Could not set up Component for hint [ portlet] org.apache.avalon.framework.context.ContextException: Unable to resolve context key: servlet-config at org.apache.avalon.framework.context.DefaultContext.get(DefaultContext.java:157) at org.apache.avalon.framework.context.DefaultContext.get(DefaultContext.java:160) at org.apache.cocoon.components.ComponentContext.get(ComponentContext.java:144) at org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter.contextualize(PortletAdapter.java:109) at org.apache.avalon.framework.container.ContainerUtil.contextualize(ContainerUtil.java:154) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:281) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143) at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:738) at org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:268) at org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:239) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:305) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143) at org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:558) at org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:547) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:340) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282) at org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:186) at org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:132) at org.apache.cocoon.Main.main(Main.java:349) 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) ERROR 2004-03-04 14:14:43.816 [cli.mana] (): Could not load class org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter for component named 'portlet' at file:/C:/Server/2.1-production/2.1.4/build/webapp/WEB-INF/cocoon.xconf:1565:121 org.apache.avalon.framework.component.ComponentException: Could not set up Compo nent for hint [ portlet] (key [portlet]) at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:756) at org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:268) at org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:239) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:305) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143) at org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:558) at org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:547) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:340) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282) at org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:186) at org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:132) at org.apache.cocoon.Main.main(Main.java:349) 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: org.apache.avalon.framework.context.ContextException: Unable to resolve context key: servlet-config at org.apache.avalon.framework.context.DefaultContext.get(DefaultContext.java:157) at org.apache.avalon.framework.context.DefaultContext.get(DefaultContext.java:160) at org.apache.cocoon.components.ComponentContext.get(ComponentContext.java:144) at org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter.contextualize(PortletAdapter.java:109) at org.apache.avalon.framework.container.ContainerUtil.contextualize(ContainerUtil.java:154) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:281) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143) at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:738) ... 19 more ERROR 2004-03-04 14:14:43.826 [cli.mana] (): Caught an exception trying to initialize the component handler. org.apache.avalon.framework.configuration.ConfigurationException: Could not load class org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter for component named 'portlet' at file:/C:/Server/2.1-production/2.1.4/build/webapp/WEB-INF/cocoon.xconf:1565:121 at org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:276) at org.apache.avalon.framework.container.ContainerUtil.configure(Contain erUtil.java:239) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:305) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143) at org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:558) at org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:547) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:340) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282) at org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:186) at org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:132) at org.apache.cocoon.Main.main(Main.java:349) 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: org.apache.avalon.framework.component.ComponentException: Could not s et up Component for hint [ portlet] (key [portlet]) at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:756) at org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:268) ... 18 more Caused by: org.apache.avalon.framework.context.ContextException: Unable to resol ve context key: servlet-config at org.apache.avalon.framework.context.DefaultContext.get(DefaultContext.java:157) at org.apache.avalon.framework.context.DefaultContext.get(DefaultContext.java:160) at org.apache.cocoon.components.ComponentContext.get(ComponentContext.java:144) at org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter.contextualize(PortletAdapter.java:109) at org.apache.avalon.framework.container.ContainerUtil.contextualize(ContainerUtil.java:154) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:281) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143) at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:738) ... 19 more FATAL_E 2004-03-04 14:14:43.826 [cli ] (): Exception caught org.apache.avalon.framework.configuration.ConfigurationException: Could not load class org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter for component named 'portlet' at file:/C:/Server/2.1-production/2.1.4/build/webapp/WEB-INF/cocoon.xconf:1565:121 at org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:276) at org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:239) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:305) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143) at org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:558) at org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:547) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:340) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282) at org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:186) at org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:132) at org.apache.cocoon.Main.main(Main.java:349) 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: org.apache.avalon.framework.component.ComponentException: Could not s et up Component for hint [ portlet] (key [portlet]) at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:756) at org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:268) ... 18 more Caused by: org.apache.avalon.framework.context.ContextException: Unable to resol ve context key: servlet-config at org.apache.avalon.framework.context.DefaultContext.get(DefaultContext.java:157) at org.apache.avalon.framework.context.DefaultContext.get(DefaultContext.java:160) at org.apache.cocoon.components.ComponentContext.get(ComponentContext.java:144) at org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter.contextualize(PortletAdapter.java:109) at org.apache.avalon.framework.container.ContainerUtil.contextualize(ContainerUtil.java:154) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:281) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143) at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:738) ... 19 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:324) at Loader.invokeMain(Unknown Source) at Loader.run(Unknown Source) at Loader.main(Unknown Source) Caused by: org.apache.avalon.framework.configuration.ConfigurationException: Could not load class org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter for component named 'portlet' at file:/C:/Server/2.1-production/2.1.4/build/webapp/WEB-INF/cocoon.xconf:1565:121 at org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:276) at org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:239) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:305) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143) at org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:558) at org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:547) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:340) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282) at org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:186) at org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:132) at org.apache.cocoon.Main.main(Main.java:349) ... 7 more Caused by: org.apache.avalon.framework.component.ComponentException: Could not s et up Component for hint [ portlet] (key [portlet]) at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:756) at org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:268) ... 18 more Caused by: org.apache.avalon.framework.context.ContextException: Unable to resove context key: servlet-config at org.apache.avalon.framework.context.DefaultContext.get(DefaultContext.java:157) at org.apache.avalon.framework.context.DefaultContext.get(DefaultContext.java:160) at org.apache.cocoon.components.ComponentContext.get(ComponentContext.java:144) at org.apache.cocoon.portal.coplet.adapter.impl.PortletAdapter.contextualize(PortletAdapter.java:109) at org.apache.avalon.framework.container.ContainerUtil.contextualize(ContainerUtil.java:154) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:281) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143) at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:738) ... 19 more On Thu, 4 Mar 2004, Upayavira wrote: > [EMAIL PROTECTED] wrote: > > >hi all > > > >playing around with some cocoon installation in my computer > >i have notice tha CLI dont work after 2.1.2 version > >is this a known bug or something else is happend here ? > > > > > Doesn't work? What doesn't work. If I remember, there was a bug in a > version around then which means that you should start with 2.1.3 as a > minimum. And 2.1.3 has the Ant CocoonTask, which is well worth trying. > I'm using it myself for a site. > > So what's the problem you're having? > > Upayavira > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]