WLST deploy bug

There seems to be a bug in the deploy method in the WebLogic scripting tool (WLST) on WebLogic Server 9.2.
When deploying to a remote server using an upload parameter of "false", the path parameter indicates a path on the remote server. The deploy method erroneously checks to see if the path is valid on the local system before proceeding.
A workaround is to create a file having that path on the local system before calling the deploy method. It can be empty as it is not used for the deployment.
Example:
open(path, "w").close()
deploy(appName=myApplication, path=path, upload="false")
Edited by crogers at 04/24/2007 3:23 PM

This does look like a bug, you need to file a support case.
-satya
BEA Blog:
http://dev2dev.bea.com/blog/sghattu/
Get Involved in CodeShare:
https://wls-console-extensions.projects.dev2dev.bea.com/
https://wlnav.projects.dev2dev.bea.com/
https://eclipse-wlst.projects.dev2dev.bea.com/
https://wlst.projects.dev2dev.bea.com/

Similar Messages

  • WLST Deployment Issue

    Hi All,
    I am doing one deployment using WLST deploy command passing appName,path and targets as arguments :-
    deploy(appName='someName',path='Somepath/some.war' , targets='AdminServer')
    I am executing this command like
    /some_path/bea/wls92mp2/weblogic92/server/bin/setWLSEnv.sh from some directory
    and then starting WLST and running this command
    Command is working fine but it is creating a directory structure from the path where i am giving the command
    PATH_FROM_WHERE_COMMAND_IS_EXECUTED/config/deployments/some.war/
    some.war is the empty directory with same name of war file which i deployed.
    I am bit new to wlst and can somebody help to tell its impact and how to get rid of it....thanks...

    Hi,
    I would suggest you to go through the below link which has the step by step way to use a WLST and the WLST script would deploy your application. It would surely help you.
    Topic:Recursive Deployment Using WLST
    http://middlewaremagic.com/weblogic/?p=303
    Regards,
    Ravish Mody
    http://middlewaremagic.com/weblogic
    Come, Join Us and Experience The Magic…

  • Wlst deploy error - Type Error

    Hi,
    I'm getting a problem when I use wlst.deploy from within a jython script that is being invoked from ant. Something to do with the number of parameters being used to call deploy. I've tried both three and four parameters, but get the following message in each case:
    [java] TypeError: deploy(): expected 4 args; got 3
    and
    [java] TypeError: deploy() too many arguments; expected 3 got 4
    The line from the script is:
         wlst.deploy( "WLI" + egType + "EG_" + egName, domaindir + "/" + egName + ".jar", cgServer)
    cgServer is defined elsewhere in the script.
    Any ideas?
    Thanks,
    Reuben

    Hi,
    The original Ant target is below:
    <target name="deploy_egs" depends="init">
    <java classname="org.python.util.jython" fork="yes" dir="${basedir}">
    <jvmarg line="-Dpython.home=${jython.home}"/>
    <arg value="${basedir}/scripts/createFileEG.py"/>
    <arg value="-u${domain.url}"/>
    <arg value="-n${domain.username}"/>
    <arg value="-p${domain.password}"/>
    <arg value="-d${domain.dir}"/>
    <classpath refid="wlst.class.path"/>
    </java>
    </target>
    And createFileEG.py gets the problem running line:
    wlst.deploy( "WLI" + egType + "EG_" + egName, domaindir + "/" + egName + ".jar", cgServer)
    I've also managed to run this line ok within wlst interactive mode and also within a wlst script. However it doesn't work
    This File event generator jython script is based on the the WLI application and domain build script included in the PO Sample at http://dev2dev.bea.com/code/wli.jsp.
    There are two versions of the JMS event generator build script within the PO Sample. The older version uses wseblogic.Deployer instead of wlst.deploy
    Thanks,
    Reuben

  • Stop wlst deploy task resolving symlink

    The directory we deploy our apps to weblogic is a symlink.
    This path gets passed in as the 2nd argument to the wlst deploy task.
    However this dereferences the symlink in the output message - using the fully resolved path - which then gets put in the resultant config.xml file.
    I want the path including the symlink put in the config.xml file (otherwise we're always using an old version)...is there anyway to do this?
    Cheers
    Using wls 9.10.

    Andreas,
    The directory really exists.
    I guess the problem is in the inconsistence between configurations, but how can I be sure of that? Any special procedure?

  • WLST undeploy BUG??

    We use WLST to undeploy applications from specified targets.
    Per the documentation undeploy command is undeploy('appname',targets)
    However when we specify target, it undeploys from all managed servers the application is deployed to.
    undeploy('Tapplication','Server1')
    Undeploying application Tapplication
    <Oct 2, 2006 8:40:33 PM EDT> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating undeploy operation for application, Tapplication [archive: null], to Server1 Server2 .>
    Completed the undeployment of Application with status completed
    Current Status of your Deployment:
    Deployment command type: undeploy
    Deployment State : completed
    Is this a bug?

    This does look like a bug, you need to file a support case.
    -satya
    BEA Blog:
    http://dev2dev.bea.com/blog/sghattu/
    Get Involved in CodeShare:
    https://wls-console-extensions.projects.dev2dev.bea.com/
    https://wlnav.projects.dev2dev.bea.com/
    https://eclipse-wlst.projects.dev2dev.bea.com/
    https://wlst.projects.dev2dev.bea.com/

  • JDeveloper 10.1.3.2 deployment bug

    Hello,
    I am experimenting with JDeveloper 10.1.3.2. When I make any web application it runs fine in the embedded OC4J. When I try to deploy to standalone server however or to war or ear file it fails. I've noticed that the archive in fact contains only the necessary xml files, but no class and jsp files.
    I have no such problem with JDeveloper 10..1.3.1. Does someone else have seen this bug?

    Marco,
    the bug is published and visible in Metalink.
    - Select "Document Id" in "Quick find"
    - enter the bug number: 4556035
    - click "Go"
    Bug 4556035 is fixed in JDeveloper 10.1.3.3
    It's also included in http://www.oracle.com/technology/products/jdev/htdocs/10.1.3.3/fixlist.htm
    Regards,
    Didier.

  • Crystal Report XI Release 2 - Deployment Bug on SQL Server

    Post Author: PeterLiebich
    CA Forum: General
    H
    We have a VS 2005 Crystal web app deployed onto a server - not using the RAS but using the Crsytal Report Viewer.
    Nearly Everything is working however we have one slight bug which is driving me mad.
    All of our reports are constructed against a development SQL Server, and then the Application resets the report location at run time to the Appropriate production server.
    Everything works fine when I run the appliction via VS 2005 on my XP machine, the reports repoint successfully etc.
    When I build the App and deploy it to a server, the CrystalReportViewer fails with a "Database logon failed" if (and only if) the name of the database that the report was developent against is the same as the name as the database is being repointed to (on a different server).  If the developement and production databases have different names then the resetting of the location works fine.
    As I said the repointing works fine when I run the App on my development machine which has Crystal Reports XI Release 2 installed.
    On the Server I have installED the Crystal dlls via CrystalReports11_5_NET_2005.msi dated 2007/03/01.
    I have also tried to deploy dlls via a GAC using CrystalReports11_5_NET_2005.msm dated 2006/02/24.
    All to no avail
    Here is the code I use to repoint the report
    Dim crConnectionInfo As New CrystalDecisions.Shared.ConnectionInfo
    crConnectionInfo.IntegratedSecurity = True
    crConnectionInfo.ServerName = v_ServerName
    crConnectionInfo.DatabaseName = v_DatabaseName
    'loop through all the tables and pass in the connection info
    Dim crTableLogOnInfo As CrystalDecisions.Shared.TableLogOnInfo
    For Each crTable As CrystalDecisions.CrystalReports.Engine.Table In  Me.m_ReportDocument.Database.Tables
      crTableLogOnInfo = crTable.LogOnInfo
      crTableLogOnInfo.ConnectionInfo = crConnectionInfo
      crTable.ApplyLogOnInfo(crTableLogOnInfo)
    Next
    'set the crSections object to the current report's sections
    'loop through all the sections to find all the report objects
    Dim crSubreportObject As CrystalDecisions.CrystalReports.Engine.SubreportObject
    Dim crSubreportDocument As CrystalDecisions.CrystalReports.Engine.ReportDocument
    For Each crSection As CrystalDecisions.CrystalReports.Engine.Section In Me.m_ReportDocument.ReportDefinition.Sections
      'loop through all the report objects to find all the subreports
      For Each crReportObject As CrystalDecisions.CrystalReports.Engine.ReportObject In crSection.ReportObjects
        If crReportObject.Kind = CrystalDecisions.Shared.ReportObjectKind.SubreportObject Then
        ' you will need to typecast the reportobject to a subreport object once you find it
         crSubreportObject = CType(crReportObject, CrystalDecisions.CrystalReports.Engine.SubreportObject)
         'open the subreport object
         crSubreportDocument = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
        'loop through all the tables in the subreport and
        'apply the connection set up previously to the subreports
        For Each crTable As CrystalDecisions.CrystalReports.Engine.Table In crSubreportDocument.Database.Tables
          crTableLogOnInfo = crTable.LogOnInfo
          crTableLogOnInfo.ConnectionInfo = crConnectionInfo
          crTable.ApplyLogOnInfo(crTableLogOnInfo)
        Next
        End If
      Next
    Next

    Post Author: jjamcgu
    CA Forum: General
    Don't know if you ever found a solution, but here is how I got it to work.
    1) If it was created pointing to a localhost database, it may be using named pipes to connect, where as production / test uses TCP/IP.  Our CR9 system automatically switched from Named Pipes to TCP/IP but CR11 does not.  Repointing the report to a non local version of the database fixed one problem of runtime switching.  (This includes switching back to localhost).
    2) When you change the server name, CR11 does not update the table object, but clones it and applies the update to the clone.  I needed to update the location apply the update and then apply the login change (I am not using integrated security, so this may not apply to you.).  See the code below.  I call setServerInfo and then setLogonInfo. Sub setLogonInfo(ByRef myReport As ReportDocument)
            Dim logonInfo As New TableLogOnInfo
            Dim table As CrystalDecisions.CrystalReports.Engine.Table
            For Each table In myReport.Database.Tables
                logonInfo = table.LogOnInfo
                logonInfo.ConnectionInfo.UserID = loginName
                logonInfo.ConnectionInfo.Password = loginPassword
                table.ApplyLogOnInfo(logonInfo)
            Next table
        End Sub
        Sub setServerInfo(ByRef myReport As ReportDocument)
            Dim logonInfo As New TableLogOnInfo
            Dim table As CrystalDecisions.CrystalReports.Engine.Table
            For Each table In myReport.Database.Tables
                logonInfo = table.LogOnInfo
                Select Case AppSettings("DataEnvironment")
                     Case "PRODUCTION"
                          logonInfo.ConnectionInfo.ServerName = "productionServer.local"
                     Case "TEST"
                          logonInfo.ConnectionInfo.ServerName = "testServer.local"
                     Case "LOCAL"
                          logonInfo.ConnectionInfo.ServerName = "localhost"
                 End Select
                 table.ApplyLogOnInfo(logonInfo)
            Next table
        End Sub

  • WLST deploy does not activate

    I'm running into a problem where I use WLST (weblogic 10.1) to deploy a series of apps and libs, and on certain files (happens with both apps and libs) the deploy command doesn't activate. To the user it appears the script is hung, and the solution is to login to the admin console (as the same user WLST is connected) and press the Activate button. Below is a snippet of debug for a failed lib:
    ####<Jan 10, 2009 3:00:42 PM GMT+00:00> <Debug> <Deployment>
    <dvpgap06.tbifdev.be> <AdminServer> <[ACTIVE]
    ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'>
    <weblogic> <> <> <1231599642795> <BEA-000000> <DeploymentManager:
    Created Deployment : 'weblogic.deploy.internal.Deployment@372bc7f[...]'>
    ####<Jan 10, 2009 3:00:42 PM GMT+00:00> <Debug> <Deployment>
    <dvpgap06.tbifdev.be> <AdminServer> <[ACTIVE]
    ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'>
    <weblogic> <> <> <1231599642795> <BEA-000000> <DeploymentManager:
    deployment 'weblogic.deploy.internal.Deployment@372bc7f[...]' initiated by
    'principals=[weblogic, Administrators]'>
    ####<Jan 10, 2009 3:00:42 PM GMT+00:00> <Debug> <Deployment>
    <dvpgap06.tbifdev.be> <AdminServer> <[ACTIVE]
    ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'>
    <weblogic> <> <> <1231599642795> <BEA-000000> <DeploymentManager: added
    deployment: weblogic.deploy.internal.Deployment@372bc7f[...] to list of pending
    deployments for edit lock owner>
    ####<Jan 10, 2009 3:00:42 PM GMT+00:00> <Debug> <Deployment>
    <dvpgap06.tbifdev.be> <AdminServer> <[ACTIVE]
    ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'>
    <weblogic> <> <> <1231599642795> <BEA-000000>
    <([email protected]7091c2):
    Found Same Operations : []>
    ####<Jan 10, 2009 3:01:18 PM GMT+00:00> <Debug> <DeploymentServiceTransport>
    <dvpgap06.tbifdev.be> <AdminServer> <[ACTIVE]
    ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS
    Kernel>> <> <> <1231599678170> <BEA-000000> <Creating and sending out
    heartbeat to : [Server01]>
    ####<Jan 10, 2009 3:01:18 PM GMT+00:00> <Debug> <DeploymentServiceTransport>
    <dvpgap06.tbifdev.be> <AdminServer> <[ACTIVE]
    ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS
    Kernel>> <> <> <1231599678171> <BEA-000000> <sending heartbeat to server
    'Server01'>
    Basically my script takes 1 or more app/lib names, and in turnss calls an undeploy and then deploy on each one. I've tried putting in some sleeps and re-arranging the order of the apps and libs, but without fail I always get some that get "stuck". Any help would be appreciated.
    Mike
    Update: The problem was due to an edit session being left behind if one of the apps/libs failed. The fix is better error handling to end the edit session:
    stopEdit('y')
    Edited by: prattm on Jan 15, 2009 3:15 PM

    check whether the change is activated
    configManager = getConfigManager()
    try:
         configManager.getChanges()
         isLocked = true
    except:
         isLocked = false
    ....

  • WLST deployment scripts not installing ODSI created services

    Some time ago, I modified some example scripts that installed ALDSP 3.0 assets into an ALDSP 3.0 domain, and everything was working dandily. A few months ago, we upgraded our ALDSP 3.0 domain to ODSI 10gR3. We also found we were still able to use the same WLST scripts with no modifications to install the assets into our ODSI domain.
    Now, what I have found is that when we export a dataspace into an ODSI jar from ODSI Workshop and install it with this script, the script only installs those services that were originally created in the ALDSP Workshop. If I install the exact same jar through the ODSI console, it installs all of the services as expected.
    Has anyone else seen this sort of behavior with using WLST scripts to deploy ODSI assets. I'm guessing something has changed that I need to account for in my script, but I haven't been able to find it yet. Any help would be appreciated.
    Edited by: DoubleT on Oct 8, 2009 5:20 PM

    so you have some dataspaces (projects) in ODSI that you can export and then deploy with WLST, and some dataspaces that you cannot, correct?
    To make sure that the first bunch actually do deploy, you could go to the ODSI console, delete them, deploy with WLST and check the console to see if they have reappeared. When you're convinced that works, and you're convinced that the others don't deploy - your just left with figuring out the difference. The simpler they are, the easier to diff them. If you're down to something really simple and don't see anything - engage customer support to help.
    It's unlikely that deployment fails without emitting some sort of error message - I would be looking in the server log.
    In ODSI 10.3 - the sample wlst scripts - SessionCommands.py expects the jar to be in user.dir instead of "rootFolder" in 3.2. (see below). There is also a README.TXT and a DspSecurityPolicy.py script.
    --------------------- ODSI 10.3 - SessionCommands.py ------------------
    import DspCommonCommands as dsp
    print 'Connecting to weblogic server instance...'
    connect("weblogic","weblogic","t3://localhost:7001")
    print 'Creating a deployment session...'
    dsp.createDeploymentSession('ALDSP_WLST_SESSION')
    #Import here uses the default DeploymentOptions
    #To use fancier DeploymentOptions inline the code of dsp:importDataSpace
    #and make necessary changes
    userDir=System.getProperty('user.dir')
    importJarPath=userDir+'/SimpleApp.jar'
    print 'Importing ' + importJarPath
    dsp.importDataSpace('SimpleApp','ALDSP_WLST_SESSION',importJarPath)
    print 'Activating the deployment session...'
    dsp.activateDeploymentSession('ALDSP_WLST_SESSION')
    #Export here uses the default ExportOptions
    #To use fancier ExportOptions inline the code of dsp:exportDataSpace
    #and make necessary changes
    exportJarPath=userDir+'/dataspace_with_config.jar'
    print 'Exporting the dataspace to ' + exportJarPath
    dsp.exportDataSpace('SimpleApp',exportJarPath)
    print 'Disconnecting from weblogic server...'
    disconnect()

  • WLST Deployment Query

    I'm trying to use WLST for deploying apps in Weblogic 9.1.
    I'm doing a simple deployment
    deploy (myappname, myappsource, targets=target_servers, stageMode="stage").
    The app deploys but staging mode does not get set, it is null (staging mode is set to staged for all managed servers).
    Am I doing some doing something wrong ?
    Is just using the deploy command in WLST enough or should I be executing any other commands (e.g. destributeapplication) ?
    Will the deploy command also upload the app to the target servers, even if they are on remote hosts (I run the deploy command from the Admin Server host) ?
    Richard

    Please ignore, strangely it seems to be working ok now

  • WLST deploy fails but works fine via admin console

    RHEL 5.6
    Jrockit 1.6.0_20-R28.1.0-4.0.1
    Weblogic 10.3
    Alfresco 3.3.4 (295)
    Oracle 10.2.0.4
    I'm experiencing problems when attempting to deploy a WAR using WLST using the below python script. If I deploy this WAR using the Weblogic Admin Console, all works well. When I attempt the same deployment using WLST, the deployment 'appears' to work and the script shows no sign of error BUT the application does NOT show up at all in the admin console. I'm using the same authentication information in both scenarios.
    connect(username,password,'t3://' + adminServer + ':8001')
    try:
    edit()
    startEdit(waitTimeInMillis=30000)
    except:
    traceback.print_exc(file=sys.stdout)
    print "Failed to aquire edit lock"
    # cannot undo when we do not has the lock
    #undo(defaultAnswer='y')
    #stopEdit()
    sys.exit(1)
    try:
    for app in cmo.getAppDeployments():
    if app.getName() == appname:
    print ('Application \'' + appname + '\' is already deployed, removing previous deployment...')
    undeploy(appname)
    break
    except:
    traceback.print_exc(file=sys.stdout)
    print "Undeploy failed"
    undo(defaultAnswer='y')
    stopEdit(defaultAnswer='y')
    sys.exit(1)
    try:
    deploy(appname, source, target, upload='true', block='true')
    except:
    traceback.print_exc(file=sys.stdout)
    print "Deploy failed"
    undo(defaultAnswer='y')
    stopEdit(defaultAnswer='y')
    sys.exit(1)
    try:
    save()
    activate()
    except:
    traceback.print_exc(file=sys.stdout)
    print "Activate failed"
    undo(defaultAnswer='y')
    stopEdit(defaultAnswer='y')
    sys.exit(1)
    disconnect()
    Is it possible to deploy the application unzipped?
    - CDM

    Hi Sebastian,
    You need to be connected to master database when executing GRANT VIEW SERVER. Try the following it will work:
    USE [master]
    GO
    GRANT VIEW SERVER STATE TO [Domain\User]
    Regards,
    Basit A. Farooq (MSC Computing, MCITP SQL Server 2005 & 2008, MCDBA SQL Server 2000)
    http://basitaalishan.com
    Please remember to click "Mark as Answer" on the post that helps you, and to click
    "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Wlst deploy via ant fails with NameNotFoundException

    All,
    I am trying to setup a deployment of a simple ear application to Weblogic using wlst via ant.
    The deployment keeps failing with a NameNotFoundException.
    ####<Sep 20, 2012 4:41:35 PM CDT> <Error> <Deployer> <osb2-dev-1> <WLS_APPMGD1> <[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1348177295661> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1348177287862' for task '131'. Error is: 'javax.naming.NameNotFoundException: Unable to resolve 'ejb.xxxxServiceSLSBLocalHome'. Resolved 'ejb'; remaining name 'xxxxServiceSLSBLocalHome''
    javax.naming.NameNotFoundException: Unable to resolve 'ejb.xxxxServiceSLSBLocalHome'. Resolved 'ejb'; remaining name 'xxxxServiceSLSBLocalHome'
    at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
    at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:252)
    Note that I struck out the actual service name with xxxx. Here is output from ant:
    wl-deploy-only:
    [wldeploy] weblogic.Deployer -verbose -upload -noexit -name xxxx -source artifacts\xxxx.ear -targets APPMGD_Cluster -adminurl t3://soaadmin-dev-1:7003 -user weblogic -password ******** -deploy -appversion anthill-2240
    [wldeploy] weblogic.Deployer invoked with options: -verbose -upload -noexit -name xxxx -source artifacts\xxxx.ear -targets APPMGD_Cluster -adminurl t3://soaadmin-dev-1:7003 -user weblogic -deploy -appversion anthill-2240
    [wldeploy] <Sep 20, 2012 4:01:34 PM CDT> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for application, xxxx [archive: artifacts\xxxx.ear], to APPMGD_Cluster .>
    [wldeploy] Task 129 initiated: [Deployer:149026]deploy application xxxx [Version=anthill-2240] on APPMGD_Cluster.
    [wldeploy] Task 129 failed: [Deployer:149026]deploy application xxxx [Version=anthill-2240] on APPMGD_Cluster.
    [wldeploy] Target state: deploy failed on Cluster APPMGD_Cluster
    [wldeploy] java.lang.Exception: [DeploymentService:290069]Commit failed message received for id: '1,348,174,902,597' . But exception details cannot be transported. Please look at target server log file for more details.
    [wldeploy]
    [wldeploy] java.lang.Exception: [DeploymentService:290069]Commit failed message received for id: '1,348,174,902,597' . But exception details cannot be transported. Please look at target server log file for more details.
    [wldeploy]
    [wldeploy]
    [wldeploy] Target Assignments:
    [wldeploy] + xxxx APPMGD_Cluster
    BUILD FAILED
    weblogic.Deployer$DeployerException: weblogic.deploy.api.tools.deployer.DeployerException: Task 129 failed: [Deployer:149026]deploy application xxxx [Version=anthill-2240] on APPMGD_Cluster.
    Target state: deploy failed on Cluster APPMGD_Cluster
    java.lang.Exception: [DeploymentService:290069]Commit failed message received for id: '1,348,174,902,597' . But exception details cannot be transported. Please look at target server log file for more details.
    java.lang.Exception: [DeploymentService:290069]Commit failed message received for id: '1,348,174,902,597' . But exception details cannot be transported. Please look at target server log file for more details.
    at weblogic.Deployer.run(Deployer.java:72)
    at weblogic.Deployer.mainWithExceptions(Deployer.java:62)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.ant.taskdefs.management.WLDeploy.invokeMain(WLDeploy.java:420)
    at weblogic.ant.taskdefs.management.WLDeploy.execute(WLDeploy.java:349)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1307)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1191)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:218)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Caused by: weblogic.deploy.api.tools.deployer.DeployerException: Task 129 failed: [Deployer:149026]deploy application xxxx [Version=anthill-2240] on APPMGD_Cluster.
    Target state: deploy failed on Cluster APPMGD_Cluster
    java.lang.Exception: [DeploymentService:290069]Commit failed message received for id: '1,348,174,902,597' . But exception details cannot be transported. Please look at target server log file for more details.
    java.lang.Exception: [DeploymentService:290069]Commit failed message received for id: '1,348,174,902,597' . But exception details cannot be transported. Please look at target server log file for more details.
    at weblogic.deploy.api.tools.deployer.Jsr88Operation.report(Jsr88Operation.java:542)
    at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:140)
    at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88)
    at weblogic.utils.compiler.Tool.run(Tool.java:158)
    at weblogic.utils.compiler.Tool.run(Tool.java:115)
    at weblogic.Deployer.run(Deployer.java:70)
    at weblogic.Deployer.mainWithExceptions(Deployer.java:62)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.ant.taskdefs.management.WLDeploy.invokeMain(WLDeploy.java:419)
    at weblogic.ant.taskdefs.management.WLDeploy.execute(WLDeploy.java:349)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.apache.tools.ant.Main.runBuild(Main.java:758)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    ... 2 more
    Total time: 25 seconds
    I tried redeploy instead of undeploy, but is still fails. Is there anything I am missing?
    Thanks.
    Edited by: 960582 on Sep 21, 2012 7:18 AM

    Kal, that parameter did not solve the problem. I added it under JAVA_OPTIONS in:
    ${oracle.home}\user_projects\domains\osb_domain\bin\startWebLogic.cmd
    I am still getting an exception. The new deployment only gets picked up after the managed servers are bounced. Any idea what could be going on?

  • ClassCastException after deploy - bug

    Greetings,
    After much discussion in the Jdev forum, some here, alot of past discussion
    on the hierarchial nature of J2EE container's classloaders,
    which all makes sense and is consistant with observed behavior for me
    and other posters:
    It still seems to me that there's a bug in OC4J 903 that allows for ClassCastExceptions after re-deployment in Apps
    that happen to have the same classes.
    All the experts weighed in with discussion of how the container class loaders disallow cross loading of classes
    from adjacent applications. Great, then
    the ClassCastExceptions shouldn't happen. No?
    Regardless, the simple issue is; there should be under no circumstances a need
    to bounce an appserver after every deployment, to flush out stale classes that otherwise would cause ClassCastExceptions.
    Can OC4J experts explain why I should have to bounce 903 OC4J after every
    deploy?
    Is this issue being worked on (fixed) in 904?
    Thanks, curt

    Are there any opinions or even similar experiences with
    ClassCastException's following hot deploys?
    Thanks, curt

  • Remote Server - WLST Deployment adapter error

    Hi everyone.
    I have a issue I hope you can help with.
    The task: To use a Python script to create a FTP Adapter / DbAdapter connection to a remote server.
    The problem: Script works fine with WebLogic working on localhost but gives <b>error with any remote server including Virtual Machine</b>
    The area of code concerned:
    FTPappPath=get('/AppDeployments/FtpAdapter/PlanPath')
              print(FTPplanPath)
              FTPplanPath=get('/AppDeployments/FtpAdapter/SourcePath')
              print(FTPsrcPath)
              print '--------Start loadApplication-------'
              myPlan=loadApplication(FTPsrcPath, FTPplanPath)
    When deploying to any server except localhost, it fails at the last line in the above.. "loadApplication" . I have checked and the FTPplanPath and FTPappPath are correct when looking at the print statement.
    The error:
    java.io.IOException: Exception in AppMerge flows' progression
    at weblogic.deploy.api.internal.utils.AppMerger.getMergedApp(AppMerger.j
    ava:70)
    at weblogic.deploy.api.model.internal.WebLogicDeployableObjectFactoryImp
    l.createDeployableObject(WebLogicDeployableObjectFactoryImpl.java:181)
    at weblogic.deploy.api.model.internal.WebLogicDeployableObjectFactoryImp
    l.createDeployableObject(WebLogicDeployableObjectFactoryImpl.java:163)
    at weblogic.deploy.api.tools.SessionHelper.initialize(SessionHelper.java
    :727)
    at weblogic.deploy.api.tools.SessionHelper.initializeConfiguration(Sessi
    onHelper.java:556)
    at weblogic.deploy.api.tools.SessionHelper.initializeConfiguration(Sessi
    onHelper.java:544)
    at weblogic.deploy.api.tools.SessionHelper.initializeConfiguration(Sessi
    onHelper.java:627)
    at weblogic.deploy.api.tools.SessionHelper.initializeConfiguration(Sessi
    onHelper.java:608)
    at weblogic.management.scripting.JSR88DeployHandler.loadApplication(JSR8
    8DeployHandler.java:173)
    at weblogic.management.scripting.WLScriptContext.loadApplication(WLScrip
    tContext.java:787)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.python.core.PyReflectedFunction.__call__(Unknown Source)
    at org.python.core.PyMethod.__call__(Unknown Source)
    at org.python.core.PyObject.__call__(Unknown Source)
    at org.python.core.PyObject.invoke(Unknown Source)
    at org.python.pycode._pyx16.loadApplication$11(<iostream>:290)
    at org.python.pycode._pyx16.call_function(<iostream>)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyFunction.__call__(Unknown Source)
    at org.python.pycode._pyx15.createFTPAdapter$2(C:\Users\xxx\Desktop
    \NEW xx SCRIPTS\FTPAdapterScript - Manual\CreateFtpAdapter.py:34)
    at org.python.pycode._pyx15.call_function(C:\Users\xxx\Desktop\NEW
    xx SCRIPTS\FTPAdapterScript - Manual\CreateFtpAdapter.py)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyFunction.__call__(Unknown Source)
    at org.python.pycode._pyx15.main$3(C:\Users\xxx\Desktop\NEW xx SCRI
    PTS\FTPAdapterScript - Manual\CreateFtpAdapter.py:64)
    at org.python.pycode._pyx15.call_function(C:\Users\xxx\Desktop\NEW
    xx SCRIPTS\FTPAdapterScript - Manual\CreateFtpAdapter.py)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyFunction.__call__(Unknown Source)
    at org.python.pycode._pyx15.f$0(C:\Users\xxx\Desktop\NEW xx SCRIPTS
    \FTPAdapterScript - Manual\CreateFtpAdapter.py:68)
    at org.python.pycode._pyx15.call_function(C:\Users\daljxxxbain\Desktop\NEW
    xx SCRIPTS\FTPAdapterScript - Manual\CreateFtpAdapter.py)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyCode.call(Unknown Source)
    at org.python.core.Py.runCode(Unknown Source)
    at org.python.util.PythonInterpreter.execfile(Unknown Source)
    at weblogic.management.scripting.WLST.main(WLST.java:124)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.WLST.main(WLST.java:29)
    Caused by: weblogic.utils.compiler.ToolFailureException: Exception in AppMerge f
    lows' progression
    at weblogic.application.compiler.AppMerge.merge(AppMerge.java:172)
    at weblogic.deploy.api.internal.utils.AppMerger.merge(AppMerger.java:88)
    at weblogic.deploy.api.internal.utils.AppMerger.getMergedApp(AppMerger.j
    ava:63)
    ... 45 more
    Caused by: weblogic.utils.compiler.ToolFailureException: [J2EE:160106]ERROR: The
    source file, '\u01\app\oracle\product\fmw\Oracle_SOA1\soa\connectors\FtpAdapter
    .rar', could not be found.
    at weblogic.application.compiler.flow.PrepareInputFlow.prepareInput(Prep
    areInputFlow.java:99)
    at weblogic.application.compiler.flow.PrepareInputFlow.compile(PrepareIn
    putFlow.java:41)
    at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDri
    ver.java:69)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
    river.java:52)
    at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36
    at weblogic.application.compiler.FlowDriver$CompilerFlowDriver.compile(F
    lowDriver.java:96)
    at weblogic.application.compiler.AppMerge.runBody(AppMerge.java:157)
    at weblogic.utils.compiler.Tool.run(Tool.java:158)
    at weblogic.utils.compiler.Tool.run(Tool.java:115)
    at weblogic.application.compiler.AppMerge.merge(AppMerge.java:169)
    ... 47 more
    ----Failed---
    I dont know why the it says the FtpAdapter.rar can not be found when its there. What can I try? I have searched Google but nothing helps!!
    Thanks
    Edited by: 974881 on Dec 4, 2012 6:14 AM

    bump :)
    Can we not use "loadApplication()" when connecting to a remote server in a script?

  • Project dependencies & WAR deployment bug

    According to the help/manual (Getting Started / About JDeveloper / About project dependencies):
    This project-to-project compile-time dependency also has an impact on deploy-time behavior. The project dependency guarantees that when you deploy Project A's profile, JDeveloper will deploy everything specified in the profile for Project A, as well as the complete contents of Project B.
    This seems to work fine when deploying to a jar. When deploying to a WAR however, things are different. All files from project B are included in the deployment, except the classes that are used in project A. I would rather prefer the opposite...(to put it mildly)
    Is this a known bug? Maybe there's a workaround?
    Cheers Hans

    bump

Maybe you are looking for

  • Is there a way? Some iPhone/iPhoto questions

    to order the photos so that the latest photos in the past 12 mos are displayed? The default seems to be oldest first, making it a chore to see recent photos. I have about 4600 photos on there and it's a lot of trouble to see the recent ones. Also, im

  • JSP, JSF, and ADF

    I've just started playing around with this and was looking for samples/tutorials to help. Of the tutorials/samples I've seen, they appear to fall short of explaining an end-end example and stick mostly to JSF and the backing bean - usually displaying

  • Where is this mystery project file?!

    I have just opened FCE 4 and staring me in the face was an old project I have not used for a while. However, what is even more weird is that the title is totally different from what it was and I cannot find this new project file anywhere on my comput

  • CS3 download site is not working

    clicking on the Mac or Win link for CS3 won't work and gives below error is there any other site where I can download installer? HTTP ERROR: 404 /support/downloads/dlm/main.jsp

  • Copying Oval Image from PSE 4.0 to MS Word 2003

    I am using Photoshop Elements 4.0, Microsoft Word 2003, a Dell 8300 PC with Windows XP Home, SP2. I am trying to get an oval image from Elements 4.0 to MS Word 2003 and have it remain just the oval image. So far I can only get it into Word as a recta