You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Andy Gumbrecht (JIRA)" <ji...@apache.org> on 2015/04/02 15:29:56 UTC

[jira] [Resolved] (TOMEE-1538) ProvisioningUtil#fallback has replace String in wrong location, causing invalid path on Win platforms

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

Andy Gumbrecht resolved TOMEE-1538.
-----------------------------------
    Resolution: Fixed

{code:java}
final String repo1Url = quickMvnUrl(rawLocation.substring(MVN_PREFIX.length()).replace(":", "/"));
return realLocation(repo1Url).replace(":", "/").replace("///","/");
{code}

> ProvisioningUtil#fallback has replace String in wrong location, causing invalid path on Win platforms
> -----------------------------------------------------------------------------------------------------
>
>                 Key: TOMEE-1538
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1538
>             Project: TomEE
>          Issue Type: Bug
>    Affects Versions: 1.7.1
>            Reporter: Andy Gumbrecht
>            Assignee: Andy Gumbrecht
>             Fix For: 1.7.2
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> SEVERE: Unable to start remote container
> java.lang.IllegalStateException: Not a file: D:\github\test\test-app\http:\repo1.maven.org\
> Fallback needs to be:
> {code:java}
> final String repo1Url = quickMvnUrl(rawLocation.substring(MVN_PREFIX.length())).replace(":", "").replace("//","/");
> {code}
> Alternate solution is to include following dep, which uses the loaded resolver:
> {code:xml}
>     <dependency>
>       <groupId>org.apache.openejb</groupId>
>       <artifactId>openejb-provisionning</artifactId>
>       <version>4.7.x</version>
>      [<scope>test</scope>]
>     </dependency>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)