Scripting Plug-in Build/Deployment

I am currently developing an Enterprise Manager Plug-in.  I would like to script the entire process of Staging, Creating, Updating, Deploy to OMS and Deploy to Agent.  My problem is scripting the last two steps.
The Deploy to OMS EMCLI command is not verbose, and closes once the process starts, so I can not run the Deploy to Agent command consecutively.  The solution I came up with, which is not what I want to do, is add a 4 minute sleep in between each command.  I've toyed around with the idea of running the OMS Deployment Status command, grepping the output (at some predefined interval), and continuing the script when it contains:
"Status               : Success"
This is also not ideal.  Is there a way to do what I need without having to be so tricky, like maybe a verbose or debug mode on the EMCLI Deploy scripts?

Unfortunately, polling the status command is the best method I've found.  I used the standard EMCLI, but if you are starting from scratch, you may want to look into the new(ish) Jython-based EMCLI for these scripts.

Similar Messages

  • Building & deploying cubes in OWB (can we do these by using XML scripts)

    Hi Guys,
    Building & deploying cubes in OWB (can we do these by using XML scripts).
    Is it possible in OWB?
    Please help me ASAP..

    Hi, i managed to work out a solution with my web host.
    The problem was that they are using Apache to process all incoming http requests then only forwarding specific requests to tomcat.
    So by entering the port number after the domain ie www.mydomain.com:8080/ the http request went directly to tomcat and was processed correctly.
    Furthermore my web host configured apache so all requests go straight to tomcat so now the port number isn't even required and all is well with the world again!
    except... navigating to different pages in my site does not update the url correctly.
    For example the site loads index.jsp when entering www.mydomain.com/ but when navigating to another page (i.e. photo.jsp) the photo.jsp page loads ok but the url is updated to www.mydomain.com/faces/index.jsp which is not correct. When refreshing the photo.jsp page it reloads the index.jsp page because of the incorrect url.
    any ideas...

  • Ant build & deploy script with CEP

    Hi,
    I want to create a build & deploy script with ant for our application that runs on CEP. I succeeded on creating one that is working well. I had one problem, which is that I now assume that the server is up when the script is running. I wanted to add a target to the script that will start the server if it's not running. The problem is that startwlevs script start the server and remain open. This effectivily pause the build script indefinitely. Does anyone have any idea how to overcome this?
    Thanks

    Just fork the execution of the script. Alternatively call java directly (that's all the script does) and fork that.

  • Can't resolve ORABPEL-04096 Build/Deploy issue

    I have three subversion passes in my cruise control build of the BPEL. One is the trunk. The other two are branches and all three build fine on the
    old Linux BPEL build server. I just installed a new Linux BPEL Build server with OC4J 10.1.3.1 and everything seemed to be going OK, until it
    attempts to build the oldest branch. The trunk and the most recent branch builds all BPEL processes. Each build is a sequence using the Oracle
    ANT build and deploy sequence.
    The third and oldest branch builds the first few processes, but on one process the build is stopped because of the ORABPEL-04096 exception.
    I have compared the second branch's BPEL project with the third and they are identical except for the version number. Also, the two ANT build
    scripts for each branch are identical in the area of failing.
            <exec dir="${util.dir}/UTIL_ReplaceContentExpressions" executable="${ant.exec}" failonerror="true"
                output="${bpel_build_logs}/UTIL_ReplaceContentExpressions.log"
            >
                <arg value="-Djar.target=${jar.target}/${util.domain}"/>
                <arg value="-Dhttp.hostname=localhost"/>
                <arg value="-Dj2ee.hostname=localhost"/>
                <arg value="-Dhttp.port=${http.port}"/>
                <env key="CLASSPATH" value="/home/oracle/cruisecontrol-bin-2.8.2/apache-ant-1.7.0/lib/xalan_2.7.0.jar:... jars ...."/>
            </exec>
            <!-- Give the server time to update its cash for the GetWooConfiguration wsdl -->
            <sleep seconds="25"/>
            <exec dir="${util.dir}/UTIL_NotificationEmail" executable="${ant.exec}" failonerror="true"
                output="${bpel_build_logs}/UTIL_NotificationEmail.log"
            >
                <arg value="-Djar.target=${jar.target}/${util.domain}"/>
                <arg value="-Dhttp.hostname=localhost"/>
                <arg value="-Dj2ee.hostname=localhost"/>
                <arg value="-Dhttp.port=${http.port}"/>
            </exec>
            <exec dir="${util.dir}/UTIL_WaitForCompletedActivity" executable="${ant.exec}" failonerror="true"
                output="${bpel_build_logs}/UTIL_WaitForCompletedActivity.log"
            >
                <arg value="-Djar.target=${jar.target}/${util.domain}"/>
                <arg value="-Dhttp.hostname=localhost"/>
                <arg value="-Dj2ee.hostname=localhost"/>
                <arg value="-Dhttp.port=${http.port}"/>
            </exec>
            ..... The UTIL_NotificationEmaill fails with the ORABPEL-04096 exception in the third branch. The exception is shown below. I'm at loss to figure out
    what to change since the two UTIL_NotificationEmail processes in the other passes build & deploy, and they are identical except for the version number in their respective BPEL project's build.xml files.
    Any suggestion would be deeply appreciated.*
    [deployProcess] Deploying process /home/oracle/cruiseControl/projects/WOO_B2_4_1_1/bpel/GRC_UTIL/src/UTIL_NotificationEmail/output/bpel_UTIL_NotificationEmail_2.3.jar
    BUILD FAILED
    /home/oracle/cruiseControl/projects/WOO_B2_4_1_1/bpel/GRC_UTIL/src/UTIL_NotificationEmail/build.xml:79: A problem occured while connecting
    to server "localhost" using port "7777": bpel_UTIL_NotificationEmail_2.3.jar failed to deploy. Exception message is:  ORABPEL-04096
    Cannot update process metadata.
    The process domain was unable to insert/update the process metadata for process "UTIL_NotificationEmail" with revision tag "2.3" in the datastore.
    The exception reported is: javax.resource.ResourceException: RollbackException: Transaction has been marked for rollback: Timed out
    Please check that the machine hosting the datasource is physically connected to the network.  Otherwise, check that the datasource connection
    parameters (user/password) is currently valid.
    sql statement: SELECT process_guid, process_id, revision_tag, suitcase_id, state, lifecycle, deploy_user, deploy_timestamp FROM process WHERE
    domain_ref = ?  AND process_id = ?  AND revision_tag = ?  FOR UPDATE
    at com.collaxa.cube.engine.adaptors.common.BaseProcessPersistenceAdaptor.storeProcess(BaseProcessPersistenceAdaptor.java:458)
    at com.collaxa.cube.engine.adaptors.common.BaseProcessPersistenceAdaptor.storeProcess(BaseProcessPersistenceAdaptor.java:312)
    at com.collaxa.cube.engine.data.ProcessPersistenceMgr.storeProcess(ProcessPersistenceMgr.java:76)
    at com.collaxa.cube.engine.deployment.DeploymentManager.deployProcess(DeploymentManager.java:815)
    at com.collaxa.cube.engine.deployment.DeploymentManager.deploySuitcase(DeploymentManager.java:670)
    at com.collaxa.cube.ejb.impl.BPELDomainManagerBean.deploySuitcase(BPELDomainManagerBean.java:445)
    at sun.reflect.GeneratedMethodAccessor61.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
    at com.evermind.server.ThreadState.runAs(ThreadState.java:620)
    at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
    at DomainManagerBean_RemoteProxy_4bin6i8.deploySuitcase(Unknown Source)
    at com.oracle.bpel.client.BPELDomainHandle.deploySuitcase(BPELDomainHandle.java:317)
    at com.oracle.bpel.client.BPELDomainHandle.deployProcess(BPELDomainHandle.java:339)
    at _deployHttpClientProcess._jspService(_deployHttpClientProcess.java:376)

    make sure you are using JDev 10.1.3.1 same version of SOA Suite.
    This is an old version, I would recommend upgrading to 10.1.3.5 if possible as there are a number of known issues with that version and all patches have to be applied individually, e.g. no MLR patch.
    cheers
    James

  • Need steps to create ant scripts for publishing and deploying projects.

    Need steps to create ant scripts for publishing and deploying projects.
    Have got ant, Oracle BPM Enterprise WL edition installed , Need to know what are the other configurations to be done.
    Any working example would help me to understand, please do mail me at [email protected]
    Thanks in advance.
    -Sree

    Sreekant,
    Please find the build file to publish and deploy.
    <project name="deployProject"
    xmlns:fuego="antlib:fuego.tools.ant.enterprise"
    xmlns:fuego.j2ee="antlib:fuego.tools.ant.j2ee" default = "publish">
              <property file="./Properties/fuego_deploy.properties"/>
              <fuego:passport id="fuego.passport"
    directoryid="${fuego.directoryid}"
    preset="engine" />
    <target name="publish" description="Publish and deploy processes" depends = "takeInputs">
    <!-- Open a session to the Oracle BPM directory -->
    <fuego:session
    passportref="fuego.passport"
    verbose="true"
                   properties="${fuego.basedir}/conf/directory.xml"
    haltonerror="true" >
    <!-- Publish processes -->
    <fuego:publish fpr="${fuego.project.name}"
    deploy="true"
    engine="${fuego.engineName}"
                        importdata = "${fuego.importdata}"
                        automaproles="${fuego.automaproles}"
                        automapbuspars = "${fuego.automapbuspars}"
                        automapvars="${fuego.automapvars}"
                        automapconfigs = "${fuego.automapconfigs}">
    </fuego:publish>
    </fuego:session>
    </target>
    <target name= "takeInputs" >
    <input
    message="Please enter admin-username:"
    addproperty="fuego.participant"
    />
    <input
    message="Please enter admin-password:"
    addproperty="fuego.password"
    >
    </input>
    </target>
    </project>
    and find the properties I have used..
    fuego.basedir=C:\OraBPMEnterpriseHome
    fuego.directoryid=default
    fuego.engineName = bpmengine
    fuego.project.name = E:/antExamples/Project/CommonUtilities
    # If the below property is true then ant script imports data from the project, as defined in Studio.
    # This includes importing:
    #      •Holiday and Calendar rules
    #      •Organizational Units
    #      •Roles
    #      •Resource configurations
    #      •External Variables
    fuego.importdata = true
    #If the below property is true ant script automatically map abstract roles to real ones with the same name.
    fuego.automaproles=true
    #If the below property is true ant script automatically map business parameter variable names (as defined in the project design) to an business parameter variable id with the same name (as defined in the Fuego Enterprise directory).
    fuego.automapbuspars = true
    #If the below property is true ant script automatically map external variable names (as defined in the project design) to an external variable id with the same name (as defined in the Fuego Enterprise directory).
    fuego.automapvars=true
    #If the below property is true ant script automatically map External Resources configurations (as defined in the project design) to real Configurations with the same name (as defined in the Fuego Enterprise directory).
    fuego.automapconfigs = true

  • How to view the DDL script prior to object deployment in OWB 10g R2?

    How to view the DDL script prior to object deployment in OWB 10g R2?
    Here is what I' looking for: in 10gR2, let's say I've built dimension X, but it's not deployed yet. I've selected one of the deployment options, let's say: "Deploy to Catalog only". Now, I'd like to see a DDL script that will be executed at the deployment time. Where can I find this script? What screen? What menu?
    Thanks,
    vr

    Viewing the Scripts
    After you have generated scripts for your target objects, you can open the scripts and
    view the code. Warehouse Builder generates the following types of scripts:
    ■ DDL scripts: Creates or drops database objects.
    ■ SQL*Loader control files: Extracts and transports data from file sources.
    ■ ABAP scripts: Extracts and loads data from SAP systems.
    To view the generated scripts:
    1. From the Generation Results window, select an object in the navigation tree on the
    left of the Generation Results dialog.
    2. Select the Scripts tab on the right of this dialog.
    The Scripts tab contains a list of the generated scripts for the object you selected.
    3. Select a specific script and click the View Code button.
    Regards,
    Marcos

  • Plug-in Builder not showing up in JDeveloper

    Following instructions here: Plug-in Builder
    Under the "Installing Plug-in Builder into an Existing JDeveloper Instance" section, I successfully get to Step 7, at which point "EM Plug-in Builder" is not an option on the Preferences page.  I've also tried creating a new project per instructions in the next section, but "Enterprise Manager Plug-in" is not an option in the Categories section of the New Gallery window.
    System Info
    EDK - 12.1.0.3.0
    JDeveloper - Studio Edition Version 12.1.2.0.0, Build JDEVADF_12.1.2.0.0_GENERIC_130608.2330.6668
    OS - Windows 7 64 bit [Version 6.1.7601]
    JDK - 1.7.0_45-b18
    The instructions mention using JDeveloper 11.1.1.7 and JDK 1.6, so I suspect version incompatibility may be the problem.

    Check the EDK Build Number you are using. The expected build number to be 130913. If it is older you will not see the new options.
         EDK_INSTALL_DIR\bin>empdk -version
         PDK Version: 12.1.0.3.0
         Build Number: 130913
    I had Build Number 130621 and was seeing the same symptoms as reported above.  After updating to Build 130913, I now see the option(s) to create from a sample Plug-in.

  • Webdynpro 加载project,build和deploy出现error

    Dear All:
           我有一个工程加载进webdynpro,用improt找不到工程名。
        我只能创建一个新的工程,然后再将要加载的工程的文件拷贝到这个新工程的目录下,经过 build 和deploy后,出现以下错误:
    11-Mar-2009 17:59:06 /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
    [003]Deployment aborted
    Settings
    SDM host : centsdv2
    SDM port : 50218
    URL to deploy : file:/d:/DOCUME1/lwbnwang/LOCALS1/Temp/temp16983com.chrms.crystal~pmp_approve_appraisals.ear
    Result
    => deployment aborted : file:/d:/DOCUME1/lwbnwang/LOCALS1/Temp/temp16983com.chrms.crystal~pmp_approve_appraisals.ear
    Aborted: development component 'pmp_approve_appraisals'/'com.chrms.crystal'/'LOKAL'/'0.2009.03.11.17.57.07'/'0':
    Caught exception during application deployment from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Cannot deploy application com.chrms.crystal/pmp_approve_appraisals.. Reason: Clusterwide exception: Failed to deploy application com.chrms.crystal/pmp_approve_appraisals. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?; nested exception is:  com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to deploy application com.chrms.crystal/pmp_approve_appraisals. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment exception : The deployment of at least one item aborted

    LZ这个问题的出现有可能是因为deploy的project中引用了其他project或者其他public的内容,
    所以建议把相关的一起build和deploy。如果没有以上情况,那么试下重启SDM或者Server再部署。

  • CC has Java Script Plug in issues... CS5 won't let me see all my NEF files... help.

    In CC I am trying Photoshop (I currently use CS5), and it says it doesn't have the java script plug in... am I supposed to magically pluck it out of thin air to get it? I'm not a computer programmer and I am finding CC to be a maddening experience. CS5 won't let me see all the NEF files I have, and I have a client waiting on the images... RAWRRRR... How can I see this images if CS5 only shows me half of my images, and CC won't even let me open anything, not bridge, not files, nothing... help!

    Prompted to install Java SE 6 Runtime | Mac OS 10.9
    Mylenium

  • Version control, build, deploy and release management of eBS applications?

    Hi All
    I am setting up a standard configuration management, build & deployment automation and change & release management process for all types of applications including Oracle eBS, Informatica, Siebel, Cognos, Java etc. As you know, SCM for Java and .Net types of applications are very matured, but not for other types of applications such as Oracle eBS.
    Can you give me some hint or point me to some documents on how to manage Oracle eBS applications from SCM's perspective? For example,
    1. How to version control eBS artifacts? e.g. what kind of eBS artifacts need to be version controlled?
    2. How to build eBS artifacts and then deploy to a new environment? How to move an eBS application from one environment (DEV) to test environment?
    3. How to manage changes?
    We have a standard SCM tool called RTC from IBM, which has version control, build and change control functions.
    Thanks
    Jirong

    hujirong wrote:
    Hi All
    I am setting up a standard configuration management, build & deployment automation and change & release management process for all types of applications including Oracle eBS, Informatica, Siebel, Cognos, Java etc. As you know, SCM for Java and .Net types of applications are very matured, but not for other types of applications such as Oracle eBS.
    Can you give me some hint or point me to some documents on how to manage Oracle eBS applications from SCM's perspective? For example,
    1. How to version control eBS artifacts? e.g. what kind of eBS artifacts need to be version controlled?
    2. How to build eBS artifacts and then deploy to a new environment? How to move an eBS application from one environment (DEV) to test environment?
    3. How to manage changes?
    We have a standard SCM tool called RTC from IBM, which has version control, build and change control functions.
    Thanks
    JirongPlease do not create duplicate threads -- Software Configuration Management of Oracle eBS

  • [CS4] Scripted plug-in that remembers the position of a document.

    A while ago somewhere in this forum (can’t find the original post any more), I read about a pesky problem that appeared in InDesign CS4: unlike CS3, it doesn’t save a document’s position, which irritates some users – I assume there are quite a number of them. I thought it was quite easy to solve this with APID ToolAssistant and made a scripted plug-in which is intended to solve it: http://kasyan.ho.com.ua/remember_documents_position.html

    can't it be done with BeforeClose and AfterOpen events ?
    No, it can't be done without APID.
    APID's docLoaded event works great – I can't say it about InDesign's afterOpen event. This problem was discussed a few times in this forum. With beforeClose and its APID's counterpart called docClose you can't do much, because the layout window is already closed when the event is called, so I used APID's docSave event instead.
    Kasyan

  • Labview 8.2.1 RT Build Deployment Error

    Hello,
    I am trying to build a simple RT application. However, I get an error stating that there is an "error in invoking the build engine.....check for broken VIs".
    However, I have created a simple application with just a string constant wired to a string indicator.
    I have attached a screen shot of my error.
    Any ideas?
    Thanks.
    Attachments:
    RT Build Deployment Error.JPG ‏99 KB

    Hi Somit,
    Thanks for posting on the discussion forums.  The most common solution to this error is to repair your LabVIEW installation.  If you are using Windows XP you can do this by going to Control Panel, then to Add/Remove Programs, selecting the National Instruments software tab, and then the Change/Remove button.  From the populated list of programs that opens in the new window you can perform a repair on your LabVIEW 8.2.1 (this may take a while and you will need the cds).  I hope this helps out.  Have a great day!
    Regards,
    Michael
    Applications Engineering
    National Instruments

  • Invoking Beyond Compare script using TFS build script

    Hi,
    As a part of automated build process in TFS I used invoke-process activity to run Beyond Compare script to generate report for comparing different versions of same xls file. Report was never created. I had gone through the tfs build log and it does not show
    any error but with result = 0 ( as far as the beyond script is concerned "result=0" is successful). I compared same file of different versions manually on the same build server using beyond compare, it works like a gem resulting xml report. Same
    TFS build process for other format files like .csv and .txt works smoothly generating xml report. The only issue is with .xls files. 
    If not Beyond Compare is the right one to call its script from TFS build process, is there any other tool or software that fits to my requirement? I need your guidance and help to take it forward.
    FYI, We are using TFS 2010 and Beyond Comapare pro 3.3.3
    Thanks
    Adithya

    Hi Adithya, 
    Thanks for your post.
    In your build definition, change the Logging Verbosity =
    Diagnostic, then queue your build definition, after build run completed, you can find the build in
    Build Explorer, then open build in VS, under View Log section to check which command line be executed in your invoke-process activity section. Then logon your build agent machine, and try to execute the same command line, ensure
    the command line can be executed correctly and you will receive the expected result.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Any script or tool to deploy small applications like Antivirus or Management agents remotely

    Any script or tool to deploy small applications like Antivirus or Management agents remotely..? user will not have admin rights and they will be connected remotely mostly on VPN.
    Unable to achieve mush results with SCCM as its depended on agent communication.
    Please let me know if any other options to achieve this..
    Thank you
    Kris

    Hi,
    Prewritten scripts can be found in the repository:
    http://gallery.technet.microsoft.com/scriptcenter
    I recommend using ConfigMgr. It works just fine over a VPN or public internet.
    Don't retire TechNet! -
    (Don't give up yet - 13,225+ strong and growing)

  • Build / deploy process without jDeveloper

    I want to be able to build my process jar in a computer which does not have jDeveloper installed.
    Can I do this using the build.xml in my process folder? Attempting gives:
    D:\projects\foo\svn\bpel\FooProcess>ant build
    Buildfile: build.xml
    BUILD FAILED
    D:\projects\foo\svn\bpel\FooProcess\build.xml:27: Cannot find ${oracle.home}/integration/bpel/utilities/ant-orabpel.xml imported from D:\projects\foo\svn\bpel\FooProcess\build.xml
    Total time: 0 seconds
    I am going to attempt setting oracle.home env value, but does anyone have knowledge that this can be made to work?

    Basically my problem still exists since in order to be able to do the ant build, I need to use a machine which has jdeveloper installed (since the ant scripts use taskdefinitions etc. from the jdeveloper installation).
    My process calls other processes using http://localhost:8888/orabpel/default/FooProcess/FooProcess?wsdl -type of urls (since all the processes recide on the same SOA Suite).
    Now these processes should be deployed on servers test, qa, production.
    When I do the build using jdeveloper, or using the ant script, bpelc validates the services from http://localhost:8888/orabpel/default/FooProcess/FooProcess?wsdl
    I can
    1. Do the deployment from some desktop computer - but then I would need to have SOA Suite and the processes installed on that same computer in order for the validation to pass - this is not acceptable. Or, can I tell jdeveloper or build.xml to "skip validating wsdls when compiling bpel_XyzProcess10.jar"?
    2. Do the deployment from test, qa, production. I would need to install jdeveloper on each of this machines - not acceptable.
    3. Make it so that when doing build for qa, wsdl for qa would be http://qa-server:8888/... and when doing build for production, wsdl would be http://production:888/... This I'm not sure how I could achieve. Maybe somehow using build.properties?

Maybe you are looking for