You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by ol...@rwg.de on 2000/09/20 14:52:40 UTC
Antwort: RE: Antwort: RE: ejbjar task [Virus checked]
Am 20.09.2000 12:28:17 schrieb manomohan_k:
> Hi
> Could the problem be a typo :-)
> See comment below.
> MM= Manomohan>
> Cheers
> Mano
Ups, thank you. Now this message disappears, but I got the old one :-(Error
from ejbc..., see below).
...
> > >
> > > ERROR: Error from ejbc: The JNDI name of bean AGOEditor was not set
> > >
> > > It seems the weblocgic-ejb-jar.xml file is missing in the input
> > > jar file for
> > > the EJB compiler, but why?
> > > Here's my target which I copied from the documentation:
> > >
> > > <target name="weblogic.ejb" depends="compile.server">
> > > <ejbjar srcdir="${build.classes.server}"
> > > descriptordir="${descriptor.dir}">
> > > <weblogic destdir="${deploymentjars.dir}"/>
> > > <include name="**/*-ejb-jar.xml"/>
> > > <exclude name="**/*weblogic*.xml"/>
> > > </ejbjar>
> > > </target>
> > >
> > > When I do the EJB compile manually it works so the XML and class
> > > files are ok.
> > > Any hints what I made wrong?
> >
> > Not really.
> >
> > What you have pretty much matches what I have. The only different being
> > that
> > I use a classpath attribute on the <weblogic> element. This classpath
> > contains all the weblogic classes, and the classes from, in your case,
> > ${build.classes.server}.
>
> ok, I added now a classpath attribute:
>
> <target name="weblogic.ejb" depends="compile.server">
> <ejbjar srcdir="${build.classes.server}"
> descriptordir="${descriptor.dir}">
> <weblogic destdir="${deploymentjars.dir}"
> classspath="${classpath.weblogic}:${build.classes.server}"
> />
> <include name="**/*-ejb-jar.xml"/>
> <exclude name="**/*weblogic*.xml"/>
> </ejbjar>
> </target>
>
> but when I try it, I got the message "BUILD FAILED":
>
> build.xml:199: Class
> org.apache.tools.ant.taskdefs.optional.ejb.WeblogicDeploymentTool doesn't
> support the "classspath" attribute
>
> Which version of ant are you using? I have
> "Ant version 1.2alpha2 compiled on September 18 2000"
>
> MM> Did you mean classpath="${classpat..." and not
> classspath="${classpat.... in line 5 of the target element?
>
> >
> > The only other thing I can think of would be the name of the
> > weblogic-ejb-jar.xml relative to the ejb-jar.xml file. Can you give us
> the
> > full names of both these files?
>
> They are both placed in the same directory.
>
> >
> > Cheers
> > Conor
>
> Cheers
> Oliver
RE: ejbjar task
Posted by Conor MacNeill <co...@ebinteractive.com.au>.
Oliver,
It is clear now.
You need to call your weblogic file
AGOEditor-weblogic-ejb-jar.xml
That way, the ejbjar task can know it is associated with this bean. It will
be added to the jar with the appropriate name.
Conor
--
Conor MacNeill
conor@cortexebusiness.com.au
Cortex eBusiness
http://www.cortexebusiness.com.au
RE: ejbjar task
Posted by Oliver Boehm <bo...@Informatik.BA-Stuttgart.De>.
Conor MacNeill wrote:
>
> Oliver,
>
> Can you please send me tha actual file names involved? Just curious?
>
> Cheers
> Cononr
Hi Conor,
here's the output when running 'ant -verbose...' (the whole log together with
the build file is in the attached 'build.tgz' file)
...
[ejbjar] 1 deployment descriptors located.
[ejbjar] building AGOEditor.jar with 4 files
[ejbjar] adding file 'META-INF/ejb-jar.xml'
[ejbjar] adding file 'gebos/common/editor/ablauf/AGOEditorHome.class'
[ejbjar] adding file 'gebos/common/editor/ablauf/AGOEditorBean.class'
[ejbjar] adding file 'gebos/common/editor/ablauf/AGOEditor.class'
[ejbjar] Calling weblogic.ejbc for
/pilot/classes/server/gebos/common/editor/ablauf/AGOEditor-generic.jar
...
and these are the involved filenames:
source/server/gebos/common/editor/ablauf/AGOEditorBean.java
source/server/gebos/common/editor/ablauf/EditorOption.java
source/server/gebos/common/editor/ablauf/EditorOptionsTabelle.java
source/server/gebos/common/editor/ablauf/weblogic-ejb-jar.xml
source/server/gebos/common/editor/ablauf/AGOEditor-ejb-jar.xml
classes/server/gebos/common/editor/ablauf/
classes/server/gebos/common/editor/ablauf/AGOEditorBean.class
classes/server/gebos/common/editor/ablauf/EditorOptionsTabelle.class
classes/server/gebos/common/editor/ablauf/EditorOption.class
classes/server/gebos/common/editor/ablauf/AGOEditorHome.class
classes/server/gebos/common/editor/ablauf/AGOEditor.class
The the *-ejb-jar.xml files you can find in the attached 'ejb-xml.tgz# file. Is
this enough info / files or do you need more?
Or can you send me your build file so I can compare it with mine?
aTdHvAaNnKcSe
Oliver
--
Oliver Böhm # Even when code is so simple you could
mailto:boehm@ba-stuttgart.de # write in your sleep don't fall asleep
http://www.ba-stuttgart.de/~boehm # while writing it (Kernighan/Pike)
RE: Antwort: RE: Antwort: RE: ejbjar task [Virus checked]
Posted by Conor MacNeill <co...@ebinteractive.com.au>.
Oliver,
Can you please send me tha actual file names involved? Just curious?
Cheers
Cononr
--
Conor MacNeill
conor@cortexebusiness.com.au
Cortex eBusiness
http://www.cortexebusiness.com.au
> -----Original Message-----
> From: oliver.boehm@rwg.de [mailto:oliver.boehm@rwg.de]
> Sent: Wednesday, 20 September 2000 23:53
> To: - *ant-user@jakarta.apache.org
> Subject: Antwort: RE: Antwort: RE: ejbjar task [Virus checked]
>
>
>
> Am 20.09.2000 12:28:17 schrieb manomohan_k:
> > Hi
> > Could the problem be a typo :-)
> > See comment below.
> > MM= Manomohan>
> > Cheers
> > Mano
>
> Ups, thank you. Now this message disappears, but I got the old
> one :-(Error
> from ejbc..., see below).
>