On Fri, Feb 26, 2016 at 1:20 PM, Achim Nierbeck <[email protected]> wrote:
> Glad it finally did work for you :-)
Sadly, it does not work quite well enough to turn it on by default. I
have multiple test classes in the project that test different Karaf
assemblies, and an attempt to just run 'mvn' and test all of them
fails with excitement such as:
2016-02-26 13:04:19,424 | WARN | FelixStartLevel | Activator
| 237 - org.ops4j.pax.exam.rbc - 4.8.0 | No such Object
bound 170ba024-4550-44b4-bf17-1186f278e6b4
java.rmi.NoSuchObjectException: no such object in table
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:276)[:1.8.0_60]
at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:253)[:1.8.0_60]
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:379)[:1.8.0_60]
at sun.rmi.registry.RegistryImpl_Stub.unbind(Unknown Source)[:1.8.0_60]
at
org.ops4j.pax.exam.rbc.internal.Activator.stop(Activator.java:154)[237:org.ops4j.pax.exam.rbc:4.8.0]
at
org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:719)[org.apache.felix.framework-5.4.0.jar:]
at
org.apache.felix.framework.Felix.stopBundle(Felix.java:2610)[org.apache.felix.framework-5.4.0.jar:]
at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1389)[org.apache.felix.framework-5.4.0.jar:]
at
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)[org.apache.felix.framework-5.4.0.jar:]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_60]
>
>
>
> 2016-02-26 18:16 GMT+01:00 Benson Margulies <[email protected]>:
>>
>> Oh, never mind. Dumb mistake
>>
>> On Fri, Feb 26, 2016 at 12:12 PM, Benson Margulies <[email protected]>
>> wrote:
>> > It does not seem to matter what I put in logback-test.xml, I get:
>> >
>> > 12:06:48.959 [main] INFO o.o.pax.exam.spi.DefaultExamSystem - Pax
>> > Exam System (Version: 4.8.0) created.
>> > 12:06:48.963 [main] DEBUG o.ops4j.store.intern.TemporaryStore -
>> > Storage Area is
>> > /var/folders/80/5l86669j3278_x4hlpntlz380000gp/T/1456506408962-0
>> >
>> >
>> >
>> >
>> > On Fri, Feb 26, 2016 at 12:02 PM, Benson Margulies
>> > <[email protected]> wrote:
>> >> That did it. All I have to do is figure out how to shut up the DEBUG
>> >> logging.
>> >>
>> >> On Fri, Feb 26, 2016 at 11:41 AM, Achim Nierbeck
>> >> <[email protected]> wrote:
>> >>> As little hint,
>> >>> Check the PAX Web integration tests.
>> >>> The embedded tests did work for me with that setup.
>> >>>
>> >>> Regards, Achim
>> >>>
>> >>> sent from mobile device
>> >>>
>> >>> Am 26.02.2016 5:20 nachm. schrieb "Benson Margulies"
>> >>> <[email protected]>:
>> >>>>
>> >>>> I am failing to come up with a working set of pom dependencies for
>> >>>> the
>> >>>> karaf pax-exam container with karaf 4.0.4 once I stop putting my
>> >>>> entire assembly's dependency tree in the tree. Has someone got a
>> >>>> working example to share? The tests in the ops4j repo use
>> >>>> org.apache.karaf.features:standard:xml:features:3.0.3:test.
>> >>>>
>> >>>> On Fri, Feb 26, 2016 at 9:20 AM, Benson Margulies
>> >>>> <[email protected]>
>> >>>> wrote:
>> >>>> > I see why.
>> >>>> >
>> >>>> >
>> >>>> >
>> >>>> > /Users/benson/.m2/repository/org/eclipse/birt/runtime/org.eclipse.osgi/3.10.2.v20150203-1939/org.eclipse.osgi-3.10.2.v20150203-1939.jar
>> >>>> >
>> >>>> > is in the classpath, because the stock eclipse features have it as
>> >>>> > a
>> >>>> > dependency, and it has a META-INF file that calls for Equinox!
>> >>>> >
>> >>>> >
>> >>>> >
>> >>>> > On Fri, Feb 26, 2016 at 9:09 AM, Benson Margulies
>> >>>> > <[email protected]>
>> >>>> > wrote:
>> >>>> >> Now I am really stumped.
>> >>>> >>
>> >>>> >> karaf.framework=felix
>> >>>> >>
>> >>>> >> equinox is _not_ in the classpath any longer.
>> >>>> >>
>> >>>> >> when I run the assembly from command line, it runs felix.
>> >>>> >>
>> >>>> >> But when I launch embedded, it's equinox.
>> >>>> >>
>> >>>> >> I'm continuing to poke.
>> >>>> >>
>> >>>> >>
>> >>>> >> On Fri, Feb 26, 2016 at 8:15 AM, Benson Margulies
>> >>>> >> <[email protected]> wrote:
>> >>>> >>> Achim, I don't know why I have equinox. I have
>> >>>> >>> karaf.framework=felix
>> >>>> >>> in config.properties, since I don't customize that file.
>> >>>> >>>
>> >>>> >>> I might have equinox in my Maven test classpath, should pax-exam
>> >>>> >>> be
>> >>>> >>> respecting that? I can probably get rid of it.
>> >>>> >>>
>> >>>> >>>
>> >>>> >>> On Fri, Feb 26, 2016 at 7:24 AM, Achim Nierbeck
>> >>>> >>> <[email protected]> wrote:
>> >>>> >>>> Hi,
>> >>>> >>>>
>> >>>> >>>> I've seen you are using equinox as container. Did you check if
>> >>>> >>>> this
>> >>>> >>>> also
>> >>>> >>>> happens if you use a felix container?
>> >>>> >>>>
>> >>>> >>>> regards, Achim
>> >>>> >>>>
>> >>>> >>>>
>> >>>> >>>> 2016-02-26 3:51 GMT+01:00 Benson Margulies
>> >>>> >>>> <[email protected]>:
>> >>>> >>>>>
>> >>>> >>>>> Here is a thread dump of all things stuck when trying to use
>> >>>> >>>>> pax-exam
>> >>>> >>>>> 4.8.0 with runEmbedded(true), and the thing eventually times
>> >>>> >>>>> out.
>> >>>> >>>>>
>> >>>> >>>>> https://gist.github.com/benson-basis/dafe72561c5ee6d1c1d6
>> >>>> >>>>
>> >>>> >>>>
>> >>>> >>>>
>> >>>> >>>>
>> >>>> >>>> --
>> >>>> >>>>
>> >>>> >>>> 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/>
>> >>>> >>>> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>> >>>> >>>>
>> >>>> >>>> Software Architect / Project Manager / Scrum Master
>> >>>> >>>>
>
>
>
>
> --
>
> 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/>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>
> Software Architect / Project Manager / Scrum Master
>