karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Nodet <gno...@apache.org>
Subject Re: Installing drools-module causing infinite karaf restart
Date Fri, 18 Nov 2016 09:58:40 GMT
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 <christian.niehues@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/

Mime
View raw message