You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Dave Inskeep <da...@bea.com> on 2000/11/17 23:04:36 UTC
ejbjar and nested classpath element
I'm trying to use the ejbjar task with a nested weblogic element with a
nested classpath element that points to a refid. Is this currently
supported, or known to work?
I'm using the latest nightly build (11-17-2000) and get a
NoClassDefFoundError that javax.ejb.EntityBean cannot be found. That is
certainly in my classpath, I use the same classpath refid to compile the
classes and obviously EntityBean is found in the classpath, or my EJB's
wouldn't compile. Am I just too close to the bleeding edge for this to work?
Thanks,
Dave
RE: ejbjar and nested classpath element
Posted by Dave Inskeep <da...@bea.com>.
Conor,
The 11-17 build is not giving me much useful information with -verbose,
i.e. the java command line that ejbc is executed with. I've pasted the
results below. I'm fairly positive that weblogicaux.jar is in the
classpath, as a compile is done with the same classpathref first, and many
classes wouldn't compile if weblogicaux.jar wasn't there. It would be nice
to have the ejbc command line for verification though.
I just downloaded the 11-20 build and it gave me a different set of errors
which I'll sort through - it appears to have gotten past the
javax.ejb.EntityBean though. But, FWIW, here's the exception from the 11-17
build:
D:\Projects\ADCtoolkit\bin>ant ejbs -verbose
Ant version 1.3alpha compiled on November 15 2000
Buildfile: build.xml
Detected Java Version: 1.2
Detected OS: Windows NT
Project base dir set to: D:\Projects\ADCtoolkit
[property] Loading D:\Projects\ADCtoolkit\bin\local.env.properties
[property] Loading D:\Projects\ADCtoolkit\bin\env.properties
[buncha stuff snipped....]
[ejbjar] 4 deployment descriptors located.
BUILD FAILED
java.lang.NoClassDefFoundError: javax/ejb/EJBHome
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java, Compiled Code)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java,
Compiled Code)
at java.net.URLClassLoader.defineClass(URLClassLoader.java,
Compiled Code)
at java.net.URLClassLoader.access$1(URLClassLoader.java, Compiled
Code)
at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java, Compiled
Code)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java,
Compiled Code)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
at java.lang.ClassLoader.findSystemClass(ClassLoader.java:575)
at
org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java, Compiled
Code)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
at
org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool.checkAndAddInherited(GenericDeploymentTool.j
ava, Compiled Code)
at
org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool.processDescriptor(GenericDeploymentTool.java
, Compiled Code)
at
org.apache.tools.ant.taskdefs.optional.ejb.EjbJar.execute(EjbJar.java,
Compiled Code)
at org.apache.tools.ant.Target.execute(Target.java, Compiled Code)
at org.apache.tools.ant.Project.runTarget(Project.java:818)
at org.apache.tools.ant.Project.executeTarget(Project.java,
Compiled Code)
at org.apache.tools.ant.Project.executeTargets(Project.java,
Compiled Code)
at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
at org.apache.tools.ant.Main.main(Main.java:149)
Total time: 25 seconds
javax/ejb/EJBHome
Thanks,
Dave
At 12:38 AM 11/19/00 +1100, you wrote:
>Dave,
>
>My builds had still been using properties for classpaths so I flipped
>them over just now to embedded classpaths with refids without any
>problems. Can you just confirm that the classpath you pass to the
>weblogic element includes ${weblogic.home}/lib/weblogicaux.jar
>
>Here is my example
> <ejbjar descriptordir="${dd.dir}" srcdir="${build.classes}">
> <weblogic destdir="${deployment.dir}"
> rebuild="false"
> keepgeneric="false"
> suffix=".jar">
> <classpath refid="descriptorbuild.classpath"/>
> </weblogic>
> <include name="**/*-ejb-jar.xml"/>
> <exclude name="**/*-weblogic-ejb-jar.xml"/>
> </ejbjar>
>
>
>run ant with -verbose to give us more information.
>
>Conor
>
>
>
> > -----Original Message-----
> > From: Dave Inskeep [mailto:dave.inskeep@bea.com]
> > Sent: Saturday, 18 November 2000 9:05
> > To: ant-user@jakarta.apache.org
> > Subject: ejbjar and nested classpath element
> >
> >
> > I'm trying to use the ejbjar task with a nested weblogic
> > element with a
> > nested classpath element that points to a refid. Is this currently
> > supported, or known to work?
> >
> > I'm using the latest nightly build (11-17-2000) and get a
> > NoClassDefFoundError that javax.ejb.EntityBean cannot be
> > found. That is
> > certainly in my classpath, I use the same classpath refid to
> > compile the
> > classes and obviously EntityBean is found in the classpath,
> > or my EJB's
> > wouldn't compile. Am I just too close to the bleeding edge
> > for this to work?
> >
> > Thanks,
> > Dave
> >
RE: ejbjar and nested classpath element
Posted by Dave Inskeep <da...@bea.com>.
Okay, after sorting out a few classpath problems for the location of my own
classes the 11-20-2000 build now works for me. The 11-17 still doesn't, but
I'm not too worried about that.
Thanks,
Dave
At 12:38 AM 11/19/00 +1100, you wrote:
>Dave,
>
>My builds had still been using properties for classpaths so I flipped
>them over just now to embedded classpaths with refids without any
>problems. Can you just confirm that the classpath you pass to the
>weblogic element includes ${weblogic.home}/lib/weblogicaux.jar
>
>Here is my example
> <ejbjar descriptordir="${dd.dir}" srcdir="${build.classes}">
> <weblogic destdir="${deployment.dir}"
> rebuild="false"
> keepgeneric="false"
> suffix=".jar">
> <classpath refid="descriptorbuild.classpath"/>
> </weblogic>
> <include name="**/*-ejb-jar.xml"/>
> <exclude name="**/*-weblogic-ejb-jar.xml"/>
> </ejbjar>
>
>
>run ant with -verbose to give us more information.
>
>Conor
>
>
>
> > -----Original Message-----
> > From: Dave Inskeep [mailto:dave.inskeep@bea.com]
> > Sent: Saturday, 18 November 2000 9:05
> > To: ant-user@jakarta.apache.org
> > Subject: ejbjar and nested classpath element
> >
> >
> > I'm trying to use the ejbjar task with a nested weblogic
> > element with a
> > nested classpath element that points to a refid. Is this currently
> > supported, or known to work?
> >
> > I'm using the latest nightly build (11-17-2000) and get a
> > NoClassDefFoundError that javax.ejb.EntityBean cannot be
> > found. That is
> > certainly in my classpath, I use the same classpath refid to
> > compile the
> > classes and obviously EntityBean is found in the classpath,
> > or my EJB's
> > wouldn't compile. Am I just too close to the bleeding edge
> > for this to work?
> >
> > Thanks,
> > Dave
> >
RE: ejbjar and nested classpath element
Posted by Conor MacNeill <co...@m64.com>.
Dave,
My builds had still been using properties for classpaths so I flipped
them over just now to embedded classpaths with refids without any
problems. Can you just confirm that the classpath you pass to the
weblogic element includes ${weblogic.home}/lib/weblogicaux.jar
Here is my example
<ejbjar descriptordir="${dd.dir}" srcdir="${build.classes}">
<weblogic destdir="${deployment.dir}"
rebuild="false"
keepgeneric="false"
suffix=".jar">
<classpath refid="descriptorbuild.classpath"/>
</weblogic>
<include name="**/*-ejb-jar.xml"/>
<exclude name="**/*-weblogic-ejb-jar.xml"/>
</ejbjar>
run ant with -verbose to give us more information.
Conor
> -----Original Message-----
> From: Dave Inskeep [mailto:dave.inskeep@bea.com]
> Sent: Saturday, 18 November 2000 9:05
> To: ant-user@jakarta.apache.org
> Subject: ejbjar and nested classpath element
>
>
> I'm trying to use the ejbjar task with a nested weblogic
> element with a
> nested classpath element that points to a refid. Is this currently
> supported, or known to work?
>
> I'm using the latest nightly build (11-17-2000) and get a
> NoClassDefFoundError that javax.ejb.EntityBean cannot be
> found. That is
> certainly in my classpath, I use the same classpath refid to
> compile the
> classes and obviously EntityBean is found in the classpath,
> or my EJB's
> wouldn't compile. Am I just too close to the bleeding edge
> for this to work?
>
> Thanks,
> Dave
>
RE: ejbjar and nested classpath element
Posted by Conor MacNeill <co...@m64.com>.
Dave,
Can you please run it with -verbose to see how ejbc is being invoked.
I'll also have a look into it today. (Just have to build a billy cart
:-)
Conor
> -----Original Message-----
> From: Dave Inskeep [mailto:dave.inskeep@bea.com]
> Sent: Saturday, 18 November 2000 9:05
> To: ant-user@jakarta.apache.org
> Subject: ejbjar and nested classpath element
>
>
> I'm trying to use the ejbjar task with a nested weblogic
> element with a
> nested classpath element that points to a refid. Is this currently
> supported, or known to work?
>
> I'm using the latest nightly build (11-17-2000) and get a
> NoClassDefFoundError that javax.ejb.EntityBean cannot be
> found. That is
> certainly in my classpath, I use the same classpath refid to
> compile the
> classes and obviously EntityBean is found in the classpath,
> or my EJB's
> wouldn't compile. Am I just too close to the bleeding edge
> for this to work?
>
> Thanks,
> Dave
>