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 8261187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:19:04+00:00 2026-06-08T03:19:04+00:00

I have trying to run this Spring example on a localhost Tomcat 7 installation.

  • 0

I have trying to run this Spring example on a localhost Tomcat 7 installation. I am using cargo to depoy the war with the following coordinates:

<deployable>
    <groupId>demo</groupId>
    <artifactId>sleepless</artifactId>
    <type>war</type>
</deployable>

When I access the app from Tomcat manager, it brings me to:

http://localhost:8080/sleepless-1.0/home.html;jsessionid=DFBD9DB5B15416188D9E45A7FDC0D375

and that’s very fine. When I click on a page link, it brings me to (for example):

http://localhost:8080/searchFlights.html

The /sleepless-1.0 part is missing and I get a 404. How can I make sure this spring example adds the missing part to all pages? What is the missing configuration?

Thanks.

  • 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-06-08T03:19:05+00:00Added an answer on June 8, 2026 at 3:19 am

    The link is generated like this:

    <a href="/searchFlights.html" title="Flights">
    

    So it completely ignores the context path of the webapp (and doesn’t support URL-rewriting as a mean to track sessions). It should use the JSTL <c:url> tag:

    <a href="<c:url value='/searchFlights.html'/>" title="Flights">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this problem when trying to run hello world program using android SDK.
Trying to run my program in FreeBSD OS, I have the following results: $
I'm trying to run my first example with spring. So I downloaded SpringSource Tool
I am trying to run the HelloWorld example for Jersey , but failing. This
I have been trying to run a Avro map-reduce on oozie. I specify the
I have two very similar programs each trying to run two threads OddThread and
I'm trying to run the Pocket-Island game by Wooga and have installed all prerequisites
I have a map reduce job I am trying to run on a relatively
I have an application created with Processing.org and am trying to run it on
I have a Robotium test suite that I am trying to run and for

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.