Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-8398

Remote redeployment fails if you switch from exploded to archive

    XMLWordPrintable

Details

    Description

      how to reproduce:

      1) have a AS server adapter for a remote server
      2) have a WTP project added to it
      3) make sure the server adapter is set to deploy as exploded war (2nd tab of the server adapter editor "Deploymen": checkbox "Deploy projects as compressed archives" not set (see screenshot1)
      4) (ev. start the adapter) publish your project
      5) check the checkbox "Deploy projects as..."
      6) Choose "Full publish" on your project or "Clean" on the adapter in the servers view

      Result:
      Deployment fails, the console shows the following exception:

      failed to delete /opt/jboss-as6/server/default/deploy/gwt-helloworld.war
      org.eclipse.rse.services.files.RemoteFileIOException: Operation failed. File system input or output error
      at org.eclipse.rse.internal.services.ssh.files.SftpFileService.makeSystemMessageException(SftpFileService.java:449)
      at org.eclipse.rse.internal.services.ssh.files.SftpFileService.upload(SftpFileService.java:752)
      at org.jboss.ide.eclipse.as.rse.core.archives.RSEZippedJSTPublisher.publishModule(RSEZippedJSTPublisher.java:77)
      at org.jboss.ide.eclipse.as.core.publishers.AbstractPublishMethod.publishModule(AbstractPublishMethod.java:77)
      at org.jboss.ide.eclipse.as.core.server.internal.DeployableServerBehavior.publishModule(DeployableServerBehavior.java:67)
      at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:1025)
      at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:1115)
      at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:948)
      at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:775)
      at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:2889)
      at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:337)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

      The adapter stays "[Synchronized]" although the console shows that the deployment failed (see screenshot2).

      Attachments

        Issue Links

          Activity

            People

              rob.stryker Rob Stryker (Inactive)
              adietish@redhat.com André Dietisheim
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: