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
        at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:666)
        at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:449)
        at
org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:367)
        at 
org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:279)
        at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:137)
        at org.apache.openejb.OpenEJB.init(OpenEJB.java:286)
        at org.apache.openejb.OpenEJB.init(OpenEJB.java:265)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

I get the same effect, when running outside Eclipse with a top-level
(multi-module root) mvn test. Strange enough an individual mvn test within
the quartz-beans module does not have the matching issue. 

Why does the quartz RAR MDB Container only get created in some cases,
causing the matching to fail ? I am confused. 

Thanks for any help and cheers, Christian.
-- 
View this message in context: 
http://www.nabble.com/Problem-Running-quartz-app-RAR-JUnit-Test-tp26073540p26073540.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to