Hi Mark,

did you try to install the feature on a vanilla karaf first?
If it is some issue with Karaf, KAR or feature resolving it's best to start
with a vanilla Karaf and see what happens with a std. Feature, if it fails
there. Did you try to install the bundle itself in Karaf by issuing
bundle:install -s wrap:mvn:com.esotericsoftware.minlog/minlog/1.2
does that work?
If so it has to be something regarding wrap and KAR, if it fails also with
just installing this bundle, it has to be something "esoteric" issue in
your to-wrap bundle :)

regards,  Achim

2014-09-25 9:38 GMT+02:00 Mark Doyle <[email protected]>:

> Hi all,
>
> I've created a custom distribution using a kar built from the karaf maven
> plugin. The feature file was generated by the plugin.
>
> When I start karaf I get the exception below. I've tried both 3.0.1 and
> 3.0.2-SNAPSHOT. After the exception karaf quits.
>
> java.lang.RuntimeException: Error installing bundle listed in
> startup.properties with url:
> wrap:mvn:com.esotericsoftware.minlog/minlog/1.2 and startlevel: 50
> at org.apache.karaf.main.Main.installAndStartBundles(Main.java:384)
> at org.apache.karaf.main.Main.launch(Main.java:245)
> at org.apache.karaf.main.Main.main(Main.java:167)
> Caused by: java.lang.RuntimeException: Could not resolve
> wrap:mvn:com.esotericsoftware.minlog/minlog/1.2
> at
> org.apache.karaf.main.util.SimpleMavenResolver.resolve(SimpleMavenResolver.java:59)
> at org.apache.karaf.main.Main.installAndStartBundles(Main.java:377)
> ... 2 more
>
>
> The jar is not an OSGi bundle hence the features file declaring the wrap
> protocol and it IS in the system folder here:
>
> karaf-dist-0.1.2-SNAPSHOT\system\com\esotericsoftware\minlog\minlog\1.2\minlog-1.2.jar
>
> I've tried moving my feature between bootFeatures, startupFeatures and
> installedFeatures (I don't really understand the difference by the way) for
> the custom dist but it make no difference.
>
> On another note, since this jar won't have an activator and take part in
> the OSGI lifecycle layer I'm wondering why it needs to be started anyway.
> Perhaps that is what boot, startup and installed are for?
>
> Thanks again
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>

Software Architect / Project Manager / Scrum Master

Reply via email to