Karaf 4.1.x & features

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Karaf 4.1.x & features

bugzzilla
Windows 10x64. JVM 1.80_181

Some strange problem. Take & run clear Karaf 4.1.6 distributive from
official site, without any additions. Make simple blueprint bundle from
karaf "karaf-blueprint-archetype".

<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 ">
<bean id="serviceBean" class="com.itprofix.simple.MyServiceImpl"/>
<service ref="serviceBean" interface="com.itprofix.simple.MyService"/>
</blueprint>


make jar & than make simple test-feature.xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<features name="test-features-pack"
xmlns="http://karaf.apache.org/xmlns/features/v1.3.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.3.0
http://karaf.apache.org/xmlns/features/v1.3.0">
<feature name="feature-a" version="1.0" description="test A" install="auto">
<bundle start="true"
start-level="82">file:base/simple-bundle-1.0-SNAPSHOT.jar</bundle>
</feature>
</features>


 deploy test-feature.xml. All perfectly. Restart Karaf and it hangs up
loading. What could be the problem?

INFO: Lock acquired. Setting startlevel to 100
2018-09-19T15:14:59,335 | INFO  | FelixStartLevel  | BlueprintExtender              
| 13 - org.apache.aries.blueprint.core - 1.8.3 | No quiesce support is
available, so blueprint components will not participate in quiesce
operations
2018-09-19T15:15:01,692 | INFO  | FelixStartLevel  | FeaturesServiceImpl            
| 10 - org.apache.karaf.features.core - 4.1.6 | The specified feature:
'feature-a' version '1.0.0' is already installed
2018-09-19T15:15:01,694 | INFO  | FelixStartLevel  | FeaturesServiceImpl            
| 10 - org.apache.karaf.features.core - 4.1.6 | Adding features:
feature-a/[1.0.0,1.0.0]
2018-09-19T15:15:03,524 | INFO  | features-1-thread-1 | FeaturesServiceImpl            
| 10 - org.apache.karaf.features.core - 4.1.6 | No deployment change.
2018-09-19T15:15:03,611 | INFO  | features-1-thread-1 | FeaturesServiceImpl            
| 10 - org.apache.karaf.features.core - 4.1.6 | Starting bundles:
2018-09-19T15:15:03,614 | INFO  | features-1-thread-1 | FeaturesServiceImpl            
| 10 - org.apache.karaf.features.core - 4.1.6 |  
org.apache.karaf.deployer.features/4.1.6






--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html