cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jozsa Kristof <dy...@kami.vein.hu>
Subject Installing actions
Date Mon, 29 Oct 2001 12:55:45 GMT
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).

I've put the following lines in my sitemap:
<map:actions>
  <map:action name="hello-world" class="test.HelloWorldAction"/>
</map:actions>

<map:match pattern="hello">
  <map:act type="hello-world">
    <map:generate type="serverpages" src="hello/hello_world.xsp"/>
  </map:act>
  <map:serialize/>
</map:match>

and wrote hello/hello_world.xsp which tries to use the parameter passed by
HelloWorldAction.


However, if i try to reach host:8080/cocoon/hello, I get the following
Cocoon dump:
--
type internal-server-error

message UnnamedSelector: ComponentSelector could not find the component for
hint: hello-world

description org.apache.avalon.framework.component.ComponentException:
UnnamedSelector: ComponentSelector could not find the component for hint:
hello-world
--

..which means exactly afaik that Cocoon is unable to find the right Avalon
component for the specified action, eg. cant find HelloWorldAction.class

I've tried to check the internal Cocoon logs, but that did not helped me. So
the question is - anyone can please tell me what's wrong with the above
setup?
 
Thanks much in advance,
Christopher
-- 
.Digital.Yearning.for.Networked.Assassination.and.Xenocide

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Mime
View raw message