Oracle DataSource and WebSphere 5.1 - CMP

Hi all,

I'm deploying EJB in my build.xml (ANT); however, my build script only put up the default db which is DB2UDBNT_V72_1, but my WebSphere 5.1 is using Oracle 8.1 dataSource. So, I modified my build.xml to the following

  <target name="ws51-ejb-build" depends="compile" if="ws51.library.available">
    <mkdir dir="${build.lib}"/>
    <property name="websphere.home" value="${env.WAS_HOME}"/>
    <ejbjar srcdir="${build.classes}" destdir="${build.lib}" descriptordir="${source.etc}/META-INF" dependency="none" manifest="${source.etc}/META-INF/MANIFEST-ws.MF" basejarname="application.ejb-ws51">
       <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" location="${sun.j2ee13.ejb-dtd}"/>
       <include name="**/ejb-jar-mdb.xml"/>
       <exclude name="**/weblogic-ejb*.xml"/>
       <exclude name="**/ejb-jar.xml"/>
       <support dir="${build.classes}">
         <include name="**"/>
         <path refid="dependentmodule.classpath" />
       <websphere dbvendor="ORACLE_V8" ejbdeploy="false" destdir="${build.lib}" keepgeneric="false" suffix="-ejb-tmp.jar" oldCMP="false" tempdir="/tmp">
           <pathelement location="${ibm.ws51.root}/deploytool/itp/plugins/org.eclipse.core.boot/boot.jar"/>
           <pathelement location="${ibm.ws51.root}/deploytool/itp/plugins/"/>
           <pathelement location="${ibm.ws51.lib}/xerces.jar"/>
           <pathelement location="${ibm.ws51.lib}/ivjejb35.jar"/>
           <pathelement location="${ibm.ws51.lib}/j2ee.jar"/>
           <pathelement location="${ibm.ws51.lib}/vaprt.jar"/>

  <target name="ejbdeploy-ws51-uptodate">
    <condition property="ws51-uptodate">
      <uptodate targetfile="${build.lib}/${}-ws51-ejb.jar">
        <srcfiles dir="${build.lib}" >
          <include name="${}-ws51-ejb-tmp.jar"/>

  <target name="ejbdeploy-ws51" depends="ejbdeploy-ws51-uptodate" unless="ws51-uptodate">
    <echo message="Output from command will be in /tmp/ejbdeploy-ws51.log ."/>
    <exec executable="${ibm.ws51.root}/deploytool/" output="/tmp/ejbdeploy-ws51.log">
       <arg value="${ibm.ws51.root}"/>
       <arg value="${build.lib}/${}-ws51-ejb-tmp.jar"/>
       <arg value="/tmp"/>
       <arg value="${build.lib}/${}-ws51-ejb.jar"/>

But this script doesn't work. Still it generated DB2UDBNT_V72_1 table mapping...

Please help! Thank you!!
Who is Participating?
Computer101Connect With a Mentor Commented:
PAQed, with points refunded (500)

E-E Admin

You can follow the guide below to check the steps....

hung2003Author Commented:
I didn't find my ans from your link, R.K.

My question is what is wrong with my build.xml, and how can I make it work? I thought the only key thing is "dbvendor"? Or there are other things I need?

hung2003Author Commented:
I got my question solved by myself
just added one more arg instead of add dbvender inside <websphere>


However, I can't delete this question.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.