Undertow context path problem deploying application
guedouarj Apr 7, 2014 4:18 PMHello !
Recently I upgraded my jboss as 7 installation to wildfly 8 and I got a problem regarding the context path, here are the details:
Wildfly 8 is deployed to a specific IP on the network : lets say 192.168.1.12.
I changed the standalone.xml and changing all the localhost entries for the 192.168.1.12 then I restarted the application.
On the server.log file, I can see :
2014-04-07 21:41:48,300 INFO [org.wildfly.extension.undertow] (MSC service thread 1-5) JBAS017534: Registered web context: /app
However, when I go to this url : http;//192.168.1.12:8080/app, I have a 404 not found page ! ( and the Widlfy 8 welcome page works ! http://192.168.1.12:8080 )
BUT when I did a test on my local machine ( aka localhost ) then it works !!! ( http://localhost:8080/app )
Can I have some explanations ?
I'm deploying the EAR file like this :
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<version>2.9</version>
<configuration>
<version>7</version>
<displayName>TestApplication</displayName>
<!-- If I want maven to generate the application.xml, set this to true -->
<generateApplicationXml>true</generateApplicationXml>
<defaultJavaBundleDir>/lib</defaultJavaBundleDir>
<!--<skinnyWars>true</skinnyWars>-->
<modules>
<webModule>
<artifactId>app</artifactId>
<groupId>com.application.test</groupId>
<bundleFileName>app.war</bundleFileName>
<contextRoot>/app</contextRoot>
</webModule>
</modules>
</plugin>
I already tested to deploy a jboss-web.xml with this:
<jboss-web xmlns="http://www.jboss.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-web_5_1.xsd">
<context-root>/app</context-root>
</jboss-web>
But it does not work neither...
Please I really need to get this working, otherwise I have to back again to JbossAS7
Thank you in advance !!!!!