2 Replies Latest reply: May 11, 2012 4:20 PM by 928350 RSS

    Deploy EAR(J2EE) application using ANT Script on OAS ADF 10g

    928350
      Hello,
      I am new to Jdeveloper/ADF, I have a task to generate and deploy EAR file using ANT. The whole idea is to automate build and deployment process with ANT/Cruise Control. I am having issue in my ANT script with deploying EAR file to OAS.

      I could generate/build EAR file from local machine by running ANT script, the last target of ANT script which deploy the EAR is failing. My ANT script looks like this

      <target name="deployear" depends="generate_ear">
      <echo message="-----> Deploying the application module deployment (ear) file"/>
      <oracle:deploy deployerUri="deployer:oc4j:opmn://myserver/home"
      userid="oc4jadmin"
      password="password"
      file="${output.dir}/${earname}"
      deploymentName="MyApp"
      bindAllWebApps="default-web-site"/>
      </target>

      The error message I get:

      D:\jdev_rep\ESupport\trunk\Deployment>ant
      Buildfile: D:\jdev_rep\ESupport\trunk\Deployment\build.xml

      BUILD FAILED
      D:\jdev_rep\ESupport\trunk\Deployment\build.xml:308: The prefix "oracle" for element "oracle:deploy" is not bound.

      Total time: 0 seconds

      I searched online, I couldn't fine much information. Please let me know if you need any further details.