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

AS7: switching deployment mode (exploded->war) does not redeploy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.3.0.M2
    • 3.3.0.M1
    • server
    • None
    • Hide
      1. make sure you have a "Dynamic Web Project" that you can deploy to AS7
      2. make sure you have a server adapter for AS7
      3. make sure your server adapter is deploying exploded projects

      1. add your project to the server adapter, wait until its deployed & check that is is actually running (access its url in the browser OR choose "Run As->Run On Server" in the context menu of the server adapter OR check the servers log and wait until you get a message "registering web context: ..."
      2. double click the server adapter and check "Deploy projects as compressed archives" and save the editor
      3. the server adapter should reflect the change and switch from wait until the changes are picked in eclipse: the server adapters goes into [Started, Republish] and then back to [Started, Synchronized]
      4. now clean your module by picking "Clean" in the context-menu of your server adapter
      5. access your web application in the browser (localhost:8080/[project-name]) - ev. refresh the browser to be sure that the server had enough time to pick the deployment

      Result:
      You get 404 "Not found", you cannot access your web app.

      If you check the server log you'll find the following entries (my project is called bogus):
      17:55:18,609 INFO [org.jboss.as.deployment] (DeploymentScanner-threads - 1) Found bogus.war in deployment directory. To trigger deployment create a file called bogus.war.dodeploy

      Cleaning it unfortunately does not help, you hit another error (removing the project from the adapter also doesn't help, leads to the same error):
      "java.io.FileNotFoundException: /home/adietish/jboss runtimes/jboss-7.0.0.Beta3/standalone/deployments/bogus.war"

      Show
      make sure you have a "Dynamic Web Project" that you can deploy to AS7 make sure you have a server adapter for AS7 make sure your server adapter is deploying exploded projects add your project to the server adapter, wait until its deployed & check that is is actually running (access its url in the browser OR choose "Run As->Run On Server" in the context menu of the server adapter OR check the servers log and wait until you get a message "registering web context: ..." double click the server adapter and check "Deploy projects as compressed archives" and save the editor the server adapter should reflect the change and switch from wait until the changes are picked in eclipse: the server adapters goes into [Started, Republish] and then back to [Started, Synchronized] now clean your module by picking "Clean" in the context-menu of your server adapter access your web application in the browser (localhost:8080/ [project-name] ) - ev. refresh the browser to be sure that the server had enough time to pick the deployment Result: You get 404 "Not found", you cannot access your web app. If you check the server log you'll find the following entries (my project is called bogus): 17:55:18,609 INFO [org.jboss.as.deployment] (DeploymentScanner-threads - 1) Found bogus.war in deployment directory. To trigger deployment create a file called bogus.war.dodeploy Cleaning it unfortunately does not help, you hit another error (removing the project from the adapter also doesn't help, leads to the same error): "java.io.FileNotFoundException: /home/adietish/jboss runtimes/jboss-7.0.0.Beta3/standalone/deployments/bogus.war"
    • Hide

      uncheck "Deploy projects as compressed archives" and save your editor. The project will get redeployed and picked by the server.

      Show
      uncheck "Deploy projects as compressed archives" and save your editor. The project will get redeployed and picked by the server.

          adietish@redhat.com André Dietisheim
          adietish@redhat.com André Dietisheim
          Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

            Created:
            Updated:
            Resolved: