This discussion is archived
1 Reply Latest reply: Feb 1, 2013 9:02 AM by MarianoP76 RSS

war deployment doesnt work - help

901647 Newbie
Currently Being Moderated
Hi All
We're trying to deploy our war file with weblogic.Deployer but it keeps failing.
We need help to understand the problem to fix it.

weblogic.Deployer invoked with options: -adminURL t3://weblogic.host.com:7001 -user weblogic -name App -source /path/to/App.war -targets App_Managed_Server -deploy
<Jan 12, 2013 11:37:11 PM PST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for application, App [archive: /path/to/App.war], to App_Managed_Server .>
Task 108 initiated: [Deployer:149026]deploy application App on App_Managed_Server.
Task 108 failed: [Deployer:149026]deploy application App on App_Managed_Server.
Target state: deploy failed on Server App_Managed_Server
weblogic.management.DeploymentException: [J2EE:160177]The application at "/scratch/software/Oracle/Middleware/user_projects/domains/wl_server/servers/App_Managed_Server/stage/App/app" was not recognized as a valid application type. If this is an EAR file, please ensure the META-INF/application.xml exists. EJB-JARs should have a META-INF/ejb-jar.xml or corresponding annotations exist. If this is an exploded WAR, the name of directory must be end with ".war". RARs require a META-INF/ra.xml. A JMS deployment should be an XML file whose name ends with "-jms.xml". A JDBC deployment should be an XML file whose name ends with "-jdbc.xml". For other application types, please consult the WebLogic Server documentation.


On another war file,
weblogic.Deployer invoked with options: -adminURL t3://weblogic.host.com:7001 -user weblogic -name ws -source /path/to/ws.war -targets App_Managed_Server -redeploy
<Jan 13, 2013 12:33:21 AM PST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating redeploy operation for application, ws [archive: /path/to/ws.war], to App_Managed_Server .>
Task 124 initiated: [Deployer:149026]deploy application ws on App_Managed_Server.
Task 124 failed: [Deployer:149026]deploy application ws on App_Managed_Server.
Target state: redeploy failed on Server App_Managed_Server
weblogic.application.ModuleException: Context path '/ws' is already in use by the module: ws.war application: ws

We tried undeploying it and deploy and we get the same error



What did we do wrong?

Edited by: 898644 on Jan 13, 2013 12:37 AM
  • 1. Re: war deployment doesnt work - help
    MarianoP76 Newbie
    Currently Being Moderated
    They are two different problems.

    The first may be due to an incorrectly packaged ear file or by some garbage temporary files or bad WebLoigc status.

    The second may be due to some garbage temporary files or bad WebLoigc status.

    At first step try cleaning up by
    - stopping all the WebLogic server instances (admin and managed)
    - removing <domain>/servers/<server_name>/tmp , <domain>/servers/<server_name>/cache , <domain>/servers/<server_name>/stage
    - start all the WebLogic server instances (admin and managed)

    And try again.

    Bye

    Mariano

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points