0

I'm using tomcat 7.0 and eclipse kepler. When I deploy my servlets onto my server they are running at /<Project Name>/<Servlet Name> when I want them to run at /<Servlet Name>. How can I change this?

Jason C
  • 38,729
  • 14
  • 126
  • 182
tylerjw
  • 802
  • 4
  • 14
  • 28
  • possible duplicate of [How to set up the root servlet in Tomcat 6?](http://stackoverflow.com/questions/4177047/how-to-set-up-the-root-servlet-in-tomcat-6) – Jason C Mar 24 '14 at 16:52
  • See also: http://wiki.apache.org/tomcat/HowTo#How_do_I_make_my_web_application_be_the_Tomcat_default_application.3F – Jason C Mar 24 '14 at 16:53

1 Answers1

0

You need to change the Context Root name of your web application:

  • Right Click on your project.
  • Click on Properties.
  • Choose "Web Project Settings".
  • Change the Context Root property.
  • Clean your server and restart it.
tmarwen
  • 15,750
  • 5
  • 43
  • 62