Deploying my application at the root in Tomcat
You have a couple of options:
Remove the out-of-the-box
ROOT/
directory from tomcat and rename your war file toROOT.war
before deploying it.Deploy your war as (from your example)
war_name.war
and configure the context root inconf/server.xml
to use your war file :<Context path="" docBase="war_name" debug="0" reloadable="true"></Context>
The first one is easier, but a little more kludgy. The second one is probably the more elegant way to do it.
Tomcat deploy context root via commandline
Everything is working as it is supposed to work: the base file name of the empty context path is ROOT
(see naming scheme). Therefore a WAR file for the root context will be uploaded to $CATALINA_BASE/webapps/ROOT.war
.
Deploying .war application in Tomcat to root
I solved this by using forwarding/masking (through the domain name provider)
I forwarded www.abc.com to www.abc.com/specific
and I masked so that "specific" is not shown
Related Topics
How Does a Java Hashmap Handle Different Objects With the Same Hash Code
Get Os-Level System Information
Get Generic Type of Java.Util.List
How to Implement a Single Instance Java Application
How Does the "Final" Keyword in Java Work (I Can Still Modify an Object.)
To Prevent a Memory Leak, the Jdbc Driver Has Been Forcibly Unregistered
Difference Between Javac and the Eclipse Compiler
How to Calculate Someone'S Age in Java
How to Set or Change the Default Java (Jdk) Version on Macos
Byte Order Mark Screws Up File Reading in Java
Why Should the Interface For a Java Class Be Preferred
What Is the Ellipsis (...) For in This Method Signature
Catching Java.Lang.Outofmemoryerror
Best Way to Parsedouble With Comma as Decimal Separator