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

Andreas Kuhtz commented on KARAF-3961:
--------------------------------------

Hi JB,

I found the root cause of my problem :-(
Adding _jar_ dependencies to the 'karaf-assembly' project causes the problems 
described above. After removing these dependencies everything works as expected 
and the featuresRepositories has directly the features as mvn dependencies.

However the patch above solves the problem if the generated features.xml is 
referenced as file.


> 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)

Reply via email to