You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Fred Tsang <fr...@widelearning.com> on 2001/05/31 13:50:40 UTC

[c2] Problem with Avalon

I'm having a problem getting the latest c2 build to work.  After building
the war file and installing it on Tomcat, I get a "The sitemap handler's
sitemap is not available" error.

The cocoon.log shows the following:
java.lang.NoClassDefFoundError: org/apache/avalon/logger/AbstractLoggable
        at java.lang.Class.newInstance0(Native Method)
        at java.lang.Class.newInstance(Class.java:237)
        at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
faultComponentFactory.java:83)
        at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
ThreadSafeComponentHandler.java:78)
        at
org.apache.avalon.excalibur.component.DefaultComponentSelector.addComponent(
DefaultComponentSelector.java:306)
        at
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat
or(GeneratorSelector.java:75)
        at
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat
or(GeneratorSelector.java:71)
        at
org.apache.cocoon.components.language.generator.GeneratorSelector.select(Gen
eratorSelector.java:57)
        at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.select(
ProgramGeneratorImpl.java:261)
        at
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
ogramGeneratorImpl.java:145)
        at org.apache.cocoon.sitemap.Handler.run(Handler.java:222)
        at java.lang.Thread.run(Thread.java:484)

Looking at the Jar file avalon-framework-4.0b1.jar, the class name should
be:
org/apache/avalon/framework/logger/AbstractLoggable.class

so, it looks like the word 'framework' isn't used in the class import.  Any
ideas why this would be happening?  I thought it might be avalon, so I
downloaded the jar files from jakarta.apache.org, but still the same error.

Any help would be appreciated.

Cheers,
Fred

---------------------------------------------------------------------
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>


Re: [c2] Problem with Avalon

Posted by Berin Loritsch <bl...@apache.org>.
Fred Tsang wrote:
> 
> I'm having a problem getting the latest c2 build to work.  After building
> the war file and installing it on Tomcat, I get a "The sitemap handler's
> sitemap is not available" error.

What is your servlet engine?  That would help.
Basically, you do not have Avalon in your classpath.  Some servlet engines
like IBM WebSphere relocate the jars out of the typical location in the
servlet spec.  Cocoon does have a couple of initial parameters you can
place in your web.xml that will tell it where the classes are located.

> 
> The cocoon.log shows the following:
> java.lang.NoClassDefFoundError: org/apache/avalon/logger/AbstractLoggable
>         at java.lang.Class.newInstance0(Native Method)
>         at java.lang.Class.newInstance(Class.java:237)
>         at
> org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De
> faultComponentFactory.java:83)
>         at
> org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(
> ThreadSafeComponentHandler.java:78)
>         at
> org.apache.avalon.excalibur.component.DefaultComponentSelector.addComponent(
> DefaultComponentSelector.java:306)
>         at
> org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat
> or(GeneratorSelector.java:75)
>         at
> org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerat
> or(GeneratorSelector.java:71)
>         at
> org.apache.cocoon.components.language.generator.GeneratorSelector.select(Gen
> eratorSelector.java:57)
>         at
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.select(
> ProgramGeneratorImpl.java:261)
>         at
> org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr
> ogramGeneratorImpl.java:145)
>         at org.apache.cocoon.sitemap.Handler.run(Handler.java:222)
>         at java.lang.Thread.run(Thread.java:484)
> 
> Looking at the Jar file avalon-framework-4.0b1.jar, the class name should
> be:
> org/apache/avalon/framework/logger/AbstractLoggable.class
> 
> so, it looks like the word 'framework' isn't used in the class import.  Any
> ideas why this would be happening?  I thought it might be avalon, so I
> downloaded the jar files from jakarta.apache.org, but still the same error.
> 
> Any help would be appreciated.
> 
> Cheers,
> Fred
> 
> ---------------------------------------------------------------------
> 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>

---------------------------------------------------------------------
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>