openejb-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Blevins <david.blev...@visi.com>
Subject Re: need help getting quartz-ra.rar file to deploy
Date Fri, 01 Aug 2008 21:41:05 GMT
Ok. Finally got something working here.   New zip available at http// 
issues.apache.org/jira/secure/attachment/12387373/quartz-app.zip

Inside you'll see:

   .
   ./pom.xml
   ./quartz-beans
   ./quartz-beans/pom.xml
   ./quartz-beans/src
   ./quartz-beans/src/main
   ./quartz-beans/src/main/java
   ./quartz-beans/src/main/java/com
   ./quartz-beans/src/main/java/com/example
   ./quartz-beans/src/main/java/com/example/job
   ./quartz-beans/src/main/java/com/example/job/TimerJob.java
   ./quartz-beans/src/main/resources
   ./quartz-beans/src/main/resources/log4j.properties
   ./quartz-beans/src/test
   ./quartz-beans/src/test/java
   ./quartz-beans/src/test/java/com
   ./quartz-beans/src/test/java/com/example
   ./quartz-beans/src/test/java/com/example/job
   ./quartz-beans/src/test/java/com/example/job/QuartzMdbTest.java
   ./quartz-ra
   ./quartz-ra/pom.xml
   ./quartz-ra/src
   ./quartz-ra/src/main
   ./quartz-ra/src/main/resources
   ./quartz-ra/src/main/resources/META-INF
   ./quartz-ra/src/main/resources/META-INF/ra.xml
   ./quartz-ra.jar
   ./README.txt

For some reason, Maven refuses to add .rar files to the test  
classpath.  A .rar file is just a jar that contains other jars and a  
META-INF/ra.xml file, so I went ahead and created a maven module that  
has the ra.xml file and lists the appropriate jars as dependencies.   
All the jars were available online except the jar containing the JBoss  
Quartz Resource Adapter classes, so that jar has to be installed into  
your local maven repo manually (see the README.txt for the command).

Last but not least, here is the maven test output for the quartz-beans  
module:

-------------------------------------------------------
  T E S T S
-------------------------------------------------------
Running com.example.job.QuartzMdbTest
14:31:05,103 DEBUG QuartzMdbTest:19 - Set Initial Context
Apache OpenEJB 3.1-SNAPSHOT    build: 20080801-09:26
http://openejb.apache.org/
INFO - openejb.home = /private/tmp/work/quartz-app/quartz-beans
INFO - openejb.base = /private/tmp/work/quartz-app/quartz-beans
INFO - Configuring Service(id=Default Security Service,  
type=SecurityService, provider-id=Default Security Service)
INFO - Configuring Service(id=Default Transaction Manager,  
type=TransactionManager, provider-id=Default Transaction Manager)
INFO - Found EjbModule in classpath: /private/tmp/work/quartz-app/ 
quartz-beans/target/classes
INFO - Found ConnectorModule in classpath: /private/tmp/work/quartz- 
app/quartz-ra/target/quartz-ra-0.0.1-SNAPSHOT.jar
INFO - Beginning load: /private/tmp/work/quartz-app/quartz-beans/ 
target/classes
INFO - Beginning load: /private/tmp/work/quartz-app/quartz-ra/target/ 
quartz-ra-0.0.1-SNAPSHOT.jar
INFO - Extracting jar: /private/tmp/work/quartz-app/quartz-ra/target/ 
quartz-ra-0.0.1-SNAPSHOT.jar
INFO - Extracted path: /private/tmp/work/quartz-app/quartz-ra/target/ 
quartz-ra-0.0.1-SNAPSHOT
INFO - Configuring enterprise application: classpath.ear
INFO - Configuring Service(id=quartz-ra-0.0.1-SNAPSHOT.jarRA,  
type=Resource, provider-id=quartz-ra-0.0.1-SNAPSHOT.jarRA)
INFO - Configuring Service(id=quartz-ra-0.0.1-SNAPSHOT.jar- 
org.quartz.Job, type=Container, provider-id=Default MDB Container)
INFO - Configuring Service(id=quartz-ra-0.0.1-SNAPSHOT.jar- 
org.quartz.StatefulJob, type=Container, provider-id=Default MDB  
Container)
INFO - Enterprise application "classpath.ear" loaded.
INFO - Assembling app: classpath.ear
INFO - start quartz!!!
DEBUG - endpointActivation, spec=jobName=job. 
0.1217626266122,jobGroup=default,triggerName=trigger. 
1.1217626266122,triggerGroup=default,cronTrigger=0/2 * * * * ? 
volatilityfalsedurabilityfalserecoverablefalse
DEBUG - adding job: jobName=job. 
0.1217626266122,jobGroup=default,triggerName=trigger. 
1.1217626266122,triggerGroup=default,cronTrigger=0/2 * * * * ? 
volatilityfalsedurabilityfalserecoverablefalse
INFO - Created Ejb(deployment-id=TimerJob, ejb-name=TimerJob,  
container=quartz-ra-0.0.1-SNAPSHOT.jar-org.quartz.Job)
INFO - Deployed Application(path=classpath.ear)
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.084  
sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0


Let us know how things go for you.  If there's anything you'd like  
changed in how things work, feel free to make requests.

-David


Mime
View raw message