ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Smith <>
Subject Re: EjbJar
Date Tue, 17 Oct 2000 15:27:46 GMT
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
Ok, I had the exact same problem and here are a couple of suggestions:
<p>First:&nbsp; Are you using the latest 1.2 build?
<p>Second:&nbsp; Are the weblogic classes in you ant execution classpath?&nbsp;
It was explained to me by Conor MacNeil, who is the person writing the
ejbjar stuff, that "You need to make sure the weblogic classes are in the
classpath you use to run ant since the parsing which requires the DTD is
done in the ant task before it forks a new VM to run the ejbc task."
<p>Third:&nbsp; Use the 'excludes' tag to exclude the 'weblogic-ejb-jar.xml'
file.&nbsp; This one gave me some troubles until Conor came to the rescue
and pointed out that "ejbjar does not process the weblogic xml files directly
but rather by their association with a standard deployment descriptor."
<p>Basically, this is what his code snippet looks like:
<br>&nbsp;&nbsp;&nbsp; &lt;ejbjar descriptordir="${dd.webshop.dir}"
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;weblogic destdir="${deployment.webshop.dir}"
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;include name="**/*-ejb-jar.xml"/>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;exclude name="**/*-weblogic-ejb-jar.xml"/>
<br>&nbsp;&nbsp;&nbsp; &lt;/ejbjar>
<p>I tried it and it worked fine for me.&nbsp; Hope this helps.
"Sometimes I wish I could be you, just so I could be friends with me."<br>
-- Agelica Pickles

View raw message