0 votes
289 views
in Tomcat by
Deploy war file on Tomcat and run without project name.

1 Answer

0 votes
by (2.8k points)
edited by
Follow the following steps to run your project without name:-

Step1:- cd /usr/share/tomcat8/conf/
Step2:- vi server.xml edit file
Step3:- Put the following code into server.xml file:-
 <Host name="localhost"  appBase="webapps" unpackWARs="true" autoDeploy="true">
     <Context deployOnStartup="true" docBase="/usr/share/tomcat8/webapps/myProject-0.0.1-SNAPSHOT" path="/" reloadable="true"></Context>
</Host>

Step4:- Save it and restart your tomcat, Now you can open your project in browser with following url:- https://localhost:8080/

Share:- Whatsapp Facebook Facebook


Welcome to Developerhelpway Q&A, where you can ask questions and receive answers from other members of the community.

Categories

...