Reputation: 35
I have a Struts2 application running successfully in local using Tomcat. I need to deploy the war of that application in JBOSS 7. This is the first time I am trying this.
After putting the war file in the path "E:\jboss-as-7.1.1.Final\standalone\deployments", I can see the message Deployed "MyApplication.war"
in the console.
But, while hitting the url http://localhost:9990/<MyApplication>
, I am getting 404 error.
Could you please help to find out where am I doing wrong?
I have MyApplication.war.deployed file in the path "E:\jboss-as- 7.1.1.Final\standalone\deployments".
I have below configuration in standalone.xml file:
<deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000" auto-deploy-zipped="true" auto-deploy-exploded="false"/>
Upvotes: 1
Views: 3471
Reputation: 972
As already stated by the other answer, in JBoss 7.x
the port 9990
by default is for management-http
and port 8080
for http
.
The most important thing is to check what port is in the http
or https
bindings in the standalone.xml
configuration file for http and http ssl connection respectively.
You can find that in the section of <socket-binding-group>
in the standalone.xml
and you can modify the ports to your taste as long as they are not in use already e.g. I use port 8088
for http.
Then you can use the port stated to call your application, so in your case http://localhost:8080/<MyApplication>
<socket-binding-group name="standard-sockets" default-interface="public" port offset="${jboss.socket.binding.port-offset:0}">
...
<socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>
<socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9443}"/>
<socket-binding name="ajp" port="8009"/>
<socket-binding name="http" port="8080"/>
<socket-binding name="https" port="8443"/>
...
</socket-binding-group>
Upvotes: 1
Reputation: 327
port 9990 is used for management-http not for http.
In standalone.xml default value is 8080 for http.
try http://localhost:8080/<MyApplication>
double check standalone.xml fot http port.
Upvotes: 0