ahh ... okay... Well my problem isn't fixed in 1.5. Erik Hatcher wrote:
>Ignore Andy... :) > >Just upgrade to Ant 1.5, which now handles MDB's. > > Erik > > >----- Original Message ----- >From: "Kyle Adams" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Thursday, May 09, 2002 11:28 AM >Subject: MDB, Ant 1.4.1, and <ejbjar> > > >We're trying to compile EJB 2.0 message driven beans, using the <ejbjar> >task. It seems that <ejbjar> is not placing the class specified in the ><ejb- >class> tag in the generic jar, and thus creation of the vendor-specific jar >fails. > >As can be seen in the build log below, Ant's not even trying to add >the class specified in <ejb-class> to the generic jar. > >I've seen hints here and there that <ejbjar> does not work with message >driven beans - is this correct? If so, are there any patches/workarounds? > >Kyle > >Relevant info from the ejb-jar.xml: > ><?xml version="1.0" encoding="UTF-8"?> ><!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise >JavaBeans 2.0//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_2_0.dtd"> ><ejb-jar> > <enterprise-beans> > <message-driven> > <ejb-name>RebateAccrualConsumerEJB</ejb-name> > ><ejb-class>com.gfs.corp.component.customer.rebateMessages.rebateAccrualConsu >mer.ejb.RebateAccrualConsumerEJB</ejb-class> > <transaction-type>Container</transaction-type> > <message-driven-destination> > <destination-type>javax.jms.Queue</destination-type> > </message-driven-destination> > </message-driven> > </enterprise-beans> > <ejb-client-jar>rebateAccrualConsumer_client.jar</ejb-client-jar> ></ejb-jar> > >Relevant info from the build log: > >FileSet: Setup file scanner in dir >D:\sandbox\component\customer\rebateMessages\stage\META-INF with >patternSet{ includes: [ejb-jar.xml] excludes: [weblogic*.xml] } >1 deployment descriptors located. >Mapped publicId -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN >to file d:\sandbox\tools\snap\data\ejb-jar_2_0.dtd >Mapped publicId -//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN to file >d:\sandbox\tools\snap\data\weblogic-ejb-jar.dtd >Resolved -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN to >local file d:\sandbox\tools\snap\data\ejb-jar_2_0.dtd >FileSet: Setup file scanner in dir >D:\sandbox\component\customer\rebateMessages\stage with patternSet{ >includes: [com/gfs/corp/**/*.class, com/gfs/corp/**/dao/**/*.class] >excludes: [com/gfs/corp/**/ejb/*] } >Mapped publicId -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN >to file d:\sandbox\tools\snap\data\ejb-jar_2_0.dtd >Mapped publicId -//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN to file >d:\sandbox\tools\snap\data\weblogic-ejb-jar.dtd >Resolved -//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN to local file >d:\sandbox\tools\snap\data\weblogic-ejb-jar.dtd >Finding class >com.gfs.corp.component.customer.rebateMessages.RebateAccrualRequest >Class java.lang.Object loaded from parent loader >Class java.io.Serializable loaded from parent loader >Class com.gfs.corp.component.customer.rebateMessages.RebateAccrualRequest >loaded from ant loader >looking at class >com.gfs.corp.component.customer.rebateMessages.RebateAccrualRequest >Finding class >com.gfs.corp.component.customer.rebateMessages.RebateAccrualAlarm >Class com.gfs.corp.component.customer.rebateMessages.RebateAccrualAlarm >loaded from ant loader >looking at class >com.gfs.corp.component.customer.rebateMessages.RebateAccrualAlarm >Finding class >com.gfs.corp.component.customer.rebateMessages.RebateAccrualCompletion >Class com.gfs.corp.component.customer.rebateMessages.RebateAccrualCompletion >loaded from ant loader >looking at class >com.gfs.corp.component.customer.rebateMessages.RebateAccrualCompletion >Finding class >com.gfs.corp.component.customer.rebateMessages.RebateAccrualNotification >Class >com.gfs.corp.component.customer.rebateMessages.RebateAccrualNotification >loaded from ant loader >looking at class >com.gfs.corp.component.customer.rebateMessages.RebateAccrualNotification >building customerRebateMessages_ejb.jar with 6 files >adding file >'com\gfs\corp\component\customer\rebateMessages\RebateAccrualRequest.class' >adding file 'META-INF/ejb-jar.xml' >adding file >'com\gfs\corp\component\customer\rebateMessages\RebateAccrualAlarm.class' >adding file 'META-INF/weblogic-ejb-jar.xml' >adding file >'com\gfs\corp\component\customer\rebateMessages\RebateAccrualCompletion.clas >s' >adding file >'com\gfs\corp\component\customer\rebateMessages\RebateAccrualNotification.cl >ass > +Task: java >Calling weblogic.ejbc20 for >D:\sandbox\component\customer\rebateMessages\deploy\customerRebateMessages_e >jb-generic.jar > ><snip> > >ERROR: Error from ejbc: Unable to load a class specified in your >ejb-jar.xml: >com.gfs.corp.component.customer.rebateMessages.rebateAccrualConsumer.ejb.Reb >ateAccrualConsumerEJB >ERROR: ejbc found errors > > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
