In the file application.xml in the source code of the project the path to the web context is set, according to which the web application should respond:
<module> <web> <web-uri>myapp-web-1.0-SNAPSHOT.war</web-uri> <context-root>MA</context-root> </web> </module>
and in the C: \ jboss-as-7.1.1.Final \ standalone \ deployments \ myapp-ear.ear \ META-INF directory in the application.xml file — another:
<module> <web> <web-uri>myapp-web-1.0-SNAPSHOT.war</web-uri> <context-root>/myapp-web</context-root> </web> </module>
And in the end it responds to the address / myapp-web, and I need / MA Where does it get this left application.xml? How to make him take the right one?
PS: Before the application.xml file itself was not there, it was added later. But clearing / updating the application did not help, - JBoss does not accept application.xml. And another colleague perceives.
application.xml
? What is in the*.ear
in thetarget
directory? - delphist007