Unable to deploy applications using WLST of EAR

I have an archive EAR of Application that I can successful deployment of a managed server in weblogic using the Administration Console.

However, when I try to deploy the same archive EAR using WLST to the same managed server, the deployment will fail.

Here are the steps I followed:

(1) Sourcing WL environment (setDomainEnv.sh)... »
(
$DOMAIN_HOME/bin/setDomainEnv.sh
2) stage DYN_HELP.ear file in directory download WL Admin Server... »
Start WLST
cp $HOME/scripts/wl/DynaMed_Help.ear $DOMAIN_HOME/servers/AdminServer/upload/DynaMed_Help.ear
session 3)
Java weblogic. WLST

WebLogic Scripting Tool (WLST) initializing...

Welcome to WebLogic Server Administration scripts Shell

Help() type help on the available commands

WLS: / offline
4) the value of the Variables of the WLST Script
wl_username = "weblogic.
wl_userpassword = "< wl_password >".
wl_url = ' t3: / / icweb002:7001'
wl_target_server = "DYN_HELP".
wl_server_listener_port = 9003
wl_server_machine = "icweb002".
wl_nm_port = "5556"
wl_domain = "cross".
web_app = "DynaMed_Help."
web_app_war = ' / u00/apldyna1/Oracle/Middleware/user_projects/domains/DynaMed/servers/AdminServer/upload/DynaMed_Help.ear '
5) connect to WL
Connect (wl_username, wl_userpassword, wl_url)

T3 connection: / / icweb002:7001 with username weblogic...
Connected to the Server Admin "AdminServer" which belongs to the field "DynaMed.

WARNING: A non-secure protocol was used to connect to the
Server. To ensure the safety of on-the-wire, the SSL port or
The admin port should be used instead.
(6) to deploy the Application
deploy (web_app, web_app_war, target = wl_target_server)

WLS: serverConfig/DynaMed / > deploy (web_app, web_app_war, target = wl_target_server)
Application deployment of the /u00/apldyna1/Oracle/Middleware/user_projects/domains/DynaMed/servers/AdminServer/upload/DynaMed_Help.ear targets DYN_HELP (upload = false)...
< 18 February 2010 17:10:12 EST > < Info > < deployment J2EE SPI > < BEA-260121 > < Initiating deployment operation for application, DynaMed_Help [archive: u00/apldyna1/Oracle/Middleware/user_projects/domains/DynaMed/servers/AdminServer/upload/DynaMed_Help.ear], to DYN_HELP. >
. Impossible to deploy the application with the State failed
Current status of your deployment:
Command type of deployment: deployment
Deployment status: failed
Deployment message: weblogic.management.DeploymentException: [Deployer: 149189] attempt to exploit 'deploy' to null BasicDeploymentMBean deployment DynaMed_Help. Operation cannot be performed until the server is restarted.
Traceback (innermost last):
Folder "system <>", line 1, in?
File '< iostream >", line 246, to deploy
File '< iostream >", line 1744, in raiseWLSTException
WLSTException: Error occurred when executing deploy: target the exception that is thrown when the application deployment: error occurred when executing deploy: deployment failed. : Error occurred when executing deploy: deployment failed.
Am I missing something with my WLST deployment? As I said earlier, I can deploy this same EAR successfully using the Administration Console.

WLST and administration console use the API of JSR even 88 to deploy the application, so I don't know what is different.

Search within server admin for all log no dynamic change requires restarting the server messages. If you require a server restart, then config changes are not propagated to the server mbean DURATION until the server is restarted.

You can post any series of commands?

Tags: Fusion Middleware

Similar Questions

  • Remove applications using WLST

    Hi gurus,

    I tried to remove the my application using the command like this

    Delete ("TestApp", "AppDeployments");

    But get an error every time I run this command saying

    WLSTException: ' error occurred when executing delete: cannot delete the AppDeployment type with name TestApp MBean. You can remove the children of the current CMO MBeans. \nTo display the types of children that you can remove, use listChildTypes(). »

    When I try to run this command, such as mentioned in the error
    listChildTypes()

    I don't see the MBeans that can help remove my TestApp, what am I doing wrong here? How can I delete the application?

    Thanks in advance.

    Published by: 853410 on April 27, 2011 10:29

    Hello

    The Indentation (the space before a statement) is very important in WLST because control instructions as if {} and {} and {} loops starts and ends based on indentation.

    Please use the corrected the script below:

    url=t3://localhost:8001
    username=weblogic
    password=weblogic
    
    app.1=MyApp1
    app.2=MyApp2
    app.3=MyApp3
    

    And following will be your WLST Script:

    from java.io import FileInputStream
    
    propInputStream = FileInputStream("test.properties")
    configProps = Properties()
    configProps.load(propInputStream)
    
    Url = configProps.get("url")
    print 'url=', Url
    User = configProps.get("username")
    print 'User=', User
    Password = configProps.get("password")
    print 'Password = ', Password
    
    connect(User,Password,Url)
    config()
    cd ('Applications')
    
    for i in 1,2,3:
         App = configProps.get("app."+str(i))
         delete (App)
         print 'Application ',App,' has been deleted Successfully..!!!'
         i =i+1
    

    So now you just make changes in the properties file. No need to touch anything in the WLST Script except the loop Count.Which to is equal to the applications that you want to remove ;)

    Thank you
    Véronique Mody

  • How to generate the file for ADF Application using Jenkins CI ear

    JDeveloper: 11.1.2.1.0

    Hi all

    We use the continuous Integrator tool Jenkins to deploy the Source code for the ADF in various environments such as UAT/Prod etc. I have never used Jenkins to build the ear file and got the same basic questions about its use. Can someone with me how to use this tool.

    1. as far as I know, Jenkins supports scripts ant, but what I need to do any thing added in the Jenkins case, in support of controls ojdeploy

    2. all the documents that I can refer to stages of deployment using Jenkins

    3. If I need to deploy it to multiple environments, what I need to make any changes in the Jenkins case or a job is enough and properties file will take care of it

    4. I want Jenkins system to read the code of source code control server (we use p4)

    Thank you

    Delighted Nuka.

    Look for ojdeploy coating in an Ant script, then call your script by Jenkins/Hudson Ant as a recurring task.  This blog previous messages of talks to the technique of ojdeploy-Ant:

    One size does not fit all: using ojdeploy and Ant to create pots of ADF library

    From your point of view development, get the ojdeploy-Ant scripts first work in JDeveloper, then expand to be called by Jenkins/Hudson.  You will need to install JDeveloper on the build server for this to work, so why you may need to adjust the Ant scripts for your construction engine, JDev configuration may be different on your build of your the desktop configuration server (although ideally you should standardize the JDev on your PCs of dev configuration and build server in my humble OPINION).

    CM.

  • Deploy using WLST Composites with properties file

    Hello

    Can someone tell how to deploy composites using WLST.

    I found the command below, but I just wanted to include the location, configplan. partion in the file propery.

    sca_deployComposite (serverURL, sarLocation, [Replace] [user] [password], [forceDefault], [configplan], [partition])


    -Thanks in advance

    973841 wrote:
    I do the following
    Created a test.cmd file that contains the commands below

    I don't think it's a good idea to mix windows with jython shell commands commands in the same file...

    I recommend that you take a look at the following... Linking WLST Ant is probably the most appropriate way for your case...
    http://docs.Oracle.com/CD/E23943_01/Web.1111/e13715/using_wlst.htm

    I hope this helps...

    See you soon,.
    Vlad

  • Error, while trying to deploy an application using the DB adapter

    Hello

    I am getting error while deploying the SOA application using the DB adapter below

    [11:46] send (archive) - sca_DataBAdapter_rev2.jar
    [11: 46:12] Server, the response code = 500 HTTP response was received
    [11: 46:12] error in deployment of archives sca_DataBAdapter_rev2.jar to partition 'default' server soa_server1 [http://computer:8001]
    [11: 46:12] HTTP error Code returned [500]
    [11: 46:12] Error Message from the server:
    * There is a deployment of the composite on soa_server1 error: [JCABinding] [DataBAdapter.DBAdapter/2] Unable to complete unloading due to: cannot find Java class oracle.tip.adapter.db.DBWriteInteractionSpec: could not find oracle.tip.adapter.db.DBWriteInteractionSpec. * of Java class

    [11: 46:12] check the log of the server for more details.
    [11: 46:12] error in deployment of archives sca_DataBAdapter_rev2.jar to partition 'default' server soa_server1 [http://computer:8001]
    [11: 46:12] # incomplete deployment. ####
    [11: 46:12] error deployment archive file:/C:/JDeveloper/mywork/DataBAdapter/DataBAdapter/deploy/sca_DataBAdapter_rev2.jar
    (oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)

    Pls know me if someone has already faced the same thing!

    Published by: 934914 on June 19, 2012 05:45

    Have you tried restaring the server and deploy again.
    Before deploying again, make sure that your application of DBAdapter, database is running.

    Thank you
    Vijay

    Published by: veejai24 on June 18, 2012 07:44

  • Orchestrator can be used to deploy applications in virtual machines?

    Hey guys,.

    It is a matter of general features.  I spent a few hours trying to figure the best technology to use for deployment of applications within virtual machines.  It looks like vFabric Application Director would be the * best *, but I am also looking to vCenter Orchestrator.  He seems mature, but I don't know if it can be used to deploy applications within a virtual machine (for example, install IIS in a Windows Server 2008 VM).

    Any input would be appreciated, marketing white papers are not totally clear!

    Thank you

    Drew

    You can use the workflow operations comments to run commands install or a complete script to do. This says that you can also use vCO to orchestrate the Application Director as part of an workflow provisioning of end-to-end.

  • Cancel the deployment of a Web application using a Java method or call

    Hi, I have an application that is running on weblogic I want to cancel the deployment using a Java method or a call.
    Is it possible to do it with a specific API to weblogic or something like?
    Thank you!

    Hi CarolinaCunha,

    Please visit the following link to cancel the deployment of Applications using the Java method:

    http://jaysensharma.WordPress.com/2010/01/15/Undeploying-application-using-Java-method-JMX/

    Thank you
    Jay SenSharma

  • Unable to deploy device applications examples

    I'm unable to deploy any of the samples from samples waterfall waterfall on my device. I get the following error when I try

    There is no program file
    /Users/jeswinsimon/projects/bucktlist/sampleApps/starshipsettings/arm/o.Le-v7-g/starshipsettings not found
    /Users/jeswinsimon/projects/bucktlist/sampleApps/starshipsettings/arm/o.Le-v7-g/starshipsettings not found
    /Users/jeswinsimon/projects/bucktlist/sampleApps/starshipsettings/arm/o.Le-v7-g/starshipsettings not found

    Feature: Dev Alpha B OS Version: 10.1.0.1720

    QNX Momentics® IDE for BlackBerry® 10 native SDK

    Version: 10.2.0

    Build id: v201306031341

    You probably imported the project.  I just checked myself and starshipsettings working on my bbndk Dev Alpha C. last 10.2.

    File-> import-> General-> existing projects into workspace and you need to select the directory or the zip file.

    After that I just checked the build configuration - debugging the device, he built and ran it on the device.

    If you still have questions download the example directly from github: https://github.com/blackberry/Cascades-Samples - maybe you have the old version.

  • Unable to start the server using wlst in windows

    Hello world

    I'm trying to start the weblogic 10.3 Server thru using wlst
    startServer ('AdminServer_name', 'Domain_Name', "..."
    first it is used to give an error message saying that it is not able to get the encrypted user name and password of the boot.properties file.
    then I tried to copy - paste the username and passwd in the same order and it gives me an error saying

    WLST could not start a new jvm for the server process, this can happen if you have provided illegal jvmArgs or the JVM picked up all illegal JVM_OPTIONS your way.

    If I mention the same JVM settings from the help ('startServer') command parameters. It is said

    Traceback (innermost last):
    Folder "(console)", line 1, in?
    File '(iostream)", line 398 in startServer
    TypeError: startSvr(): 10th arg can't be converted to int.

    I am trying to get through this error
    Help, please...

    Thank you
    Roop

    Annoying bug of syntax:

    Works of 60000
    "60000" is not

    WLS: / offline > startServer ("AdminServer', 'base_domain', ' t3: / / host: 7009', 'weblogic', ' *", "/ opt/oracle/bea/user_projects/domains/base_domain ', 'true', ' 60000')
    Traceback (innermost last):
    File "", line 1, in?
    File "", line 398, in startServer
    TypeError: startSvr(): 10th arg can't be converted to int

    WLS: / offline > startServer ("AdminServer', 'base_domain', ' t3: / / host: 7009', 'weblogic', ' *', ' / opt/oracle/bea/user_projects/domains/base_domain", "true", 60000)
    From weblogic server...
    WLST-WLS-1253908409262:

  • WebLogic: Deployed remotely using the SSL connection

    I want to deploy MyApp.war on AdminServer is that SSL is enabled. The configuration is the following:

    Machine M1 Machine M2
    AdminServer run hereDeployment script
    MyApp.war - application to deploy war file

    Deployment using WLST as follows:

    progress = deploy (appName = 'MyApp', path = has: \Work Progress\WLSTScripts\WLST Deploy\MyApp.war' distance = 'true', download = 'true')

    This operation fails with the following error:

    wls: / Trinity_Testing_JDK7/edit! > progress = deploy (appName = 'MyApp', path = has: \Work Progress\WLSTScripts\WLST Deploy\MyApp.war' distance = 'true', download = 'true')

    Deployment of application of D:\Work Progress\WLSTScripts\WLST Deploy\MyApp.war targets (upload = true)...

    < 12 February 2015 15:09:30 IST > < Info > < deployment J2EE SPI > < BEA-260121 > < Initiating deployment operation for the MyApp application [archive: D:\Work Progress\WLSTScripts\WLST Deploy\MyApp.war], to AdminServer. >

    You have an editing session underway, where WLST will not block for your deployment complete.

    Has started the deployment of the Application. Please see the object returned WLSTProgress or the LAST variable to track the status.

    wls: / Trinity_Testing_JDK7/edit! > Print progress.getMessage)

    weblogic.deploy.api.spi.exceptions.ServerConnectionException: [SPI: J2EE deployment 260041] failed to load 'D:\Work Progress\WLSTScripts\WLST Deploy\MyApp.war' at ' t3s: / / M2:7002'

    wls: / Trinity_Testing_JDK7/edit! > Print progress.printStatus)

    Current status of your deployment:

    Command type of deployment: deployment

    Deployment status: failed

    Deployment message: weblogic.deploy.api.spi.exceptions.ServerConnectionException: [SPI: J2EE deployment 260041]unable to load 'D:\Work Progress\WLSTScripts\WLST Deploy\MyApp.war' at ' t3s: / / M2:7002'

    None

    Error message in the server log:

    < 12 February 2015 15:05:28 IST > < opinion > < WebLogicServer > < BEA-000360 > < server started operation >

    "< 12 February 2015 15:10:31 IST > < WARNING > < DeploymentService > < BEA-290070 > < deployment servlet service encountered an exception during parsing of multipart/form-data request:

    Publish

    wl_request_type:app_upload,

    wl_upload_application_name: MyApp.

    Content-Type: multipart/form-data; Boundary = - 7d01b33320494.

    ". Exception: "multipart/form-data request processing failed. Read timed out ". >

    < 12 February 2015 15:16:59 IST > < WARNING > < DeploymentService > < BEA-290071 > < deployment service servlet failed on the analysis of the request or by downloading the file. >

    FYI - Action in the error code - BEA-290071 said: "the demand should be RFC 1867 compliant."

    How to solve this problem?
    How can I apply the RFC 1867 compliant when the actual query is not created by me?

    The deploy command is improper; lack of some configuration settings?

    The solution is to assign to the property system - Dweblogic.deploy.UploadLargeFile = true when starting the client WLST. Then, any size file gets uploaded to the server even with the SSL connection.

    I confirmed this problem and solution on two different weblogic configurations and it worked. If anyone knows a similar problem, they can try it.

  • WebLogic. Applications j2ee WSLT power (ear, war)

    WebLogic 9.2 and WSLT command-line:
    (1) is it possible to query the status and start/stop (ear/war) j2ee applications deployed and running on a domain server command line using wslt weblogic. All examples are very much appreciated. I think it would be similar to how jboss uses jmx mbeans to manage j2ee application market stop.
    (2) how are the mbeans for ear/war looked up. Is there something similar to the jboss in weblogic jmx console, perhaps a link from the web page Administration console?
    (3) WSLT can be used in a unix shell script?

    Example:
    If I deploy foo.ear or foo.war, I want to find the mbean using wslt and request that his State be started/stopped/running and also be able to call this topic starting/stopping operations.

    Thank you in advance for the ideas and examples for each of the questions.

    Thank you
    SM.

    Hello

    Well, there are two situations. First of all, which does not apply in your case, but I guess it's ok to make a little reminder, during deployment.
    If you are using WLST to deploy your application, you can get a WLSTProgress object that tells what your application is currently in the State.

    http://e-docs.BEA.com/WLS/docs92/config_scripting/reference.html#wp1215793

    Otherwise, even if your applications are already running, you obvisously to first connect to your server admin with WLST.
    Then, you go to the server tree by typing "serverRuntime()."

    Then type:
    CD ("ApplicationRuntimes")
    CD ("yourAppName")
    ls()

    You will see the HealthState of your application.

    To start an application: http://e-docs.bea.com/wls/docs92/config_scripting/reference.html#wp1037897
    To stop it: http://e-docs.bea.com/wls/docs92/config_scripting/reference.html#wp1038144

    This doc is THE reference for orders WLST :)

    It will be useful.

  • Unable to free application on the target

    I am having trouble running on a BB Z10 camera to test the Release version of my application native-built.  I use Momentics IDE 2.0 with NDK 10.2 Gold API installed. The specific error that I get from the IDE when you run the standard version is "unable to free application on the target." However, the error message is very vague as to why. Strangely, the generation deploys to the device. The problem is that no bar file is generated. After reading about this problem and a workaround (that is, the version Release shipping) I generate a bar file. However, the bar of the file that is generated by exporting the release build seems to have problems because it behaves differently in the Debug version, when it is installed on a device. The SQLite data access library is problematic in the bar of folder for my App. specifically, the deployed application behaves as if it cannot write to the SQLite database. I recompiled and re - tested several times, without any improvement. I even tried to make a new version build from scratch (import only C++ and QML files) on a completely different system of my development system, but I'm still not able to run a fully functional version. I get the same error (see the title of the topic). The Release version seems to be unable to write to the SQLite database.  Again, the Debug build works perfectly. Any ideas?
     
    Thank you in advance for your time and research on this issue.

    Thanks, I thought about it. A more informative error message would have been useful though - something like "permission denied" or "cannot write to the folder. I used the file system browser target to check the access matrix, which make it obvious.

  • Error during deploy Homeless using veristand 2010 API

    Hello

    I developed a few screws to connect and download "in4" and it worked fine with VS 2009.

    Now I am migrating to VS 2010 and I got error-307658 when I try to connect for the second time.

    If I cancel the deployment by using the Project Explorer, I still had no error.

    I tried to undeploy using logout of the system, but I still get the same error.

    With VS 2009 it has been possible to deploy the Homeless several times without error, but it seems that the same is not allowed with VS 2010, is this good?

    I forgot something?

    I enclose the screws and the Homeless.

    See you soon,.

    Claudio H.

    If the status is active, this means that the connection between the gateway
    (host) and the target is already active. These calls will result:

    1. Connect with deploy the false value - it will be 307658 with error saying that the system is currently running (already connected), and you can reconnect.

    2. Connect to deploy true value - it will be 307658 with error saying that the system is running and you cannot deploy.

    3. Disconnect with put false - undeploy it will cut the target (host) bridge but let the defintion of running system.

    4. Disconnect with undeploy true set - this cancel the deployment of the current definition of system and disconnect the gateway of the target.

    So for a robust application, you probably should handle error

  • How to open, close and monitor a (xyz.exe) application using labview?

    Hi all

    I have an application where I need to open an application e.g. calc.exe, after application of openingxyz it I need weather monitor this application runs, or is he forcefuly closed by the user. now I am able to open the application using the Exec.VI system, but unable to verify the current state of the application called in real time.

    Thanks in advance

    Ravi

    A simple method is to run a cmd "tasklist" and analyze the output string.

    See this:

  • Writing to a file that is packaged in the deployed application (part of the COD file)

    Hello

    Thanks RexDoug, I got the link that shows how to read a config/prefs file included in the application code that I'm deployment.

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800620/How_To _...

    However one thing, I realized that I also need to write to this file, so my question is: is it possible to also write to a file included in the deployed application? If so, any tips/sample code would be greatly appreciated.

    Kind regards

    Sean.

    Similar question on writing a file on SD card in this thread:

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&thread.ID=55847

    I would use the name/value pair in PersistentStore approach to do this, which saves the duty serialize into a stream of bytes output to write the file.

Maybe you are looking for

  • Side button not opening not dock

    The side button on my new Apple Watch 2 does not open the dock, can reset the watch to solve this problem?

  • In Ubuntu, the command "thunderbird $-off line ' start thunderbird in online mode.

    I want to be able to "Thunderbird" in offline mode to use the add-on calandar 'Lightning '. Several online sources say to use the command ' thunderbird $-offline ", but it does not work. This command launches thunderbird in online mode. "thunderbird

  • Two favorites are not deleted when I clicked on delete then how do I get them off the computer?

    I tried to put them in another file and then remove them. Did not work. I tried dragging them anywhere I could including the search bar and the trash to see if that would go down my list of bookmarks and see if I could delete or remove them from thes

  • Canon MX926 stop scaning

    Hello I'm looking for a solution as a way to use the scan of my Canon MX926 printer/Scanner/Fax function. I printed and scanned documents, with number, over the past 18 months.  The MX926 is connected to my network via Wi - Fi and shared with a MacBo

  • microphone problem when using Skype

    When you use Skype I am able to listen to the other appellant, but they cannot hear me.  I have two speakers and one is Logitech quick cam when using Skype. Please let me know what I need to do to solve the problem, thank you