Hi,
If I'm not mistaken, you need to have a file called application.xml in your project/classes/META-INF.
<application>
<display-name>xXx</display-name>
<module>
<web>
<web-uri>xXx.war</web-uri>
<context-root>/xxx</context-root>
</web>
</module>
</application>
So,if you want your application to be access as
http://ip:8080/xxx, then the application.xml will exactly the same as above.Get the idea?Like, for example if I want it to be
http://ip:8080/tutorial then my <context-root> will be /tutorial.
The <web-uri> tag will be your war file name.Remember,is case sensitive.
---------------------------------------------------------------------------
And then, you need to add another web.xml inside your WEB-INF(project/classes/) folder.
<web-app>
<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
</welcome-file-list>
</web-app>
---------------------------------------------------------------------------
Once you done that,zip it up and rename it as .ear file.Then, deploy it.
For your info,jboss will not save the context in any xml file.What it will do is, it will create a tmp folder for your deployed application inside the server/default of your jboss folder.
It is different to Apache Tomcat in which, it allowed you to directly point the context path to your project folder and you can rename the context path directly in their server.xml.
---------------------------------------------------------------------------
P/s:Sorry for my bad english.Hope this comment will help you.