Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-36202

Plugin hotdeployment fails on WAS when auto.deploy.websphere.dest.dir does not exist

Details

    Description

      When ${auto.deploy.websphere.dest.dir} folder does not exist, plugin deployment fails with the following exception:

      [6/12/13 10:42:04:313 GMT] 00000032 SystemOut     O   Building war: D:\IBM\WebSphere7\AppServer\profiles\liferay\wsadmin-deploy\batman-portlet.war
      [6/12/13 10:42:04:315 GMT] 00000032 SystemOut     O 10:42:04,315 ERROR [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:218] com.liferay.portal.kernel.deploy.auto.AutoDeployException: Problem creating war: D:\IBM\WebSphere7\AppServer\profiles\liferay\wsadmin-deploy\batman-portlet.war (The system cannot find the path specified.) (and the archive is probably corrupt but I could not delete it)
      com.liferay.portal.kernel.deploy.auto.AutoDeployException: Problem creating war: D:\IBM\WebSphere7\AppServer\profiles\liferay\wsadmin-deploy\batman-portlet.war (The system cannot find the path specified.) (and the archive is probably corrupt but I could not delete it)
      	at com.liferay.portal.tools.deploy.BaseDeployer.autoDeploy(BaseDeployer.java:209)
      	at com.liferay.portal.deploy.auto.ThreadSafeAutoDeployer.autoDeploy(ThreadSafeAutoDeployer.java:36)
      	at com.liferay.portal.deploy.auto.PortletAutoDeployListener.deploy(PortletAutoDeployListener.java:88)
      	at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.deploy(AutoDeployDir.java:50)
      	at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:209)
      	at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:267)
      	at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:54)
      Caused by: Problem creating war: D:\IBM\WebSphere7\AppServer\profiles\liferay\wsadmin-deploy\batman-portlet.war (The system cannot find the path specified.) (and the archive is probably corrupt but I could not delete it)
      	at org.apache.tools.ant.taskdefs.Zip.executeMain(Zip.java:573)
      	at org.apache.tools.ant.taskdefs.Zip.execute(Zip.java:350)
      	at com.liferay.util.ant.WarTask.war(WarTask.java:48)
      	at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:799)
      	at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.java:1059)
      	at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.java:991)
      	at com.liferay.portal.tools.deploy.BaseDeployer.autoDeploy(BaseDeployer.java:206)
      	... 6 more
      Caused by: java.io.FileNotFoundException: D:\IBM\WebSphere7\AppServer\profiles\liferay\wsadmin-deploy\batman-portlet.war (The system cannot find the path specified.)
      	at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
      	at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
      	at org.apache.tools.zip.ZipOutputStream.<init>(ZipOutputStream.java:249)
      	at org.apache.tools.ant.taskdefs.Zip.executeMain(Zip.java:467)
      	... 12 more
      

      Lets fix this simple annoyance

      Attachments

        Issue Links

          Activity

            People

              ginson.ren Ginson Ren
              igor.spasic Igor Spasic (Inactive)
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9 years, 34 weeks, 1 day ago

                Packages

                  Version Package
                  6.1.30 EE GA3
                  6.2.0 CE M6