Did you try with a clean maven repo ?

It's certainly an environment issue as both Jenkins at Apache and my
machine are ok.

By the way, both machines use jdk 11.0.3 (Oracle).

Regards
JB

Le dim. 16 juin 2019 à 08:14, Steinar Bang <[email protected]> a écrit :

> >>>>> Jean-Baptiste Onofré <
> [email protected]>:
>
> > You can't use Felix framework 6 as it's OSGi R7.
>
> I switched to 5.6.12 which is the one that karaf master currently uses,
> but got the same failure as with 6.0.3 ("Error installing bundle listed
> in startup.properties...").
>
> Stack trace included below.
>
> > I will take a look on your branch. I can confirm that karaf itests,
> > including pax jdbc work in itest.
>
> Thanks!
>
> I've tried building karaf (both the master branch and the jdk12 branch)
> on my development system, and I get test errors, so it could be
> something with my setup...?
>
> My setup:
>  debian 9.9 "stretch" (ie. current stable), amd64
>  openjdk-11:amd64 11.0.3+1-1~bpo9+2 (installed with apt-get)
>  maven 3.6.0 (installed from tar-ball)
>
> Stack trace from pax exam startup failure:
> Exception in thread "KarafEmbeddedRunner" java.lang.RuntimeException:
> java.lang.reflect.InvocationTargetException
>         at
> org.ops4j.pax.exam.karaf.container.internal.runner.KarafEmbeddedRunner$1.run(KarafEmbeddedRunner.java:96)
> Caused by: java.lang.reflect.InvocationTargetException
>         at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>         at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>         at
> org.ops4j.pax.exam.karaf.container.internal.runner.KarafEmbeddedRunner$1.run(KarafEmbeddedRunner.java:86)
> Caused by: java.lang.RuntimeException: Error installing bundle listed in
> startup.properties with url:
> mvn:org.apache.karaf.features/org.apache.karaf.features.extension/4.2.5 and
> startlevel: 1
>         at org.apache.karaf.main.Main.installAndStartBundles(Main.java:530)
>         at org.apache.karaf.main.Main.launch(Main.java:273)
>         ... 5 more
> Caused by: org.osgi.framework.BundleException: Could not create bundle
> object.
>         at org.apache.felix.framework.Felix.installBundle(Felix.java:3095)
>         at
> org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:167)
>         at org.apache.karaf.main.Main.installAndStartBundles(Main.java:523)
>         ... 6 more
> Caused by: java.lang.UnsupportedOperationException: Unable to add
> extension bundle.
>         at
> org.apache.felix.framework.ExtensionManager.addExtensionBundle(ExtensionManager.java:439)
>         at org.apache.felix.framework.Felix.installBundle(Felix.java:3061)
>         ... 8 more
>
> --
> --
> ------------------
> OPS4J - http://www.ops4j.org - [email protected]
>
> ---
> You received this message because you are subscribed to the Google Groups
> "OPS4J" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ops4j/86d0jeoy9g.fsf%40dod.no.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
------------------
OPS4J - http://www.ops4j.org - [email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ops4j/CAB8EV3T7Fa_f99HoNNs%3DW0V830ap-X7q26xS2apenFemD%3DbjBw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to