You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Thorsten Mauch <ma...@imkenberg.de> on 2001/09/27 17:48:18 UTC

How to add a avalon component to cocoon.xconf

Hi all
I wrote a simpleacvalon compenent i try to use 
it inside a action.

I add it to the coocon.xconf:

<component role="testcomponent"
class="com.imkenberg.cocoon.test.testcomponentImpl"/> 

and tried to access it from the action:

public void compose(ComponentManager manager) throws
org.apache.avalon.framework.component.ComponentException {
    test=(testcomponent)manager.lookup("testcomponent");
 }

but the component isn't found. In the log I found:

DEBUG   (2001-09-27) 17:49.07:724   [cocoon  ]
 (/cocoon/i18n/simple.xml)
HttpProcessor[8080][4]/ExcaliburComponentSelector: 
UnnamedSelector: ComponentSelector could not find the component for hint:
componenttestaction

What did i made wrong ?

Thanx Thorsten

---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>