JBoss AS6 and Quartz 1.8.4 Not Finding Properties
jbosslars Feb 1, 2011 3:07 PMWe're trying to upgrade from JBoss 5 to JBoss 6, and step up to Quartz 1.8.4 in the process. I have been completely unsuccessful in getting JBoss 6 to load my quartz.properties file and am looking for advice from someone who has succeeded at this, or someone who knows how this is supposed to happen.
The files
my-quartz.properties (scaled back for testing), which contains:
org.quartz.scheduler.instanceName = QuartzScheduler
org.quartz.scheduler.instanceId = AUTO
org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool
org.quartz.threadPool.threadCount = 5
org.quartz.threadPool.threadPriority = 5
org.quartz.jobStore.misfireThreshold = 60000
org.quartz.jobStore.class = org.quartz.simpl.RAMJobStore
properties-service.xml, which contains:
<attribute name="Properties">
org.quartz.properties=${jboss.server.config.url}my-quartz.properties
</attribute>
Actions Attempted
I've tried placing the my-quartz.properties file in %JBOSS_HOME%/bin, %JBOSS_HOME%/server/default/conf, and %JBOSS_HOME%/server/default/deploy - with a failed load defaulting back to the quartz.properties in the quartz jar (see Results, Part 2).
I ran across a thread yesterday about updating %JBOSS_HOME%/server/default/deply/properties-service.xml, which I'm including here.
The Results, Part 1
When updating properties-service.xml and restarting JBoss, it throws the following error:
13:16:51,614 INFO [[/QuartzTest]] QuartzInitializer: Quartz Scheduler failed to initialize: org.quartz.SchedulerException: Properties file: 'file:/Users/me/jboss-6.0.0.Final/server/default/conf/my-quartz.properties' could not be found.
Yet if I run this from a command prompt, it displays the file contents just fine:
less /Users/me/jboss-6.0.0.Final/server/default/conf/my-quartz.properties
Note that is exactly the file JBoss says it cannot find.
The file exists, it has the proper permissions, yet JBoss cannot find it. To confirm it's not a permissions issue I ran JBoss as root and received the same error.
The Results, Part 2
Before finding the properties-service.xml solution, I tried locating my-quartz.properties in the classpath (%JBOSS_HOME%/bin, %JBOSS_HOME%/server/default/conf, and %JBOSS_HOME%/server/default/deploy). When started, JBoss throws the following info message:
13:32:55,896 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
Again, it obviously cannot locate the file.
Prologue
I'm completely stumped. Nothing I have tried has been able to be loaded by JBoss. Anyone have any ideas?
Thanks,
Larry