Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6847109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:42:18+00:00 2026-05-27T00:42:18+00:00

I’m trying to develop a Spring 3 MVC application using the Springsource Tool Suite/Eclipse

  • 0

I’m trying to develop a Spring 3 MVC application using the Springsource Tool Suite/Eclipse IDE.

My current application context in STS/Eclipse is /localhost:8080/realtyguide/

What I want is to access the application as root using just /localhost:8080/

I tried in eclipse.. Project > Properties > Web Project Settings > entered “/” for Context Root . But this just returned a “404 error – requested resource (/) is not available” after executing the app. And it also broke the app. So I just put context root back to ‘realtyguide’.

I deployed the app to my webhost on a Tomcat server. I edited the server.xml’s and elements and so I was able to bring up the index page with the url http://www.mydomain.com.

However, the links to the other pages are broken. It is also not picking up the static resources for the index page like css and jquery files.

I believe this is caused by my app’s application context of /localhost:8080/realtyguide/ in eclipse (in my development pc). The rest of the pages returned by my controller has a url of /localhost:8080/realtyguide/page_name

How do I change my app’s application context to run as root in eclipse, as in simply /localhost:8080/. So that my pages would be called as simply /localhost:8080/page_name

Is the solution a setting I should make in my web or Spring configuration files or in eclipse?

I’ve tried googling this but have not found a clear, definitve answer. I am very new to this and a detailed answer from you will be of great help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:42:18+00:00Added an answer on May 27, 2026 at 12:42 am

    Thanks to the other answers provided. However, it doesn’t address my main objective – to run the app as root inside eclipse.

    This is how I was able to do it. I changed Tomcat’s conyext path in eclipse.

    Do the following:

    1. Right click on the server name from the Server Console > Open
    2. Click on the Modules tab
    3. Click on a module then click the Edit button
    4. Edit the entry for Path to the desired context path then click
      OK
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to develop an application in MVC 3 using EF codefirst. When I
I am trying to develop a .NET Web Project using NHibernate and Spring.NET, but
I am trying to develop a REST style application with Spring but the url
i'm trying to develop a client-server chat application using java servlets and mysql(innoDB engine)
I'm trying to develop a very simple Java web application using JSP and Servlets.
Im trying to develop my first ASP.NET MVC web app and have run into
I'm trying to develop an application that will use getImageData in javascript in Firefox
I'm trying to develop an application where in the people will get notified if
I am trying to develop a Windows Mobile 6 (in WF/C#) application. There is
I'm trying to develop a Flex Mobile / PHP application, and I'm running into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.