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

Local jNDI hack breaks when running with Jetty6-Maven

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.2 branch, 2.0 branch, 3.0
    • 3.0M1
    • Core Library
    • None

    Description

      http://objectstyle.org/cayenne/lists/cayenne-user/2007/02/0125.html

      Local JNDI hack (JNDIDataSourceFactory) loads Cayenne Modeler classes via reflection to read local preferences DB. In any non-trivial ClassLoader situation (Maven being among the more obscure ones), this may not work with a simple Class.forName() call. The exception details are described in the mailing list message above. The fix is easy - use thread class loader

      Attachments

        Activity

          People

            andrus Andrus Adamchik
            andrus Andrus Adamchik
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: