Just to let you know I solved this
I needed (apparently - though someone may correct me) to unzip (yes thats
right) all cocoon libs(including dependants)into the ejb jar file to get the
sitemap to compile

there was a good message on the forum explaining classpaths which eventually
led me to the solution
Tony

-----Original Message-----
From: Tony Goodwin [mailto:[EMAIL PROTECTED]]
Sent: 05 September 2001 14:53
To: Cocoon-Users (E-mail)
Subject: C2B2 Sitemap compile failure - AbstractGenerator


Hi,
Cocoon 2.0b2
JBoss 2.4.0 with tomcat 3.2.3

I have problem with compilation of sitemap.xmap where error is indicating
class not found - org/apache/cocoon/generation/AbstractGenerator
I have traced error to sitemap.xmap.java line where I load my own Generator
which extends
the AbstractGenerator

        sitemap.load_component (Sitemap.GENERATOR, "my-Generator",
                                "org.mine.MyGenerator",
                                cconf1, null);

The org.mine.MyGenerator class can be found within WEB-INF/classes - which I
assume is on the path as is cocoon2.0b2.jar in WEB-INF/lib.

Any ideas -
Thanks for any help

Tony


Cocoon.log extract
-------------------
ERROR   99969   [cocoon  ] (Thread-36): Error compiling sitemap
java.lang.NoClassDefFoundError:
org/apache/cocoon/generation/AbstractGenerator
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.j
ava:446)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at org.apache.cocoon.util.ClassUtils.loadClass(ClassUtils.java:46)
        at
org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.jav
a:212)
        at
org.apache.cocoon.www.sitemap_xmap$Configurer.configGenerators(sitemap_xmap.
java:410)


-------------------------------------------
Tony Goodwin
Dact Ltd.
07775 918903
mailto:[EMAIL PROTECTED]


---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to