Matthew,
 
everything is configured as you adviced. Configuration of my Serializer takes place inside the <map:components> section. All needed classes are located in a Jar-File which is placed in the Cocoon/WEB-INF/libs directory. I also implemented a Reader class in this jar-file with the same functionality which works well - but i need a Serializer to take advantage of the Cocoon pipeline model.
 
Is the mentioned UnnamedSelector - error a hint that something went wrong within the sitemap-configuration or may i have missed something essential in the Serializer implementation itself?
 
If anybody has some tips where to find documentation about writing cocoon serializers i would be really happy. I read the Dev chapters in "Cocoon - Building XML-Applications", which is really a great book but the serializers aren't covered there ... ;-)
 
Frank
 
 
----- Original Message -----
Sent: Thursday, December 26, 2002 10:19 PM
Subject: RE: UnnamedSelector: ComponentSelector could not find the component for hint

Frank,
 
have you configured your new selector into the sitemap in the <map:components> section?
Have you made your implementation available to Cocoon (as a Jar in the libs directory etc.)
Are all the needed Java classes available to the selector..
 
Matthew

--
Open Source Group       Cocoon { Consulting, Training, Projects }
=================================================================
Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
-----------------------------------------------------------------
Cocoon book:
  http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20
Weblog:
  http://radio.weblogs.com/0103021/
=================================================================
 

-----Original Message-----
From: Frank Wulf [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 26, 2002 10:14 PM
To: [EMAIL PROTECTED]
Subject: UnnamedSelector: ComponentSelector could not find the component for hint

Hi,
 
I'm new to Cocoon and trying to develop a little cocoon serializer to convert xml-data to binary output.
However cocoon gives me the following error message:
 

type fatal

message UnnamedSelector: ComponentSelector could not find the component for hint: testser

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

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

Any hint where to search for this error?

My sitemap.xmap entries are:

<map:serializer mime-type="application/octet-stream" name="testser" src=""/>
....
<map:pipeline>
   <map:match pattern="serializer_test">
     <map:generate src=""/>
     <map:serialize type="testser"/>
   </map:match>
</map:pipeline>

I looked through all the Serializer-code examples but got no clue so far.

Thanks,

Frank Wulf

 

 

Reply via email to