cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Bedworth" <jonbedwo...@hotmail.com>
Subject Unable to load default Cocoon Page
Date Fri, 22 Aug 2003 23:05:52 GMT
Hello,

I have managed to install Cocoon 2.04 -vm 14 running on Tomcat 4.1.24 (Win 
2K). Yet, I am unable to complete a request to http://localhost:8080/cocoon

Initially, I got the following exception when I tried (see note [1] below 
for stack trace):

org.apache.avalon.framework.configuration.ConfigurationException: Error in 
sitemap configuration : UnnamedSelector: ComponentSelector could not find 
the component for hint []

Which seems to have something to do with the generated sitemap_xmap.java 
file's 'configure' method.

I then tried to simplify things by using a minimal sitemap, as indicated in 
the development documentation
(http://cocoon.apache.org/2.0/developing/httprequest.html). See note [2] 
below for a copy of this.

Now, having deleted tomcat's 'work' directory when I again tried to make a 
request, I got the following different exception (see note [3] below for 
stack trace):

org.apache.avalon.framework.configuration.ConfigurationException: Error in 
sitemap configuration : org.apache.cocoon.transformation.XalanTransformer

Please note: I had already moved new xaml, Xerces and Xalan jars into 
Tomcat's 'endorsed' directory during install.

So, consequently, I am left puzzling over two different errors, one relating 
to the what Cocoon thinks is a missing component from its own default 
sitemap, and another Xalan based one, even though I was using a documented 
sitemap and had replaced the relevant XML jars.

I am completely stumped!

Please, can anyone help here?

Thankyou

Jon

[1] Stack trace for exception when using supplied sitemap:

org.apache.avalon.framework.configuration.ConfigurationException: Error in 
sitemap configuration : UnnamedSelector: ComponentSelector could not find 
the component for hint []
	at org.apache.cocoon.www.sitemap_xmap.configure(D:\Java\servers\Tomcat 
4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\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.sitemap_xmap.preparePattern(D:\Java\servers\Tomcat 
4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:2054)
	at 
org.apache.cocoon.www.sitemap_xmap.prepareMatchers(D:\Java\servers\Tomcat 
4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:2073)
	at org.apache.cocoon.www.sitemap_xmap.configure(D:\Java\servers\Tomcat 
4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:470)
	... 7 more

[2] The minimal site map:

<?xml version="1.0"?>

<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">

  
<!--===========================Components================================-->
  <map:components>

    <map:generators default="file">
    <map:generator name="file" label="content"
                   src="org.apache.cocoon.generation.FileGenerator"/>
    </map:generators>

    <map:transformers default="xslt">
      <map:transformer name="xslt"
                       
src="org.apache.cocoon.transformation.XalanTransformer">
        <use-request-parameters>false</use-request-parameters>
      </map:transformer>
    </map:transformers>

    <map:serializers default="html">
      <map:serializer name="html" mime-type="text/html"
                      src="org.apache.cocoon.serialization.HTMLSerializer"/>
    </map:serializers>

    <map:selectors default="browser">
      <map:selector name="browser"
                    factory="org.apache.cocoon.selection.BrowserSelector">
        <browser name="explorer" useragent="MSIE"/>
        <browser name="netscape" useragent="Mozilla"/>
      </map:selector>
    </map:selectors>

    <map:matchers default="uri">
      <map:matcher name="uri"
                   factory="org.apache.cocoon.matching.WildcardURIMatcher"/>
    </map:matchers>

  </map:components>

  
<!--===========================Pipelines=================================-->
  <map:pipelines>
    <map:pipeline>
      <map:match pattern="hello.html">
        <map:generate src="docs/samples/hello-page.xml"/>
        <map:transform src="stylesheets/page/simple-page2html.xsl"/>
        <map:serialize type="html"/>
      </map:match>
    </map:pipeline>
  </map:pipelines>

</map:sitemap>

[3] Stack trace when using minimal sitemap:

org.apache.avalon.framework.configuration.ConfigurationException: Error in 
sitemap configuration : org.apache.cocoon.transformation.XalanTransformer
	at org.apache.cocoon.www.sitemap_xmap.configure(D:\Java\servers\Tomcat 
4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:148)
	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: java.lang.ClassNotFoundException: 
org.apache.cocoon.transformation.XalanTransformer
	at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1443)
	at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1289)
	at org.apache.cocoon.util.ClassUtils.loadClass(ClassUtils.java:88)
	at 
org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.java:263)
	at 
org.apache.cocoon.www.sitemap_xmap$Configurer.configTransformers(D:\Java\servers\Tomcat 
4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:195)
	at org.apache.cocoon.www.sitemap_xmap.configure(D:\Java\servers\Tomcat 
4.1\work\Standalone\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:127)
	... 7 more

_________________________________________________________________
Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile


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


Mime
View raw message