Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-1538

ProvisioningUtil#fallback has replace String in wrong location, causing invalid path on Win platforms

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.7.1
    • 1.7.2
    • None
    • None

    Description

      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:

      final String repo1Url = quickMvnUrl(rawLocation.substring(MVN_PREFIX.length())).replace(":", "").replace("//","/");
      

      Alternate solution is to include following dep, which uses the loaded resolver:

          <dependency>
            <groupId>org.apache.openejb</groupId>
            <artifactId>openejb-provisionning</artifactId>
            <version>4.7.x</version>
           [<scope>test</scope>]
          </dependency>
      

      Attachments

        Activity

          People

            andyg Andy Gumbrecht
            andyg Andy Gumbrecht
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified