karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-3961) Reference to generated featuresRepositories is invalid on Windows
Date Tue, 13 Oct 2015 08:52:05 GMT

    [ https://issues.apache.org/jira/browse/KARAF-3961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14954645#comment-14954645
] 

ASF GitHub Bot commented on KARAF-3961:
---------------------------------------

GitHub user akuhtz opened a pull request:

    https://github.com/apache/karaf/pull/86

    KARAF-3961: Convert the repo path to unix separators for boot feature repos.

    Fix for KARAF-3961. 
    I don't know if a utility method already exist inthe karaf codebase that converts the
separators from windows to unix. If it exists then only line 101 is the relevant change.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/akuhtz/karaf KARAF-3961

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/karaf/pull/86.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #86
    
----
commit fda180722d95071baa579778249b3b1a5d902d51
Author: Andreas Kuhtz <andreas.kuhtz@gmail.com>
Date:   2015-10-13T08:46:40Z

    Convert the repo path to unix separators for boot feature repos.

----


> Reference to generated featuresRepositories is invalid on Windows
> -----------------------------------------------------------------
>
>                 Key: KARAF-3961
>                 URL: https://issues.apache.org/jira/browse/KARAF-3961
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-tooling
>    Affects Versions: 4.0.1
>         Environment: Windows 7
>            Reporter: Andreas Kuhtz
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 4.0.3
>
>
> The reference to the featuresRepositories generated by the karaf-maven-plugin is invalid
on Windows in {{org.apache.karaf.features.cfg}}. 
> The backslashes in {{karaf.home}} should be converted to forward slashes.
> {noformat} featuresRepositories = file:${karaf.home}/etc/0d05ff05-4208-4e0a-95e7-6b41bca544e7.xml
{noformat}
> {code}
> 2015-08-27 16:33:01,031 ERROR [org.apache.karaf.features.internal.service.BootFeaturesInstaller]
(pool-1-thread-1) Error installing boot feature repository file:D:\sample-karaf/etc/0fef08a9-7cfd-48ff-ac51-22669230cb44.xml
> java.lang.IllegalArgumentException: Illegal character in opaque part at index 7: file:D:\sample-karaf/etc/0fef08a9-7cfd-48ff-ac51-22669230cb44.xml
> 	at java.net.URI.create(URI.java:859)[:1.7.0_65]
> 	at org.apache.karaf.features.internal.service.BootFeaturesInstaller.installBootFeatures(BootFeaturesInstaller.java:86)[6:org.apache.karaf.features.core:4.0.1]
> 	at org.apache.karaf.features.internal.service.BootFeaturesInstaller.start(BootFeaturesInstaller.java:76)[6:org.apache.karaf.features.core:4.0.1]
> 	at org.apache.karaf.features.internal.osgi.Activator.doStart(Activator.java:257)[6:org.apache.karaf.features.core:4.0.1]
> 	at org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.java:233)[6:org.apache.karaf.features.core:4.0.1]
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_65]
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_65]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_65]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_65]
> 	at java.lang.Thread.run(Thread.java:745)[:1.7.0_65]
> Caused by: java.net.URISyntaxException: Illegal character in opaque part at index 7:
file:D:\sample-karaf/etc/0fef08a9-7cfd-48ff-ac51-22669230cb44.xml
> 	at java.net.URI$Parser.fail(URI.java:2829)[:1.7.0_65]
> 	at java.net.URI$Parser.checkChars(URI.java:3002)[:1.7.0_65]
> 	at java.net.URI$Parser.parse(URI.java:3039)[:1.7.0_65]
> 	at java.net.URI.<init>(URI.java:595)[:1.7.0_65]
> 	at java.net.URI.create(URI.java:857)[:1.7.0_65]
> 	... 9 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message