Hi John This could be a jetty integration issue. The same project works fine under tomcat. I am preparing the project and will share it tonight.
Thanks On Sat, May 2, 2015 at 2:34 PM, John D. Ament <[email protected]> wrote: > Do you have a test project you can share via github or something? > > On Sat, May 2, 2015, 17:29 jason zhang <[email protected]> wrote: > > > No. I tried both weld 2.2.6 and 2.2.11 with java 7 and still get the same > > error. > > > > John, did you see the same type of error? > > > > thanks > > > > On Fri, May 1, 2015 at 9:53 AM, jason zhang <[email protected]> > > wrote: > > > > > I tried both java 7 and java 8. I will try weld 2.2.6 tonight to see > > > whether it works or not. > > > > > > -jason > > > > > > On Thu, Apr 30, 2015 at 7:55 PM, John D. Ament <[email protected] > > > > > wrote: > > > > > >> What java version? I've had better luck with weld 2.2.6 and up if you > > can > > >> upgrade. > > >> On Apr 30, 2015 10:26 PM, "jason zhang" <[email protected]> > > wrote: > > >> > > >> > I have an application running under > > >> jetty-distribution-9.2.10.v20150310. I > > >> > am using CDI module from jetty which is weld 2.2.5 final. > > >> > > > >> > I have deltaspike 1.30 in my war. > > >> > When I start my application, I got this error > > >> > > > >> > java.lang.InternalError: Enclosing method not found > > >> > at java.lang.Class.getEnclosingMethod(Class.java:1065) > > >> > at > > >> > > > >> > > > >> > > > sun.reflect.generics.scope.ClassScope.computeEnclosingScope(ClassScope.java:50) > > >> > at > > >> > > > >> > > > >> > > > sun.reflect.generics.scope.AbstractScope.getEnclosingScope(AbstractScope.java:76) > > >> > at > > >> sun.reflect.generics.scope.AbstractScope.lookup(AbstractScope.java:94) > > >> > at > > >> sun.reflect.generics.scope.AbstractScope.lookup(AbstractScope.java:94) > > >> > at > > >> > > > >> > > > >> > > > sun.reflect.generics.factory.CoreReflectionFactory.findTypeVariable(CoreReflectionFactory.java:110) > > >> > at > > >> > > > >> > > > >> > > > sun.reflect.generics.visitor.Reifier.visitTypeVariableSignature(Reifier.java:165) > > >> > at > > >> > > > >> > > > >> > > > sun.reflect.generics.tree.TypeVariableSignature.accept(TypeVariableSignature.java:43) > > >> > at > > >> > > > >> > > > >> > > > sun.reflect.generics.repository.MethodRepository.getReturnType(MethodRepository.java:68) > > >> > at java.lang.reflect.Method.getGenericReturnType(Method.java:255) > > >> > at > > >> > > > >> > > > >> > > > org.jboss.weld.annotated.slim.backed.BackedAnnotatedMethod.<init>(BackedAnnotatedMethod.java:38) > > >> > at > > >> > > > >> > > > >> > > > org.jboss.weld.annotated.slim.backed.BackedAnnotatedMethod.of(BackedAnnotatedMethod.java:32) > > >> > at > > >> > > > >> > > > >> > > > org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$BackedAnnotatedMethods.computeValue(BackedAnnotatedType.java:199) > > >> > at > > >> > > > >> > > > >> > > > org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$BackedAnnotatedMethods.computeValue(BackedAnnotatedType.java:192) > > >> > at org.jboss.weld.util.LazyValueHolder.get(LazyValueHolder.java:35) > > >> > at > > >> > > > >> > > > >> > > > org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$EagerlyInitializedLazyValueHolder.<init>(BackedAnnotatedType.java:160) > > >> > at > > >> > > > >> > > > >> > > > org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$BackedAnnotatedMethods.<init>(BackedAnnotatedType.java:192) > > >> > at > > >> > > > >> > > > >> > > > org.jboss.weld.annotated.slim.backed.BackedAnnotatedType$BackedAnnotatedMethods.<init>(BackedAnnotatedType.java:192) > > >> > at > > >> > > > >> > > > >> > > > org.jboss.weld.annotated.slim.backed.BackedAnnotatedType.<init>(BackedAnnotatedType.java:67) > > >> > at > > >> > > > >> > > > >> > > > org.jboss.weld.annotated.slim.backed.BackedAnnotatedType.of(BackedAnnotatedType.java:48) > > >> > at > > >> > > > >> > > > >> > > > org.jboss.weld.resources.ClassTransformer$TransformClassToBackedAnnotatedType.load(ClassTransformer.java:83) > > >> > at > > >> > > > >> > > > >> > > > org.jboss.weld.resources.ClassTransformer$TransformClassToBackedAnnotatedType.load(ClassTransformer.java:80) > > >> > > > >> > > > >> > I traced down to the problematic class which > > >> > is > org.apache.deltaspike.core.impl.message.MessageBundleExtension$1$1. > > >> > > > >> > Any suggestion? > > >> > > > >> > > > >> > -- > > >> > -jiesheng > > >> > > > >> > > > > > > > > > > > > -- > > > -jiesheng > > > > > > > > > > > -- > > -jiesheng > > > -- -jiesheng
