ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@m64.com>
Subject RE: ejbjar and weblogic
Date Sat, 11 Nov 2000 01:58:36 GMT
Ritendra,

1.2alpha covers a whole spectrum of builds so it is not possible to say
which one may have contained an ejbjar task that supports the
basejarname attribute. You should upgrade to the 1.2 release which
definitely does support this feature or you could try 1.3alpha.

Conor


> -----Original Message-----
> From: Ritendra Sinha [mailto:ritendra.sinha@db.com]
> Sent: Friday, 10 November 2000 22:39
> To: ant-user@jakarta.apache.org
> Subject: RE: ejbjar and weblogic
>
>
>
>
> Hi,
>
>
> Does anyone know which version of "ejbjar" task supports
> "basejarname" attribute.
>
> I am currently using apache ant1.2Alpha and an error message
> appears telling me  that the attribute "basejarname" is not
> supported by the ejbajar task.
>
> The ANT task:
>
>  <target name="wlejb" depends="deploy">
>      <ejbjar srcdir="${build}" basejarname="RitenJar"
> descriptordir="${descriptor.dir}">
>           <weblogic destdir="${deployjars.dir}"
> classpath="${classpath}; ${build}" />
>           <include name="**/ejb-jar.xml" />
>           <exclude name="**/weblogic*.xml" />
>      </ejbjar>
> </target>
>
> Error message:
>
> simple.xml:50: Class class
> org.apache.tools.ant.taskdefs.optional.ejb.EjbJar doesn't
> support the "basejarname" attribute
>
> Total time: 0 seconds
>
> Any help will be greatly appreciated.
>
> Ritendra
>
>
> ---------------------------------------- Message History
> ----------------------------------------
>
>
> From: conor@ebinteractive.com.au on 09/11/2000 23:36
>
> Please respond to ant-user@jakarta.apache.org
>
> To:   ant-user@jakarta.apache.org
> cc:
> Subject:  RE: ejbjar and weblogic
>
>
>
> Michael,
>
> Daniel Hoppe has pointed out an issue with ejbjar when it
> comes to ejb-refs.
> I am currently working on integrating a pretty big patch to
> ejbjar. Once I
> have that in, there is another outstanding patch and then I
> would like to
> address this issue with ejb-refs.
>
> Have you also read
> http://jakarta.apache.org/ant/jakarta-ant/docs/ejb.html#ejbjar
>  where the
> naming convention used by ejbjar is discussed. If you do not use this
> convention, I think you will need to use the basejarname
> attribute to name
> the resulting jar.
>
> Cheers
> Conor
>
>
> --
> Conor MacNeill
> conor@cortexebusiness.com.au
> Cortex eBusiness
> http://www.cortexebusiness.com.au
>
> > -----Original Message-----
> > From: Shamberger, Michael [mailto:Michael.Shamberger@msdw.com]
> > Sent: Friday, 10 November 2000 9:49
> > To: 'ant-user@jakarta.apache.org'
> > Subject: ejbjar and weblogic
> >
> >
> > Hi,
> >
> > I have seen some posts regarding this particular issue, but
> did not see a
> > posted solution.  When I try to build ejb's with the ejbjar
> task I am
> > getting an error about the JNDI name not being set.  When I
> look at the
> > intermediate jar file being created, I notice that the
> > weblogic-ejb-jar.xml
> > has not been included in the jar file.  Has someone had the
> same problem?
> > Here is an excerpt from my build.xml file:
> >
> >   <!--   ###### TARGET: accountFactory.jar ######   -->
> >   <target name="accountFactory.jar"
> >           depends="externals">
> >     <ejbjar srcdir="${INTERNAL_CLASSES}"
> >
> > descriptordir="${CORE_INTERNAL_SRC}/com/msdw/online/model/factory/
> > account">
> >       <weblogic destdir="c:\temp"
> >                 classpath="${CLASSPATH}"
> >                 compiler="jikes"/>
> >       <include name="**/ejb-jar.xml"/>
> >       <exclude name="**/*weblogic*.xml"/>
> >     </ejbjar>
> >   </target>
> >
> >      [java] Forking java -classpath
> > C:\build_classes;M:\re_coreMsdw_V1\coreMsdw\classes\jakartaregexp1
> > 1.jar;M:\r
> > e_coreMsdw_V1\coreMsdw\classes\AdventNetSnmp.jar;M:\re_coreMsdw_V1
> > \coreMsdw\
> > classes\AdventNetSnmpAgent.jar;M:\re_coreMsdw_V1\coreMsdw\classes\
> > log4j.jar;
> > M:\re_coreMsdw_V1\coreMsdw\classes\Acme.jar;M:\re_coreMs
> > dw_V1\coreMsdw\classes\jaxp.jar;M:\re_coreMsdw_V1\coreMsdw\classes
> > \mqjms.jar
> > ;C:\weblogic\lib\jConnect.jar;C:\weblogic\lib\poolorb.jar;C:\weblo
> > gic\lib\te
> > ngahbeans.jar;C:\weblogic\lib\weblogicaux.jar;C:\weblogic\lib\webl
> > ogicbeans.
> > jar;C:\weblo
> > gic\classes;C:\jakarta-ant\lib\ant.jar;C:\jakarta-ant\lib\parser.j
> > ar;C:\jdk1
> > .2.2\lib\tools.jar weblogic.ejbc -compiler jikes -noexit
> > C:\temp\ejb-generic.jar C:\temp\ejb.jar
> >      [java] ERROR: Error from ejbc: The JNDI name of bean
> > AccountFactory was
> > not set
> >      [java] ERROR: Error from ejbc: No JNDI name set for the
> > referenced EJB
> > in EJB Reference ejb/AcctParticipantFactoryHome
> >      [java] ERROR: Error from ejbc: No JNDI name set for the
> > referenced EJB
> > in EJB Reference ejb/SubAccountFactoryHome
> >      [java] weblogic.utils.compiler.ToolFailureException: ERROR:
> > ejbc found
> > errors
> >      [java]     at weblogic.ejbc.runBody(ejbc.java, Compiled Code)
> >      [java]     at weblogic.utils.compiler.Tool.run(Tool.java:80)
> >      [java]     at weblogic.ejbc.main(ejbc.java:353)
> >      [java] Java Result: 1
> >    [ejbjar] deleting generic jar C:\temp\ejb-generic.jar
> >
>
>
>
>
>
>
> --
>
> This e-mail may contain confidential and/or privileged
> information. If you are not the intended recipient (or have
> received this e-mail in error) please notify the sender
> immediately and destroy this e-mail. Any unauthorised
> copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden.
>


Mime
View raw message