ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Flemetakis" <>
Subject Re: Ant 1.4 and Java weblogic.ejbc20 command problems
Date Thu, 06 Sep 2001 22:48:13 GMT
I am sorry, I am not really sure of how to fix your particular problem.. 
what I am wondering is why don't you use the EJB task that comes with Ant 
for creating your ejb's??

This is a sample that works for me.. there is some staging that you must do 
before hand (as it relates to deployment descriptors) but other than that it 
works great everytime.. just my .02 cents..

  <target name="ejb" depends="compile, compileLocal">
      <ejbjar srcdir="${dir.dsn-classes}" 
       	<include name="**/*jar.xml"/>
        <weblogic destdir="${dir.ear_staging}"
       	    <classpath refid="lib_classpath"/>
       	    <wlclasspath refid="lib_classpath"/>

>From: "Martin, Jim" <>
>To: "Ant-User (E-mail)" <>
>CC: "Martin, Jim" <>
>Subject: Ant 1.4 and Java weblogic.ejbc20 command problems
>Date: Thu, 6 Sep 2001 17:07:17 -0400
>Hi all,
>I'm getting this error:
>      [java] error: cannot read: C:\dev\Message Broker
>      [java] 1 error
>      [java] Exec failed .. exiting
>      [java] Java Result: 1
>When trying to execute this task:
>	<target name="ejbc" depends="jar_ejbs">
>		<java classname="weblogic.ejbc20" fork="yes">
>			<sysproperty key="weblogic.home"
>			<arg line="-compiler javac  ${build}/hit_cendant.jar
>${build}/hit_cendant_ejb.jar "/>
>			<classpath>
>				<pathelement
>			</classpath>
>		</java>
>	</target>
>Where hit_cendant.jar appears to be a valid jar file, which will deploy
>correctly when dropped into the applications directory in wls6.1.
>The jar file contains:
>Any ideas?
>"The sender believes that this E-mail and any attachments were free of any
>virus, worm, Trojan horse, and/or malicious code when sent.  This message
>and its attachments could have been infected during transmission.  By
>reading the message and opening any attachments, the recipient accepts full
>responsibility for taking protective and remedial action about viruses and
>other defects.  The sender's employer is not liable for any loss or damage
>arising in any way from this message or its attachments."

Get your FREE download of MSN Explorer at

View raw message