3

I am using Geronimo version 2.2.1. I am trying to deploy a war-file with its context-root set to / in geronimo-web.xml.

Now every time I navigate my application all the urls are rewritten with double forward slashes.

Examples:

http://mydomain:8080//login.jsp
http://mydomain:8080//home.html

How can I change the configuration so that only a single slash appears. I have found similar questions but none of them seem to have answers.

Abel
  • 56,041
  • 24
  • 146
  • 247
George Mulligan
  • 11,813
  • 6
  • 37
  • 50
  • AFAIK, the root context root is the empty string, not `/`. – JB Nizet Jun 04 '12 at 21:29
  • @JB Nizet - The correct root context is "/" according to the default root context when Geronimo is installed (welcome-tomcat page). However, the empty string has the same behavior as "/". – George Mulligan Jun 04 '12 at 21:39
  • I notice if I put a leading "/" in front of the url in the anchor a single "/" is shown as I want. This surely is not desirable though because if the context-root was later changed to be anything else all the links would be broken. – George Mulligan Jun 04 '12 at 22:01

1 Answers1

2

This is a known issue with Geronimo 2.2.1. You can see the details at Geronimo issue 6171.

The issue has been fixed and will be part of the next release. I have verified that everything works as expected using the latest snapshot of Geronimo 2.2.2.

Abel
  • 56,041
  • 24
  • 146
  • 247
George Mulligan
  • 11,813
  • 6
  • 37
  • 50