You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by cniehues <ch...@its-telco.de> on 2016/11/17 12:38:34 UTC

Installing drools-module causing infinite karaf restart

Hello,

when I install the drools-module 5.2.3.Final feature in karaf 4.0.7 beside
jpa, hibernate and camel-cxf it will cause infinite restart loop after the
first restart. The strange thing about it is that this behaviour only occurs
when I deploy it with a feature file. If I do it with manual steps from the
console everything is fine.

You should be able to reproduce it with afresh karaf 4.0.7 and the following
feature:

<features name="osgi-test"
xmlns="http://karaf.apache.org/xmlns/features/v1.3.0">
   
<repository>mvn:org.apache.camel.karaf/apache-camel/2.17.3/xml/features</repository>
   
<repository>mvn:org.drools/drools-karaf-features/6.5.0.Final/xml/features</repository>
   
<repository>mvn:org.hibernate/hibernate-osgi/5.2.3.Final/xml/karaf</repository>
    
    <feature name='osgi-test' description='pra-osgi-feature'
version='1.0.0'>
        <feature>jpa</feature>
        <feature>hibernate-orm</feature>
        <feature>camel-cxf</feature>
		  <feature>drools-module</feature>
    </feature>
</features>

I already took a look at the logfiles but saw no hint about what's causing
this issue.

btw: is the automatic restart a configurable behaviour?

Cheers
Christian



--
View this message in context: http://karaf.922171.n3.nabble.com/Installing-drools-module-causing-infinite-karaf-restart-tp4048644.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Installing drools-module causing infinite karaf restart

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Thanks for that.

Regards
JB

On 11/23/2016 11:00 AM, cniehues wrote:
> I created  KARAF-4839 <https://issues.apache.org/jira/browse/KARAF-4839>
> for it
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Installing-drools-module-causing-infinite-karaf-restart-tp4048644p4048785.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofr
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Installing drools-module causing infinite karaf restart

Posted by cniehues <ch...@its-telco.de>.
I created  KARAF-4839 <https://issues.apache.org/jira/browse/KARAF-4839>  
for it



--
View this message in context: http://karaf.922171.n3.nabble.com/Installing-drools-module-causing-infinite-karaf-restart-tp4048644p4048785.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Installing drools-module causing infinite karaf restart

Posted by cniehues <ch...@its-telco.de>.
Still same issue with Felix 5.6.1 if I've done the upgrade right.

This is what I've done:
- downloaded Apache Framework Distribution 5.6.1
- renamed jar in /bin in the downloaded archive to
org.apache.felix.framework-5.6.1.jar
- copied the jar to
${karaf-home}/system/org/apache/felix/org.apache.felix.framework/5.6.1/
- changed ${karaf-home}/etc/config.properties to
karaf.framework.felix=mvn\:org.apache.felix/org.apache.felix.framework/5.6.1

After installing the feature from the deploy folder and restarting karaf I
have the same issue.



--
View this message in context: http://karaf.922171.n3.nabble.com/Installing-drools-module-causing-infinite-karaf-restart-tp4048644p4048721.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Installing drools-module causing infinite karaf restart

Posted by Guillaume Nodet <gn...@apache.org>.
I've raised FELIX-5420 but it looks it has already been fixed.
Can you try upgrading to the latest felix framework and see if it works
better ?

2016-11-18 15:35 GMT+01:00 Guillaume Nodet <gn...@apache.org>:

> I reproduced the problem.
> Here's what happen:
>   * the feature deployer receives an event about the bundle corresponding
> to the feature xml in the deploy folder being resolved
>   * it loads the repository and calls FeaturesService#installFeatures
> with a set bundles flagged with install="auto", in our case, an empty set
>   * the resolver kicks in and find that the wiring of the bundles is wrong
> and starts to refresh a few bundles
>   * for a still unknown reason, the system bundle is being considered for
> refresh by felix and causes a reboot
>
> Please raise JIRA issue with the steps to reproduce.
> I'm not sure where the real bug is though...
>
>
> 2016-11-18 13:35 GMT+01:00 cniehues <ch...@its-telco.de>:
>
>> Ok that seems to work. I can also see that it has 1 bundle less in
>> comparison
>> to the deploy folder approach but I can't see which one.
>>
>> But I wonder you don't have the restart issue when using the deploy
>> folder.
>> I've done the following:
>>   * unzip the karaf 4.0.7 distribution
>>   * copied the feature descriptor into deploy folder (already used your
>> small modification)
>>   * start karaf
>>   * feature:install osgi-test
>>   * shutdown karaf
>>   * start karaf
>>
>> And after some seconds it should start to prompt out the startup message
>> again.
>>
>>
>>
>> --
>> View this message in context: http://karaf.922171.n3.nabble.
>> com/Installing-drools-module-causing-infinite-karaf-restart-
>> tp4048644p4048661.html
>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>
>
>
>
> --
> ------------------------
> Guillaume Nodet
> ------------------------
> Red Hat, Open Source Integration
>
> Email: gnodet@redhat.com
> Web: http://fusesource.com
> Blog: http://gnodet.blogspot.com/
>
>


-- 
------------------------
Guillaume Nodet
------------------------
Red Hat, Open Source Integration

Email: gnodet@redhat.com
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/

Re: Installing drools-module causing infinite karaf restart

Posted by Guillaume Nodet <gn...@apache.org>.
I reproduced the problem.
Here's what happen:
  * the feature deployer receives an event about the bundle corresponding
to the feature xml in the deploy folder being resolved
  * it loads the repository and calls FeaturesService#installFeatures with
a set bundles flagged with install="auto", in our case, an empty set
  * the resolver kicks in and find that the wiring of the bundles is wrong
and starts to refresh a few bundles
  * for a still unknown reason, the system bundle is being considered for
refresh by felix and causes a reboot

Please raise JIRA issue with the steps to reproduce.
I'm not sure where the real bug is though...


2016-11-18 13:35 GMT+01:00 cniehues <ch...@its-telco.de>:

> Ok that seems to work. I can also see that it has 1 bundle less in
> comparison
> to the deploy folder approach but I can't see which one.
>
> But I wonder you don't have the restart issue when using the deploy folder.
> I've done the following:
>   * unzip the karaf 4.0.7 distribution
>   * copied the feature descriptor into deploy folder (already used your
> small modification)
>   * start karaf
>   * feature:install osgi-test
>   * shutdown karaf
>   * start karaf
>
> And after some seconds it should start to prompt out the startup message
> again.
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.
> com/Installing-drools-module-causing-infinite-karaf-
> restart-tp4048644p4048661.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 
------------------------
Guillaume Nodet
------------------------
Red Hat, Open Source Integration

Email: gnodet@redhat.com
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/

Re: Installing drools-module causing infinite karaf restart

Posted by cniehues <ch...@its-telco.de>.
Ok that seems to work. I can also see that it has 1 bundle less in comparison
to the deploy folder approach but I can't see which one.

But I wonder you don't have the restart issue when using the deploy folder.
I've done the following:
  * unzip the karaf 4.0.7 distribution
  * copied the feature descriptor into deploy folder (already used your
small modification)
  * start karaf
  * feature:install osgi-test
  * shutdown karaf
  * start karaf

And after some seconds it should start to prompt out the startup message
again.



--
View this message in context: http://karaf.922171.n3.nabble.com/Installing-drools-module-causing-infinite-karaf-restart-tp4048644p4048661.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Installing drools-module causing infinite karaf restart

Posted by Guillaume Nodet <gn...@apache.org>.
Use the following values in etc/org.apache.karaf.features.cfg

featuresRepositories = \
    ..., \
    file:${karaf.home}/system/test.xml

featuresBoot = \
    ..., \
    osgi-test

Note that I first used the deploy folder by adding the install="auto"
attribute on the feature but haven't had any endless restart loop either.


2016-11-18 11:45 GMT+01:00 cniehues <ch...@its-telco.de>:

> I just deployed the feature by dropping it in the deploy folder, maybe
> that's
> the problem. How do I reference the feature descriptor from the
> org.apache.karaf.features.cfg?
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.
> com/Installing-drools-module-causing-infinite-karaf-
> restart-tp4048644p4048654.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 
------------------------
Guillaume Nodet
------------------------
Red Hat, Open Source Integration

Email: gnodet@redhat.com
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/

Re: Installing drools-module causing infinite karaf restart

Posted by cniehues <ch...@its-telco.de>.
I just deployed the feature by dropping it in the deploy folder, maybe that's
the problem. How do I reference the feature descriptor from the
org.apache.karaf.features.cfg?



--
View this message in context: http://karaf.922171.n3.nabble.com/Installing-drools-module-causing-infinite-karaf-restart-tp4048644p4048654.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Installing drools-module causing infinite karaf restart

Posted by Guillaume Nodet <gn...@apache.org>.
I've done the following:
  * unzip the karaf 4.0.7 distribution
  * copied the feature descriptor into system/tests.xml with a small
modification
  * added a reference to it in etc/org.apache.karaf.features.cfg
  * start karaf

It works perfectly with no restart, refresh or whatever.
The feature has been slightly modified to add a prerequisite on the wrap
feature, as the drools feature uses wrapped bundle, so the url handler need
to be installed before the drools feature can be resolved.

<features name="osgi-test" xmlns="
http://karaf.apache.org/xmlns/features/v1.3.0">

<repository>mvn:org.apache.camel.karaf/apache-camel/2.17.3/xml/features</repository>

<repository>mvn:org.drools/drools-karaf-features/6.5.0.Final/xml/features</repository>

<repository>mvn:org.hibernate/hibernate-osgi/5.2.3.Final/xml/karaf</repository>
    <feature name='osgi-test' description='pra-osgi-feature'
version='1.0.0'>
        <feature prerequisite="true">wrap</feature>
        <feature>jpa</feature>
        <feature>hibernate-orm</feature>
        <feature>camel-cxf</feature>
        <feature>drools-module</feature>
    </feature>
</features>


2016-11-18 10:06 GMT+01:00 cniehues <ch...@its-telco.de>:

> That's the output for drools-module:
>
> Changes to perform:
>   Region: root
>     Bundles to uninstall:
>       org.apache.servicemix.bundles.javax-inject/1.0.0.2
>     Bundles to install:
>
> wrap:mvn:org.codehaus.janino/janino/2.5.16$Bundle-
> SymbolicName=Codehaus-Janino&Bundle-Version=2.5.16
>       mvn:com.google.protobuf/protobuf-java/2.6.0
>       mvn:commons-codec/commons-codec/1.9
>       mvn:org.apache.geronimo.specs/geronimo-atinject_1.0_spec/1.0
>
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.
> bundles.antlr/3.5_1
>
> mvn:org.apache.servicemix.bundles/org.apache.servicemix.
> bundles.xstream/1.4.9_1
>
> mvn:org.apache.servicemix.specs/org.apache.servicemix.
> specs.jaxb-api-2.2/2.2.0
>       mvn:org.drools/drools-compiler/6.5.0.Final
>       mvn:org.drools/drools-core/6.5.0.Final
>       mvn:org.drools/drools-osgi-integration/6.5.0.Final
>
> wrap:mvn:org.eclipse.jdt.core.compiler/ecj/4.4.2$Bundle-
> SymbolicName=Eclipse-JDT-Compiler&Bundle-Version=4.4.2
>       mvn:org.kie/kie-api/6.5.0.Final
>       mvn:org.kie/kie-internal/6.5.0.Final
>       mvn:org.mvel/mvel2/2.2.8.Final
>       wrap:mvn:javax.enterprise/cdi-api/1.0-SP4
>   Bundles to refresh:
>     javax.transaction-api/1.2.0 (Should be wired to:
> wrap_file__home_its_.m2_repository_javax_enterprise_
> cdi-api_1.0-SP4_cdi-api-1.0-SP4.jar/0.0.0
> (through [javax.transaction-api/1.2.0] osgi.wiring.package;
> filter:="(osgi.wiring.package=javax.enterprise.context)"))
>     org.apache.aries.jpa.support/2.3.0 (Wired to
> javax.transaction-api/1.2.0
> which is being refreshed)
>     org.apache.camel.camel-blueprint/2.17.3 (Wired to
> org.apache.camel.camel-core/2.17.3 which is being refreshed)
>     org.apache.camel.camel-catalog/2.17.3 (Wired to
> org.apache.camel.camel-core/2.17.3 which is being refreshed)
>     org.apache.camel.camel-commands-core/2.17.3 (Wired to
> org.apache.camel.camel-core/2.17.3 which is being refreshed)
>     org.apache.camel.camel-core/2.17.3 (Wired to
> org.apache.servicemix.bundles.spring-tx/3.2.17.RELEASE_1 which is being
> refreshed)
>     org.apache.camel.camel-cxf/2.17.3 (Wired to
> org.apache.camel.camel-core/2.17.3 which is being refreshed)
>     org.apache.camel.camel-cxf-transport/2.17.3 (Wired to
> org.apache.camel.camel-core/2.17.3 which is being refreshed)
>     org.apache.camel.camel-spring/2.17.3 (Wired to
> org.apache.camel.camel-core/2.17.3 which is being refreshed)
>     org.apache.camel.karaf.camel-karaf-commands/2.17.3 (Wired to
> org.apache.camel.camel-core/2.17.3 which is being refreshed)
>     org.apache.cxf.cxf-core/3.1.7 (Wired to
> org.springframework.osgi.core/1.2.1 which is being refreshed)
>     org.apache.cxf.cxf-rt-bindings-soap/3.1.7 (Wired to
> org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1 which is being
> refreshed)
>     org.apache.cxf.cxf-rt-bindings-xml/3.1.7 (Wired to
> org.apache.cxf.cxf-core/3.1.7 which is being refreshed)
>     org.apache.cxf.cxf-rt-databinding-jaxb/3.1.7 (Wired to
> org.apache.cxf.cxf-core/3.1.7 which is being refreshed)
>     org.apache.cxf.cxf-rt-frontend-jaxrs/3.1.7 (Wired to
> org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1 which is being
> refreshed)
>     org.apache.cxf.cxf-rt-frontend-jaxws/3.1.7 (Wired to
> org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1 which is being
> refreshed)
>     org.apache.cxf.cxf-rt-frontend-simple/3.1.7 (Wired to
> org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1 which is being
> refreshed)
>     org.apache.cxf.cxf-rt-management/3.1.7 (Wired to
> org.apache.cxf.cxf-core/3.1.7 which is being refreshed)
>     org.apache.cxf.cxf-rt-rs-client/3.1.7 (Wired to
> org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1 which is being
> refreshed)
>     org.apache.cxf.cxf-rt-rs-extension-providers/3.1.7 (Wired to
> org.apache.cxf.cxf-core/3.1.7 which is being refreshed)
>     org.apache.cxf.cxf-rt-rs-extension-search/3.1.7 (Wired to
> org.apache.cxf.cxf-core/3.1.7 which is being refreshed)
>     org.apache.cxf.cxf-rt-rs-service-description/3.1.7 (Wired to
> org.apache.cxf.cxf-core/3.1.7 which is being refreshed)
>     org.apache.cxf.cxf-rt-transports-http/3.1.7 (Wired to
> org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1 which is being
> refreshed)
>     org.apache.cxf.cxf-rt-transports-http-jetty/3.1.7 (Wired to
> org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1 which is being
> refreshed)
>     org.apache.cxf.cxf-rt-wsdl/3.1.7 (Wired to
> org.apache.cxf.cxf-core/3.1.7
> which is being refreshed)
>     org.apache.karaf.bundle.springstate/4.0.7 (Wired to
> org.springframework.osgi.core/1.2.1 which is being refreshed)
>     org.apache.servicemix.bundles.javax-inject/1.0.0.2 (Bundle will be
> uninstalled)
>     org.apache.servicemix.bundles.spring-aop/3.2.17.RELEASE_1 (Wired to
> org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1 which is being
> refreshed)
>     org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1 (Wired to
> org.apache.servicemix.bundles.javax-inject/1.0.0.2 which is being
> refreshed)
>     org.apache.servicemix.bundles.spring-context/3.2.17.RELEASE_1 (Wired
> to
> org.apache.servicemix.bundles.javax-inject/1.0.0.2 which is being
> refreshed)
>     org.apache.servicemix.bundles.spring-context-support/3.2.17.RELEASE_1
> (Wired to org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1
> which
> is being refreshed)
>     org.apache.servicemix.bundles.spring-tx/3.2.17.RELEASE_1 (Wired to
> javax.transaction-api/1.2.0 which is being refreshed)
>     org.eclipse.jetty.plus/9.2.19.v20160908 (Wired to
> javax.transaction-api/1.2.0 which is being refreshed)
>     org.hibernate.core/5.2.3.Final (Wired to javax.transaction-api/1.2.0
> which is being refreshed)
>     org.hibernate.osgi/5.2.3.Final (Wired to javax.transaction-api/1.2.0
> which is being refreshed)
>     org.springframework.osgi.core/1.2.1 (Wired to
> org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1 which is being
> refreshed)
>     org.springframework.osgi.extender/1.2.1 (Wired to
> org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1 which is being
> refreshed)
>     org.springframework.osgi.extensions.annotations/1.2.1 (Wired to
> org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1 which is being
> refreshed)
>
> wrap_file__home_its_.m2_repository_javax_enterprise_
> cdi-api_1.1_cdi-api-1.1.jar/0.0.0
> (Should be wired to:
> org.apache.geronimo.specs.geronimo-atinject_1.0_spec/1.0.0 (through
> [wrap_file__home_its_.m2_repository_javax_enterprise_
> cdi-api_1.1_cdi-api-1.1.jar/0.0.0]
> osgi.wiring.package; filter:="(osgi.wiring.package=javax.inject)";
> resolution:=optional))
>
> But the refresh after the install isn't the problem. The infinite restart
> starts after the first restart of karaf with increasing memory usage. So I
> think the problem is related to a bundle that wasn't refreshed during the
> install of drools-module.
>
> Maybe you are right and it is not a complete restart. I only saw the KARAF
> logo in the console and the SimpleFileLock in the karaf.log like on startup
> of karaf.
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.
> com/Installing-drools-module-causing-infinite-karaf-
> restart-tp4048644p4048651.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 
------------------------
Guillaume Nodet
------------------------
Red Hat, Open Source Integration

Email: gnodet@redhat.com
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/

Re: Installing drools-module causing infinite karaf restart

Posted by cniehues <ch...@its-telco.de>.
That's the output for drools-module:

Changes to perform:
  Region: root
    Bundles to uninstall:
      org.apache.servicemix.bundles.javax-inject/1.0.0.2
    Bundles to install:
     
wrap:mvn:org.codehaus.janino/janino/2.5.16$Bundle-SymbolicName=Codehaus-Janino&Bundle-Version=2.5.16
      mvn:com.google.protobuf/protobuf-java/2.6.0
      mvn:commons-codec/commons-codec/1.9
      mvn:org.apache.geronimo.specs/geronimo-atinject_1.0_spec/1.0
     
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.antlr/3.5_1
     
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream/1.4.9_1
     
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.2/2.2.0
      mvn:org.drools/drools-compiler/6.5.0.Final
      mvn:org.drools/drools-core/6.5.0.Final
      mvn:org.drools/drools-osgi-integration/6.5.0.Final
     
wrap:mvn:org.eclipse.jdt.core.compiler/ecj/4.4.2$Bundle-SymbolicName=Eclipse-JDT-Compiler&Bundle-Version=4.4.2
      mvn:org.kie/kie-api/6.5.0.Final
      mvn:org.kie/kie-internal/6.5.0.Final
      mvn:org.mvel/mvel2/2.2.8.Final
      wrap:mvn:javax.enterprise/cdi-api/1.0-SP4
  Bundles to refresh:
    javax.transaction-api/1.2.0 (Should be wired to:
wrap_file__home_its_.m2_repository_javax_enterprise_cdi-api_1.0-SP4_cdi-api-1.0-SP4.jar/0.0.0
(through [javax.transaction-api/1.2.0] osgi.wiring.package;
filter:="(osgi.wiring.package=javax.enterprise.context)"))
    org.apache.aries.jpa.support/2.3.0 (Wired to javax.transaction-api/1.2.0
which is being refreshed)
    org.apache.camel.camel-blueprint/2.17.3 (Wired to
org.apache.camel.camel-core/2.17.3 which is being refreshed)
    org.apache.camel.camel-catalog/2.17.3 (Wired to
org.apache.camel.camel-core/2.17.3 which is being refreshed)
    org.apache.camel.camel-commands-core/2.17.3 (Wired to
org.apache.camel.camel-core/2.17.3 which is being refreshed)
    org.apache.camel.camel-core/2.17.3 (Wired to
org.apache.servicemix.bundles.spring-tx/3.2.17.RELEASE_1 which is being
refreshed)
    org.apache.camel.camel-cxf/2.17.3 (Wired to
org.apache.camel.camel-core/2.17.3 which is being refreshed)
    org.apache.camel.camel-cxf-transport/2.17.3 (Wired to
org.apache.camel.camel-core/2.17.3 which is being refreshed)
    org.apache.camel.camel-spring/2.17.3 (Wired to
org.apache.camel.camel-core/2.17.3 which is being refreshed)
    org.apache.camel.karaf.camel-karaf-commands/2.17.3 (Wired to
org.apache.camel.camel-core/2.17.3 which is being refreshed)
    org.apache.cxf.cxf-core/3.1.7 (Wired to
org.springframework.osgi.core/1.2.1 which is being refreshed)
    org.apache.cxf.cxf-rt-bindings-soap/3.1.7 (Wired to
org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1 which is being
refreshed)
    org.apache.cxf.cxf-rt-bindings-xml/3.1.7 (Wired to
org.apache.cxf.cxf-core/3.1.7 which is being refreshed)
    org.apache.cxf.cxf-rt-databinding-jaxb/3.1.7 (Wired to
org.apache.cxf.cxf-core/3.1.7 which is being refreshed)
    org.apache.cxf.cxf-rt-frontend-jaxrs/3.1.7 (Wired to
org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1 which is being
refreshed)
    org.apache.cxf.cxf-rt-frontend-jaxws/3.1.7 (Wired to
org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1 which is being
refreshed)
    org.apache.cxf.cxf-rt-frontend-simple/3.1.7 (Wired to
org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1 which is being
refreshed)
    org.apache.cxf.cxf-rt-management/3.1.7 (Wired to
org.apache.cxf.cxf-core/3.1.7 which is being refreshed)
    org.apache.cxf.cxf-rt-rs-client/3.1.7 (Wired to
org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1 which is being
refreshed)
    org.apache.cxf.cxf-rt-rs-extension-providers/3.1.7 (Wired to
org.apache.cxf.cxf-core/3.1.7 which is being refreshed)
    org.apache.cxf.cxf-rt-rs-extension-search/3.1.7 (Wired to
org.apache.cxf.cxf-core/3.1.7 which is being refreshed)
    org.apache.cxf.cxf-rt-rs-service-description/3.1.7 (Wired to
org.apache.cxf.cxf-core/3.1.7 which is being refreshed)
    org.apache.cxf.cxf-rt-transports-http/3.1.7 (Wired to
org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1 which is being
refreshed)
    org.apache.cxf.cxf-rt-transports-http-jetty/3.1.7 (Wired to
org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1 which is being
refreshed)
    org.apache.cxf.cxf-rt-wsdl/3.1.7 (Wired to org.apache.cxf.cxf-core/3.1.7
which is being refreshed)
    org.apache.karaf.bundle.springstate/4.0.7 (Wired to
org.springframework.osgi.core/1.2.1 which is being refreshed)
    org.apache.servicemix.bundles.javax-inject/1.0.0.2 (Bundle will be
uninstalled)
    org.apache.servicemix.bundles.spring-aop/3.2.17.RELEASE_1 (Wired to
org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1 which is being
refreshed)
    org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1 (Wired to
org.apache.servicemix.bundles.javax-inject/1.0.0.2 which is being refreshed)
    org.apache.servicemix.bundles.spring-context/3.2.17.RELEASE_1 (Wired to
org.apache.servicemix.bundles.javax-inject/1.0.0.2 which is being refreshed)
    org.apache.servicemix.bundles.spring-context-support/3.2.17.RELEASE_1
(Wired to org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1 which
is being refreshed)
    org.apache.servicemix.bundles.spring-tx/3.2.17.RELEASE_1 (Wired to
javax.transaction-api/1.2.0 which is being refreshed)
    org.eclipse.jetty.plus/9.2.19.v20160908 (Wired to
javax.transaction-api/1.2.0 which is being refreshed)
    org.hibernate.core/5.2.3.Final (Wired to javax.transaction-api/1.2.0
which is being refreshed)
    org.hibernate.osgi/5.2.3.Final (Wired to javax.transaction-api/1.2.0
which is being refreshed)
    org.springframework.osgi.core/1.2.1 (Wired to
org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1 which is being
refreshed)
    org.springframework.osgi.extender/1.2.1 (Wired to
org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1 which is being
refreshed)
    org.springframework.osgi.extensions.annotations/1.2.1 (Wired to
org.apache.servicemix.bundles.spring-beans/3.2.17.RELEASE_1 which is being
refreshed)
   
wrap_file__home_its_.m2_repository_javax_enterprise_cdi-api_1.1_cdi-api-1.1.jar/0.0.0
(Should be wired to:
org.apache.geronimo.specs.geronimo-atinject_1.0_spec/1.0.0 (through
[wrap_file__home_its_.m2_repository_javax_enterprise_cdi-api_1.1_cdi-api-1.1.jar/0.0.0]
osgi.wiring.package; filter:="(osgi.wiring.package=javax.inject)";
resolution:=optional))

But the refresh after the install isn't the problem. The infinite restart
starts after the first restart of karaf with increasing memory usage. So I
think the problem is related to a bundle that wasn't refreshed during the
install of drools-module.

Maybe you are right and it is not a complete restart. I only saw the KARAF
logo in the console and the SimpleFileLock in the karaf.log like on startup
of karaf.



--
View this message in context: http://karaf.922171.n3.nabble.com/Installing-drools-module-causing-infinite-karaf-restart-tp4048644p4048651.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Installing drools-module causing infinite karaf restart

Posted by Guillaume Nodet <gn...@apache.org>.
The best way to test the behavior is to install all your features but the
drools one, then, in the console run
>  feature:install --simulate --verbose drools-module

The output should give you a list of bundle refreshed and causes.  I ran it
and I ended up with a refresh of the karaf shell-core bundle (which is
maybe what you identified as a restart, but it's not a full restart) caused
by an update of the aries-util bundle.

And no, there's currently no way to disable the auto refresh behavior when
installing boot features.

2016-11-18 8:25 GMT+01:00 cniehues <ch...@its-telco.de>:

> But javax.mail is also present without drools-module and I don't understand
> why it should cause a restart. And isn't no-auto-refresh disabled by
> default
> when using feature:install?
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.
> com/Installing-drools-module-causing-infinite-karaf-
> restart-tp4048644p4048649.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 
------------------------
Guillaume Nodet
------------------------
Red Hat, Open Source Integration

Email: gnodet@redhat.com
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/

Re: Installing drools-module causing infinite karaf restart

Posted by cniehues <ch...@its-telco.de>.
But javax.mail is also present without drools-module and I don't understand
why it should cause a restart. And isn't no-auto-refresh disabled by default
when using feature:install?



--
View this message in context: http://karaf.922171.n3.nabble.com/Installing-drools-module-causing-infinite-karaf-restart-tp4048644p4048649.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Installing drools-module causing infinite karaf restart

Posted by Guillaume Nodet <gn...@apache.org>.
The reason is certainly because you end up installing javax.mail which is
an optional dependency of pax-logging-service.
Unfortunately, the boot features installer does not have a way to specify
installation options, such as the --no-auto-refresh option you have on the
features:install command.
One work around would be to make sure javax.mail is installed in the
startup phase so that it won't cause a refresh.

2016-11-17 13:38 GMT+01:00 cniehues <ch...@its-telco.de>:

> Hello,
>
> when I install the drools-module 5.2.3.Final feature in karaf 4.0.7 beside
> jpa, hibernate and camel-cxf it will cause infinite restart loop after the
> first restart. The strange thing about it is that this behaviour only
> occurs
> when I deploy it with a feature file. If I do it with manual steps from the
> console everything is fine.
>
> You should be able to reproduce it with afresh karaf 4.0.7 and the
> following
> feature:
>
> <features name="osgi-test"
> xmlns="http://karaf.apache.org/xmlns/features/v1.3.0">
>
> <repository>mvn:org.apache.camel.karaf/apache-camel/2.17.
> 3/xml/features</repository>
>
> <repository>mvn:org.drools/drools-karaf-features/6.5.0.
> Final/xml/features</repository>
>
> <repository>mvn:org.hibernate/hibernate-osgi/5.2.3.Final/
> xml/karaf</repository>
>
>     <feature name='osgi-test' description='pra-osgi-feature'
> version='1.0.0'>
>         <feature>jpa</feature>
>         <feature>hibernate-orm</feature>
>         <feature>camel-cxf</feature>
>                   <feature>drools-module</feature>
>     </feature>
> </features>
>
> I already took a look at the logfiles but saw no hint about what's causing
> this issue.
>
> btw: is the automatic restart a configurable behaviour?
>
> Cheers
> Christian
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.
> com/Installing-drools-module-causing-infinite-karaf-restart-tp4048644.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 
------------------------
Guillaume Nodet
------------------------
Red Hat, Open Source Integration

Email: gnodet@redhat.com
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/