Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 94665 invoked by uid 500); 31 Oct 2001 14:01:26 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 94607 invoked from network); 31 Oct 2001 14:01:26 -0000 Message-ID: <3BE00232.5080009@galatea.com> Date: Wed, 31 Oct 2001 06:52:50 -0700 From: Lajos Moczar User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1 X-Accept-Language: en-us MIME-Version: 1.0 To: cocoon-users@xml.apache.org Subject: Re: Installing actions References: <20011029135545.A9001@kami.vein.hu> <20011029191518.A17381@kami.vein.hu> <3BDE5FC7.7080704@ge.stalt.de> <20011030181555.A19374@kami.vein.hu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Kristof, I'm curious about your problem; what version of Cocoon & Tomcat are you running? Regards, Lajos galatea.com Jozsa Kristof wrote: > Arno, > > I've tried both the cocoon/WEB-INF/classes/ dir, which should be > auto-included due to the Tomcat config, and setting the extra-classpath > in Cocoon's web.xml. In the first case, I get extreme errors, Cocoon cannot > even start up its default page. In the second case, the dir in > extra-classpath gets ignored, even if I set it absolute, relative, whatever. > > I've found a way, where Cocoon *can* find my own Action class, however. > I've bundled my class file in the right directory structure in a .jar file, > and dropped it into WEB-INF/lib beside cocoonXX.jar and such. Using that way > (but only that), Cocoon can find my action class, and starts up correctly, > but situation still aint clear.. > > I'm trying to get a parameter from my Cocoon action. I've used the > standard way of setting the parameter on the java side, from act() returning > a Map object, just as I've seen it in the examples. I also try to reach it > the standard way from the xsp: default="did not worked"/>, and I only get the default value back every > time. > > So the question still stands: can anyone show me a Hello-World like > example of setting a value from a Java action class which can be retreived > from an xsp with the correct sitemap setup? > > I'm begging for this, I'm suffering on that very same problem for 1 whole > week, and I cant step any further. > > Best regards, > Christopher > > On Tue, Oct 30, 2001 at 09:07:35AM +0100, Arno Illmann wrote: > >>Hi Christopher, here is what Vadim Gritsenko wrote to me in a similar case. >>In the end I putted the class file in the cocoon source and made a new >>build. This works, but it should be easier as shown below. >> >>Arno >> >>----------- >>Hi, >> >>Here is couple of hints for you: >> >>1) Extra-classpath the way you specified would never work. The correct path >>would be: >> >> >>extra-classpath >>C:\Programme\ApacheGroup\jakarta-tomcat-3.2.1\webapps\cocoon\WEB-INF\clas \ >>ses >> >>2) You do need to add ...\cocoon\WEB-INF\classes into classpath, because it >>is added >>automatically by the servlet contaier (Tomcat) >> >> >>If you have DatabaseSelectAction.class file in \ >>...\cocoon\WEB-INF\classes\org\apache\cocoon\acting, you do not required to >>add any \ >>classpath entries. Try to restart Tomcat and access sitemap again. If this >>fails, I \ >>do not have other pointers... >> >>Vadim >> >> >>>-----Original Message----- >>>From: Arno Illmann [mailto:arno.illmann@gmx.de] >>>Sent: Thursday, October 04, 2001 2:34 PM >>>To: cocoon-users@xml.apache.org >>>Subject: installing of actions >>> >>> >>>In the morning I posted this at the wrong thread so I do it again. >>>My tryings over the day came not to success too and I hope, someone with >>> >>more \ >> >>>cocoon knowledge can shed us some light on the following? >>> >>>Thanks in advance, Arno Illmann >>> >>>I did this: >>> >>>1) downloaded DatabaseSelectAction.java from CVS and compiled it to >>>..\cocoon\WEB-INF\classes\org\apache\cocoon\acting. >>> >>>2) added to cocoons web.xml: >>> >>> >>>extra-classpath >>> >>> >>C:\Programme\ApacheGroup\jakarta-tomcat-3.2.1\webapps\cocoon\WEB-INF\cl \ >> >>>asses\org\apache\cocoon\ac ting\DatabaseSelectAction.class >>> >>> >>>3) added to the sitemap of the tutorial web application example: >>> >>> >>>>> >>src="org.apache.cocoon.acting.DatabaseSelectAction"/> >>src="org.apache.cocoon.acting.DatabaseAddAction"/> >> >>name="dbDel" \ >> >>>src="org.apache.cocoon.acting.DatabaseDeleteAction"/> >> >>name="dbUpd" \ >> >>>src="org.apache.cocoon.acting.DatabaseUpdateAction"/> >> >>name="form" \ >> >>>src="org.apache.cocoon.acting.FormValidatorAction"/> >>> >>>The error message after invoking the tutorial is : >>> >>>org.apache.cocoon.ProcessingException: Exception in Handler: >>>org.apache.avalon.framework.component.ComponentException: >>>Could not set up Component for hint: >>> >>org\apache\cocoon\www\tutorial\sitemap_xmap >> >>>Without >>src="org.apache.cocoon.acting.DatabaseSelectAction"/> it started >>> >>seriously. I then >> >>>tried other paths in init param extra classpath, and other funny things. >>> >>>I think it could be no packages/path problem and compiling was without >>> >>errors. But \ >> >>>is i.e the syntax of path to the class file right (its the right on my >>> >>windows \ >> >>>machine) or must I use a jar file? Any hints are very very welcome. >>> >>> >> >>Jozsa Kristof wrote: >> >> >>>On Mon, Oct 29, 2001 at 01:55:45PM +0100, Jozsa Kristof wrote: >>> >>> >>>>I wrote a HelloWorld-like action based on the docs located in my cocoon >>>>install: /cocoon/documents/actions. I've put the file in >>>>/cocoon/WEB-INF/classes (using the package name 'test', so >>>>/test/HelloWorldAction.class). >>>> >>>> >>>.. >>> >>> >>>>..which means exactly afaik that Cocoon is unable to find the right Avalon >>>>component for the specified action, eg. cant find HelloWorldAction.class >>>> >>>> >>>Maybe I need an entry in my WEB-INF/web.xml file like: >>> >>> extra-classpath >>> WEB-INF/classes >>> >>> >>>?? >>> >>>That's all I could find out.. but that did not helped even :( Maybe I need >>>to set it somewhere else too to let Cocoon find my own Action class >>>somewhere? >>> >>>Please help.. I'm getting lost completely. >>> >>>Christopher >>> >>> >> >> >>--------------------------------------------------------------------- >>Please check that your question has not already been answered in the >>FAQ before posting. >> >>To unsubscribe, e-mail: >>For additional commands, e-mail: >> > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: