Hi,
I've created a webapp using maven command:
mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-webapp -DarchetypeArtifactId=maven-archetype-webapp
And it creates a war with the following contents:
|-- my-webapp
| |-- META-INF
| |-- WEB-INF
| | |-- classes
| | `-- web.xml
| `-- index.jsp
It's a very simple WAR. I've tried to deploy it in a server group called 'main-server-group' with http management console: http://myip:9990/App.html, but the deployment get failed with following message on both master and slave host:
[Server:server-one] 22:34:52,146 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of "my-webapp.war"
[Server:server-one] 22:34:52,462 INFO [org.jboss.as.server.controller] (pool-1-thread-2) Deployment of "my-webapp.war" was rolled back with failure message {"Services with missing/unavailable dependencies" => ["jboss.web.\"my-webapp.war\""]}
[Server:server-one] 22:34:52,462 INFO [org.jboss.as.controller] (pool-1-thread-2) Service status report
[Server:server-one] New missing/unsatisfied dependencies:
[Server:server-one] service jboss.web.host.localhost (missing)
[Server:server-one]
[Server:server-one] 22:34:52,484 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) Stopped deployment my-webapp.war in 22ms
[Server:server-one] 22:34:52,485 INFO [org.jboss.as.controller] (MSC service thread 1-8) Service status report
[Server:server-one] Newly corrected services:
[Server:server-one] service jboss.web.host.localhost (no longer required)
[Server:server-one]
I have no idea how I can solve the problem. Can anyone help? Thanks!