You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "ddakker (JIRA)" <ji...@apache.org> on 2017/02/15 07:55:41 UTC

[jira] [Created] (LAUNCHER-12) JBoss File System access file:, vfs: issue

ddakker created LAUNCHER-12:
-------------------------------

             Summary: JBoss File System access file:, vfs: issue
                 Key: LAUNCHER-12
                 URL: https://issues.apache.org/jira/browse/LAUNCHER-12
             Project: Commons Launcher
          Issue Type: Bug
    Affects Versions: 1.1
         Environment: Redhat RHEL Linux 6 or 7
JBoss EAP 6 or 7
            Reporter: ddakker
            Priority: Critical
             Fix For: 1.1


It is used as vfs: when accessing a file in jboss, which causes a problem.

So I fixed the source and corrected it.

/src/java/org/apache/commons/launcher/Launcher.java
getBootstrapFile()
if (resourcePath.indexOf("file:") == 0)
                resourcePath = resourcePath.substring(5);
            else if (resourcePath.indexOf("vfs:") == 0)
                resourcePath = resourcePath.substring(4);
            else
                throw new IOException(Launcher.getLocalizedString("bootstrap.file.not.found") + ": " + Launcher.class.getName());



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)