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"
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"