Hi Kris,

Is your Kar contains a repository folder ?

To be valid, the kar should ship a Maven like structure in a repository folder. For instance:

repository/groupId/artifactId/version/artifact-version.jar
repository/groupId/artifactId/version/features-features.xml
etc

The create-kar goal in the features-maven-plugin do it for you (starting from a features XML).

Regards
JB

On 04/19/2012 12:47 PM, kmoens wrote:
Hi,

My goal is to have some custom bundles that I grouped in a KAR file and want
them to be available when my karaf instance boots.

mykar.kar contains:

mykar-features-1.0.xml
mybundle1.jar
mybundle2.jar

Content of mykar-features-1.0.xml:

<?xml version="1.0" encoding="UTF-8"?>
<features>
<feature name="mykar" version="1.0">
<bundle>file:mybundle1.jar</bundle>
<bundle>file:mybundle2.jar</bundle>
</feature>
</features>

The first attempt was to see what happens if I deploy the KAR file to the
instance deploy folder:
The KAR file contents (features file and both jars) get extracted under the
instances/myinst/system folder root level, that's it. Nothing further
happens :(

In the log file I observe that the KarArtifactInstaller displays "Found a
.kar file to deploy" and then "Installing KAR file ..."

I would expect to have my bundles available, features:list do not show them.

What am I missing?

Using karaf 2.2.5

Thanks for any advise on this.

BRs,
Kris






--
View this message in context: 
http://karaf.922171.n3.nabble.com/Kar-file-deploy-issue-tp3922678p3922678.html
Sent from the Karaf - User mailing list archive at Nabble.com.

--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to