From users-return-21408-apmail-tomee-users-archive=tomee.apache.org@tomee.apache.org Thu Sep 3 07:24:29 2015 Return-Path: X-Original-To: apmail-tomee-users-archive@www.apache.org Delivered-To: apmail-tomee-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CDE7210603 for ; Thu, 3 Sep 2015 07:24:29 +0000 (UTC) Received: (qmail 6781 invoked by uid 500); 3 Sep 2015 07:24:29 -0000 Delivered-To: apmail-tomee-users-archive@tomee.apache.org Received: (qmail 6750 invoked by uid 500); 3 Sep 2015 07:24:29 -0000 Mailing-List: contact users-help@tomee.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@tomee.apache.org Delivered-To: mailing list users@tomee.apache.org Received: (qmail 6738 invoked by uid 99); 3 Sep 2015 07:24:29 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Sep 2015 07:24:29 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id E5B831AB453 for ; Thu, 3 Sep 2015 07:24:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.194 X-Spam-Level: **** X-Spam-Status: No, score=4.194 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 0tjCONq8wxdn for ; Thu, 3 Sep 2015 07:24:15 +0000 (UTC) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com [209.85.215.46]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 8D13B210D6 for ; Thu, 3 Sep 2015 07:24:14 +0000 (UTC) Received: by lamp12 with SMTP id p12so21346260lam.0 for ; Thu, 03 Sep 2015 00:24:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=qNiEvlvdI5F56Y4F+npRppQ5rYmgjo7sGfDR0TgqmmI=; b=KyC4oPRp2iXCWpIlWOpL7jJX0xp44PyCZ5p2FNPThUFl1FalCWESl4UEuTHeJQxCFN WUJr7wkJCO+upYPiTFTKyaAVZTSMgC3mFNvBLWw9YRTc2TBkBVJd9A4qjDdDL3LOmd1i k6RjmXe8cozEfVwg+97pPMhOz67HxYe40KGrkLL9PLAur7ht1mMaGEJBxbxTEEsj7oUo kNeyz4wRh6gHSqTkCTwirqvyG8lD2J1E3RjSTr6z4a/YMMn2P6YHVKZItrMaxu4pUFZJ SHgBx7bCc6qbgSgLz86TuBSdtf7j7Lxhj9xLH8viB7JiE25uPxumTNxpC1zm71B8fsuR JpNw== X-Received: by 10.112.189.161 with SMTP id gj1mr20022890lbc.20.1441265048199; Thu, 03 Sep 2015 00:24:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.140.37 with HTTP; Thu, 3 Sep 2015 00:23:48 -0700 (PDT) In-Reply-To: <1441245061909-4676071.post@n4.nabble.com> References: <1441245061909-4676071.post@n4.nabble.com> From: Romain Manni-Bucau Date: Thu, 3 Sep 2015 09:23:48 +0200 Message-ID: Subject: Re: AnnotationFinder failed - where to start? To: "users@tomee.apache.org" Content-Type: multipart/alternative; boundary=001a11c36e4a39a88b051ed2ab87 --001a11c36e4a39a88b051ed2ab87 Content-Type: text/plain; charset=UTF-8 Hi the cause is logged normally few side notes: - no problem using lombok - openejb-core snapshot is 7.0.0-SNAPSHOT Romain Manni-Bucau @rmannibucau | Blog | Github | LinkedIn | Tomitriber 2015-09-03 3:51 GMT+02:00 cfnz : > Hi first off... I am new to TomEE and any EE/CDI in general... (so please > forgive my ignorance) > > So I was just trying to take the Movies jpa-eclipselink example (which > works) and make it work in my test project which has quite a few JPA > Entities. > > It has taken me a while to figure out that my Stateful bean is not being > discovered rather than it being a problem with my EJB Container and Context > stuff... > > I managed to miss the log messages because of all the other Eclipse Link > log > stuff that filled up by console window cache... once I reduced that, I > found > I was looking in the wrong direction... maybe not a Context thing at all > rather my Stateful bean was not getting found in the first place. > > So now I have the following from the log: > > WARNING - Unable to scrape for @Stateful, @Stateless, @Singleton or > @MessageDriven annotations. AnnotationFinder failed. > java.lang.RuntimeException > at org.apache.xbean.asm5.MethodVisitor.visitTypeAnnotation(Unknown > Source) > at org.apache.xbean.asm5.ClassReader.b(Unknown Source) > at org.apache.xbean.asm5.ClassReader.accept(Unknown Source) > at org.apache.xbean.asm5.ClassReader.accept(Unknown Source) > at > > org.apache.xbean.finder.AnnotationFinder.readClassDef(AnnotationFinder.java:1170) > at > org.apache.xbean.finder.AnnotationFinder.(AnnotationFinder.java:147) > at > org.apache.xbean.finder.AnnotationFinder.(AnnotationFinder.java:160) > at > > org.apache.openejb.config.FinderFactory$OpenEJBAnnotationFinder.(FinderFactory.java:514) > at > org.apache.openejb.config.FinderFactory.newFinder(FinderFactory.java:259) > at > org.apache.openejb.config.FinderFactory.create(FinderFactory.java:113) > at > org.apache.openejb.config.FinderFactory.createFinder(FinderFactory.java:66) > at > > org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:1292) > at > > org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:442) > at > > org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:356) > at > > org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:403) > at > > org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:971) > at > > org.apache.openejb.OpenEjbContainer$Provider.createEJBContainer(OpenEjbContainer.java:314) > at > javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:56) > at > javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:43) > at > > com.hilllaboratories.labsys.model.activitydef.ActivityDefTomeeTest.testActivityDefTomee(ActivityDefTomeeTest.java:40) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:497) > at > > org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85) > at org.testng.internal.Invoker.invokeMethod(Invoker.java:696) > at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:882) > at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1189) > at > > org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124) > at > org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108) > at org.testng.TestRunner.privateRun(TestRunner.java:767) > at org.testng.TestRunner.run(TestRunner.java:617) > at org.testng.SuiteRunner.runTest(SuiteRunner.java:348) > at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:343) > at org.testng.SuiteRunner.privateRun(SuiteRunner.java:305) > at org.testng.SuiteRunner.run(SuiteRunner.java:254) > at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) > at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) > at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224) > at org.testng.TestNG.runSuitesLocally(TestNG.java:1149) > at org.testng.TestNG.run(TestNG.java:1057) > at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111) > at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204) > at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175) > > I have tried this with org.apache.openejb artifactId javaee-api version > 6.0-6 and 7.0-SNAPSHOT, > openejb-core 5.0.0-SNAPSHOT and version 4.7.2. > > Not sure where to head next... > > Was going to look at using the ejb-jar.xml but will have to do some reading > first. Also thought about trying to include/exclude some of my Model dirs > that don't have the EE annotations (I only have one at this stage :-), but > still need to read up on that too. > > So I guess I am just after some direction on how to learn what I need to > know. Any pointers on good tutorials? > > I am not sure what is causing the exception above, is there anyway to see > what class caused the issue. > > I am using Lombok in my model, just in case that messes with anything? > > Thanks for any pointers. > Newbie Colin. > > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/AnnotationFinder-failed-where-to-start-tp4676071.html > Sent from the TomEE Users mailing list archive at Nabble.com. > --001a11c36e4a39a88b051ed2ab87--