Andy Gumbrecht created TOMEE-1538:
-------------------------------------

             Summary: 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


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)

Reply via email to