You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Jacek Laskowski (JIRA)" <ji...@apache.org> on 2007/02/03 23:28:05 UTC

[jira] Assigned: (OPENEJB-467) Lookup of EntityManagerFactories failing in Windows

     [ https://issues.apache.org/jira/browse/OPENEJB-467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacek Laskowski reassigned OPENEJB-467:
---------------------------------------

    Assignee: Jacek Laskowski

> Lookup of EntityManagerFactories failing in Windows
> ---------------------------------------------------
>
>                 Key: OPENEJB-467
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-467
>             Project: OpenEJB
>          Issue Type: Bug
>          Components: ejb3 simplified
>    Affects Versions: 3.0
>         Environment: Windows
>            Reporter: Manu T George
>         Assigned To: Jacek Laskowski
>             Fix For: 3.0
>
>         Attachments: patch[1]_r503297_OPENEJB-467.patch
>
>
> 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
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.