Wldeploy Ant task deploys app in 'New' state

I am trying to deploy a web application in WL 10.0 using the wldeploy Ant task. However, everytime the application is deployed, the consolidated state is 'New' (or deferred deployment). I have to bounce the servers everytime to bring the app in the Active state.
Here is my code:
<target name="undeployWeb">
          <!-- Undeploy the existing deployment -->
          <wldeploy action="undeploy" verbose="true" debug="false" name="${deploymentName}" user="${weblogicUsername}" password="${weblogicPassword}" adminurl="${weblogicAdminURL}" targets="${weblogicTargetServers}" failonerror="false" />
</target>
<!-- Deploy .WAR to a target server -->
<target name="deployWeb">
          <!-- Deploy the application remotely -->
          <wldeploy action="deploy" stage="stage" usenonexclusivelock="true" source="${weblogicDeploymentLocation}/${deploymentName}.war" remote="true" name="${deploymentName}" upload="false" user="${weblogicUsername}" password="${weblogicPassword}" verbose="true" adminurl="${weblogicAdminURL}" debug="true" targets="${weblogicTargetServers}" />
</target>
Is there any way to avoid the bounce of the target servers? I wish to activate the web app straightaway. Please help.
~hartbrekk

Thanks user10939158, for looking into this.
Reason I am saying network is not an issue here because the artifact copy to the remote servers and deployment happens fast, it is just at the step of closing DM connection, it is waiting for a long time (>5 mins). I am guessing that the Deployment Manager message exchanges with the server (internally) has something to do with LAN vs WAN. And, I would expect deployment over WAN take a minute extra as opposed to 5-9 minutes extra what we are seeing now.
Yes, I tried running the wlst script on the remote server and it is fast as well.
Just to clarify, I do not have a local server. I run the plain simple ant script on a build box(lean linux box) which is in the US.
Thanks for your help again.
- Kris
Edited by: kris_2000 on May 25, 2010 2:08 PM

Similar Messages

  • Changing the wldeploy ant task behaviour

    wldeploy ant task while deploying the application deploys it under <configured weblogic upload dir>/<application name>/app/ application name.
    Is there any way we can change this behaviour as we couldnt find the options in ant task to change it

    That is all you should have to do, the ant tasks are sitting inside the
    weblogic.jar.
    Cheers
    mbg
    "Shane Witbeck" <[email protected]> wrote in message
    news:[email protected]..
    Rob Bennett <[email protected]> wrote in message
    news:<[email protected]>...
    What is required for the wldeploy ant task to function properly? I am
    able to use it when I run ant from the command line and use the version
    of ant that came with Weblogic 8 (I have the platform beta, not the
    release version). When I try to use it inside of eclipse (which uses
    its own copy of ant), the task fails.. it looks like it is trying to
    generate RMI stubs. If anyone can shed light on what I am missing from
    the eclipse environment, I would appreciate it.
    -RobI actually just got it to work by adding the weblogic.jar to my
    classpath. (Im using WL 8.1).
    -Shane

  • WL8.1 wldeploy Ant Task seems to be fairly slow...

    We currently have a clustered environment with 4 machines. When we try to hot deploy
    using the wldeploy Ant Task it takes about 3-5 minutes to re-deploy the ~30mb
    ear file. While this ear is being deployed users can not access the system. Is
    there anything I can do to increase these times?
    Thanks,
    Franz

    Rob,
    Thanks for your reply.
    My build.xml file exits and kills the server instance......do you know any means
    to rsolve it.
    iam not sure if i can use "fork" or something like that ????
    Please advise.
    -sangita
    Rob Woollen <[email protected]> wrote:
    Have a look at the Avitek Medical Records example that ships with WLS
    8.1. It shows you how to use wldeploy.
    -- Rob
    sangita wrote:
    if you don't mind, can you share your build.xml file here on this forum?
    iam trying to do exact same thing, but as my knowledge of ANT is little,iam having
    trouble. if you can share this xml file, then i would learn a littlefaster on
    how to deploy application on wls8.1 using ANT.
    i have read the document though .....but i wanted to see actual xmlfile as yours
    .........thanks !!!!!
    "Franz Garsombke" <[email protected]> wrote:
    We currently have a clustered environment with 4 machines. When we
    try
    to hot deploy
    using the wldeploy Ant Task it takes about 3-5 minutes to re-deploythe
    ~30mb
    ear file. While this ear is being deployed users can not access thesystem.
    Is
    there anything I can do to increase these times?
    Thanks,
    Franz

  • Error in writing an Ant task for creating a new connection pool.

    I have written the following ant task to create a new connection pool in weblogic 10.3.
    <target name="pool.dev">
         <wlconfig url="http://localhost:7001/" username="weblogic" password="weblogic">
         <query domain="C:/weblogic/rtg-L0" name="myserver"/>
         <create type="JDBCConnectionPool" name="OneSourceConnectionPool">
         <set attribute="DriverName"
         value="oracle.jdbc.OracleDriver"/>
         <set attribute="InitialCapacity" value="1"/>
         <set attribute="MaxCapacity" value="5"/>
         <set attribute="Password" value="rating"/>
         <set attribute="Properties" value="user=rating"/>
         <set attribute="RefreshMinutes" value="0"/>
         <set attribute="ShrinkPeriodMinutes" value="15"/>
         <set attribute="ShrinkingEnabled" value="true"/>
         <set attribute="TestConnectionsOnRelease" value="true"/>
         <set attribute="TestConnectionsOnReserve" value="true"/>
         <set attribute="TestConnectionsOnCreate" value="true"/>
         <set attribute="TestTableName" value="SQL SELECT 1 FROM DUAL"/>
         <set attribute="URL"
         value="jdbc:oracle:thin:@xyz.com:1522:oradvl"/>
         <set attribute="Targets" value="myserver"/>
         </create>
         </wlconfig>
    </target>
    When I run it, I see the following error:
    BUILD FAILED
    C:\ganymede\eclipse\workspace1\RtgSvr\build.xml:286: Failed to connect to the server: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
         java.io.EOFException]
    Can anybody please help me regarding this...
    Thank you,
    Sowmya

    Hi everybody,
    Thank you very much for your replies....actually I added weblogic.jar to the classpath of the target. So, now I dont see that error. But, I have another problem which is as follows:
    <target name="initJDBC">
    <wlconfig url="t3://${host}:${port}" username="${username}" password="${password}">
         <query domain="domain.name" type="Server" name="${target.server}" property="${target.server}"/>
         <create type="JDBCConnectionPool" name="TestConnectionPool">
         <set attribute="DriverName" value="oracle.jdbc.OracleDriver"/>
         <set attribute="Password" value="welcome"/>
         <set attribute="Properties" value="user=welcome"/>
         <set attribute="URL" value="jdbc:oracle:thin:@test.com:1522:oradvl"/>
              <set attribute="Targets" value=""/>
         <set attribute="TestTableName" value="SQL SELECT 1 FROM DUAL"/>
         <set attribute="TestConnectionsOnRelease" value="false"/>
         <set attribute="TestConnectionsOnReserve" value="true"/>
         </create>
         <create type="JDBCDataSource" name="TestDataSource">
              <set attribute="JNDIName" value="TestDataSource"/>
              <set attribute="PoolName" value="TestConnectionPool"/>
              <set attribute="Targets" value=""/>
              </create>
         </wlconfig>
         </target>
    I am not knowing what to give in the value field of <set attribute="Targets" value=""/>. The following is my build.properties file:
    target.server=myserver
    host=127.0.0.1
    port=7001
    username=weblogic
    password=weblogic
    domain.name=testDomain
    If I give <set attribute="Targets" value="${myserver}"/>, I get the following error:
    BUILD FAILED
    C:\ganymede\eclipse\workspace1\TestSvr\build.xml:290: Property not set: ${myserver}
    When I set myserver=myserver in build.properties, I get the following error:
    BUILD FAILED
    C:\ganymede\eclipse\workspace1\TestSvr\build.xml:290: Error invoking MBean command: java.lang.IllegalArgumentException: Property Name and value not valid for the MBean. Value myserver for parameter[Targets].java.lang.IllegalArgumentException: Unable to convert the argument valuemyserver to class javax.management.ObjectName.java.lang.reflect.InvocationTargetException
    Can someone plzz help me in this regard.
    Thank you,
    Sowmya

  • ClassCastException using Subant and wldeploy ant task

    Hi!
    I'm using subant to call all diffrent build.xml files located in subdirectories. The buildfile looks like this:
    <project name="extern.call" default="callall">
         <target name="callall">
              <fileset      id="buildfile.set" dir=".." includes="*2/build.xml">
                   <exclude name="Br*2/*"/>
              </fileset>
              <subant target="deploy-local" inheritall ="false" failonerror="true">
                   <fileset      refid="buildfile.set"/>
              </subant>
         </target>
    </project>
    The first called build.xml files works fine ... but the execution of the second build.xml (it's not important which file is the second one, it's crash always at the second call), stop with a "java.lang.ClassCastException".
    See Stacktrace:
    [subant] weblogic.Deployer -debug -nowait -verbose -upload -noexit -name ClarifyRead -source \build\ClarifyRead\delivery\ClarifyRead.ear -targets myserver -adminurl t3://localhost:7001 -user weblogic -password ******** -deploy
    [subant] dumping Exception stack
    [subant] java.lang.ClassCastException
    [subant] at weblogic.management.deploy.utils.DeployerHelper.uploadSource(DeployerHelper.java:586)
    [subant] at weblogic.Deployer.runBodyWithAuthenticatedSubject(Deployer.java:824)
    [subant] at weblogic.Deployer.runBody(Deployer.java:711)
    [subant] at weblogic.utils.compiler.Tool.run(Tool.java:146)
    [subant] at weblogic.utils.compiler.Tool.run(Tool.java:103)
    [subant] at weblogic.Deployer.runMain(Deployer.java:566)
    [subant] at weblogic.Deployer.mainWithExceptions(Deployer.java:576)
    [subant] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [subant] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [subant] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [subant] at java.lang.reflect.Method.invoke(Method.java:324)
    [subant] at weblogic.ant.taskdefs.management.WLDeploy.invokeMain(WLDeploy.java:264)
    [subant] at weblogic.ant.taskdefs.management.WLDeploy.execute(WLDeploy.java:204)
    [subant] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    [subant] at org.apache.tools.ant.Task.perform(Task.java:364)
    [subant] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:65)
    [subant] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    [subant] at org.apache.tools.ant.Task.perform(Task.java:364)
    [subant] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:340)
    [subant] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    [subant] at org.apache.tools.ant.Task.perform(Task.java:364)
    [subant] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:65)
    [subant] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    [subant] at org.apache.tools.ant.Task.perform(Task.java:364)
    [subant] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:340)
    [subant] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    [subant] at org.apache.tools.ant.Task.perform(Task.java:364)
    [subant] at org.apache.tools.ant.Target.execute(Target.java:301)
    [subant] at org.apache.tools.ant.Target.performTasks(Target.java:328)
    [subant] at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
    [subant] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
    [subant] at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:182)
    [subant] at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:112)
    [subant] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    [subant] at org.apache.tools.ant.Task.perform(Task.java:364)
    [subant] at org.apache.tools.ant.Target.execute(Target.java:301)
    [subant] at org.apache.tools.ant.Target.performTasks(Target.java:328)
    [subant] at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
    [subant] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:379)
    [subant] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:135)
    There is no diffrent between using ant in eclipse environment or as standalone, the result it the same.
    Do someone else have the same problem?
    Kind regards
    Joseph

    Hi
    I got the same message and I couldn't resolve it too, I am wordering if you got the key to the problem?
    Thanks
    Daivd Huang

  • Is wldeploy ANT task just always says "BUILD SUCCESFUL" ?

    Hi All,
    Iam using ANT and my build.xml file looks something like this:
    <target name="deploy-now">
    <echo message="...........This is the developmenet
    box...deploying......"/>
    <wldeploy action="${deploy.utility}" upload="true"
    source="${source}" user="system" password="weblogic" nostage="true" verbo
    se="true" adminurl="${bedlam-t.admin.url}" debug="true"
    targets="${cmApplication.target}"/>
    </target>
    <target name="deploy-cm-testnet">
    <antcall target="deploy-now"> <param name="source"
    value="${cm1Application.source}"/>
    </antcall>
    <antcall target="deploy-now"> <param name="source"
    value="${cm2Application.source}"/>
    </antcall>
    <antcall target="deploy-now"> <param name="source"
    value="${cm3Application.source}"/>
    </antcall>
    </target>
    So, basically iam calling my target "deploy-now" three times by using
    <antcall>. Now my question is: iam getting BUILD SUCCESFUL although the
    output looks like:
    deploy-now: [echo] ...........This is the developmenet
    box...deploying...... [wldeploy] weblogic.Deployer -debug -nostage -verbose -upload
    -noexit -source
    /export/home/beamon/applications/clientmanager/CMA_TW_333.war -targets UPSCAP
    -adminurl http://bedlam-t.ams1907.com:8001 -user
    system -password ******** -deploy
    [wldeploy] DeploymentData : Delete Files:false [wldeploy] Timeout
    :3600000 [wldeploy] Targets: [wldeploy] Files: [wldeploy] null
    [wldeploy] Initiated Task: [87] [Deployer:149026]Deploy application
    CMA_TW_333 on UPSCAP. [wldeploy] Application CMA_TW_333 preparing on
    server upscap_bedlam1t_s1. [wldeploy] Module CMA_TW_333 failed to transition
    from unprepared to prepared on server upscap_bedlam1t_s1. [wldeploy]
    Application CMA_TW_333 failed on server upscap_bedlam1t_s1. [wldeploy]
    Task 87 failed: [Deployer:149026]Deploy application CMA_TW_333 on UPSCAP.
    [wldeploy] Deployment failed on Cluster UPSCAP [wldeploy] dumping
    ApplicationException message
    [wldeploy] Exception:weblogic.management.ApplicationException: prepare
    failed for CMA_TW_333 [wldeploy] Module: CMA_TW_333 Error: Context path
    '/CMA/US' is already in use by the module: CM_NO_333 application:
    CM_NO_333
    [wldeploy] dumping ApplicationException message
    [wldeploy] Exception:weblogic.management.ApplicationException: prepare
    failed for CMA_TW_333 [wldeploy] Module: CMA_TW_333 Error: Context path
    '/CMA/US' is already in use by the module: CM_NO_333 application:
    CM_NO_333
    [wldeploy] Unpexpected Error Initializing Deployer:
    weblogic.Deployer$DeployerException: Deployment exit status=1
    deploy-now: [echo] ...........This is the developmenet
    box...deploying...... [wldeploy] weblogic.Deployer -debug -nostage -verbose -upload
    -noexit -source
    /export/home/beamon/applications/clientmanager/CMA_NO_333.war -targets UPSCAP
    -adminurl http://bedlam-t.ams1907.com:8001 -user
    system -password ******** -deploy
    [wldeploy] DeploymentData : Delete Files:false [wldeploy] Timeout
    :3600000 [wldeploy] Targets: [wldeploy] Files: [wldeploy] null
    [wldeploy] Initiated Task: [88] [Deployer:149026]Deploy application
    CMA_NO_333 on UPSCAP. [wldeploy] Application CMA_NO_333 preparing on
    server upscap_bedlam1t_s1. [wldeploy] Module CMA_NO_333: active to prepared
    on server upscap_bedlam1t_s1. [wldeploy] Module CMA_NO_333: active to
    prepared on server upscap_bedlam1t_s1. [wldeploy] Module CMA_NO_333:
    prepared to unprepared on server upscap_bedlam1t_s1. [wldeploy] Module
    CMA_NO_333: prepared to unprepared on server upscap_bedlam1t_s1.
    [wldeploy] Module CMA_NO_333: unprepared to prepared on server
    upscap_bedlam1t_s1. [wldeploy] Module CMA_NO_333: unprepared to prepared on server
    upscap_bedlam1t_s1. [wldeploy] Application CMA_NO_333 prepared on server
    upscap_bedlam1t_s1. [wldeploy] Application CMA_NO_333 activating on server
    upscap_bedlam1t_s1. [wldeploy] Module CMA_NO_333: prepared to active on
    server upscap_bedlam1t_s1. [wldeploy] Module CMA_NO_333: prepared to
    active on server upscap_bedlam1t_s1. [wldeploy] Application CMA_NO_333
    activated on server upscap_bedlam1t_s1. [wldeploy] Task 88 completed:
    [Deployer:149026]Deploy application CMA_NO_333 on UPSCAP. [wldeploy]
    Deployment completed on Cluster UPSCAP
    BUILD SUCCESSFUL
    Please advise ......how can i show that the BUILD is NOT succesful as
    there were EXCEPTIONS generated.....is ANT just always says "BUILD
    SUCCESFUL"

    Infact it does complete, if i let it go on but it takes around 7 minutes more just to close the 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
    BUILD SUCCESSFUL
    Total time: 7 minutes 15 seconds
    is anybody facing this issue? Why is closing DM Connection and Unregistered all listeners taking so much time to complete for a WAR i.e. just a few KBs.
    Please Help! Thanks!

  • Ant task for creating a new weblogic domain in weblogic 10.3

    Hi,
    Can anybody help me in writing an ant task in build.xml for creating a new weblogic domain in weblogic 10.3, like as in <target name="new-domain">
         <echo message=""/>
         <echo message="Attempting to create new domain:"/>
         <delete dir="C:\bea\user_projects\domains" />
         <mkdir dir="C:\bea\user_projects\domains"/>
         <wlserver dir="C:\bea\user_projects\domains" domainname="mydomain"
         host="127.0.0.1" port="7001"
         generateConfig="true" servername="AdminServer" username="weblogic"
         password="weblogic" action="start"/>
         </target>
    Please suggest me adding something to the above in order to create the domain successfully.

    Hi,
    Can anybody help me in writing an ant task in build.xml for creating a new weblogic domain in weblogic 10.3, like as in <target name="new-domain">
         <echo message=""/>
         <echo message="Attempting to create new domain:"/>
         <delete dir="C:\bea\user_projects\domains" />
         <mkdir dir="C:\bea\user_projects\domains"/>
         <wlserver dir="C:\bea\user_projects\domains" domainname="mydomain"
         host="127.0.0.1" port="7001"
         generateConfig="true" servername="AdminServer" username="weblogic"
         password="weblogic" action="start"/>
         </target>
    Please suggest me adding something to the above in order to create the domain successfully.

  • How do I get Ant task deploy to fail on error within an ojdeploy-build ?

    I am calling ojdeploy on an xml file with several <deploy> tasks within the <ojdeploy-build> task.
    FYI this dramatically increases performance when doing several deployments.
    I want to find a way to have the script stop with an error as soon as one of the <deploy> tasks fails with an error (such as a compile error). It does not currently do this.
    Is there a way to get the script to stop as soon as a <deploy> task fails within the outer <ojdeploy-build> task?
    (eg. could I somehow check the return code for each deploy explicitly and do an exit if the deploy fails)
    My Ant book claims that Ant tasks normally fail on error, and when one task fails the Ant script stops at that point. Some Ant tasks (such as exec) have an explicit failonerror attribute which can change this behavior to ignore a non-zero return code from the task and continue executing the Ant script.
    It seems to me that the <ojdeploy-build> task has a serious bug where it (probably using java try-catch) ignores the error from <deploy> and keeps going to the next <deploy>, violating a basic design principle of a proper Ant task.
    Where can I find the java code for <ojdeploy-build> to confirm my suspicion and then report the bug officially?
    Meanwhile, I am very interested in finding some workaround for this bug that preserves having several <deploy> in one script. If I put just one <deploy> in each <ojdeploy-build>, the huge performance improvement is lost.

    I played with it some more and it seems that failonerror and resultproperty actually work in JDev 11.1.1.4.0 They are inherited from the [url http://ant.apache.org/manual/Tasks/exec.html]Ant Exec task and work, you just have to set failonerror="true", e.g.
    <ora:ojdeploy xmlns:ora="oraclelib:OJDeployAntTask"
                      executable="${oracle.jdeveloper.ojdeploy.executable}"
                      failonerror="true"
                      resultproperty="ojdeploy.exit.code"
                      ora:buildscript="${oracle.jdeveloper.deploy.dir}/ojdeploy-build.xml"
                      ora:statuslog="${oracle.jdeveloper.deploy.dir}/ojdeploy-statuslog.xml">
    ...Note that resultproperty is useful only if failonerror="false", use one or the other.

  • Wldeploy ant task and WLS 7?

    I'm trying to set up an ant task for WLDeploy in WLS 7. To docs reference the class as:
    <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy">
    But where is that class? It's not in weblogic.jar.
    TIA,
    Jon

    Just a followup: this ant task does not exist in early service packs. I'm not sure where it first shows up, but it does exist in SP 7.

  • Wldeploy ant task hangs at [ServerConnectionImpl.close():332] : Closing DM

    Hi All
    I am trying to deploy\undeploy a WAR file on weblogic server 10.3.5 using ANT wldeploy task, but no matter what i do it always hangs at the below and doesn't complete (although deployment and undeployment is successful)
    [wldeploy] [BasicOperation.execute():445] : Initiating deploy operation for app, ABCD, on targets:
    [wldeploy] [BasicOperation.execute():447] : osb_server1
    [wldeploy] Task 38 initiated: [Deployer:149026]deploy application ABCD on osb_server1.
    [wldeploy] Task 38 completed: [Deployer:149026]deploy application ABCD on osb_server1.
    [wldeploy] Target state: deploy completed on Server osb_server1
    [wldeploy]
    [wldeploy] Target Assignments:
    [wldeploy] + ABCD osb_server1
    [wldeploy] [ServerConnectionImpl.close():332] : Closing DM connection
    Below are the targets used in ANT script. Please help!
    <target name="undeploy" depends="buildWar">
    <wldeploy action="undeploy" name="ABCD" user="${username}" password="${password}" debug="true" verbose="true" adminurl="t3://${adminhost}:${adminport}" targets="${target}" failonerror="false"/>
    </target>
    <target name="deploy" depends="undeploy">
    <wldeploy action="deploy" name="ABCD" source="${basedir}/ABCD.war" user="${username}" password="${password}" upload="true" debug="true" stage="true" verbose="true" adminurl="t3://${adminhost}:${adminport}" targets="${target}"/>
    </target>

    Infact it does complete, if i let it go on but it takes around 7 minutes more just to close the 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
    BUILD SUCCESSFUL
    Total time: 7 minutes 15 seconds
    is anybody facing this issue? Why is closing DM Connection and Unregistered all listeners taking so much time to complete for a WAR i.e. just a few KBs.
    Please Help! Thanks!

  • Wldeploy/wlserver Ant tasks & cruisecontrol output

    Hi,
    We are using the wlserver and wldeploy Ant tasks with cruisecontrol. We have found that the output from these tasks in included in the cruise email which is sent out, and are looking for a way to redirect this output to a file so that cruise doesn't think that this is warning output from the JVM. Currently, with all the deploy messages weblogic publishes cruise thinks that our code has 500 warnings.
    I would expect that this should be easy, but can't figure out for the life of me how to do it.
    Regards

    I'm coming back a few month later, and don't remember how I solved this problem. Today, I'm sure it is resolved, the task looks like this :
    <wldeploy action="deploy"
    source="${weblogic.deploy.dir}/${module.name}.ear"
    name="${module.name}"
    user="${weblogic.user}"
    password="${weblogic.password}"
    verbose="true"
    adminurl="${weblogic.adminurl}"
    debug="true"
    targets="${weblogic.servers.name}" />
    It should work since I've upgraded from WL 8.1 SP2 to WL 8.1 SP4.
    Regards
    Bernard

  • 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

  • Weblogic 9.1 Deployment errors using the ANT task wldeploy

    I am not able to deploy applicatons using the ANT task. The same works with Weblogic 8.1. It is throwing a NoClassDefFoundError. It is looking for a class by name javax/management/InvalidAttributeValueException.
    This class file is shipped as part of jmx.jar. I tried to include it and then there was another NoClassDefFoundError that occured.
    The problem is I don't want to keep adding these different jars to make the ant deployment work. Can anyone please let me know what could be the problem.
    I am using a Windows XP OS and 1.4.2_10 as java version.
    I have added all the jars in the weblogic91\server\lib directory to the classpath.
    Also I have my apache ant tasks set in the classpath.
    Thanks
    Shankar Chandrasekaran

    Have had a bit of these CLASSPATH issues when jumping versions.
    Have had the best success when I create a different profile for each one, making sure the version you want is the only one defined. the main thing my profile sets is
    unset PATH
    unset CLASSPATH
    unset JAVA_HOME
    then
    export PATH=
    export CLASSPATH= the weblogic 9 one
    export JAVA_HOME= the one with 9
    or however they do it in windows, but make sure you CLASSPATH is only refencing the 9 jars

  • Not able to create a new domain through ant task

    Hi,
    I have to upgrade weblogic 8.1 to weblogic 10.3 and I am using vanilla version of it. the first step to it is to create weblogic domain and then configure it and then start teh server and then deploy it. The problem starts when I am creating the domain, I am using ant task for domain creation and following these steps
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/programming/ant_tasks.html
    when ant-task is trying to build the specified domain, it is looking for some config.xml and that config.xml should also generated by wlserver/ant task through a template. I have no idea, where and how to define that template.. hence getting following error.. tried hard but not able to get through. can anyone please help..
    Thanks in Advance
    Error stack trace:
    [WLServer THS-SA-Admin] <Feb 16, 2009 1:49:27 PM IST> <Info> <Management> <BEA-1
    40013> <C:\WIRES\Standalone\weblogic\domains\THSStandAlone\config\config.xml not
    found>
    [WLServer THS-SA-Admin] <Feb 16, 2009 1:49:27 PM IST> <Info> <Management> <BEA-1
    41254> <Generating new domain directory in C:\WIRES\Standalone\weblogic\domains\
    THSStandAlone>
    [WLServer THS-SA-Admin] <Feb 16, 2009 1:49:28 PM IST> <Critical> <WebLogicServer
    <BEA-000362> <Server failed. Reason:[WLServer THS-SA-Admin] There are 1 nested errors:
    [WLServer THS-SA-Admin] weblogic.management.ManagementException: Failure during
    domain creation
    [WLServer THS-SA-Admin] at weblogic.management.internal.DomainDirectoryS
    ervice.generateDomain(DomainDirectoryService.java:229)
    [WLServer THS-SA-Admin] at weblogic.management.internal.DomainDirectoryS
    ervice.ensureDomainExists(DomainDirectoryService.java:152)
    [WLServer THS-SA-Admin] at weblogic.management.internal.DomainDirectoryS
    ervice.start(DomainDirectoryService.java:72)
    [WLServer THS-SA-Admin] at weblogic.t3.srvr.ServerServicesManager.startS
    ervice(ServerServicesManager.java:459)
    [WLServer THS-SA-Admin] at weblogic.t3.srvr.ServerServicesManager.startI
    nStandbyState(ServerServicesManager.java:164)
    [WLServer THS-SA-Admin] at weblogic.t3.srvr.T3Srvr.initializeStandby(T3S
    rvr.java:711)
    [WLServer THS-SA-Admin] at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:4
    82)
    [WLServer THS-SA-Admin] at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:440)
    [WLServer THS-SA-Admin] at weblogic.Server.main(Server.java:67)
    [WLServer THS-SA-Admin] Caused by: com.bea.plateng.domain.script.ScriptException
    : Template "null" does not exist. Line 1
    [WLServer THS-SA-Admin] at com.bea.plateng.domain.script.ScriptParserCla
    ssic$StateMachine.processRead(ScriptParserClassic.java:510)
    [WLServer THS-SA-Admin] at com.bea.plateng.domain.script.ScriptParserCla
    ssic$StateMachine.execute(ScriptParserClassic.java:428)
    [WLServer THS-SA-Admin] at com.bea.plateng.domain.script.ScriptParserCla
    ssic.parseAndRun(ScriptParserClassic.java:150)
    [WLServer THS-SA-Admin] at com.bea.plateng.domain.script.ScriptParserCla
    ssic.doExecute(ScriptParserClassic.java:112)
    [WLServer THS-SA-Admin] at com.bea.plateng.domain.script.ScriptParser.ex
    ecute(ScriptParser.java:73)
    [WLServer THS-SA-Admin] at com.bea.plateng.domain.DomainInfoHelper.execu
    teSilentScript(DomainInfoHelper.java:861)
    [WLServer THS-SA-Admin] at com.bea.plateng.domain.DomainInfoHelper.creat
    eDefaultDomain(DomainInfoHelper.java:1755)
    [WLServer THS-SA-Admin] at sun.reflect.NativeMethodAccessorImpl.invoke0(
    Native Method)
    [WLServer THS-SA-Admin] at sun.reflect.NativeMethodAccessorImpl.invoke(N
    ativeMethodAccessorImpl.java:39)
    [WLServer THS-SA-Admin] at sun.reflect.DelegatingMethodAccessorImpl.invo
    ke(DelegatingMethodAccessorImpl.java:25)
    [WLServer THS-SA-Admin] at java.lang.reflect.Method.invoke(Method.java:5
    97)
    [WLServer THS-SA-Admin] at weblogic.management.internal.DomainDirectoryS
    ervice.generateDomain(DomainDirectoryService.java:224)
    [WLServer THS-SA-Admin] ... 8 more
    [WLServer THS-SA-Admin] >
    [WLServer THS-SA-Admin] <Feb 16, 2009 1:49:28 PM IST> <Notice> <WebLogicServer>
    <BEA-000365> <Server state changed to FAILED>
    [WLServer THS-SA-Admin] <Feb 16, 2009 1:49:28 PM IST> <Error> <WebLogicServer> <
    BEA-000383> <A critical service failed. The server will shut itself down>
    [WLServer THS-SA-Admin] <Feb 16, 2009 1:49:28 PM IST> <Notice> <WebLogicServer>
    <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
    [WLServer THS-SA-Admin] Error in server execution (THS-SA-Admin)

    Thanks for your reply.
    I have seen sample xml and my target looks the same
    <wlserver dir="${weblogic.domain.dir}"
                             port="${weblogic.domain.admin.server.port}"
                             servername="${weblogic.domain.admin.server.name}"
                             username="${weblogic.domain.admin.user}"
                             domainname="${weblogic.domain.name}"
                             password="${weblogic.domain.admin.password}"
                             configFile="config.xml"
                             generateConfig="true"
                             action="start"
                             beahome="${env.BEA_HOME}"/>
    my requirement is to use ant task.. otherwise I am able to create through configuration wizard
    Thanks

  • Deploying bpm 11g project sar file using ant task

    I am trying to deploy the bpm project using ant task file. The status I get is [deployComposite] ---->Deploying composite success. However when I check the deployments, they are not there. If I try to deploy this using Jdeveloper it works correctly. I need to get this to work for production deployments. Any suggestions?
    C:\Oracle\Middleware\Oracle_SOA1\bin>ant -f ant-sca-deploy.xml -DserverURL=http:
    //10.140.183.71:7001 -DsarLocation=N:\RuleBasedProjectInitiate\deploy\RequestPro
    ject.ear -Doverwrite=true -Duser=weblogic
    Buildfile: C:\Oracle\Middleware\Oracle_SOA1\bin\ant-sca-deploy.xml
    [echo] oracle.home = C:\Oracle\Middleware\Oracle_SOA1\bin/..
    deploy:
    [input] skipping input as property serverURL has already been set.
    [input] skipping input as property sarLocation has already been set.
    [deployComposite] created temp dir =C:\DOCUME~1\azeltov\LOCALS~1\Temp\deploy_cli
    ent_1279894885343
    [deployComposite] Creating HTTP connection to host:10.140.183.71, port:7001
    [deployComposite] Enter username and password for realm 'default' on host 10.140
    .183.71:7001
    [deployComposite] Authentication Scheme: Basic
    [deployComposite] Username:
    weblogic
    [deployComposite] Password:
    [deployComposite] Received HTTP response from the server, response code=200
    [deployComposite] clean up temp dir: C:\DOCUME~1\azeltov\LOCALS~1\Temp\deploy_cl
    ient_1279894885343
    [deployComposite] ---->Deploying composite success.
    BUILD SUCCESSFUL
    Total time: 4 seconds
    C:\Oracle\Middleware\Oracle_SOA1\bin>

    You can always deploy the ADF web apps from the Application (top menu) deploy option. Just make sure you're deploying the EAR profile for the project. Deploying the web projects from the composite deployment wizard can be convenient. But I think it's often the case that you deploy them (the composite and forms) separately (e.g. you make a series of changes to the composite without needed to redeploy the UI projects).
    Bottom line is you don't have to delete the projects to be able to modify/deploy them.

Maybe you are looking for

  • Lumia Denim OTA Update Problem

    Hi everyone, most people are having problems with the Lumia Denim not being pushed to their CV GBIE phones, especially on the low-range phones. For example Lumia 630/635 After a discussion with @Abi99 on my own Topic. I was sent a link to the Softwar

  • Windows Phone DataTemplate

    Hi, I am new in Windows Phone development, I have a listbox with a datatemplate, in the datatemplate there is a textblock named mytextblock, I can not access the textblock by using the name in MainPage.xaml.cs. But I want to change the forebackground

  • Dbassist still doesn't work after Suse patch

    I have followed the instructions to a tee on the Suse website on how to install 8.1.7 on Suse 7.1. I manage to install 8.1.7 EE fine, run the glibc-2.1.3-stubs.tar.gz patch, but cannot run dbassist. I either get the traditional SIGSEV error, or (afte

  • How can I make Word work again?

    I've noticed this only occurs on my account on the home computer. Every time I try to open Word, I get an error report that I press don't send on, and other times it actually gets to opening the page before it changes quickly back to the error report

  • DocumentReviewWorkflow

    I tried to add DocumentReviewWorkflow to my bpel workflows. But i get error . This is copy from bpel console : 2006/08/18 14:50:35] Error in evaluate <from> expression at line "54". The result is empty for the XPath expression : "/ns5:IFSQUEUEMESSAGE