ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lybarger <Mark.Lybar...@CBC-Companies.com>
Subject ejbjar not finding weblogic.xml
Date Wed, 24 Sep 2003 15:12:37 GMT
my ejbjar task is not finding the weblogic.xml file. here's my task.

    <ejbjar naming="ejb-name" dependency="full" destdir="${basedir}"
flatdestdir="true" srcdir="${basedir.build.web-inf.classes}"
descriptordir="${basedir.build.web-inf.src}">
                <weblogic destdir="${basedir.ejb.build}"
 
wlclasspath="${weblogic.lib.dir}/weblogic.jar:${basedir.webapp.web-inf.lib}/
jdom-b8.jar"
 
classpath="${classpath}:${basedir.build.web-inf.classes}:${weblogic.lib.dir}
/weblogic.jar"
                  compiler="javac"/>
                <include name="**/ejb-jar.xml"/>
                <include name="**/*-ejb-jar.xml"/>
                <exclude name="**/*weblogic-*.xml"/>
                <exclude name="**/eventsubmit/*"/>
        <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans
2.0//EN" location="${isac-project.dir}/dtd/ejb-jar.dtd"/>
        <dtd publicId="-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN"
location="${isac-project.dir}/dtd/weblogic-ejb-jar.dtd"/>                
    </ejbjar>   


the deployment descriptors are named BeanName-ejb-jar.xml and
BeanNameBean-weblogic-ejb-jar.xml.  this seems to correctly pick up the
BeanNameBean-ejb-jar.xml and name it correctly to ejb-jar.xml in the generic
jar file that is sent to the weblogic task.  for some reason it doesn't see
the weblogic dd.  i've found mixed statements on the archives regarding
this.  the reason i'm using the naming of ejb-name is that the deployent
descriptors (some) are coming from xdoclet and it has troubles generating
one ejb-jar.xml file per bean without using the BeanNameBean prefix.  

asside from this being a possible bug in the ant task, would anyone be able
to help out with a move task that will rename all 
**/*-weblogic-ejb-jar.xml to **/weblogic-ejb-jar.xml. keeping the resultant
file in the same directory? it's a hack, but it'll probably do the job.
btw, i'm restrained to jdk 1.3 so no regexp.

thanks!

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.518 / Virus Database: 316 - Release Date: 9/11/2003
 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message