Uploaded image for project: 'Velocity Tools'
  1. Velocity Tools
  2. VELTOOLS-64

Geronimo 1.1.1 with Tomcat install fails to render links correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Cannot Reproduce
    • 1.2
    • 1.3
    • VelocityStruts
    • None

    Description

      I have been using VelocityTools for years and have a project successfully running in production on standalone Tomcat 5.5. When I run the same war file on Geronimo 1.1.1, links do not render correctly. Geronimo also uses a 5.5 version of Tomcat in the standard distribution I am using.

      I am using Velocity 1.5 beta 1 and VelocityTools 1.2 from Maven.

      Given the following code that is parsed into a main file:

      <a href="$link.setAction('/pub/jobpost/list/submit').addQueryData("c","$!countrySel").addQueryData("r","$!pop.popId")">$!pop.popName Jobs</a>

      On Tomcat 5.5 standalone get:
      http://www.jobbank.com/action/pub/jobpost/list/submit?c=US&r=CA

      On Geronimo 1.1.1 with the same war file, we get:
      http://action/pub/jobpost/list/submit?c=US&r=CA

      The only difference obviously is the lack of domain name. Other links seem to work correctly that are referenced with an absolute path. For example:
      <a href="/action/exec/resume/choice/setup" title="Click here"> shows the correct hostname in the front.

      I was using a non-beta velocity, but moved up to using the beta to rule out this being the issue. I also did a search on the Geronimo distribution for any other file matching "velocity" but came up empty.

      I am not in a rush for this fix, but I think it is important to know that it will work in a next 1.5 Velocity release else people will be constantly using snapshots rather then a steady 1.5 build if this is where the problem lies.

      I am hoping it is somehow just a configuration issue, though I am using the most basic Geronimo setup.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jeichels John Eichelsdorfer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: