Deploy application using ant script vs shell script

Hi,
I work with OAS 10.1.2 and I'm using shell script with dcmctl command to deploy EAR into OC4J but I know that ant script do the same things. I want to know if my choice is good or is it better to use ant script ?
Regards

This is difficult to decide.
When you have just a few ear files you deploy once in a while a shell script might be sufficient. When developing more complex systems you should use ant as this is easier to maintain.
cu
Andreas

Similar Messages

  • How to remotely deploy adf application using ant script

    Please suggest some pointer on how to remotely deploy adf application using ant script.
    I have created automatic inbuild ant script using jdevloper and ojdeploy that create a war file into my adf application deploy folder.
    Now i want my war to be deploy remotely on weblogic server.
    Is there any inbuld functionality provided by jdeveloper for same.
    Can any one please share build.xml for adf application for deploying application remotely.
    I try to use wlserver but not much success.
    Thanks in advance.
    Sumit Bhasin

    [url http://download.oracle.com/docs/cd/E12839_01/web.1111/e13706/wldeploy.htm]the docs are pretty good.
    John

  • Error while deploying adf application using ant script or jdevloper IDE

    Hi All,
    While deploying adf application into cluster weblogic server I am getting strange error though my weblogic server is working fine as I checked it from weblogic console. Seems that there is some heap memory issue but don’t know the exact cause as it work perfectly if I restart the server.
    Same error i get when i try to deploy application from Jdeveloper IDE though it created the server connection successfully.
    Please help me by provided valuable tips to overcome this problem or any special tips to optimize weblogic server for ADF.
    Thanks in advance
    Error Reference:
    Buildfile: builddeploy.xml
    deploy:
    [wldeploy] weblogic.Deployer -debug -stage -verbose -upload -noexit -name admin -source W:\GRS\TEMP_RELEASE\ADFNEW\RSWG_PROJECTS\RSWGADMIN\GRSWEBAPPADMIN\deploy\admin.war -targets ADR_Cluster_1 -adminurl t3://WebServercom:7001 -user weblogic -password ******** -deploy
    [wldeploy] weblogic.Deployer invoked with options: -debug -stage -verbose -upload -noexit -name admin -source W:\GRS\TEMP_RELEASE\ADFNEW\RSWG_PROJECTS\RSWGADMIN\GRSWEBAPPADMIN\deploy\admin.war -targets ADR_Cluster_1 -adminurl t3://WebServercom:7001 -user weblogic -deploy
    [wldeploy] [WebLogicDeploymentManagerImpl.<init>():103] : Constructing DeploymentManager for J2EE version V1_4 deployments
    [wldeploy] [WebLogicDeploymentManagerImpl.getNewConnection():146] : Connecting to admin server at WebServercom:7001, as user weblogic
    [wldeploy] [ServerConnectionImpl.getEnvironment():286] : setting environment
    [wldeploy] [ServerConnectionImpl.getEnvironment():289] : getting context using t3://WebServercom:7001
    [wldeploy] [ServerConnectionImpl.getMBeanServer():237] : Connecting to MBeanServer at service:jmx:t3://WebServercom:7001/jndi/weblogic.management.mbeanservers.domainruntime
    [wldeploy] [ServerConnectionImpl.getMBeanServer():237] : Connecting to MBeanServer at service:jmx:t3://WebServercom:7001/jndi/weblogic.management.mbeanservers.runtime
    [wldeploy] [DomainManager.resetDomain():36] : Getting new domain
    [wldeploy] [DomainManager.resetDomain():39] : Using pending domain: false
    [wldeploy] [MBeanCache.addNotificationListener():96] : Adding notification listener for weblogic.deploy.api.spi.deploy.mbeans.TargetCache@1d27069
    [wldeploy] [MBeanCache.addNotificationListener():103] : Added notification listener for weblogic.deploy.api.spi.deploy.mbeans.TargetCache@1d27069
    [wldeploy] [MBeanCache.addNotificationListener():96] : Adding notification listener for weblogic.deploy.api.spi.deploy.mbeans.ModuleCache@200db9
    [wldeploy] [MBeanCache.addNotificationListener():103] : Added notification listener for weblogic.deploy.api.spi.deploy.mbeans.ModuleCache@200db9
    [wldeploy] [ServerConnectionImpl.initialize():169] : Connected to WLS domain: ADR_domain
    [wldeploy] [ServerConnectionImpl.setRemote():480] : Running in remote mode
    [wldeploy] [ServerConnectionImpl.init():159] : Initializing ServerConnection : [email protected]21b
    [wldeploy] [BasicOperation.dumpTmids():706] : Incoming tmids:
    [wldeploy] [BasicOperation.dumpTmids():708] : {Target=ADR_Cluster_1, WebLogicTargetType=cluster, Name=admin}, targeted=true
    [wldeploy] [BasicOperation.deriveAppName():140] : appname established as: admin
    [wldeploy] <23-Sep-2011 11:05:14 o'clock BST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for application, admin [archive: W:\GRS\TEMP_RELEASE\ADFNEW\RSWG_PROJECTS\RSWGADMIN\GRSWEBAPPADMIN\deploy\admin.war], to ADR_Cluster_1 .>
    [wldeploy] [ServerConnectionImpl.upload():849] : Uploaded app to /data/app/Oracle/Middleware/user_projects/domains/ADR_domain/servers/AdminServer/upload/admin
    [wldeploy] [BasicOperation.dumpTmids():706] : Incoming tmids:
    [wldeploy] [BasicOperation.dumpTmids():708] : {Target=ADR_Cluster_1, WebLogicTargetType=cluster, Name=admin}, targeted=true
    [wldeploy] [BasicOperation.loadGeneralOptions():623] : Delete Files:false
    [wldeploy] Timeout :3600000
    [wldeploy] Targets:
    [wldeploy] ADR_Cluster_1
    [wldeploy] ModuleTargets={}
    [wldeploy] SubModuleTargets={}
    [wldeploy] }
    [wldeploy] Files:
    [wldeploy] null
    [wldeploy] Deployment Plan: null
    [wldeploy] App root: \data\app\Oracle\Middleware\user_projects\domains\ADR_domain\servers\AdminServer\upload\admin
    [wldeploy] App config: \data\app\Oracle\Middleware\user_projects\domains\ADR_domain\servers\AdminServer\upload\admin\plan
    [wldeploy] Deployment Options: {isRetireGracefully=true,isGracefulProductionToAdmin=false,isGracefulIgnoreSessions=false,rmiGracePeriod=-1,retireTimeoutSecs=-1,undeployAllVersions=false,archiveVersion=null,planVersion=null,isLibrary=false,libSpecVersion=null,libImplVersion=null,stageMode=stage,clusterTimeout=3600000,altDD=null,altWlsDD=null,name=admin,securityModel=null,securityValidationEnabled=false,versionIdentifier=null,isTestMode=false,forceUndeployTimeout=0,defaultSubmoduleTargets=true,timeout=0,deploymentPrincipalName=null,useExpiredLock=false}
    [wldeploy]
    [wldeploy] [BasicOperation.execute():440] : Initiating deploy operation for app, admin, on targets:
    [wldeploy] [BasicOperation.execute():442] : ADR_Cluster_1
    [wldeploy] Task 5 initiated: [Deployer:149026]deploy application admin on ADR_Cluster_1.
    [wldeploy] dumping Exception stack
    [wldeploy] Task 5 failed: [Deployer:149026]deploy application admin on ADR_Cluster_1.
    [wldeploy] Target state: deploy failed on Cluster ADR_Cluster_1
    [wldeploy] java.lang.Exception: [DeploymentService:290036]Deployment for request id '1316772356780' is deferred since target 'ADR_ManagedServer_2' is disconnected.
    [wldeploy]      at weblogic.deploy.service.internal.adminserver.AdminRequestStatus.commitFailedDueToServerDisconnect(AdminRequestStatus.java:1870)
    [wldeploy]      at weblogic.deploy.service.internal.adminserver.AdminRequestStatus.access$600(AdminRequestStatus.java:51)
    [wldeploy]      at weblogic.deploy.service.internal.adminserver.AdminRequestStatus$CommitDisconnectListenerImpl.onDisconnect(AdminRequestStatus.java:2042)
    [wldeploy]      at weblogic.deploy.service.internal.transport.ServerDisconnectManager$ServerDisconnectListenerImpl.onDisconnect(ServerDisconnectManager.java:124)
    [wldeploy]      at weblogic.deploy.service.internal.transport.ServerDisconnectManager$ServerConnectDisconnectListenerImpl$2.run(ServerDisconnectManager.java:219)
    [wldeploy]      at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
    [wldeploy]      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    [wldeploy]      at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    [wldeploy]
    [wldeploy]
    [wldeploy] Target Assignments:
    [wldeploy] + admin ADR_Cluster_1
    [wldeploy] weblogic.deploy.api.tools.deployer.DeployerException: Task 5 failed: [Deployer:149026]deploy application admin on ADR_Cluster_1.
    [wldeploy] Target state: deploy failed on Cluster ADR_Cluster_1
    [wldeploy] java.lang.Exception: [DeploymentService:290036]Deployment for request id '1316772356780' is deferred since target 'ADR_ManagedServer_2' is disconnected.
    [wldeploy]      at weblogic.deploy.service.internal.adminserver.AdminRequestStatus.commitFailedDueToServerDisconnect(AdminRequestStatus.java:1870)
    [wldeploy]      at weblogic.deploy.service.internal.adminserver.AdminRequestStatus.access$600(AdminRequestStatus.java:51)
    [wldeploy]      at weblogic.deploy.service.internal.adminserver.AdminRequestStatus$CommitDisconnectListenerImpl.onDisconnect(AdminRequestStatus.java:2042)
    [wldeploy]      at weblogic.deploy.service.internal.transport.ServerDisconnectManager$ServerDisconnectListenerImpl.onDisconnect(ServerDisconnectManager.java:124)
    [wldeploy]      at weblogic.deploy.service.internal.transport.ServerDisconnectManager$ServerConnectDisconnectListenerImpl$2.run(ServerDisconnectManager.java:219)
    [wldeploy]      at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
    [wldeploy]      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    [wldeploy]      at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    [wldeploy]
    [wldeploy]
    [wldeploy]
    [wldeploy]      at weblogic.deploy.api.tools.deployer.Jsr88Operation.report(Jsr88Operation.java:542)
    [wldeploy]      at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:140)
    [wldeploy]      at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88)
    [wldeploy]      at weblogic.utils.compiler.Tool.run(Tool.java:158)
    [wldeploy]      at weblogic.utils.compiler.Tool.run(Tool.java:115)
    [wldeploy]      at weblogic.Deployer.run(Deployer.java:70)
    [wldeploy]      at weblogic.Deployer.mainWithExceptions(Deployer.java:62)
    [wldeploy]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [wldeploy]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [wldeploy]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [wldeploy]      at java.lang.reflect.Method.invoke(Method.java:597)
    [wldeploy]      at weblogic.ant.taskdefs.management.WLDeploy.invokeMain(WLDeploy.java:419)
    [wldeploy]      at weblogic.ant.taskdefs.management.WLDeploy.execute(WLDeploy.java:349)
    [wldeploy]      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [wldeploy]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [wldeploy]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [wldeploy]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [wldeploy]      at java.lang.reflect.Method.invoke(Method.java:597)
    [wldeploy]      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [wldeploy]      at org.apache.tools.ant.Task.perform(Task.java:348)
    [wldeploy]      at org.apache.tools.ant.Target.execute(Target.java:357)
    [wldeploy]      at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [wldeploy]      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [wldeploy]      at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [wldeploy]      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [wldeploy]      at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [wldeploy]      at org.apache.tools.ant.Main.runBuild(Main.java:758)
    [wldeploy]      at org.apache.tools.ant.Main.startAnt(Main.java:217)
    [wldeploy]      at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    [wldeploy]      at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    [wldeploy] [ServerConnectionImpl.close():332] : Closing DM connection
    [wldeploy] [ServerConnectionImpl.close():352] : Unregistered all listeners
    [wldeploy] [ServerConnectionImpl.closeJMX():372] : Closed JMX connection
    [wldeploy] [ServerConnectionImpl.closeJMX():384] : Closed Runtime JMX connection
    [wldeploy] [ServerConnectionImpl.closeJMX():396] : Closed Edit JMX connection

    Well, I guess you have a problem here. Check http://multikoop.blogspot.de/2012/12/deploying-adf-applications-into-oracle.html and from this
    >
    Note: In its current stage Oracle Java Cloud Service runs WebLogic Server 10.3.6 with the appropriate Runtime ADF 11.1.1.6. Deployment of ADF 11gR2 Applications is currently not supported. Beside this limitation some ADF Features are not supported on the Oracle Cloud. According to the Oracle Cloud Documentation it is not supported to use the following ADF features
    ADF Desktop Integration
    ADF mBean
    ADF MDS (Seeded customizations or cross-session personalization)
    ADF Mobile
    ADF Active Data Services (=> No real-time ADF Web Apps in Oracles Cloud)
    ADF Business Components services interfaces (web services) or events
    ADF Data Controls for BI, Essbase, BAM, and JMX
    Further there are some restrictions which are good to know I think
    No Java Mail API (=>Sending Mails is prohibited)
    No File system access by deployed applications (=>Writing files is prohibited)
    No Direct use of Oracle JDBC Driver APIs
    No Java Message Service (JMS)
    Max Size for deployment archive 95MB
    >
    I hope for you that the information from the blog has changes in the meantime (blog is from end of last year). Check the current doc for the cloud ...
    Timo

  • Problem in building the enterprise application using Ant -Wrkshop

    Hi All,
    I have developed the enterprise application using workshop and tries to build the application using Ant script and getting the following error.
    "An error occurred writing the controls client manifest."
    Regards
    Ashok

    Did you:
    a). Ensure you're using the correct version of WLS (it appears to me you're using a standalone WLS)? - correct version is 10.3.3
    b). Install the application development runtime 11.1.1.3?
    c). Extend the domain with the JRF?
    John

  • How to deploy jar file in WLS using ant script

    Hi,
    Im trying to deploy a jar file in weblogic 10.3 using ant script and am running into the below error.
    +[wldeploy] weblogic.management.DeploymentException: [J2EE:160177]The application at "/u01//RSJBObjects.jar" was not recognized as a valid application type. If this is an EAR file, please ensure the META-INF/application.xml exists. EJB-JARs should have a META-INF/ejb-jar.xml or corresponding annotations exist. If this is an exploded WAR, the name of directory must be end with ".war". RARs require a META-INF/ra.xml. A JMS deployment should be an XML file whose name ends with "-jms.xml". A JDBC deployment should be an XML file whose name ends with "-jdbc.xml". For other application types, please consult the WebLogic Server documentation.+
    When i try to deploy the same manually from the console, i get a warning stating that WLS thought this as a library and hence proceeding to deploy as a library. After this warning the deployment continues and completes.
    Problem is when i try to deploy using ant, it breaks at this point.
    Is there any means that we can deploy a jar to WLS using ant script. This has to be deployed as a library as other apps would be using this jar.
    Im unable to create a ear file for this single jar file.
    If there is any suggestion on can this be done, please share.
    Thanks,
    Vijay.

    Hi Sunil,
    Thanks for the reply, it worked.
    Another doubt on the same lines. Now that the jar has been deployed as a library in WLS, when i try to deploy a WAR which refers to this deployed jar library, im unable to. I run into and error stating that the library is inaccessible.
    I have to bounce the server and before doing that, i have to manually copy the library.jar from <WLS_domain>/servers/AdminServer/upload/ directory to <WLS_domain>/lib/ directory, once copied i then try to deploy the WAR, then the deployment goes fine.
    Is there any means that this deployed library jar be made available soon after deployment and also to avoid copying the file.
    Thanks,
    Vijay.

  • Deploying BPEL project using ant script in 11g

    Hi,
    i am just trying to deploy a single BPEL project using ant script.
    please specify what are all the needed jar's to be needed for deploying the project using ant
    and where exactly they have to placed, i mean into which directory i need to place those jar's...
    if u have any specific blog which describes step by step procedurs for single project deployment via ant, please tell me...
    its very urgent..
    thanks in advance...

    Hi',
    The .jar file required will be of the project/composite you want to deploy to server, this jar is inside deploy folder (11G).
    This .jar file gets created when you try to deploy your composite using right click on the project in JDev.
    This .jar can be picked from any location.
    Try this its little more descriptive.
    http://shrikworld.blogspot.com/2011/03/deploying-soa-11g-application-using-ant.html
    -Yatan

  • OSB - Deploying a java service on different servers using Ant script

    Hi All,
    My scenario is, I have two installations of OSB(with workshop), one on unix machine and other on windows machine...Now the problem is like, I have one java code exposed as a weblogic service ( this is created in workshop of windows machine), I need to deploy this service on my unix server using ANT script....
    Could any one pls let me know how to do this ( deploying services using Ant on different boxes).....
    Any help is appreciated....
    Thanks & Regards
    Feroz Tasha.

    Use the "targets" option to set the server where you want deploy your app.
    More info in [http://edocs.bea.com/wls/docs81/deployment/tools.html#1000477]

  • Deploying a java service on different servers using Ant script

    Hi All,
    My scenario is, I have two installations of OSB(with workshop), one on unix machine and other on windows machine...Now the problem is like, I have one java code exposed as a weblogic service ( this is created in workshop of windows machine), I need to deploy this service on my unix server using ANT script....
    Could any one pls let me know how to do this ( deploying services using Ant on different boxes).....
    Any help is appreciated....
    Thanks & Regards
    Feroz Tasha.

    Use the "targets" option to set the server where you want deploy your app.
    More info in [http://edocs.bea.com/wls/docs81/deployment/tools.html#1000477]

  • Remote deploy a war file in weblogic using ant script

    Hi,
    How do I remote deploy a war file in weblogic using ant script
    Thanks

    http://download.oracle.com/docs/cd/E13222_01/wls/docs100/programming/wldeploy.html

  • ANT_HOME is set incorrectly while deploying BPEL 11g using Ant script

    Hi All,
    I am new to ant script, i am deploying BPEL process(11g) using ant script. I set ANT_HOME to G:\Oracle\Middleware\jdeveloper\ant (the location of ant ) and i set PATH to G:\Oracle\Middleware\jdeveloper\ant\bin
    while excecuting 'call ant -f build.soa.xml deployeComposite -Dtargetenv dev
    i am getting the this error
    "ANT_HOME is set incorrectly or ant could not be located please set ANT_HOME"
    please help me in this issue..
    Thanks in advance

    Why? Just copy/paste the error into Google and help yourself.
    For further assistance with your SOA suite deployment issue, refer to a SOA suite related forum. This has absolutely -nothing- to do with general Java development and especially not the java compiler.

  • Export OSB configuration from eclipse using ant script

    I am trying to export an OSB project from eclipse using ant script
    I followed the link below http://biemond.blogspot.com/2010/07/osb-11g-ant-deployment-scripts.html
    It is using com.bea.alsb.core.ConfigExport to do the export. This export is always set to resource level.
    I see it generates a file ExportInfo setting some properties. It has a property that set the export level as below
    <imp:property name="projectLevelExport" value="false"/>*
    How can I export the project in project level? basically setting projectLevelExport to true?
    So that if a file does not exist in the sbconfig.jar file , then while importing the jar to OSB server it will delete the file from the server instead of skipping it?
    I appreciate any help
    here is the ant script snippet that gets executed to export from eclipse
    <target name="exportFromWorkspace">
         <delete failonerror="false" includeemptydirs="true"
    dir="${metadata.dir}"/>     
                   <!--eclipse.refreshLocal resource="${config.project}" depth="infinite"/-->
    <java dir="${eclipse.home}"
    jar="${eclipse.home}/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar"
    fork="true" failonerror="true" maxmemory="768m">
    <jvmarg line="-XX:MaxPermSize=256m"/>
    <arg line="-data ${workspace.dir}"/>
    <arg line="-application com.bea.alsb.core.ConfigExport"/>
    <arg line="-configProject ${config.project}"/>
    <arg line="-configJar ${config.jar}"/>
    <arg line="-configSubProjects ${config.subprojects}"/>
              <arg line="-exportLevel true"/>
    <arg line="-includeDependencies ${config.includeDependencies}"/>
    <sysproperty key="weblogic.home" value="${weblogic.home}"/>
    <sysproperty key="osb.home" value="${osb.home}"/>
    <sysproperty key="osgi.bundlefile.limit" value="500"/>
    <sysproperty key="harvester.home" value="${osb.home}/harvester"/>
    <sysproperty key="osgi.nl" value="en_US"/>
    <sysproperty key="sun.lang.ClassLoader.allowArraySyntax" value="true"/>
    </java>
    </target>

    yes, I specified the project name to export the whole project.
    Here is few lines from my properties file
    # properties for workspace export
    config.project="OSB Configuration-GW"
    config.jar=D:/workspace/osb/scripts/gateway/mycode2/ant_osb/dist/sbconfig.jar
    config.subprojects="GatewaySecurity"
    config.includeDependencies=true
    workspace.dir=D:/workspace/osb/gateway-workspace
    But this property does not make it to export at project level ,it export the specified project at resource level.
    And while importing this jar to OSB server, if a file is missing it skips the file instead of deleting the file from the OSB server
    If I unjar sbconfig.jar file, open ExportInfo file and update the line in bold below to true then it deletes the file from OSB server, if not exist in sbconfig.jar
    <imp:property name="exporttime" value="Thu Dec 29 13:57:44 EST 2011"/>
    <imp:property name="productname" value="Oracle Service Bus"/>
    <imp:property name="productversion" value="11.1.1.4"/>
    *<imp:property name="projectLevelExport" value="false"/>*
    Here is few lines from Oracle API java doc
    http://docs.oracle.com/cd/E13171_01/alsb/docs26/javadoc/com/bea/wli/sb/management/importexport/ALSBImportOperation.Operation.html
    public static final ALSBImportOperation.Operation Delete
    Indicates that the resource is deleted in the importing domain. This is the default operation when the project is exported in its entirety and the resource exists in the target domain but not in the jar file
    public static final ALSBImportOperation.Operation Skip
    Indicates that the resource is skipped meaning the resource is not touched in the importing domain. This is the default operation if the jar file was exported at the resource level, and a resource that exists in the target domain, does not exist in the jar file.

  • Creating Datasource in WLS 10.x using ant script

    All,
    We need to create datasource using ant script which uses wlconfig, has anyone done it before? tried the below script, it creates the datasource and connection pool seperately. In WLS 10.x the connection pool entries are part of the datasource itself but the script creating seperately.
    <?xml version="1.0" encoding="windows-1252" ?>
    <project name="deploy" default="all" basedir=".">
    <!-- master build.properties -->
    <property file="../../build/build.properties"/>
    <property file="build.properties"/>
    <echo> ${wls.home} </echo>
    <echo> ${wls.url} </echo>
    <path id="library.WL">
    <pathelement location="${wls.home}/server/lib/weblogic.jar"/>
    <pathelement location="${wls.home}/../modules/features/weblogic.server.modules_10.3.1.0.jar"/>
    <pathelement location="${wls.home}/server/lib/webservices.jar"/>
    <pathelement location="${wls.home}/../modules/org.apache.ant_1.7.0/lib/ant-all.jar"/>
    <pathelement location="${wls.home}/../modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar"/>
    </path>
    <taskdef name="wldeploy" classpathref="library.WL"
    classname="weblogic.ant.taskdefs.management.WLDeploy"/>
    <taskdef name="wlconfig" classpathref="library.WL"
    classname="weblogic.ant.taskdefs.management.WLConfig"/>
    <target name="init">
    <wlconfig username="${server.user}" password="${server.password}"
    url="${wls.url}">
    <query domain="base_domain" type="Server" name="soa_server1" property="soaServer"/>
    <query domain="base_domain" type="Server" name="soa_server1" property="soaServers"/>
    <create type="JDBCConnectionPool" name="${pool.name}"
    property="pool">
    <set attribute="CapacityIncrement" value="1"/>
    <set attribute="DriverName" value="${database.driver}"/>
    <set attribute="InitialCapacity" value="1"/>
    <set attribute="MaxCapacity" value="10"/>
    <set attribute="Password" value="${database.password}"/>
    <set attribute="Properties" value="user=${database.user}"/>
    <set attribute="RefreshMinutes" value="0"/>
    <set attribute="ShrinkPeriodMinutes" value="15"/>
    <set attribute="ShrinkingEnabled" value="true"/>
    <set attribute="TestConnectionsOnRelease" value="false"/>
    <set attribute="TestConnectionsOnReserve" value="false"/>
    <set attribute="URL" value="${database.connectString}"/>
    <set attribute="Targets" value="${soaServer}"/>
    </create>
    <create type="JDBCTxDataSource" name="${datasource.name}">
    <set attribute="JNDIName" value="${datasource.jndi.name}"/>
    <set attribute="PoolName" value="${pool}"/>
    <set attribute="Targets" value="${soaServers}"/>
    </create>
    </wlconfig>
    </target>
    <target name="deploy" depends="init"></target>
    </project>
    database.connectString=jdbc:rmi://localhost/jdbc:odbc:RoosterDSN
    database.user=admin
    database.password=admin
    database.driver=org.objectweb.rmijdbc.Driver
    datasource.jndi.name=jdbc/MsAccessDataSource
    datasource.name=MsAccessDataSource
    pool.name=MsAccessDataSourcePool
    Was wondering if anybody has done it? please let me know if it's possible.
    Thanks in advance..

    Hi Girish,
    Please go through with below post.
    http://rocksolutions.wordpress.com/2010/03/29/creating-a-connection-pool-using-ant-in-weblogic/
    Let me know in case any issues observed.
    Thanks

  • Metadat file upgrade using ANT script

    Hi,
    I would like to upgrade weblogic portal 10.2 application to 10.3.
    To do this, I need to update the metadata file. I'm able to do this uising workspace.
    Please let me know how to do the same using ant script.

    O/S-Error: (OS 3) The system cannot find the path specified.
    I've tried running it with and without the .dbf file in place, and yes the path does >>exist.If the path really really exist then make sure the oracle user has proper permission on that directory.
    Daljit Singh

  • How to build ear files for ADF application using Ant task

    How to build ear files for ADF applications using Ant. The ojdeploy ant task can not find application-level deployment profiles. I am trying to automated build and release for ADF application.
    Any help is highly appreciated.
    Thanks
    Shiva

    Hi Timo
    Thanks for your reply.
    I have successfully created ear file using ojdeploy on jenkins. however when am trying to auto deploy using WLDeploy ant task am getting the following
    error :
    weblogic.application.ModuleException: :oracle.mds.config.MDSConfigurationException:MDS-01335: namespace "/oracle/webcenter/quicklinks/scopedMD" mapped to metadata-store-usage "WebCenterFileMetadataStore" but its definition was not found in MDS configuration
    Please advise how to handle this.
    As am a newbie to ADF, could you please advise if it is possible for the ADF application deployments can be automated for different environments using jenkins due to this MDS dependencies.
    Appreciate your help.
    Thanks
    Shiva

  • Auto deploy ADF application using Ant

    Hi
    I am trying to write an Ant script, which compile application, create domain, configure domain, boot server and deploy oracle ADF application. Please advice how to do this.
    I am using Jdeveloger 11g and weblogic 11 g
    Thanks
    Anbu

    Anbu,
    that's quite a task ;-)
    All this can be done. Essentially you can use ojdeploy to compile a project and deploy it to an ear. You can use WLST to write scripts to create and configure a domain. A shell script then can start the nodemanager and all other servers you need (e.g. the new domain you created). The last part is to deploy the app.
    Beside the ojdeploy all this is beyond this forum :-(
    For WLST look in {forum:id=598} and the docs of cause.
    Timo

Maybe you are looking for

  • How do I install on a drive other than C

    The download manager does not give me an option to install the programs it just installs on the c drive which on my computer is nearly full so the install is aborted.  How can I get the programs to install on my drive D.

  • Looking for a fix on syncing Outlook calendar with iPhone 4s

    All my syncing worked fine for years, but now I can't sync my Outlook (2010) calendar to my iPhone 4s? Contacts and email sync fine. And iTunes shows the calendar syncing but the data doesn't tranfer. Can anyone suggest a fix? Thx

  • Can Sentinel RD reports be in CSV format instead of PDF

    Hi, I am working with Sentinel RD and generating custom reports using iReport. I was wondering if I can generate a custom report where the output is in CSV format instead of PDF and can be scheduled in the same way as the PDF are. What do I need to d

  • Computer is running slow

    Hello kind and wonderful Mac Forumers! My computer is running really slowly. How do I change that? I've run the Entrecheck and the report is below. Problem description: My computer is running slow. EtreCheck version: 2.0.11 (98) Report generated Nove

  • Transparency in CMYK color mode

    Windows XP Pro, Photoshop CS3 It seems  that one can only retain background transparency if image file is saved in PNG or GIF file format. It also seems that one cannot save to these file formats if graphic is in CMYK color mode - one must be in RBG