Oskar Casquero Oiarzabal wrote:
I'm also developing a J2EE application on Jboss-2.1.1 using Cocoon-2.1
as webmodule. I also got these "UnnamedSelector: ComponentSelector could not find
the component for hint:" exception, and I solved it defining all the
components (<map:components>) in my rootsitemap, not only actions, generators,
transformers and serializers definitions, but also pipeline
(<map:pipe>) and matcher (<map:matcher>) component definitions.

This sounds like you never defined a valid root sitemap and has nothing to do with JBoss. Kris, if your situation is the same, can you send a copy of your root sitemap? All sitemap components need to be defined before they are used. Subsitemaps inherit from the root, but if you copied a sample subsitemap and tried to use it as your root sitemap, you'd have a lot of undefined components. FYI, this need may change in future versions - there may be default sitemap components predefined.


Geoff

KVE> Hello.

KVE> I'm developing a J2EE application with Jbuilder on Jboss (at the moment I'm
KVE> testing the release candidates of the 3.2.2 version).Now I'm trying to add a
KVE> webmodule using Cocoon 2.0.3. The problem has nothing to do with Jbuilder
KVE> but with Jboss and the war-file of Cocoon.


KVE> Everytime I try to call the root xml file of my war through my browser, I
KVE> get following exception. This also happens when I use the most simple
KVE> sitemap.xmap or the cocoon.war file delivered with the binary edition of
KVE> cocoon 2.0.3. I think that Jboss just can't open the sitemap.xmap although
KVE> Jboss says that there is a config error. I also get the config error with
KVE> correct examples of the sitemap.xmap. Can somebody help me ? I have included
KVE> all cocoon jars in the WEB-INF/lib of the war which deploys fine.

KVE> org.apache.avalon.framework.configuration.ConfigurationException: Error in
KVE> sitemap configuration : UnnamedSelector: ComponentSelector could not find
KVE> the component for hint: KVE> at
KVE> org.apache.cocoon.www.sitemap_xmap.configure(C:\jboss-3.2.2RC4\jboss-3.2.2RC
KVE> 4\server\default\work\MainEngine\localhost\codispub\cocoon-files\org/apache/
KVE> cocoon/www\sitemap_xmap.java:148)
KVE> at
KVE> org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
KVE> faultComponentFactory.java:185)
KVE> at
KVE> org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
KVE> ThreadSafeComponentHandler.java:98)
KVE> at
KVE> org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat
KVE> or(GeneratorSelector.java:187)
KVE> at
KVE> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createR
KVE> esource(ProgramGeneratorImpl.java:337)
KVE> at
KVE> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
KVE> ogramGeneratorImpl.java:292)
KVE> at org.apache.cocoon.sitemap.Handler.run(Handler.java:265)
KVE> at java.lang.Thread.run(Thread.java:534)
KVE> Caused by: org.apache.avalon.framework.component.ComponentException:
KVE> UnnamedSelector: ComponentSelector could not find the component for hint: KVE> at
KVE> org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(Exca
KVE> liburComponentSelector.java:270)
KVE> at
KVE> org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.select(DefaultSite
KVE> mapComponentSelector.java:101)
KVE> at
KVE> org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.select(DefaultSite
KVE> mapComponentSelector.java:104)
KVE> at
KVE> org.apache.cocoon.www.sitemap_xmap.preparePattern(C:\jboss-3.2.2RC4\jboss-3.
KVE> 2.2RC4\server\default\work\MainEngine\localhost\codispub\cocoon-files\org/ap
KVE> ache/cocoon/www\sitemap_xmap.java:198)
KVE> at
KVE> org.apache.cocoon.www.sitemap_xmap.prepareMatchers(C:\jboss-3.2.2RC4\jboss-3
KVE> .2.2RC4\server\default\work\MainEngine\localhost\codispub\cocoon-files\org/a
KVE> pache/cocoon/www\sitemap_xmap.java:217)
KVE> at
KVE> org.apache.cocoon.www.sitemap_xmap.configure(C:\jboss-3.2.2RC4\jboss-3.2.2RC
KVE> 4\server\default\work\MainEngine\localhost\codispub\cocoon-files\org/apache/
KVE> cocoon/www\sitemap_xmap.java:141)
KVE> ... 7 more


KVE> Greetz
KVE> Kris

KVE> -----
KVE> Kris Van Echelpoel
KVE> KAVA - ICT Dienst
KVE> Tel. +32 3 280 15 64
KVE> Fax. +32 3 218 57 40


KVE> --------------------------------------------------------------------- KVE> To unsubscribe, e-mail: [EMAIL PROTECTED] KVE> For additional commands, e-mail: [EMAIL PROTECTED]






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to