Deploying web applications as military files

I am having problems downloading and getting my web application online with the host of my choice. I built a war file in Net Beans and asked my host to deploy it for me. It worked fine, but to access it I had to tell the browser:

www.myDomain.co.uk/explodedWar

      

Of course, I wanted to be able to access it by simply pointing my browser to:

www.myDomain.co.uk

      

The war file contains the entire application, index.html, images, classes, etc.

Is this possible or am I missing something?

0


source to share


3 answers


You can call war ROOT.war, but the best way is to change the context path in the servlet container. To do this in Tomcat, you add the following to your server. Xml:



<context path="" docBase="explodedWar" debug="0"/>

      

+4


source


If you call your war ROOT.war (in Tomcat) it should do what you want it to do.



+2


source


This is the question you need to ask your host as they are deploying it.

0


source







All Articles