Hi, ANT ver: 4.1 WebLogic : 5.1
When I use ejbjar task for ejbs, I get following message: "Exception while calling weblogic.ejbc Details: Ejbc reported an error" Also ANT gives exception if I name my weblogic xml file as 'weblogic-ejb-jar.xml', it asks me to name it as : 'ejb-weblogic-ejb-jar.xml' Can someone help me, what is going wrong. Regards -Shakeel ------------------------------------------ build.xml ------------------------------------- <project name="LearnAnt" default="compile" basedir="."> <description> simple example build file </description> <!-- set global properties for this build --> <property name="src" location="/test"/> <property name="build" location="build"/> <property name="dist" location="dist"/> <target name="init"> <!-- Create the time stamp --> <tstamp/> <!-- Create the build directory structure used by compile --> <mkdir dir="${build}"/> </target> <target name="copy_images"> <echo message="copying images"/> <!-- Copy the war file --> <copy todir="${build}"> <fileset dir="./images"/> </copy> </target> <target name="compile-java" depends="init" description="compile the source " > <!-- Compile the java code from ${src} into ${build} --> <javac srcdir="${src}" destdir="${build}"/> </target> <target name="compile-ejb" depends="compile-java"> <ejbjar srcdir="${build}" descriptordir="." > <weblogic destdir="./ejbs" compiler="javac" ejbcclass="weblogic.ejbc" classpath="${WEBLOGICCLASSPATH}:${CLASSPATH}" keepgeneric="true" rebuild ="true" /> <include name="**/*ejb-jar.xml"/> <!--<exclude name="**/*weblogic*.xml"/>--> <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" location="./ejb-jar_1_1.dtd"/> <dtd publicId="-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN" location="./weblogic-ejb-jar.dtd"/> </ejbjar> </target> <target name="compile" depends="compile-ejb,copy_images" description="generate the distribution" > <!-- Create the distribution directory --> <mkdir dir="${dist}/lib"/> <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file --> <jar jarfile="${dist}/lib/MyProject-${DSTAMP}.jar" basedir="${build}"/> </target> <target name="clean" description="clean up" > <!-- Delete the ${build} and ${dist} directory trees --> <delete dir="${build}"/> <delete dir="${dist}"/> </target> </project> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>