Mm, thats interesting.I think i will look into it - but unfortunately not before weekend. So it would be best to raise an issue in jira. Also make sure to include all version informations from Exam,JVM,OS and so on. Thanks in advance. Will then come back to you.
Toni On Fri, Oct 9, 2009 at 9:34 AM, Gert Vanthienen <[email protected]>wrote: > L.S., > > While trying to use Pax Exam on an IBM JDK, we encounter this exception: > java.lang.TypeNotPresentException: Type > org.ops4j.pax.exam.junit.Configuration not present > at > com.ibm.oti.reflect.AnnotationHelper.getAnnotation(AnnotationHelper.java:38) > at > com.ibm.oti.reflect.AnnotationHelper.getDeclaredAnnotations(AnnotationHelper.java:50) > at com.ibm.oti.reflect.Method.getDeclaredAnnotations(Method.java:31) > at java.lang.reflect.Method.getDeclaredAnnotations(Method.java:722) > at > java.lang.reflect.AccessibleObject.getAnnotations(AccessibleObject.java:191) > at com.ibm.oti.reflect.Method.getAnnotation(Method.java:20) > at java.lang.reflect.Method.getAnnotation(Method.java:711) > at > org.ops4j.pax.exam.junit.extender.impl.internal.CallableTestMethodImpl.getAnnotatedMethods(CallableTestMethodImpl.java:295) > at > org.ops4j.pax.exam.junit.extender.impl.internal.CallableTestMethodImpl.runBefores(CallableTestMethodImpl.java:162) > at > org.ops4j.pax.exam.junit.extender.impl.internal.CallableTestMethodImpl.injectContextAndInvoke(CallableTestMethodImpl.java:124) > at > org.ops4j.pax.exam.junit.extender.impl.internal.CallableTestMethodImpl.call(CallableTestMethodImpl.java:101) > ... > > This is being caused by a ClassNotFoundException of the Configuration > class. For now, we can get around this by explicitly adding the > pax-exam-junit bundle to the classpath as shown below. Is there > another configuration options somewhere we need to get this working on > an IBM JDK (i.e. is it a user error we made ourselves?) or should I > raise a JIRA to get this addressed in Pax Exam? > > Option[] ibmOptions = options( > wrappedBundle(maven("org.ops4j.pax.exam", "pax-exam-junit"))); > combine(ibmOptions, options); > > > Regards, > > Gert Vanthienen > ------------------------ > Open Source SOA: http://fusesource.com > Blog: http://gertvanthienen.blogspot.com/ > > _______________________________________________ > general mailing list > [email protected] > http://lists.ops4j.org/mailman/listinfo/general > -- Toni Menzel Independent Software Developer Professional Profile: http://okidokiteam.com [email protected] http://www.ops4j.org - New Energy for OSS Communities - Open Participation Software.
_______________________________________________ general mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/general
