tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Gumbrecht (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (TOMEE-1538) ProvisioningUtil#fallback has replace String in wrong location, causing invalid path on Win platforms
Date Thu, 02 Apr 2015 13:29:56 GMT

     [ 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)

Mime
View raw message