[
https://issues.apache.org/jira/browse/KARAF-6734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17186622#comment-17186622
]
Aditya Kancherla edited comment on KARAF-6734 at 8/28/20, 3:29 PM:
-------------------------------------------------------------------
Not exactly sure on the configuration part. Sorry, I can't share the project.
But below is the gaol we are using. we used the same in karaf 4.0.9 version as
well.
<build>
<plugins>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<executions>
<execution>
<id>compile</id>
<phase>compile</phase>
<goals>
<goal>features-generate-descriptor</goal>
</goals>
<configuration>
<addBundlesToPrimaryFeature>false</addBundlesToPrimaryFeature>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
was (Author: akancherla1804):
Not exactly sure on the configuration part. Sorry, I can't share the project.
But below is the gaol we are using.
<build>
<plugins>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<executions>
<execution>
<id>compile</id>
<phase>compile</phase>
<goals>
<goal>features-generate-descriptor</goal>
</goals>
<configuration>
<addBundlesToPrimaryFeature>false</addBundlesToPrimaryFeature>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
> Karaf not starting with blank space in path
> -------------------------------------------
>
> Key: KARAF-6734
> URL: https://issues.apache.org/jira/browse/KARAF-6734
> Project: Karaf
> Issue Type: Bug
> Components: karaf
> Affects Versions: 4.2.8
> Environment: Apache Karaf 4.2.8
> Reporter: Aditya Kancherla
> Priority: Major
> Attachments: cb4f9eb3-5343-47e8-9989-1053c5d095e0.xml,
> f1b8300e-fa71-4ea0-a525-3ea8107cf90e.xml, org.apache.karaf.features.cfg,
> org.apache.karaf.features.cfg
>
>
> Hi Team,
>
> we are not able to start karaf when there are blank spaces in the Karaf path.
> Can you please help us in figuring out the issue and the solution.
> 2020-05-28T13:51:33,351 | ERROR | activator-1-thread-2 |
> BootFeaturesInstaller | 9 - org.apache.karaf.features.core - 4.2.8
> | Error installing boot feature repository file:C:/Hewlett-Packard/HP
> Exstream/delivery-engine-3.1.1/delivery-engine-3.1.1/etc/2f1dbf84-f1f8-4ba3-8f5e-12e6c73e16ea.xml2020-05-28T13:51:33,351
> | ERROR | activator-1-thread-2 | BootFeaturesInstaller | 9 -
> org.apache.karaf.features.core - 4.2.8 | Error installing boot feature
> repository file:C:/Hewlett-Packard/HP
> Exstream/delivery-engine-3.1.1/delivery-engine-3.1.1/etc/2f1dbf84-f1f8-4ba3-8f5e-12e6c73e16ea.xmljava.lang.IllegalArgumentException:
> Illegal character in opaque part at index 26: file:C:/Hewlett-Packard/HP
> Exstream/delivery-engine-3.1.1/delivery-engine-3.1.1/etc/2f1dbf84-f1f8-4ba3-8f5e-12e6c73e16ea.xml
> at java.net.URI.create(URI.java:852) ~[?:1.8.0_144] at
> org.apache.karaf.features.internal.service.BootFeaturesInstaller.addRepositories(BootFeaturesInstaller.java:123)
> [!/:?] at
> org.apache.karaf.features.internal.service.BootFeaturesInstaller.installBootFeatures(BootFeaturesInstaller.java:93)
> [!/:?] at
> org.apache.karaf.features.internal.service.BootFeaturesInstaller.start(BootFeaturesInstaller.java:87)
> [!/:?] at
> org.apache.karaf.features.internal.osgi.Activator.doStart(Activator.java:196)
> [!/:?] at
> org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.java:312)
> [!/:?] at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> [?:1.8.0_144] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> [?:1.8.0_144] at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> [?:1.8.0_144] at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> [?:1.8.0_144] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144]Caused
> by: java.net.URISyntaxException: Illegal character in opaque part at index
> 26: file:C:/Hewlett-Packard/HP
> Exstream/delivery-engine-3.1.1/delivery-engine-3.1.1/etc/2f1dbf84-f1f8-4ba3-8f5e-12e6c73e16ea.xml
> at java.net.URI$Parser.fail(URI.java:2848) ~[?:1.8.0_144] at
> java.net.URI$Parser.checkChars(URI.java:3021) ~[?:1.8.0_144] at
> java.net.URI$Parser.parse(URI.java:3058) ~[?:1.8.0_144] at
> java.net.URI.<init>(URI.java:588) ~[?:1.8.0_144] at
> java.net.URI.create(URI.java:850) ~[?:1.8.0_144]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)