1 Reply Latest reply on Aug 13, 2012 5:38 PM by 903917

    Redeploy issue on web app that deploys and works fine

      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
      connect ('my_user','my_pass','t3://')
      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.