1. Wicket
  2. WICKET-5247

Broken Link in Tomcat because of Page Mount


    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 6.8.0
    • Fix Version/s: 6.9.0, 1.5.11, 7.0.0-M1
    • Component/s: wicket-quickstart
    • Labels:
    • Environment:
      Tomcat 7.0.41


      I post this message on the user mailing List (http://apache-wicket.1842946.n4.nabble.com/Broken-Link-in-Tomcat-because-of-Page-Mount-tt4659663.html) and Martin Grigorov asked me, to create a ticket on Jira.

      Broken Link in Tomcat because of Page Mount

      Following situation:
      -I have a Wicket Application(6.8.0) which runs under the context "webapp" on a Tomcat 7.0.41
      -I mount a Page with two parameters (this is important) in the WicketApplication.




      ", MountedPage.class);
      -The mounted Page(MountedPage.class) has only a simple Link
      -There are two links on the HomePage to the mounted Page.
      They are declared as follows:

      add(new Link<Void>("link") {
      public void onClick()

      { setResponsePage(MountedPage.class, linkParameters); }


      add(new Link<Void>("brokenLink") {
      public void onClick()

      { setResponsePage(new MountedPage(linkParameters)); }


      I deploy this Application as a war file on a Tomcat under the context "webapp".
      When I call the first Link on the HomePage and then the Link on the mounted Page, everything works fine.

      But if I call the second Link and then the Link on the mounted Page, the link is broken.
      The context is missing in the generated link

      Does anyone have an idea, why the second link does not work on Tomcat?

      I add a Quickstart and the war file as attachment.

      Ps: Both links works fine in Jetty.
      Pss:If I remove the mount command, both links will work in Tomcat too.

      1. quickstart.zip
        26 kB
        Martin Wischnewski
      2. webapp.war
        2.53 MB
        Martin Wischnewski


        Martin Wischnewski created issue -
        Martin Wischnewski made changes -
        Field Original Value New Value
        Attachment quickstart.zip [ 12589048 ]
        Attachment webapp.war [ 12589049 ]
        Sven Meier made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Sven Meier [ svenmeier ]
        Fix Version/s 6.9.0 [ 12324357 ]
        Fix Version/s 7.0.0 [ 12322958 ]
        Fix Version/s 1.5.11 [ 12324069 ]
        Resolution Fixed [ 1 ]


          • Assignee:
            Sven Meier
            Martin Wischnewski
          • Votes:
            0 Vote for this issue
            3 Start watching this issue


            • Created: