You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Anton Petrov (JIRA)" <ji...@apache.org> on 2018/09/18 03:57:00 UTC
[jira] [Created] (KARAF-5920) Karaf features
Anton Petrov created KARAF-5920:
-----------------------------------
Summary: Karaf features
Key: KARAF-5920
URL: https://issues.apache.org/jira/browse/KARAF-5920
Project: Karaf
Issue Type: IT Help
Components: karaf
Affects Versions: 4.1.6, 4.1.5
Environment: Windows 10x64, JVM 1.80_181
Reporter: Anton Petrov
Attachments: karaf.log, simple-bundle-1.0-SNAPSHOT.jar, test-features.xml
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_".
{code:java}
<?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>
{code}
make jar & than make simple test-feature.xml
{code:java}
<?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>{code}
deploy test-feature.xml. All perfectly. Restart Karaf and it hangs up loading.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)