Done: http://paxexam.ops4j.org/space/FAQ

On Fri, Oct 9, 2009 at 12:29 PM, Gert Vanthienen
<[email protected]>wrote:

> Alin & Toni,
>
> Thanks for the help and explanation! How about we automatically add it
> if we find we're running on an IBM JDK, so it only gets provisioned
> when necessary?  Given that this is the first time this things comes
> up on the mailing lists, it might be a better solution to just add it
> to the FAQs for now though.
>
> Regards,
>
> Gert Vanthienen
> ------------------------
> Open Source SOA: http://fusesource.com
> Blog: http://gertvanthienen.blogspot.com/
>
>
>
> 2009/10/9 Alin Dreghiciu <[email protected]>:
> > Gert,
> > That is a "known" bug in IBM JDK and it was also present in earlier java
> 5
> > versions. The problem is that IBM should not fail if there is he
> encounters
> > an unknown annotation. But it does.
> > To avoid that you should indeed do what you mentioned. I'm not sure if we
> > should or not include that as default. After all we do not use it in
> runtime
> > so provisioning is useless.
> > On Fri, Oct 9, 2009 at 10: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
> >
> >
> >
> > --
> > Alin Dreghiciu
> > Software Developer
> > My profile: http://www.linkedin.com/in/alindreghiciu
> > My blog: http://adreghiciu.blogspot.com
> > http://www.ops4j.org - New Energy for OSS Communities - Open
> Participation
> > Software.
> > http://www.qi4j.org - New Energy for Java - Domain Driven Development.
> >
> > _______________________________________________
> > general mailing list
> > [email protected]
> > http://lists.ops4j.org/mailman/listinfo/general
> >
> >
>
> _______________________________________________
> 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

Reply via email to