Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-467

Lookup of EntityManagerFactories failing in Windows

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.7.0
    • Fix Version/s: 4.7.0
    • Component/s: ejb3 simplified
    • Labels:
      None
    • Environment:
      Windows

      Description

      Lookup of EntityManagerFactories failing in Windows. this is because during lookup based on Jar path we use windows style path but during storing we use a URI. Converting the path to a URI seems to add a / at the end. So the patch uses a method of the form

      private String normalizePath(String path){
      char[] carray = path.toCharArray();
      for(int i=0;i<carray.length;i++){
      if(carray[i] == '
      ')

      { carray[i] = '/'; }


      }
      return "/" + new String(carray);
      }

      to convert the path to the same form. new File(path).toURI().getPath() adding a / at the end and so lookup fails with this issue. I amnot sure why initially / is not coming in the end on getting jarURI

        Attachments

        1. patch[2]_r503297_OPENEJB-467.patch
          5 kB
          Manu T George
        2. patch[1]_r503297_OPENEJB-467.patch
          5 kB
          Manu T George

          Activity

            People

            • Assignee:
              manucet Manu T George
              Reporter:
              manucet Manu T George
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: