Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5565

PackageMapper - Could not resolve class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 7.0.0-M1
    • 7.0.0-M1
    • wicket
    • None
    • Tomcat7

    Description

      It seems that the PackageMapper try to resolve much more than it is supposed to do, for instance if I've 2 pages test1/TestPage1 and test2/TestPage2 then it tries to resolve test2/TestPage1 when I reach the page1...

      WARN - WicketObjects - Could not resolve class [com.mycompany.test2.TestPage1]
      java.lang.ClassNotFoundException: com.mycompany.test2.TestPage1
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:270)
      at org.apache.wicket.application.AbstractClassResolver.resolveClass(AbstractClassResolver.java:108)
      at org.apache.wicket.core.util.lang.WicketObjects.resolveClass(WicketObjects.java:71)
      at org.apache.wicket.core.request.mapper.AbstractComponentMapper.getPageClass(AbstractComponentMapper.java:134)
      at org.apache.wicket.core.request.mapper.PackageMapper.parseRequest(PackageMapper.java:152)
      at org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper.mapRequest(AbstractBookmarkableMapper.java:322)
      at org.apache.wicket.request.mapper.CompoundRequestMapper.mapRequest(CompoundRequestMapper.java:152)
      at org.apache.wicket.request.cycle.RequestCycle.resolveRequestHandler(RequestCycle.java:189)
      at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:219)
      at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)
      at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261)
      at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:203)
      at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:284)

      Attachments

        1. wicket7-packagemapper.zip
          86 kB
          Sebastien Briquet
        2. issue-wicket7.zip
          34 kB
          Sebastien Briquet

        Issue Links

          Activity

            People

              bitstorm Andrea Del Bene
              sebfz1 Sebastien Briquet
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: