You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Dennis Mezhevich <de...@semitech.by> on 2003/07/15 17:55:39 UTC
Cocoon 2.0.4_vm14 + JBoss 3.2.1 + J2SE 1.4.2 troubles
Hi.
I've got some troubles trying to run cocoon 2.0.4 application in the
JBoss-3.2.1_Tomcat-4.* environment with J2SE 1.4.2 installed. I deploy
cocoon.war and then try to request http://localhost:8080/cocoon. As a
reply I get the following exception:
===cut===
Cocoon 2 - Internal server error
type fatal
message
Error in sitemap configuration : UnnamedSelector: ComponentSelector
could not find the component for hint []
description
org.apache.avalon.framework.configuration.ConfigurationException:
Error in sitemap configuration : UnnamedSelector: ComponentSelector
could not find the component for hint []
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
stack-trace
org.apache.avalon.framework.configuration.ConfigurationException: Error in sitemap configuration : UnnamedSelector: ComponentSelector could not find the component for hint []
at org.apache.cocoon.www.jndi_.localhost.cocoon.sitemap_xmap.configure(E:\Application\jboss-3.2.1_tomcat-4.1.24\server\default\tmp\deploy\server\default\deploy\work\MainEngine\localhost\cocoon\cocoon-files\org/apache/cocoon/www/jndi_/localhost/cocoon\sitemap_xmap.java:477)
at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:264)
at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:98)
at org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:187)
at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:357)
at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:312)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:267)
at java.lang.Thread.run(Thread.java:534)
Caused by: org.apache.avalon.framework.component.ComponentException: UnnamedSelector: ComponentSelector could not find the component for hint []
at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(ExcaliburComponentSelector.java:198)
at org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.select(DefaultSitemapComponentSelector.java:101)
at org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.select(DefaultSitemapComponentSelector.java:104)
at org.apache.cocoon.www.jndi_.localhost.cocoon.sitemap_xmap.preparePattern(E:\Application\jboss-3.2.1_tomcat-4.1.24\server\default\tmp\deploy\server\default\deploy\work\MainEngine\localhost\cocoon\cocoon-files\org/apache/cocoon/www/jndi_/localhost/cocoon\sitemap_xmap.java:2054)
at org.apache.cocoon.www.jndi_.localhost.cocoon.sitemap_xmap.prepareMatchers(E:\Application\jboss-3.2.1_tomcat-4.1.24\server\default\tmp\deploy\server\default\deploy\work\MainEngine\localhost\cocoon\cocoon-files\org/apache/cocoon/www/jndi_/localhost/cocoon\sitemap_xmap.java:2073)
at org.apache.cocoon.www.jndi_.localhost.cocoon.sitemap_xmap.configure(E:\Application\jboss-3.2.1_tomcat-4.1.24\server\default\tmp\deploy\server\default\deploy\work\MainEngine\localhost\cocoon\cocoon-files\org/apache/cocoon/www/jndi_/localhost/cocoon\sitemap_xmap.java:470)
... 7 more
request-uri
/cocoon/
path-info
===cut===
sitemap_xmap.java code fragment, where the exception has been threw:
===cut===
public void configure(Configuration conf) throws ConfigurationException {
// ... ...
this.matchers.initialize();
this.prepareMatchers(); // <<<<<<<<<<<<<<, Line 470
this.selectors.initialize();
this.manager.initialize();
/* catch any exception thrown by a component during
configuration */
} catch (Exception e) {
getLogger().warn(e.getMessage(), e);
throw new ConfigurationException ("Error in sitemap
configuration : " + e.getMessage(), e);
}
}
// ... ...
public Object preparePattern(String type, String pattern) throws
Exception {
Component matcher =
this.matchers.select(type); //
<<<<<<<<<<<<<<<< Line 2054
try {
if (matcher instanceof PreparableMatcher) {
// Prepare pattern ('{' have been unescaped)
return ((PreparableMatcher)matcher).preparePattern(pattern);
} else {
// Return null : regular Matcher will be used.
return null;
}
} finally {
this.matchers.release(matcher);
}
}
/** Prepare patterns of PreparableMatchers. */
public void prepareMatchers() throws Exception {
// Prepare the pattern for "sub/**"
this.matcher_N10366_expr = this.preparePattern("", "sub/**");
// <<<<<<<<<<<<<<<< Line 2073
===cut===
I've experianced this on Windows2000 and Linux RH8 with J2SE 1.4.2 and
JBoss-3.2.1 boundled with Tomcat 4.* or Jetty.
On the plain Tomcat (without JBoss) everything is OK.
On the old J2SE 1.4.1 everything is OK, but I have to use only JDK1.4.2
Have any ideas? I almost don't know Apache Avalon framework and so I
don't know what can I do with the problem.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org