[ 
http://issues.ops4j.org/browse/PAXEXAM-153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13180#action_13180
 ] 

Toni Menzel commented on PAXEXAM-153:
-------------------------------------

Well, latest pax runner does not supply the osgi compendium bundle 
automatically.
Because of that, we have to do this additionally.
Usually this bundle is added to the default profiles by exam.

Obviously in your case it doesn't.
Will check myself, but in the meantime make sure your workspace (classpath) is 
clean from any older exam releases.

> Unable to run my tests under 1.2.0
> ----------------------------------
>
>                 Key: PAXEXAM-153
>                 URL: http://issues.ops4j.org/browse/PAXEXAM-153
>             Project: Pax Exam
>          Issue Type: Bug
>    Affects Versions: 1.2.0
>         Environment: Mac OS X
> JDK 1.5
>            Reporter: Alan D. Cabrera
>            Assignee: Toni Menzel
>
> This used to work fine under PAX Exam v1.1.0
> check out code https://svn.codehaus.org/livetribe/garden/livetribe-slp/trunk
> and change version to 1.2.0
> You should get this error:
> java.lang.NoClassDefFoundError: org/livetribe/slp/settings/Settings
>         at java.lang.Class.getDeclaredMethods0(Native Method)
>         at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
>         at java.lang.Class.getDeclaredMethods(Class.java:1763)
>         at 
> org.ops4j.pax.exam.junit.extender.impl.internal.CallableTestMethodImpl.call(CallableTestMethodImpl.java:97)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:592)
>         at 
> org.ops4j.pax.exam.rbc.internal.RemoteBundleContextImpl.remoteCall(RemoteBundleContextImpl.java:80)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:592)
>         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
>         at sun.rmi.transport.Transport$1.run(Transport.java:153)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
>         at 
> sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
>         at 
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
>         at java.lang.Thread.run(Thread.java:613)
> I also get this from the console log:
> org.osgi.framework.BundleException: Unable to resolve bundle: missing 
> package(s) or can not resolve all of the them: org.osgi.service.cm
>       at 
> org.knopflerfish.framework.BundleImpl.getUpdatedState(BundleImpl.java:1044)
>       at org.knopflerfish.framework.BundleImpl.start(BundleImpl.java:312)
>       at 
> org.knopflerfish.framework.StartLevelImpl.increaseStartLevel(StartLevelImpl.java:285)
>       at 
> org.knopflerfish.framework.StartLevelImpl$1.run(StartLevelImpl.java:217)
>       at 
> org.knopflerfish.framework.StartLevelImpl.run(StartLevelImpl.java:178)
>       at java.lang.Thread.run(Thread.java:613)
> ## DEBUG: errors - FrameworkErrorEvent throwable: 
> org.osgi.framework.BundleException: Failed, missing package(s) or can not 
> resolve all of the them: org.osgi.service.cm
>       at org.knopflerfish.framework.BundleImpl.start(BundleImpl.java:314)
>       at 
> org.knopflerfish.framework.StartLevelImpl.increaseStartLevel(StartLevelImpl.java:285)
>       at 
> org.knopflerfish.framework.StartLevelImpl$1.run(StartLevelImpl.java:217)
>       at 
> org.knopflerfish.framework.StartLevelImpl.run(StartLevelImpl.java:178)
>       at java.lang.Thread.run(Thread.java:613)
> Framework launched

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.ops4j.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to