Return-Path: Delivered-To: apmail-openejb-users-archive@www.apache.org Received: (qmail 9928 invoked from network); 1 Nov 2009 00:13:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Nov 2009 00:13:49 -0000 Received: (qmail 48482 invoked by uid 500); 1 Nov 2009 00:13:48 -0000 Delivered-To: apmail-openejb-users-archive@openejb.apache.org Received: (qmail 48430 invoked by uid 500); 1 Nov 2009 00:13:48 -0000 Mailing-List: contact users-help@openejb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openejb.apache.org Delivered-To: mailing list users@openejb.apache.org Received: (qmail 48419 invoked by uid 99); 1 Nov 2009 00:13:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Nov 2009 00:13:47 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of david.blevins@visi.com designates 208.42.176.213 as permitted sender) Received: from [208.42.176.213] (HELO g2host.com) (208.42.176.213) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Nov 2009 00:13:37 +0000 Received: from [71.106.81.39] (account dblevins@visi.com HELO [192.168.42.2]) by mailfront2.g2host.com (CommuniGate Pro SMTP 5.1.16) with ESMTPSA id 125622661 for users@openejb.apache.org; Sat, 31 Oct 2009 19:13:16 -0500 Message-Id: <6101ED7F-9C84-4710-A407-E809AAD5692E@visi.com> From: David Blevins To: users@openejb.apache.org In-Reply-To: <26073540.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: Problem Running quartz-app RAR JUnit Test Date: Sat, 31 Oct 2009 17:13:14 -0700 References: <26073540.post@talk.nabble.com> X-Mailer: Apple Mail (2.936) X-Virus-Checked: Checked by ClamAV on apache.org On Oct 27, 2009, at 12:54 AM, thabach wrote: > > Heya > > I am investigating RAR support in OpenEJB and was playing with the > quartz-app from some earlier post ( > http://www.nabble.com/need-help-getting-quartz-ra.rar-file-to-deploy-td18531000.html#a18538001 > http://www.nabble.com/need-help-getting-quartz-ra.rar-file-to-deploy-td18531000.html#a18538001 > ). > > When running a top-level mvn clean install the tests are executed > fine. > Running the quartz-beans module test from within Eclipse as a JUnit > test, > leads to a problem in matching the message listener interface of the > MDB > against the message listener interface of the automatically deployed > MdbContainer and yields this: > > org.apache.openejb.OpenEJBException: Creating application failed: > classpath.ear: Error deploying 'TimerJob'. Exception: class > org.apache.openejb.OpenEJBException: Deployment 'TimerJob' has message > listener interface org.quartz.Job but this MDB container only supports > interface javax.jms.MessageListener: Deployment 'TimerJob' has message > listener interface org.quartz.Job but this MDB container only supports > interface javax.jms.MessageListener It seems there's something about the way the Eclipse project is setup that does not match the Maven setup. If Eclipse isn't including the META-INF/ra.xml file in the classpath, then OpenEJB will not be able to see and deploy the resource adapter and create the required MDB container. Try a little test code like this to verify your Eclipse setup: import junit.framework.TestCase; import java.net.URL; public class ClasspathTest extends TestCase { public void test() throws Exception { URL raXml = this.getClass().getResource("META-INF/ra.xml"); assertNotNull("There is no resource adapter in the classpath", raXml); } } Hope that helps! -David