ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@ebinteractive.com.au>
Subject RE: ejbjar and weblogic
Date Thu, 09 Nov 2000 23:36:36 GMT
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
>


Mime
View raw message