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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:09:56+00:00 2026-06-18T04:09:56+00:00

We have a Java/Spring app deployed into Heroku, using the excellent webapp-runner as the

  • 0

We have a Java/Spring app deployed into Heroku, using the excellent webapp-runner as the Tomcat-lite servlet container. In upgrading from 7.0.27.1 to 7.0.31.1, it seems the behavior for setting a default context path of “/” causes problems with <spring:url> tags. Specifically, with the default context path of “/”, tags like <spring:url value="/foo/bar"/> end up getting rendered as //foo/bar. All browsers I tested on OS X (Chrome, Safari, Firefox), for example, don’t seem to handle those particularly gracefully, and try to load http://foo/bar, resulting in all kinds of chaos.

I can think of two workarounds:

  • Specify --context-path "" argument to webapp-runner – this seems “best” since it corresponds to the 7.0.27.1 behavior
  • Write the tags as <spring:url context="" .../> – unsure what additional consequences there might be, considering how SpringUrl uses leading slash to determine UrlType.

Are either of these reasonable? If not, is there some other solution I should consider?

  • 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-18T04:09:58+00:00Added an answer on June 18, 2026 at 4:09 am

    webapp-runner-7.0.34.1 has changed the default --context-path back to "". If you upgrade, it should fix your issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a Java servlet, running with embedded Jetty, deployed to Heroku using the
I have a very large problem. I've written a large app using Flex3/Tomcat/BlazeDS/Spring that
I've got a Grails application, using spring-security plugin, deployed on Tomcat and I have
I have a Google App Engine app using Java and Spring MVC 3.0. A
I've deployed an app using neo4j java embedded version under Jersey tomcat for REST
I have a Java project connecting to an Ingres database and using the Spring
I have a client and server communicating via Spring remoting (using Java Serialization) over
I have been using the new feature of Spring 3.1.1 the java based configuration.
In my java/spring app, I have a velocity template in which I create a
I have a java web app running under Spring 2.5.6, Hibernate 3.4 (with Hibernate

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.