Forum Stats

  • 3,783,607 Users
  • 2,254,809 Discussions


ADF EAR deployment to Oracle JCS through ANT script

Hi Expert,

I am trying to deploy EAR file to Oracle JCS through ANT script but somehow it's not working. I am using below script which I found from Oracle site.

<project name="sample-how-to-use-ant" default="all" basedir="."


            <path id="javacloud.classpath">

                <pathelement location="${SDK_HOME}/lib/ant-javacloud.jar"/>


            <taskdef uri="antlib:oracle.javacloud.antlib" resource="oracle/javacloud/antlib.xml" classpathref="javacloud.classpath"/>

<path id="local.classpath">

                <pathelement path="${SDK_HOME}/lib/localextension.jar"/>

                <pathelement path="${SDK_HOME}/lib/whitelist.jar"/>

                <pathelement path="${ORACLE_HOME}/lib/weblogic.jar"/>


                        <target name="deploy">

                <install local="${LOCAL}" failonerror="true" adminurl="${ADMIN_URL}"

                    user="${USER}" password="${PASSWORD}"

                    identitydomain="${IDENTITY_DOMAIN}" serviceinstance="${SERVICE_INSTANCE}"


                        path="${PATH}" >

                    <classpath refid="local.classpath"/>




I am getting below error. Any help will be appreciated. I have Oracle Jdev12c and Ant (1.10) installed on my local and firing ant command through my windows system to install.


C:\Deployment\build.xml:23: Problem: failed to create task or type install

Cause: The name is undefined.

Action: Check the spelling.

Action: Check that any custom tasks/types have been declared.

Action: Check that any <presetdef>/<macrodef> declarations have taken place.

This discussion has been closed.