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

Similar Messages

  • 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.

  • 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

  • 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

  • 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

  • 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

  • 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

  • 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]

  • 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.

  • UnDeploying EAR from Oracle App server using Ant Script

    I am trying to deploy & undeploy the ear file using the ant script.
    I am using the following script to undeploy the application
              <target name="undeploy" description="Undeploy Application">
              <java jar="${OCM_DIR}/jdev/lib/oc4j_remote_deploy.jar" fork="true">
                   <arg value="http://${ias.host}:${ias.em.port}/${ias.dcmservlet}/"/>
                   <arg value="${ias.admin}"/>
                   <arg value="${ias.admin.password}"/>
                   <arg value="undeploy"/>
                   <arg value="${ias.oracle.home}"/>
                   <arg value="${app.name}"/>
                   <arg value="${ias.oc4j.instance}"/>
              </java>
         </target>
    & getting the following error
    [java] Initializing log
    [java] Servlet interface for OC4J DCM commands
    [java] Command timeout defined at 600 seconds
    [java] Executing DCM command...
    [java] Executing command undeploy /oramp01/app/oracle/product/devmid01 jisdev JIS_sandbox_dev UNDEFINED
    [java] Command = UNDEPLOY
    [java] Opening connection to Oc4jDcmServlet
    [java] Setting userName to ias_admin
    [java] Sending command to DCM servlet
    [java] HTTP response code = 200, HTTP response msg = OK
    [java] Command was successfully sent to Oc4jDcmServlet
    [java] Receiving session id from servlet to check command status
    [java] Session id = aa63b901712fe1d1f07cfd44380b5459eda2437e860
    [java] Please, wait for command to finish...
    [java] Checking command status...
    [java] Setting userName to ias_admin
    [java] Setting Cookie to JSESSIONID=aa63b901712fe1d1f07cfd44380b5459eda2437e860
    [java] Checking command status
    [java] HTTP response code = 200, HTTP response msg = OK
    [java] Command has finished
    [java] Receiving command exit value
    [java] Receiving command output
    [java] **** No output was received from command
    [java] Closing connection to Oc4jDcmServlet
    [java] #### DCM command did not complete successfully (-8)
    [java] #### HTTP return code was -8
    [java] Java Result: -8
    Can you please let me know what is the problem and how can we fix it.
    Both the oracle as well as the jdev/lib/oc4j_remote_deploy.jar are of the version 10.1.2.
    Thanks,
    Vishnu

    I think you need:
    <arg value="-undeploy"/>
    (notice the -)
    Have you had any luck?

  • Modifying JCA Operation in WSDL's using ant script

    Hi
    I have written ant script which would deploy BPEL processes to mutliple environments based on ant-orabpel.properties.....i used customizewsdl tag for modifying url that points to other enviroments...i need some info how to change the jca operation values inside the wsdl that gets created when we configure any adapter like the file adapter or MQ adapter.
    Regards,
    Ravi.

    Its possible to parameterize the jca properties and then at deployment time specify which values to use via different property files. See this thread...
    Re: Partner Link properties BPEL.XML 10.1.3.1

  • How to create an ear file using ant script

    Could you please help me in creating ear file using runAssembler task

    how to call runAssembler from an <exec> task.
    <exec dir="${atg.dir}/home/bin/" vmlauncher="false" executable="/runAssembler" failonerror="yes">
                   <arg value="-overwrite" />
                   <arg value="myModule.ear}"/>
                   <arg line="-m ${modules}" />
              </exec>
    I'm getting below error
    [exec] The system cannot find the path specified.
    Edited by: 895077 on Nov 15, 2012 10:46 PM
    Edited by: 895077 on Nov 15, 2012 10:47 PM

  • Error while generating ear using ant script in weblogic workshop 10

    In my application I have to create a ear file which should have the war file inside.
    I have created the build.xml for both ear application and web application, workshop.xml using weblogic workshop option
    File->export->WorkshopAntScripts
    I have been using the following command to execute the build.xml in EARApp(ear application)
    set the environment variables by running
    D:\bea\wlserver_10.0\common\bin\commEnv.cmd
    then
    D:\Source_Code\EARApp>ant clean build archive -Dworkspace="D:\Source_Code"
    I am getting the following error,
    Buildfile: build.xml
    init.env:
    check.versions:
    init.typedefs:
    init:
    clean:
    init.env:
    check.versions:
    init.typedefs:
    init:
    clean:
    [delete] Deleting 53 files from D:\Source_Code\WebApp\.apt_src
    [delete] Deleted 14 directories from D:\Source_Code\WebApp\.apt_src
    [delete] Deleting 218 files from D:\Source_Code\WebApp\build\classes
    [delete] Deleted 42 directories from D:\Source_Code\WebApp\build\classes
    [delete] Deleting directory D:\Source_Code\WebApp\build\assembly\.src
    [delete] Deleting directory D:\Source_Code\WebApp\build\weboutput
    [mkdir] Created dir: D:\Source_Code\WebApp\build\weboutput
    init.env:
    check.versions:
    init.typedefs:
    init:
    build:
    init.env:
    check.versions:
    init.typedefs:
    init:
    build:
    [apt] [web.content.root]|[D:\Source_Code\WebApp/\WebContent]
    [apt] [web.source.roots]|[D:\Source_Code\WebApp/src]
    [apt] Compiling 113 source files to D:\Source_Code\WebApp\build\classes
    [apt] warning: Annotation types without processors: [java.lang.SuppressWarnings, org.apache.be
    ehive.controls.system.jdbc.JdbcControl.ConnectionDataSource, org.apache.beehive.controls.system.jdbc
    .JdbcControl.SQL, com.bea.control.annotations.TransactionAttribute]
    [apt] 1 warning
    [apt] warning: Annotation types without processors: [java.lang.SuppressWarnings]
    [apt] 1 warning
    [apt] [web.content.root]|[D:\Source_Code\WebApp/\WebContent]
    [apt] [web.source.roots]|[D:\Source_Code\WebApp/src]
    [apt] Compiling 53 source files to D:\Source_Code\WebApp\build\classes
    [apt] warning: Annotation types without processors: [java.lang.SuppressWarnings]
    [apt] 1 warning
    [javac] Compiling 113 source files to D:\Source_Code\WebApp\build\classes
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] Compiling 53 source files to D:\Source_Code\WebApp\build\classes
    [delete] Deleting directory D:\Source_Code\WebApp\build\weboutput
    [mkdir] Created dir: D:\Source_Code\WebApp\build\weboutput
    [copy] Copying 1 file to D:\Source_Code\WebApp\build\weboutput\WEB-INF
    [copy] Copying 1 file to D:\Source_Code\WebApp\build\weboutput\WEB-INF
    init.env:
    check.versions:
    init.typedefs:
    init:
    stage:
    [delete] Deleting directory D:\Source_Code\EARApp\.staging
    [mkdir] Created dir: D:\Source_Code\EARApp\.staging
    [copy] Copying 7 files to D:\Source_Code\EARApp\.staging
    init.env:
    check.versions:
    init.typedefs:
    init:
    stage.to.ear:
    init.env:
    check.versions:
    init.typedefs:
    init:
    stage:
    init.env:
    check.versions:
    init.typedefs:
    init:
    generated.root.init:
    assembly:
    [mkdir] Created dir: D:\Source_Code\WebApp\build\assembly\.src
    [assemble] Assembly failed - Control Assembly process failed
    [assemble] Caused by: info
    BUILD FAILED
    D:\Source_Code\EARApp\build.xml:189: The following error occurred while executing t
    his line:
    jar:file:/D:/bea/WLSERV%7e1.0/workshop/lib/workshop-antlib.jar!/com/bea/workshop/cmdline/antlib/antl
    ib.xml:92: The following error occurred while executing this line:
    D:\Source_Code\EARApp\build.xml:201: The following error occurred while executing t
    his line:
    D:\Source_Code\WebApp\build.xml:351: The following error occurred while executing thi
    s line:
    D:\Source_Code\WebApp\build.xml:177: The following error occurred while executing thi
    s line:
    D:\Source_Code\WebApp\build.xml:424: Assembly failed.
    Some one help me solve this problem.
    Thanks in advance.

    --> some error on posting please refer to the next post...
    From the error logs we can trace it out to the web project's Build.xml file ....I was getting a similar error and by commenting out the following lines in the web project's Build.xml I am able to run the build script correctly and get a EAR file. The lines are
    <!--
    <assemble
    moduleDir="${generated.module.root}"
    moduleName="${project.name}"
    srcOutputDir="${assembly.src}"
    appRootDir="${ear.root}">
    <assemblyContext factory="org.apache.beehive.controls.runtime.assembly.WebAppAssemblyContext$Factory" />
    <assemblyContext factory="org.apache.beehive.controls.runtime.assembly.AppAssemblyContext$Factory" />
    <classpath refid="assembly.classpath" />
    <fileset dir="${project.dir}">
    <include name="**/*.controls.properties" />
    </fileset>
    </assemble>
         -->
    Please check it now, also if any one can let us know the function or role played by the above lines it would be great. Also if there would be any future or unseen problems by commenting out these lines please do let us know...
    Thanks
    -MiM
    Edited by prodigymonish83 at 10/22/2007 5:56 AM

Maybe you are looking for

  • BAPI_MATERIAL_SAVEDATA not updating the materials

    Hi Folks, I am trying using the BAPI_MATERIAL_SAVEDATA to change the MRP Type of the existing articles. Basically to mass update the articles.I am passing the Material only to the BAPIMATHEAD parameter and also populating the BAPI_MARC where the MRP

  • How do i make abackup copy of Lion with a UBS2?

    I am thinking about downloading Lion, i do not have a external harddrive. So i need to make a backup copy. I have a brand new unused Kingston USB. Once i have copied the software to the USB, where do I install it from? The copy on my USB? Or the orig

  • Spry Validation Textarea Widget "error: missing ) after argument list"

    Hi all, I'm trying to apply validation on textarea in one of my forms but it keeps giving me the same error msg in Firefox "missing ) after argument list". Funny thing is that the line witch initiate the textarea object is one on one from the Spry Fr

  • CATT ECC6.0 Control data is obsolete

    The catt I use was created in 4.6c. Since the upgrade at ECC6.0, it displays the message after each running : "Control data is obsolete, rerecord (VERBS-NAME: CREATEOBJECT CATT: create) Error ATT377 in application transaction IW24 Message no. TT350 C

  • How to delete Dynamically created input field UI Element

    Hi all,           I want to delete dynamically created input field and label. Is there any method please tell. Thanks in advance Hemalatha