[jira] [Commented] (KARAF-5418) SSH public key authentication from LDAP
[ https://issues.apache.org/jira/browse/KARAF-5418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16201039#comment-16201039 ] Ciprian Ciubotariu commented on KARAF-5418: --- See https://github.com/apache/karaf/pull/385 > SSH public key authentication from LDAP > --- > > Key: KARAF-5418 > URL: https://issues.apache.org/jira/browse/KARAF-5418 > Project: Karaf > Issue Type: Improvement > Components: karaf-security >Reporter: Ciprian Ciubotariu >Priority: Minor > Labels: security > > We have an environment with multiple karaf instances deployed, all > authenticating SSH connections using the username/password mechanism from a > LDAP server. Repeatedly logging into these servers requires copy-pasting > passwords from the keychain, which ... well, can lead to leaks and is also > annoying after a while. At the same time hosts are is easier with SSH keys, > which we also store in LDAP. > I have created a LDAP public-key authentication module to karaf following the > file-based PubkeyLoginModule, and I want to contribute it to karaf. Github PR > to follow. > To use it one has to use the same JAAS module settings as for > {{LDAPLoginModule}}, but with class {{LDAPPubkeyLoginModule}} and an added > configuration option {{user.pubkey.attribute}}. Any attribute can be used to > store the public key(s), such as the {{publicKey}} attribute from > {{objectClass: extensibleObject}}. You'll find complete examples in tests. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Created] (KARAF-5418) SSH public key authentication from LDAP
Ciprian Ciubotariu created KARAF-5418: - Summary: SSH public key authentication from LDAP Key: KARAF-5418 URL: https://issues.apache.org/jira/browse/KARAF-5418 Project: Karaf Issue Type: Improvement Components: karaf-security Reporter: Ciprian Ciubotariu Priority: Blocker We have an environment with multiple karaf instances deployed, all authenticating SSH connections using the username/password mechanism from a LDAP server. Repeatedly logging into these servers requires copy-pasting passwords from the keychain, which ... well, can lead to leaks and is also annoying after a while. At the same time hosts are is easier with SSH keys, which we also store in LDAP. I have created a LDAP public-key authentication module to karaf following the file-based PubkeyLoginModule, and I want to contribute it to karaf. Github PR to follow. To use it one has to use the same JAAS module settings as for {{LDAPLoginModule}}, but with class {{LDAPPubkeyLoginModule}} and an added configuration option {{user.pubkey.attribute}}. Any attribute can be used to store the public key(s), such as the {{publicKey}} attribute from {{objectClass: extensibleObject}}. You'll find complete examples in tests. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Updated] (KARAF-5418) SSH public key authentication from LDAP
[ https://issues.apache.org/jira/browse/KARAF-5418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ciprian Ciubotariu updated KARAF-5418: -- Priority: Minor (was: Blocker) > SSH public key authentication from LDAP > --- > > Key: KARAF-5418 > URL: https://issues.apache.org/jira/browse/KARAF-5418 > Project: Karaf > Issue Type: Improvement > Components: karaf-security >Reporter: Ciprian Ciubotariu >Priority: Minor > Labels: security > > We have an environment with multiple karaf instances deployed, all > authenticating SSH connections using the username/password mechanism from a > LDAP server. Repeatedly logging into these servers requires copy-pasting > passwords from the keychain, which ... well, can lead to leaks and is also > annoying after a while. At the same time hosts are is easier with SSH keys, > which we also store in LDAP. > I have created a LDAP public-key authentication module to karaf following the > file-based PubkeyLoginModule, and I want to contribute it to karaf. Github PR > to follow. > To use it one has to use the same JAAS module settings as for > {{LDAPLoginModule}}, but with class {{LDAPPubkeyLoginModule}} and an added > configuration option {{user.pubkey.attribute}}. Any attribute can be used to > store the public key(s), such as the {{publicKey}} attribute from > {{objectClass: extensibleObject}}. You'll find complete examples in tests. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Updated] (KARAF-5417) Trim down distributions
[ https://issues.apache.org/jira/browse/KARAF-5417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Guillaume Nodet updated KARAF-5417: --- Issue Type: Task (was: New Feature) > Trim down distributions > --- > > Key: KARAF-5417 > URL: https://issues.apache.org/jira/browse/KARAF-5417 > Project: Karaf > Issue Type: Task >Reporter: Guillaume Nodet >Assignee: Guillaume Nodet > Fix For: 4.2.0 > > -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Created] (KARAF-5416) Remove support for ext and endorsed libraries for Java 9 compatibility
Guillaume Nodet created KARAF-5416: -- Summary: Remove support for ext and endorsed libraries for Java 9 compatibility Key: KARAF-5416 URL: https://issues.apache.org/jira/browse/KARAF-5416 Project: Karaf Issue Type: New Feature Reporter: Guillaume Nodet Assignee: Guillaume Nodet Fix For: 4.2.0 -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Created] (KARAF-5417) Trim down distributions
Guillaume Nodet created KARAF-5417: -- Summary: Trim down distributions Key: KARAF-5417 URL: https://issues.apache.org/jira/browse/KARAF-5417 Project: Karaf Issue Type: New Feature Reporter: Guillaume Nodet Assignee: Guillaume Nodet Fix For: 4.2.0 -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (KARAF-5396) Ensure Karaf can build with JDK9 GA(build 9+181)
[ https://issues.apache.org/jira/browse/KARAF-5396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16200559#comment-16200559 ] ASF subversion and git services commented on KARAF-5396: Commit c77fe2caeec94e151922f196d2e21febe0c1e5b8 in karaf's branch refs/heads/master from [~gnt] [ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=c77fe2c ] [KARAF-5396] Fix instance starting on java 9 > Ensure Karaf can build with JDK9 GA(build 9+181) > > > Key: KARAF-5396 > URL: https://issues.apache.org/jira/browse/KARAF-5396 > Project: Karaf > Issue Type: Task >Reporter: Freeman Fang >Assignee: Freeman Fang > Fix For: 4.2.0 > > -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (KARAF-5371) Race condition between FeatureService and Fileinstall
[ https://issues.apache.org/jira/browse/KARAF-5371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16200558#comment-16200558 ] ASF subversion and git services commented on KARAF-5371: Commit cd0ecbbb0fb8a09a928bd87cc027572df2adfb7f in karaf's branch refs/heads/master from [~gnt] [ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=cd0ecbb ] [KARAF-5371] Make sure the region hooks are invoked first by the framework > Race condition between FeatureService and Fileinstall > - > > Key: KARAF-5371 > URL: https://issues.apache.org/jira/browse/KARAF-5371 > Project: Karaf > Issue Type: Bug > Components: karaf-feature >Affects Versions: 4.1.2 >Reporter: J. Brébec >Assignee: Guillaume Nodet >Priority: Critical > Fix For: 4.2.0, 4.1.3 > > > If a bundle is installed when the FeatureService is started, then it is > possible that this bundle is not associated to the default region. as a > consequence, every services exported by this bundle are not visible from the > osgi container, until karaf is restarted. > A real usecase : > - A new karaf distribution, with a blueprint file in a folder managed by > fileinstall ; > - When the distribution is started, as fileinstall is started before the > feature bundle, and the folder are watched asynchronously, the blueprint file > is installed before or in the same time the featureservice is started > => the services exported by the blueprint file are not visible > This race condition is located in the FeatureService activator : the digraph > is loaded, and every bundle not known are added to the default region. then, > it subscribes a bundle-listener : If a bundle X is installed between the > digraph loading and the subscription of the bundle listener, then this bundle > X is not attached to the default region. > On my machine, this issue happens 70% of the time on a cold start. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Resolved] (KARAF-5352) KARAF_ETC envvar ignored
[ https://issues.apache.org/jira/browse/KARAF-5352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jean-Baptiste Onofré resolved KARAF-5352. - Resolution: Fixed > KARAF_ETC envvar ignored > > > Key: KARAF-5352 > URL: https://issues.apache.org/jira/browse/KARAF-5352 > Project: Karaf > Issue Type: Bug > Components: karaf-core >Affects Versions: 4.1.2 > Environment: Tested on CentOS 7.x >Reporter: Thomas Bouron >Assignee: Jean-Baptiste Onofré > Fix For: 4.2.0, 4.1.3 > > > I'm currently working on upgrading the RPM and DEB packaging for Apache > Brooklyn. The project uses Karaf and has the following folder structure for > the RPM package: > {code} > /- > +- etc > |+- brooklyn > +- opt > |+- brooklyn-0.12.0-SNAPSHOT > ||+- bin > ||+- data > ||+- deploy > ||+- lib > ||+- system > {code} > The {{etc}} folder is not part of {{KARAF_HOME}} but in {{/etc/brooklyn}}. I > setup my {{KARAF_ETC}} to point to this folder, however when I start Karaf, I > get the followoing > {code} > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 systemd[1]: Started > Apache Brooklyn Service. > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 systemd[1]: Starting > Apache Brooklyn Service... > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: JAVA_HOME > not set; results may vary > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: karaf: > Ignoring predefined value for KARAF_HOME > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: > 15:27:17.085 [pool-1-thread-2] ERROR org.apache.karaf.features.inte > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: > java.io.IOException: /opt/brooklyn-0.12.0-SNAPSHOT/etc/0d218152-8d8 > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.RepositoryImpl.load(R > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.FeaturesServiceImpl.l > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.FeaturesServiceImpl.a > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.FeaturesServiceImpl.a > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.BootFeaturesInstaller > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.BootFeaturesInstaller > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.osgi.Activator.doStart(Activa > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.ja > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.ja > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExec > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExe > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.lang.Thread.run(Thread.java:748) [?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: Caused > by: java.io.FileNotFoundException: /opt/brooklyn-0.12.0-SNAP > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.open0(Native Method) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.open(FileInputStream.java:195) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.(FileInputStream.java:138) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.(FileInputStream.java:93) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > sun.net.www.protocol.file.FileURLConnection.connect(FileURLConne > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > sun.net.www.protocol.file.FileURLConnection.getInputStream(FileU > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.net.URL.openStream(URL.java:1045) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.RepositoryImpl.load(R > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-
[jira] [Commented] (KARAF-5352) KARAF_ETC envvar ignored
[ https://issues.apache.org/jira/browse/KARAF-5352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16200463#comment-16200463 ] ASF subversion and git services commented on KARAF-5352: Commit 183763959c41928b6390c06a859742775a38057a in karaf's branch refs/heads/master from [~jbonofre] [ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=1837639 ] [KARAF-5352] Use system separator in the FilesStream > KARAF_ETC envvar ignored > > > Key: KARAF-5352 > URL: https://issues.apache.org/jira/browse/KARAF-5352 > Project: Karaf > Issue Type: Bug > Components: karaf-core >Affects Versions: 4.1.2 > Environment: Tested on CentOS 7.x >Reporter: Thomas Bouron >Assignee: Jean-Baptiste Onofré > Fix For: 4.2.0, 4.1.3 > > > I'm currently working on upgrading the RPM and DEB packaging for Apache > Brooklyn. The project uses Karaf and has the following folder structure for > the RPM package: > {code} > /- > +- etc > |+- brooklyn > +- opt > |+- brooklyn-0.12.0-SNAPSHOT > ||+- bin > ||+- data > ||+- deploy > ||+- lib > ||+- system > {code} > The {{etc}} folder is not part of {{KARAF_HOME}} but in {{/etc/brooklyn}}. I > setup my {{KARAF_ETC}} to point to this folder, however when I start Karaf, I > get the followoing > {code} > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 systemd[1]: Started > Apache Brooklyn Service. > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 systemd[1]: Starting > Apache Brooklyn Service... > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: JAVA_HOME > not set; results may vary > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: karaf: > Ignoring predefined value for KARAF_HOME > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: > 15:27:17.085 [pool-1-thread-2] ERROR org.apache.karaf.features.inte > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: > java.io.IOException: /opt/brooklyn-0.12.0-SNAPSHOT/etc/0d218152-8d8 > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.RepositoryImpl.load(R > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.FeaturesServiceImpl.l > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.FeaturesServiceImpl.a > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.FeaturesServiceImpl.a > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.BootFeaturesInstaller > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.BootFeaturesInstaller > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.osgi.Activator.doStart(Activa > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.ja > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.ja > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExec > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExe > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.lang.Thread.run(Thread.java:748) [?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: Caused > by: java.io.FileNotFoundException: /opt/brooklyn-0.12.0-SNAP > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.open0(Native Method) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.open(FileInputStream.java:195) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.(FileInputStream.java:138) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.(FileInputStream.java:93) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > sun.net.www.protocol.file.FileURLConnection.connect(FileURLConne > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > sun.net.www.protocol.file.FileURLConnection.getInputStream(FileU > Sep 07 15:27:17 br-ovx1b
[jira] [Commented] (KARAF-5352) KARAF_ETC envvar ignored
[ https://issues.apache.org/jira/browse/KARAF-5352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16200465#comment-16200465 ] ASF subversion and git services commented on KARAF-5352: Commit 14612fdc126376d9cb6e71562ef1f043b8c1a6a4 in karaf's branch refs/heads/karaf-4.1.x from [~jbonofre] [ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=14612fd ] [KARAF-5352] Use system separator in the FilesStream > KARAF_ETC envvar ignored > > > Key: KARAF-5352 > URL: https://issues.apache.org/jira/browse/KARAF-5352 > Project: Karaf > Issue Type: Bug > Components: karaf-core >Affects Versions: 4.1.2 > Environment: Tested on CentOS 7.x >Reporter: Thomas Bouron >Assignee: Jean-Baptiste Onofré > Fix For: 4.2.0, 4.1.3 > > > I'm currently working on upgrading the RPM and DEB packaging for Apache > Brooklyn. The project uses Karaf and has the following folder structure for > the RPM package: > {code} > /- > +- etc > |+- brooklyn > +- opt > |+- brooklyn-0.12.0-SNAPSHOT > ||+- bin > ||+- data > ||+- deploy > ||+- lib > ||+- system > {code} > The {{etc}} folder is not part of {{KARAF_HOME}} but in {{/etc/brooklyn}}. I > setup my {{KARAF_ETC}} to point to this folder, however when I start Karaf, I > get the followoing > {code} > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 systemd[1]: Started > Apache Brooklyn Service. > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 systemd[1]: Starting > Apache Brooklyn Service... > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: JAVA_HOME > not set; results may vary > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: karaf: > Ignoring predefined value for KARAF_HOME > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: > 15:27:17.085 [pool-1-thread-2] ERROR org.apache.karaf.features.inte > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: > java.io.IOException: /opt/brooklyn-0.12.0-SNAPSHOT/etc/0d218152-8d8 > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.RepositoryImpl.load(R > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.FeaturesServiceImpl.l > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.FeaturesServiceImpl.a > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.FeaturesServiceImpl.a > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.BootFeaturesInstaller > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.BootFeaturesInstaller > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.osgi.Activator.doStart(Activa > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.ja > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.ja > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExec > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExe > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.lang.Thread.run(Thread.java:748) [?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: Caused > by: java.io.FileNotFoundException: /opt/brooklyn-0.12.0-SNAP > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.open0(Native Method) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.open(FileInputStream.java:195) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.(FileInputStream.java:138) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.(FileInputStream.java:93) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > sun.net.www.protocol.file.FileURLConnection.connect(FileURLConne > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > sun.net.www.protocol.file.FileURLConnection.getInputStream(FileU > Sep 07 15:27:17 br-
[jira] [Resolved] (KARAF-5373) Karaf-maven-plugin fails to create feature file
[ https://issues.apache.org/jira/browse/KARAF-5373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jean-Baptiste Onofré resolved KARAF-5373. - Resolution: Fixed > Karaf-maven-plugin fails to create feature file > --- > > Key: KARAF-5373 > URL: https://issues.apache.org/jira/browse/KARAF-5373 > Project: Karaf > Issue Type: Bug > Components: karaf-tooling >Affects Versions: 4.1.2 > Environment: Maven 3.5.0, Java 8 update 131, Windows 10 >Reporter: Mikael Åsberg >Assignee: Jean-Baptiste Onofré > Fix For: 4.2.0, 4.1.3 > > Attachments: pom.xml > > > In the attached pom.xml, the plugin > org.apache.karaf.tooling:karaf-maven-plugin, version 4.1.2, is used in an > attempt to create a feature.xml. However, the build (simply mvn clean > install) fails with: > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-install-plugin:2.5.2:install (default-install) > on project karaf-maven-plugin-bug: The packaging for this project did not > assign a file to the build artifact > There isn't even a target folder created. > However, if one downgrades the karaf-maven-plugin by running "mvn clean > install -Dkaraf.version=4.0.9" the build succeeds and a feature.xml is > installed into the local .m2. I've also verified this feature is usable. > Ouput to note when using version 4.0.9: > [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ > karaf-maven-plugin-bug --- > [INFO] No primary artifact to install, installing attached artifacts instead. > Note that this project consist only of a single pom.xml, no additional files. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (KARAF-5373) Karaf-maven-plugin fails to create feature file
[ https://issues.apache.org/jira/browse/KARAF-5373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16200325#comment-16200325 ] ASF subversion and git services commented on KARAF-5373: Commit ea5a180959d5890f52d860d6f3ed7955403f72fc in karaf's branch refs/heads/karaf-4.1.x from [~jbonofre] [ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=ea5a180 ] [KARAF-5373] Correctly attach the artifacts when inputFile doesn't exist > Karaf-maven-plugin fails to create feature file > --- > > Key: KARAF-5373 > URL: https://issues.apache.org/jira/browse/KARAF-5373 > Project: Karaf > Issue Type: Bug > Components: karaf-tooling >Affects Versions: 4.1.2 > Environment: Maven 3.5.0, Java 8 update 131, Windows 10 >Reporter: Mikael Åsberg >Assignee: Jean-Baptiste Onofré > Fix For: 4.2.0, 4.1.3 > > Attachments: pom.xml > > > In the attached pom.xml, the plugin > org.apache.karaf.tooling:karaf-maven-plugin, version 4.1.2, is used in an > attempt to create a feature.xml. However, the build (simply mvn clean > install) fails with: > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-install-plugin:2.5.2:install (default-install) > on project karaf-maven-plugin-bug: The packaging for this project did not > assign a file to the build artifact > There isn't even a target folder created. > However, if one downgrades the karaf-maven-plugin by running "mvn clean > install -Dkaraf.version=4.0.9" the build succeeds and a feature.xml is > installed into the local .m2. I've also verified this feature is usable. > Ouput to note when using version 4.0.9: > [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ > karaf-maven-plugin-bug --- > [INFO] No primary artifact to install, installing attached artifacts instead. > Note that this project consist only of a single pom.xml, no additional files. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (KARAF-5373) Karaf-maven-plugin fails to create feature file
[ https://issues.apache.org/jira/browse/KARAF-5373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16200324#comment-16200324 ] ASF subversion and git services commented on KARAF-5373: Commit 9865bdf759392d5317a4d9623cb4aeed5dac6754 in karaf's branch refs/heads/master from [~jbonofre] [ https://git-wip-us.apache.org/repos/asf?p=karaf.git;h=9865bdf ] [KARAF-5373] Correctly attach the artifacts when inputFile doesn't exist > Karaf-maven-plugin fails to create feature file > --- > > Key: KARAF-5373 > URL: https://issues.apache.org/jira/browse/KARAF-5373 > Project: Karaf > Issue Type: Bug > Components: karaf-tooling >Affects Versions: 4.1.2 > Environment: Maven 3.5.0, Java 8 update 131, Windows 10 >Reporter: Mikael Åsberg >Assignee: Jean-Baptiste Onofré > Fix For: 4.2.0, 4.1.3 > > Attachments: pom.xml > > > In the attached pom.xml, the plugin > org.apache.karaf.tooling:karaf-maven-plugin, version 4.1.2, is used in an > attempt to create a feature.xml. However, the build (simply mvn clean > install) fails with: > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-install-plugin:2.5.2:install (default-install) > on project karaf-maven-plugin-bug: The packaging for this project did not > assign a file to the build artifact > There isn't even a target folder created. > However, if one downgrades the karaf-maven-plugin by running "mvn clean > install -Dkaraf.version=4.0.9" the build succeeds and a feature.xml is > installed into the local .m2. I've also verified this feature is usable. > Ouput to note when using version 4.0.9: > [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ > karaf-maven-plugin-bug --- > [INFO] No primary artifact to install, installing attached artifacts instead. > Note that this project consist only of a single pom.xml, no additional files. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Updated] (KARAF-5410) Bundle loaded before cfg file
[ https://issues.apache.org/jira/browse/KARAF-5410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chow updated KARAF-5410: Affects Version/s: 4.0.8 4.1.2 4.0.10 > Bundle loaded before cfg file > - > > Key: KARAF-5410 > URL: https://issues.apache.org/jira/browse/KARAF-5410 > Project: Karaf > Issue Type: Bug >Affects Versions: 4.0.8, 4.0.9, 4.1.2, 4.0.10 > Environment: I'm running a 4.0.9 version of Karaf. > The bundles are loaded with the help of feature:install. > The cfg file is loaded via a and he's physically present into > the /etc >Reporter: Chow > > When i restart karaf some times i've got this exception : > {code:java} > Exception: > org.osgi.service.blueprint.container.ComponentDefinitionException: Error > setting property: PropertyDescriptor setter: [class > com.plug.acquisition.service.configuration.AcquisitionConfigurationServiceImpl.setRefreshDelay(int)] > org.osgi.service.blueprint.container.ComponentDefinitionException: > org.osgi.service.blueprint.container.ComponentDefinitionException: Error > setting property: PropertyDescriptor setter: [class > com.plug.acquisition.service.configuration.AcquisitionConfigurationServiceImpl.setRefreshDelay(int)] > at > org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:310) > at > org.apache.aries.blueprint.container.ServiceRecipe.internalGetService(ServiceRecipe.java:252) > at > org.apache.aries.blueprint.container.ServiceRecipe.internalCreate(ServiceRecipe.java:149) > at > org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at > org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88) > at > org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:255) > at > org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:186) > at > org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:724) > at > org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:411) > at > org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:276) > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at > org.apache.aries.blueprint.container.ExecutorServiceWrapper.run(ExecutorServiceWrapper.java:106) > at > org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48) > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > Caused by: org.osgi.service.blueprint.container.ComponentDefinitionException: > Error setting property: PropertyDescriptor setter: [class > com.plug.acquisition.service.configuration.AcquisitionConfigurationServiceImpl.setRefreshDelay(int)] > at > org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:963) > at > org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:929) > at > org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:910) > at > org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:844) > at > org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:811) > at > org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at > org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88) > at > org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:62) > at > org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:106) > at > org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:285) > ... 21 more > Caused by: java.lang.NumberFormatException: For input string: > "
[jira] [Commented] (KARAF-5397) Remove org.apache.karaf.shell config from ssh feature
[ https://issues.apache.org/jira/browse/KARAF-5397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16200171#comment-16200171 ] Markus Rathgeb commented on KARAF-5397: --- Could this be related to https://issues.apache.org/jira/browse/KARAF-5335 > Remove org.apache.karaf.shell config from ssh feature > - > > Key: KARAF-5397 > URL: https://issues.apache.org/jira/browse/KARAF-5397 > Project: Karaf > Issue Type: Bug > Components: karaf-feature >Affects Versions: 4.1.2 >Reporter: Benjamin Graf >Assignee: Jean-Baptiste Onofré >Priority: Minor > Fix For: 4.1.3, 4.0.11 > > > Feature ssh still sets config: > > sshPort=8101 > sshHost=0.0.0.0 > sshRealm=karaf > hostKey=${karaf.etc}/host.key > > The config for "org.apache.karaf.shell.cfg" is set twice in the standard > feature file causing a mess up in the result (distribution). It has been > removed from trunk in KARAF-5074 yet. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (KARAF-5371) Race condition between FeatureService and Fileinstall
[ https://issues.apache.org/jira/browse/KARAF-5371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16199974#comment-16199974 ] J. Brébec commented on KARAF-5371: -- This doesn't work either. However, I am able to reproduce this issue in a very specific case (and only in debug..) : - The FeatureService activator is only launched when ConfigurationAdmin and the URL mvn handler is registered - The ConfigurationAdmin is registered synchronously, but the URL mvn handler waits for a valid mvn configuration - If the mvn configuration is not present when the FeatureService bundle is activated, the doStart() is executed asynchronously an his own thread => The Aries Blueprint bundle is started before the FeatureService, and waits for a ProxyManager service - The FeatureService is started, create a new digraph, and register the hooks. The digraph doesn't contains the blueprint bundle (DigraphHelper.verifyUnmanagedBundles is not called) - The ProxyManager service is registered => Aries Blueprint open his BundleTracker => it calls bundleContext.getBundle(0) - The FeatureService FindHook rejects the call as the blueprint bundle doesn't have any region - Aries Blueprint fails with a NPE I don't know if it's the scenario I see in my test platform, however this bugs can be fixed by calling 'DigraphHelper.verifyUnmanagedBundles' twice : before registering the hooks, and after. I'll launch my itest with this patch in the afternoon. > Race condition between FeatureService and Fileinstall > - > > Key: KARAF-5371 > URL: https://issues.apache.org/jira/browse/KARAF-5371 > Project: Karaf > Issue Type: Bug > Components: karaf-feature >Affects Versions: 4.1.2 >Reporter: J. Brébec >Assignee: Guillaume Nodet >Priority: Critical > Fix For: 4.2.0, 4.1.3 > > > If a bundle is installed when the FeatureService is started, then it is > possible that this bundle is not associated to the default region. as a > consequence, every services exported by this bundle are not visible from the > osgi container, until karaf is restarted. > A real usecase : > - A new karaf distribution, with a blueprint file in a folder managed by > fileinstall ; > - When the distribution is started, as fileinstall is started before the > feature bundle, and the folder are watched asynchronously, the blueprint file > is installed before or in the same time the featureservice is started > => the services exported by the blueprint file are not visible > This race condition is located in the FeatureService activator : the digraph > is loaded, and every bundle not known are added to the default region. then, > it subscribes a bundle-listener : If a bundle X is installed between the > digraph loading and the subscription of the bundle listener, then this bundle > X is not attached to the default region. > On my machine, this issue happens 70% of the time on a cold start. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (KARAF-5352) KARAF_ETC envvar ignored
[ https://issues.apache.org/jira/browse/KARAF-5352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16199934#comment-16199934 ] Benjamin Graf commented on KARAF-5352: -- (y) > KARAF_ETC envvar ignored > > > Key: KARAF-5352 > URL: https://issues.apache.org/jira/browse/KARAF-5352 > Project: Karaf > Issue Type: Bug > Components: karaf-core >Affects Versions: 4.1.2 > Environment: Tested on CentOS 7.x >Reporter: Thomas Bouron >Assignee: Jean-Baptiste Onofré > Fix For: 4.2.0, 4.1.3 > > > I'm currently working on upgrading the RPM and DEB packaging for Apache > Brooklyn. The project uses Karaf and has the following folder structure for > the RPM package: > {code} > /- > +- etc > |+- brooklyn > +- opt > |+- brooklyn-0.12.0-SNAPSHOT > ||+- bin > ||+- data > ||+- deploy > ||+- lib > ||+- system > {code} > The {{etc}} folder is not part of {{KARAF_HOME}} but in {{/etc/brooklyn}}. I > setup my {{KARAF_ETC}} to point to this folder, however when I start Karaf, I > get the followoing > {code} > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 systemd[1]: Started > Apache Brooklyn Service. > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 systemd[1]: Starting > Apache Brooklyn Service... > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: JAVA_HOME > not set; results may vary > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: karaf: > Ignoring predefined value for KARAF_HOME > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: > 15:27:17.085 [pool-1-thread-2] ERROR org.apache.karaf.features.inte > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: > java.io.IOException: /opt/brooklyn-0.12.0-SNAPSHOT/etc/0d218152-8d8 > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.RepositoryImpl.load(R > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.FeaturesServiceImpl.l > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.FeaturesServiceImpl.a > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.FeaturesServiceImpl.a > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.BootFeaturesInstaller > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.BootFeaturesInstaller > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.osgi.Activator.doStart(Activa > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.ja > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.ja > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExec > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExe > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.lang.Thread.run(Thread.java:748) [?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: Caused > by: java.io.FileNotFoundException: /opt/brooklyn-0.12.0-SNAP > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.open0(Native Method) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.open(FileInputStream.java:195) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.(FileInputStream.java:138) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.(FileInputStream.java:93) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > sun.net.www.protocol.file.FileURLConnection.connect(FileURLConne > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > sun.net.www.protocol.file.FileURLConnection.getInputStream(FileU > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.net.URL.openStream(URL.java:1045) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.RepositoryImpl.load(R > Sep 07 15:27:17
[jira] [Commented] (KARAF-5373) Karaf-maven-plugin fails to create feature file
[ https://issues.apache.org/jira/browse/KARAF-5373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16199932#comment-16199932 ] Jean-Baptiste Onofré commented on KARAF-5373: - The problem is that the MOJO doesn't have any artifact, so that's why the attachment fails. I'm fixing that. > Karaf-maven-plugin fails to create feature file > --- > > Key: KARAF-5373 > URL: https://issues.apache.org/jira/browse/KARAF-5373 > Project: Karaf > Issue Type: Bug > Components: karaf-tooling >Affects Versions: 4.1.2 > Environment: Maven 3.5.0, Java 8 update 131, Windows 10 >Reporter: Mikael Åsberg >Assignee: Jean-Baptiste Onofré > Fix For: 4.2.0, 4.1.3 > > Attachments: pom.xml > > > In the attached pom.xml, the plugin > org.apache.karaf.tooling:karaf-maven-plugin, version 4.1.2, is used in an > attempt to create a feature.xml. However, the build (simply mvn clean > install) fails with: > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-install-plugin:2.5.2:install (default-install) > on project karaf-maven-plugin-bug: The packaging for this project did not > assign a file to the build artifact > There isn't even a target folder created. > However, if one downgrades the karaf-maven-plugin by running "mvn clean > install -Dkaraf.version=4.0.9" the build succeeds and a feature.xml is > installed into the local .m2. I've also verified this feature is usable. > Ouput to note when using version 4.0.9: > [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ > karaf-maven-plugin-bug --- > [INFO] No primary artifact to install, installing attached artifacts instead. > Note that this project consist only of a single pom.xml, no additional files. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (KARAF-5352) KARAF_ETC envvar ignored
[ https://issues.apache.org/jira/browse/KARAF-5352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16199933#comment-16199933 ] Jean-Baptiste Onofré commented on KARAF-5352: - Yeah, it's what I'm fixing now. > KARAF_ETC envvar ignored > > > Key: KARAF-5352 > URL: https://issues.apache.org/jira/browse/KARAF-5352 > Project: Karaf > Issue Type: Bug > Components: karaf-core >Affects Versions: 4.1.2 > Environment: Tested on CentOS 7.x >Reporter: Thomas Bouron >Assignee: Jean-Baptiste Onofré > Fix For: 4.2.0, 4.1.3 > > > I'm currently working on upgrading the RPM and DEB packaging for Apache > Brooklyn. The project uses Karaf and has the following folder structure for > the RPM package: > {code} > /- > +- etc > |+- brooklyn > +- opt > |+- brooklyn-0.12.0-SNAPSHOT > ||+- bin > ||+- data > ||+- deploy > ||+- lib > ||+- system > {code} > The {{etc}} folder is not part of {{KARAF_HOME}} but in {{/etc/brooklyn}}. I > setup my {{KARAF_ETC}} to point to this folder, however when I start Karaf, I > get the followoing > {code} > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 systemd[1]: Started > Apache Brooklyn Service. > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 systemd[1]: Starting > Apache Brooklyn Service... > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: JAVA_HOME > not set; results may vary > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: karaf: > Ignoring predefined value for KARAF_HOME > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: > 15:27:17.085 [pool-1-thread-2] ERROR org.apache.karaf.features.inte > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: > java.io.IOException: /opt/brooklyn-0.12.0-SNAPSHOT/etc/0d218152-8d8 > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.RepositoryImpl.load(R > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.FeaturesServiceImpl.l > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.FeaturesServiceImpl.a > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.FeaturesServiceImpl.a > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.BootFeaturesInstaller > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.BootFeaturesInstaller > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.osgi.Activator.doStart(Activa > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.ja > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.ja > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExec > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExe > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.lang.Thread.run(Thread.java:748) [?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: Caused > by: java.io.FileNotFoundException: /opt/brooklyn-0.12.0-SNAP > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.open0(Native Method) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.open(FileInputStream.java:195) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.(FileInputStream.java:138) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.(FileInputStream.java:93) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > sun.net.www.protocol.file.FileURLConnection.connect(FileURLConne > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > sun.net.www.protocol.file.FileURLConnection.getInputStream(FileU > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.net.URL.openStream(URL.java:1045) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.servic
[jira] [Work started] (KARAF-5373) Karaf-maven-plugin fails to create feature file
[ https://issues.apache.org/jira/browse/KARAF-5373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Work on KARAF-5373 started by Jean-Baptiste Onofré. --- > Karaf-maven-plugin fails to create feature file > --- > > Key: KARAF-5373 > URL: https://issues.apache.org/jira/browse/KARAF-5373 > Project: Karaf > Issue Type: Bug > Components: karaf-tooling >Affects Versions: 4.1.2 > Environment: Maven 3.5.0, Java 8 update 131, Windows 10 >Reporter: Mikael Åsberg >Assignee: Jean-Baptiste Onofré > Fix For: 4.2.0, 4.1.3 > > Attachments: pom.xml > > > In the attached pom.xml, the plugin > org.apache.karaf.tooling:karaf-maven-plugin, version 4.1.2, is used in an > attempt to create a feature.xml. However, the build (simply mvn clean > install) fails with: > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-install-plugin:2.5.2:install (default-install) > on project karaf-maven-plugin-bug: The packaging for this project did not > assign a file to the build artifact > There isn't even a target folder created. > However, if one downgrades the karaf-maven-plugin by running "mvn clean > install -Dkaraf.version=4.0.9" the build succeeds and a feature.xml is > installed into the local .m2. I've also verified this feature is usable. > Ouput to note when using version 4.0.9: > [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ > karaf-maven-plugin-bug --- > [INFO] No primary artifact to install, installing attached artifacts instead. > Note that this project consist only of a single pom.xml, no additional files. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (KARAF-5352) KARAF_ETC envvar ignored
[ https://issues.apache.org/jira/browse/KARAF-5352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16199931#comment-16199931 ] Benjamin Graf commented on KARAF-5352: -- I tested with latest 4.1.3 SNAPSHOT and it is still there. Actually looking into org.apache.karaf.util.filesstream.FileStream. It seems to come from there. > KARAF_ETC envvar ignored > > > Key: KARAF-5352 > URL: https://issues.apache.org/jira/browse/KARAF-5352 > Project: Karaf > Issue Type: Bug > Components: karaf-core >Affects Versions: 4.1.2 > Environment: Tested on CentOS 7.x >Reporter: Thomas Bouron >Assignee: Jean-Baptiste Onofré > Fix For: 4.2.0, 4.1.3 > > > I'm currently working on upgrading the RPM and DEB packaging for Apache > Brooklyn. The project uses Karaf and has the following folder structure for > the RPM package: > {code} > /- > +- etc > |+- brooklyn > +- opt > |+- brooklyn-0.12.0-SNAPSHOT > ||+- bin > ||+- data > ||+- deploy > ||+- lib > ||+- system > {code} > The {{etc}} folder is not part of {{KARAF_HOME}} but in {{/etc/brooklyn}}. I > setup my {{KARAF_ETC}} to point to this folder, however when I start Karaf, I > get the followoing > {code} > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 systemd[1]: Started > Apache Brooklyn Service. > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 systemd[1]: Starting > Apache Brooklyn Service... > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: JAVA_HOME > not set; results may vary > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: karaf: > Ignoring predefined value for KARAF_HOME > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: > 15:27:17.085 [pool-1-thread-2] ERROR org.apache.karaf.features.inte > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: > java.io.IOException: /opt/brooklyn-0.12.0-SNAPSHOT/etc/0d218152-8d8 > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.RepositoryImpl.load(R > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.FeaturesServiceImpl.l > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.FeaturesServiceImpl.a > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.FeaturesServiceImpl.a > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.BootFeaturesInstaller > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.BootFeaturesInstaller > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.osgi.Activator.doStart(Activa > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.ja > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.ja > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExec > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExe > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.lang.Thread.run(Thread.java:748) [?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: Caused > by: java.io.FileNotFoundException: /opt/brooklyn-0.12.0-SNAP > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.open0(Native Method) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.open(FileInputStream.java:195) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.(FileInputStream.java:138) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.(FileInputStream.java:93) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > sun.net.www.protocol.file.FileURLConnection.connect(FileURLConne > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > sun.net.www.protocol.file.FileURLConnection.getInputStream(FileU > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.net.URL.openStream(URL.java:1045) ~[?:?] > Sep
[jira] [Commented] (KARAF-5352) KARAF_ETC envvar ignored
[ https://issues.apache.org/jira/browse/KARAF-5352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16199929#comment-16199929 ] Jean-Baptiste Onofré commented on KARAF-5352: - That's only for Windows and it should not be a problem anymore as {{${karaf.etc}}} should be correctly evaluated. I will remove this "warning". > KARAF_ETC envvar ignored > > > Key: KARAF-5352 > URL: https://issues.apache.org/jira/browse/KARAF-5352 > Project: Karaf > Issue Type: Bug > Components: karaf-core >Affects Versions: 4.1.2 > Environment: Tested on CentOS 7.x >Reporter: Thomas Bouron >Assignee: Jean-Baptiste Onofré > Fix For: 4.2.0, 4.1.3 > > > I'm currently working on upgrading the RPM and DEB packaging for Apache > Brooklyn. The project uses Karaf and has the following folder structure for > the RPM package: > {code} > /- > +- etc > |+- brooklyn > +- opt > |+- brooklyn-0.12.0-SNAPSHOT > ||+- bin > ||+- data > ||+- deploy > ||+- lib > ||+- system > {code} > The {{etc}} folder is not part of {{KARAF_HOME}} but in {{/etc/brooklyn}}. I > setup my {{KARAF_ETC}} to point to this folder, however when I start Karaf, I > get the followoing > {code} > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 systemd[1]: Started > Apache Brooklyn Service. > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 systemd[1]: Starting > Apache Brooklyn Service... > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: JAVA_HOME > not set; results may vary > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: karaf: > Ignoring predefined value for KARAF_HOME > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: > 15:27:17.085 [pool-1-thread-2] ERROR org.apache.karaf.features.inte > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: > java.io.IOException: /opt/brooklyn-0.12.0-SNAPSHOT/etc/0d218152-8d8 > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.RepositoryImpl.load(R > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.FeaturesServiceImpl.l > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.FeaturesServiceImpl.a > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.FeaturesServiceImpl.a > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.BootFeaturesInstaller > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.BootFeaturesInstaller > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.osgi.Activator.doStart(Activa > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.ja > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.ja > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExec > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExe > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.lang.Thread.run(Thread.java:748) [?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: Caused > by: java.io.FileNotFoundException: /opt/brooklyn-0.12.0-SNAP > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.open0(Native Method) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.open(FileInputStream.java:195) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.(FileInputStream.java:138) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.(FileInputStream.java:93) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > sun.net.www.protocol.file.FileURLConnection.connect(FileURLConne > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > sun.net.www.protocol.file.FileURLConnection.getInputStream(FileU > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.net.URL.openStream(URL.java:1045) ~[?:?] > Se
[jira] [Commented] (KARAF-5352) KARAF_ETC envvar ignored
[ https://issues.apache.org/jira/browse/KARAF-5352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16199927#comment-16199927 ] Benjamin Graf commented on KARAF-5352: -- Well, there even is a warning in system.properties that IMHO point to this problem. {noformat} # Do not use absolute paths to avoid problems on windows. {noformat} > KARAF_ETC envvar ignored > > > Key: KARAF-5352 > URL: https://issues.apache.org/jira/browse/KARAF-5352 > Project: Karaf > Issue Type: Bug > Components: karaf-core >Affects Versions: 4.1.2 > Environment: Tested on CentOS 7.x >Reporter: Thomas Bouron >Assignee: Jean-Baptiste Onofré > Fix For: 4.2.0, 4.1.3 > > > I'm currently working on upgrading the RPM and DEB packaging for Apache > Brooklyn. The project uses Karaf and has the following folder structure for > the RPM package: > {code} > /- > +- etc > |+- brooklyn > +- opt > |+- brooklyn-0.12.0-SNAPSHOT > ||+- bin > ||+- data > ||+- deploy > ||+- lib > ||+- system > {code} > The {{etc}} folder is not part of {{KARAF_HOME}} but in {{/etc/brooklyn}}. I > setup my {{KARAF_ETC}} to point to this folder, however when I start Karaf, I > get the followoing > {code} > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 systemd[1]: Started > Apache Brooklyn Service. > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 systemd[1]: Starting > Apache Brooklyn Service... > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: JAVA_HOME > not set; results may vary > Sep 07 15:27:14 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: karaf: > Ignoring predefined value for KARAF_HOME > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: > 15:27:17.085 [pool-1-thread-2] ERROR org.apache.karaf.features.inte > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: > java.io.IOException: /opt/brooklyn-0.12.0-SNAPSHOT/etc/0d218152-8d8 > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.RepositoryImpl.load(R > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.FeaturesServiceImpl.l > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.FeaturesServiceImpl.a > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.FeaturesServiceImpl.a > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.BootFeaturesInstaller > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.service.BootFeaturesInstaller > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.features.internal.osgi.Activator.doStart(Activa > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.ja > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.ja > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExec > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExe > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.lang.Thread.run(Thread.java:748) [?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: Caused > by: java.io.FileNotFoundException: /opt/brooklyn-0.12.0-SNAP > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.open0(Native Method) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.open(FileInputStream.java:195) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.(FileInputStream.java:138) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.io.FileInputStream.(FileInputStream.java:93) ~[?:?] > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > sun.net.www.protocol.file.FileURLConnection.connect(FileURLConne > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > sun.net.www.protocol.file.FileURLConnection.getInputStream(FileU > Sep 07 15:27:17 br-ovx1by-amp-appl-om8x-empty-t0ww-280 karaf[1919]: at > java.net.URL.openStream(URL.java:1045) ~[
[jira] [Commented] (KARAF-5371) Race condition between FeatureService and Fileinstall
[ https://issues.apache.org/jira/browse/KARAF-5371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16199897#comment-16199897 ] Guillaume Nodet commented on KARAF-5371: What about the following patch: {code} diff --git a/features/core/src/main/java/org/apache/karaf/features/internal/osgi/Activator.java b/features/core/src/main/java/org/apache/karaf/features/internal/osgi/Activator.java index 2bfbb62793..dfc16dd50f 100644 --- a/features/core/src/main/java/org/apache/karaf/features/internal/osgi/Activator.java +++ b/features/core/src/main/java/org/apache/karaf/features/internal/osgi/Activator.java @@ -59,6 +59,7 @@ import org.eclipse.equinox.internal.region.management.StandardManageableRegionDi import org.eclipse.equinox.region.RegionDigraph; import org.osgi.framework.BundleContext; import org.osgi.framework.BundleException; +import org.osgi.framework.Constants; import org.osgi.framework.ServiceReference; import org.osgi.framework.hooks.bundle.CollisionHook; import org.osgi.framework.hooks.resolver.ResolverHookFactory; @@ -249,12 +250,14 @@ public class Activator extends BaseActivator { @SuppressWarnings("deprecation") private void registerRegionDiGraph(StandardRegionDigraph dg) throws BundleException { +Dictionary ranking = new Hashtable<>(); +ranking.put(Constants.SERVICE_RANKING, 1000); register(ResolverHookFactory.class, dg.getResolverHookFactory()); register(CollisionHook.class, CollisionHookHelper.getCollisionHook(dg)); -register(org.osgi.framework.hooks.bundle.FindHook.class, dg.getBundleFindHook()); -register(org.osgi.framework.hooks.bundle.EventHook.class, dg.getBundleEventHook()); -register(org.osgi.framework.hooks.service.FindHook.class, dg.getServiceFindHook()); -register(org.osgi.framework.hooks.service.EventHook.class, dg.getServiceEventHook()); +register(org.osgi.framework.hooks.bundle.FindHook.class, dg.getBundleFindHook(), ranking); +register(org.osgi.framework.hooks.bundle.EventHook.class, dg.getBundleEventHook(), ranking); +register(org.osgi.framework.hooks.service.FindHook.class, dg.getServiceFindHook(), ranking); +register(org.osgi.framework.hooks.service.EventHook.class, dg.getServiceEventHook(), ranking); register(RegionDigraph.class, dg); if (getBoolean("digraphMBean", FeaturesService.DEFAULT_DIGRAPH_MBEAN)) { {code} > Race condition between FeatureService and Fileinstall > - > > Key: KARAF-5371 > URL: https://issues.apache.org/jira/browse/KARAF-5371 > Project: Karaf > Issue Type: Bug > Components: karaf-feature >Affects Versions: 4.1.2 >Reporter: J. Brébec >Assignee: Guillaume Nodet >Priority: Critical > Fix For: 4.2.0, 4.1.3 > > > If a bundle is installed when the FeatureService is started, then it is > possible that this bundle is not associated to the default region. as a > consequence, every services exported by this bundle are not visible from the > osgi container, until karaf is restarted. > A real usecase : > - A new karaf distribution, with a blueprint file in a folder managed by > fileinstall ; > - When the distribution is started, as fileinstall is started before the > feature bundle, and the folder are watched asynchronously, the blueprint file > is installed before or in the same time the featureservice is started > => the services exported by the blueprint file are not visible > This race condition is located in the FeatureService activator : the digraph > is loaded, and every bundle not known are added to the default region. then, > it subscribes a bundle-listener : If a bundle X is installed between the > digraph loading and the subscription of the bundle listener, then this bundle > X is not attached to the default region. > On my machine, this issue happens 70% of the time on a cold start. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Comment Edited] (KARAF-5371) Race condition between FeatureService and Fileinstall
[ https://issues.apache.org/jira/browse/KARAF-5371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16199878#comment-16199878 ] J. Brébec edited comment on KARAF-5371 at 10/11/17 7:09 AM: My tests didn't pass with your patch, I see a lot of NPE on this getBundle(0) in my log.. was (Author: j3rem1e): My tests didn't pass with your path, I see a lot of NPE on this getBundle(0) in my log.. > Race condition between FeatureService and Fileinstall > - > > Key: KARAF-5371 > URL: https://issues.apache.org/jira/browse/KARAF-5371 > Project: Karaf > Issue Type: Bug > Components: karaf-feature >Affects Versions: 4.1.2 >Reporter: J. Brébec >Assignee: Guillaume Nodet >Priority: Critical > Fix For: 4.2.0, 4.1.3 > > > If a bundle is installed when the FeatureService is started, then it is > possible that this bundle is not associated to the default region. as a > consequence, every services exported by this bundle are not visible from the > osgi container, until karaf is restarted. > A real usecase : > - A new karaf distribution, with a blueprint file in a folder managed by > fileinstall ; > - When the distribution is started, as fileinstall is started before the > feature bundle, and the folder are watched asynchronously, the blueprint file > is installed before or in the same time the featureservice is started > => the services exported by the blueprint file are not visible > This race condition is located in the FeatureService activator : the digraph > is loaded, and every bundle not known are added to the default region. then, > it subscribes a bundle-listener : If a bundle X is installed between the > digraph loading and the subscription of the bundle listener, then this bundle > X is not attached to the default region. > On my machine, this issue happens 70% of the time on a cold start. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (KARAF-5396) Ensure Karaf can build with JDK9 GA(build 9+181)
[ https://issues.apache.org/jira/browse/KARAF-5396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16199894#comment-16199894 ] Freeman Fang commented on KARAF-5396: - Hi Guillaume, Please ensure you have "--add-modules java.xml.bind" in MAVEN_OPTS, as in java9, the default launched java.se modules not include the java.xml.bind(it's considered as java.ee modules). And I'm going to enhance karaf-maven-plugin configuration a bit so we can configure to fork this plugin and specify jvm args when run with JAVA9. Freeman > Ensure Karaf can build with JDK9 GA(build 9+181) > > > Key: KARAF-5396 > URL: https://issues.apache.org/jira/browse/KARAF-5396 > Project: Karaf > Issue Type: Task >Reporter: Freeman Fang >Assignee: Freeman Fang > Fix For: 4.2.0 > > -- This message was sent by Atlassian JIRA (v6.4.14#64029)