You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Prasad Kashyap <go...@gmail.com> on 2006/01/31 22:34:43 UTC

Error in DDLExporterTask

I'm trying to fix itests again and get it work on 1.1. I have come a
long way in fixing it's other bugs but am now stuck with the following
exception. It's a ridiculous NoClassDefFound exception on the
javax\ejb\EntityBean class !!!

BUILD FAILED
File...... C:\Apache\geronimo\openejb\modules\itests\maven.xml
Element... ddlExporter
Line...... 528
Column.... 43
javax/ejb/EntityBean
com.werken.werkz.UnattainableGoalException: Unable to obtain goal
[ejb:install] --
C:\Apache\geronimo\openejb\modules\itests\maven.xml:528:43:
<ddlExporter> javax/ejb/EntityBean
        at com.werken.werkz.Goal.fire(Goal.java:658)
        .......
        .......
C:\Apache\geronimo\openejb\modules\itests\maven.xml:528:43:
<ddlExporter> javax/ejb/EntityBean
        at org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:702)
       ............
       ............
        at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
        at org.openejb.deployment.SchemataBuilder.processEnterpriseBeans(SchemataBuilder.java:315)
        at org.openejb.deployment.SchemataBuilder.buildSchemata(SchemataBuilder.java:177)
        at org.openejb.deployment.ant.DDLExporterTask.execute(DDLExporterTask.java:183)
        ........
        ... 49 more
Root cause
java.lang.NoClassDefFoundError: javax/ejb/EntityBean
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
        at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader.java:1002)


Can you please take a look at this error ? Does this have anything to
do with the new classpath that gets created in DDLExporterTask ? That
is then used to create a new AntClassLoader which gets passed to the
SchemataBuilder.

Cheers
Prasad

Re: Error in DDLExporterTask

Posted by Prasad Kashyap <go...@gmail.com>.
Problem solved. This is no longer an issue. It happened due to
declaring the spec jars in the old format.

Cheers
Prasad.

On 1/31/06, Prasad Kashyap <go...@gmail.com> wrote:
> I'm trying to fix itests again and get it work on 1.1. I have come a
> long way in fixing it's other bugs but am now stuck with the following
> exception. It's a ridiculous NoClassDefFound exception on the
> javax\ejb\EntityBean class !!!
>
> BUILD FAILED
> File...... C:\Apache\geronimo\openejb\modules\itests\maven.xml
> Element... ddlExporter
> Line...... 528
> Column.... 43
> javax/ejb/EntityBean
> com.werken.werkz.UnattainableGoalException: Unable to obtain goal
> [ejb:install] --
> C:\Apache\geronimo\openejb\modules\itests\maven.xml:528:43:
> <ddlExporter> javax/ejb/EntityBean
>         at com.werken.werkz.Goal.fire(Goal.java:658)
>         .......
>         .......
> C:\Apache\geronimo\openejb\modules\itests\maven.xml:528:43:
> <ddlExporter> javax/ejb/EntityBean
>         at org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:702)
>        ............
>        ............
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>         at org.openejb.deployment.SchemataBuilder.processEnterpriseBeans(SchemataBuilder.java:315)
>         at org.openejb.deployment.SchemataBuilder.buildSchemata(SchemataBuilder.java:177)
>         at org.openejb.deployment.ant.DDLExporterTask.execute(DDLExporterTask.java:183)
>         ........
>         ... 49 more
> Root cause
> java.lang.NoClassDefFoundError: javax/ejb/EntityBean
>         at java.lang.ClassLoader.defineClass0(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
>         at sun.reflect.GeneratedMethodAccessor86.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader.java:1002)
>
>
> Can you please take a look at this error ? Does this have anything to
> do with the new classpath that gets created in DDLExporterTask ? That
> is then used to create a new AntClassLoader which gets passed to the
> SchemataBuilder.
>
> Cheers
> Prasad
>
>
>