ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Atul V. Setlur" <aset...@nvisia.com>
Subject Multiple EJBs located in the same directory aren't created
Date Wed, 28 Feb 2001 20:46:25 GMT

I have two EJBs in the same directory. When I invoke the target to
create the EJB jars it only compiles the first EJB. When I invoke it for
the second time it will compile the second ejb. The third time I invoke
it I receive the message that both EJBs are up to date. 

I noticed is that the console doesn't report "BUILD SUCCESSFUL" for the
first two calls. Can anyone explain this behavior? Also why doesn't the
second EJB jar get created and compiled the first time.  

Thanks,
-Atul
Other details:
Ant 1.3 beta3
Weblogic 5.1
target defined in build.xml
  
  <target name="ejbs" >
    <ejbjar srcdir="${src}"
            flatdestdir="true"
            descriptordir="${src}">
      <weblogic destdir="${dist.dir}" newCMP="true"/>
      <include name="**/*-ejb-jar.xml"/>
      <exclude name="**/*weblogic*.xml"/>
    </ejbjar>
  </target>


~~Debug output when ant ejbs is run the first time:

ejbs:
   [ejbjar] 2 deployment descriptors located.
   [ejbjar] looking at interface
com.nvisia.internal.wishlist.service.ejb.ItemEJB
   [ejbjar]      implements javax.ejb.EJBObject
   [ejbjar]      implements com.nvisia.internal.wishlist.service.Item
   [ejbjar] looking at interface
com.nvisia.internal.wishlist.service.ejb.ItemEJBHome
   [ejbjar]      implements javax.ejb.EJBHome
   [ejbjar] looking at class
com.nvisia.internal.wishlist.service.ejb.ItemEJBImpl
   [ejbjar] building Item.jar with 8 files
   [ejbjar] adding file
'com\nvisia\internal\wishlist\service\ejb\ItemEJB.class'

   [ejbjar] adding file
'com\nvisia\internal\wishlist\service\ejb\AbstractEntity
Bean.class'
   [ejbjar] adding file 'META-INF/ejb-jar.xml'
   [ejbjar] adding file
'com\nvisia\internal\wishlist\service\Item.class'
   [ejbjar] adding file
'com\nvisia\internal\wishlist\service\ejb\ItemEJBHome.class'
   [ejbjar] adding file 'META-INF/Item-weblogic-cmp-rdbms-jar.xml'
   [ejbjar] adding file 'META-INF/weblogic-ejb-jar.xml'
   [ejbjar] adding file
'com\nvisia\internal\wishlist\service\ejb\ItemEJBImpl.class'
   +Task: java
   [ejbjar] Calling weblogic.ejbc for
C:\home\asetlur\project\bic\lib\dist\Item-generic.jar
     [ejbc] Running in same VM weblogic.ejbc
C:\home\asetlur\project\bic\lib\dis
t\Item-generic.jar C:\home\asetlur\project\bic\lib\dist\Item.jar
[EJB]: Creating output jar:C:\home\asetlur\project\bic\lib\dist\Item.jar

~~Debug output when "ant ejbs" is run the second time:

ejbs:
   [ejbjar] 2 deployment descriptors located.
   [ejbjar] looking at interface
com.nvisia.internal.wishlist.service.ejb.ItemEJB
   [ejbjar]      implements javax.ejb.EJBObject
   [ejbjar]      implements com.nvisia.internal.wishlist.service.Item
   [ejbjar] looking at interface
com.nvisia.internal.wishlist.service.ejb.ItemEJBHome
   [ejbjar]      implements javax.ejb.EJBHome
   [ejbjar] looking at class
com.nvisia.internal.wishlist.service.ejb.ItemEJBImpl
   [ejbjar] C:\home\asetlur\project\bic\lib\dist\Item.jar is up to date.
   [ejbjar] looking at interface
com.nvisia.internal.wishlist.service.ejb.WishlistEJBHome
   [ejbjar]      implements javax.ejb.EJBHome
   [ejbjar] looking at interface
com.nvisia.internal.wishlist.service.ejb.WishlistEJB
   [ejbjar]      implements javax.ejb.EJBObject
   [ejbjar]      implements
com.nvisia.internal.wishlist.service.Wishlist
   [ejbjar] looking at class
com.nvisia.internal.wishlist.service.ejb.WishlistEJBImpl
   [ejbjar] building Wishlist.jar with 7 files
   [ejbjar] adding file 'META-INF/Wishlist-weblogic-cmp-rdbms-jar.xml'
   [ejbjar] adding file 'META-INF/ejb-jar.xml'
   [ejbjar] adding file
'com\nvisia\internal\wishlist\service\ejb\WishlistEJBHome.class'
   [ejbjar] adding file
'com\nvisia\internal\wishlist\service\Wishlist.class'
   [ejbjar] adding file
'com\nvisia\internal\wishlist\service\ejb\WishlistEJB.class'
   [ejbjar] adding file 'META-INF/weblogic-ejb-jar.xml'
   [ejbjar] adding file
'com\nvisia\internal\wishlist\service\ejb\WishlistEJBImpl.class'
   +Task: java
   [ejbjar] Calling weblogic.ejbc for
C:\home\asetlur\project\bic\lib\dist\Wishlist-generic.jar
     [ejbc] Running in same VM weblogic.ejbc
C:\home\asetlur\project\bic\lib\dist\Wishlist-generic.jar
C:\home\asetlur\project\bic\lib\dist\Wishlist.jar
[EJB]: Creating output
jar:C:\home\asetlur\project\bic\lib\dist\Wishlist.jar

~~Debug info when I run it the third time:

ejbs:
   [ejbjar] 2 deployment descriptors located.
   [ejbjar] looking at interface
com.nvisia.internal.wishlist.service.ejb.ItemEJB
   [ejbjar]      implements javax.ejb.EJBObject
   [ejbjar]      implements com.nvisia.internal.wishlist.service.Item
   [ejbjar] looking at interface
com.nvisia.internal.wishlist.service.ejb.ItemEJBHome
   [ejbjar]      implements javax.ejb.EJBHome
   [ejbjar] looking at class
com.nvisia.internal.wishlist.service.ejb.ItemEJBImpl
   [ejbjar] C:\home\asetlur\project\bic\lib\dist\Item.jar is up to date.
   [ejbjar] looking at interface
com.nvisia.internal.wishlist.service.ejb.WishlistEJBHome
   [ejbjar]      implements javax.ejb.EJBHome
   [ejbjar] looking at interface
com.nvisia.internal.wishlist.service.ejb.WishlistEJB
   [ejbjar]      implements javax.ejb.EJBObject
   [ejbjar]      implements
com.nvisia.internal.wishlist.service.Wishlist
   [ejbjar] looking at class
com.nvisia.internal.wishlist.service.ejb.WishlistEJBImpl
   [ejbjar] C:\home\asetlur\project\bic\lib\dist\Wishlist.jar is up to
date.

BUILD SUCCESSFUL

Mime
View raw message