ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Muhammad, Shakeel [IT]" <>
Subject Get Exception running ANT with WebLogic 5.1
Date Thu, 01 Aug 2002 18:28:57 GMT

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
it asks me to name it as : 'ejb-weblogic-ejb-jar.xml' 

Can someone help me, what is going wrong.



<project name="LearnAnt" default="compile" basedir=".">
        simple example build file
  <!-- 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 -->
    <!-- Create the build directory structure used by compile -->
    <mkdir dir="${build}"/>

  <target name="copy_images">
        <echo message="copying images"/>
         <!-- Copy the war file -->
          <copy todir="${build}">
              <fileset dir="./images"/>

  <target name="compile-java" depends="init"
        description="compile the source " >
    <!-- Compile the java code from ${src} into ${build} -->
    <javac srcdir="${src}" destdir="${build}"/>

  <target name="compile-ejb" depends="compile-java">
   <ejbjar srcdir="${build}" descriptordir="."  >
                <weblogic destdir="./ejbs" compiler="javac"
                          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"


  <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 name="clean"
        description="clean up" >
    <!-- Delete the ${build} and ${dist} directory trees -->
    <delete dir="${build}"/>
    <delete dir="${dist}"/>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message