Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-408

cayenne.xml not found in servlet context path though it is there

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1 [LEGACY]
    • 1.1 [LEGACY]
    • Core Library
    • None
    • Jetty >=5.1.6, Java5, MySQL

    Description

      We have web application with cayenne 1.1.3 configured from servlet context (BasicServletConfiguration). Cayenne complains it cannot find cayenne.xml file.

      After some fiddling i found out that WebApplicationResourceLocator while searching for resource generates paths with multiple slashes (e.g. /WEB-INF//cayenne.xml note the double-slash).
      At the same moment Jetty starting from 5.1.6 (5.1.4 doesn't mind that) does NOT tolerate paths like this.

      so expected result is trying to find cayenne.xml at:
      /WEB-INF/cayenne.xml
      but what is currently occuring is:
      /WEB-INF//cayenne.xml

      and seems like the deeper you go the more slashes you get

      We can't use Jetty later than 5.1.4 so it is quite a problem and it will get into a yet bigger problem as time passes and new versions are released. And I don't somehow think its jetty's fault .

      Attachments

        Activity

          People

            andrus Andrus Adamchik
            inkredibl Marius Siegas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: