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:59:41 UTC

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

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

ddakker updated LAUNCHER-12:
----------------------------
    Description: 
Accessing files from jboss "vfs:" There was a usage 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());

  was:
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());


> 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
>
>
> Accessing files from jboss "vfs:" There was a usage 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)