Hi,

I'm using Ant 1.2, WebLogic 5.1 and TopLink 2.5.1.
I can build regular session beans fine with ant but I'm running into
problems with entity beans using TopLink.
It appears ant does not include the toplink DD in the generic jar file.
Weblogic.ejbc therefore generates errors since the weblogic DD is
referencing it.

Any idea what I'm doing wrong?

My ant build.xml target:

  <target name="ejb" 
          description="Builds and deploys the EJBs" 
          depends="compile">

    <ejbjar descriptordir="${hw.src}"
            srcdir="${hw.classes}">
      <weblogictoplink destdir="${hw.classes}"
                      
toplinkdescriptor="Customer-toplink-ejb-jar.xml"/>
      <include name="**/Customer-ejb-jar.xml"/>
      <exclude name="**/Customer-weblogic-ejb-jar.xml"/>
    </ejbjar>

    <ejbjar  descriptordir="${hw.src}"
             srcdir="${hw.classes}">
      <weblogictoplink destdir="${hw.classes}"
                      
toplinkdescriptor="PurchaseOrder-toplink-ejb-jar.xml"/>
      <include name="**/PurchaseOrder-ejb-jar.xml"/>
      <exclude name="**/PurchaseOrder-weblogic-ejb-jar.xml"/>
    </ejbjar>

    <ejbjar descriptordir="${hw.src}"
            srcdir="${hw.classes}">
      <weblogic destdir="${hw.classes}"/>
      <include name="**/*-ejb-jar.xml"/>
      <exclude name="**/*-weblogic-ejb-jar.xml"/>
    </ejbjar>

  </target>

cyril@wyvern:~/p4/hotwire/2.0/build> ant ejb -debug
[...]
1 deployment descriptors located.
building Customer.jar with 5 files
adding file 'hotwire/biz/usr/cust/CustomerBean.class'
adding file 'META-INF/ejb-jar.xml'
adding file 'META-INF/weblogic-ejb-jar.xml'
adding file 'hotwire/biz/usr/cust/CustomerEJB.class'
adding file 'hotwire/biz/usr/cust/CustomerHome.class'
   +Task: java
Calling weblogic.ejbc for
/home/cyril/p4/hotwire/2.0/classes/hotwire/biz/usr/cust/Customer-generic.jar
Running in same VM weblogic.ejbc -noexit
/home/cyril/p4/hotwire/2.0/classes/hotwire/biz/usr/cust/Customer-generic.jar
/home/cyril/p4/hotwire/2.0/classes/hotwire/biz/usr/cust/Customer.jar
ERROR: Error from ejbc: Error initializing the CMP Persistence Type for
your bean: 
Could not find descriptor file with Jar entry name
'META-INF/toplink-ejb-jar.xml' for specified type TOPLink for WebLogic
 Please be sure this file is available in your ejb-jar file.

Any help/suggestion is appreciated. :)
begin:vcard 
n:Bouteille;Cyril
tel;work:(415) 343-8405
x-mozilla-html:FALSE
url:http://www.hotwire.com
org:<a href=http://www.hotwire.com><img border=0 src=http://www.hotwire.com/assets/logo_white.gif></a>
version:2.1
email;internet:[EMAIL PROTECTED]
title:Java Software Architect
note:<a href=http://calendar.yahoo.com/cyrilbouteille>View my agenda</a>
adr;quoted-printable:;;333 Market St=0D=0ASuite #100;San Francisco;California;94105;USA
x-mozilla-cpt:;-21368
fn:Cyril Bouteille
end:vcard

S/MIME Cryptographic Signature

Reply via email to