1 Reply Latest reply: Aug 13, 2012 12:38 PM by 903917 RSS

    Redeploy issue on web app that deploys and works fine

    903917
      I can deploy the "web" directory of my web application to WLS 10.3.3 and run the application with no problems.

      When I attempt to do a redeploy with the following batch command and py files...
      ---------------------------
      Batch command file
      ---------------------------
      java weblogic.WLST Redeploy.py
      
      -----------------
      Redeploy.py
      -----------------
      connect ('my_user','my_pass','t3://127.0.0.1:7001')
      redeploy('my_app');
      I get the following error...
      <Aug 13, 2012 10:47:16 AM EDT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1344869235984' for task '19'. Error is: 'weblogic.management.DeploymentException: Applicationmy_app is a WAR file, but it contains > 1 component.'
      weblogic.management.DeploymentException: Applicationmy_app is a WAR file, but it contains > 1 component.
      I'm not deploying a .war file to WLS; I'm just choosing the "web" directory when I do my deploy.

      Instead of doing an undeploy/deploy every time for this app, is there a way I could get this setup to do a successful redeploy?

      BTW - I have to specify a directory rather than the actual .war file I'm building because I'm using getServletContext().getRealPath("") to access some files in my web app.