[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
job.xml not read from jar  XML
Forum Index -> Quartz
Author Message
sonamzam

neo

Joined: 01/04/2010 01:26:41
Messages: 8
Offline

Hi
in my quartz.properties I have added 2 xml file entries (job_from_jar.xml, job_local.xml) for org.quartz.plugin.jobInitializer.fileNames. Out of which job_from_jar.xml is in jar.
job_from_jar.xml is not being read and throwing file not found exception at following line in org.quartz.plugins.xml.JobInitializationPlugin.

Code:
URL url = classLoadHelper.getResource(getFileName());




Although when job_from_jar.xml is moved in (i.e in direct class path) everything seems to be working fine. It reads and executes the Job class (which is still in the jar) without giving any error.


I am using Quartz 1.6.6
I think its a bug in quartz API. Please help

thanks

QrtzHelp

journeyman

Joined: 01/16/2010 09:44:00
Messages: 33
Offline


Are you sure that line throws a file not found exception? getResourceAsStream() is supposed to return null if the file isn't found.
sonamzam

neo

Joined: 01/04/2010 01:26:41
Messages: 8
Offline

Sorry one correction.
It returns null at the line specified above.

gyan10

ophanim

Joined: 06/28/2011 23:15:25
Messages: 697
Offline

This is very old thread.It seems that issue had been resolved.Please let us know if further information is needed.
Thanks

Gyan Awasthi
Terracotta -A Software AG company
 
Forum Index -> Quartz
Go to:   
Powered by JForum 2.1.7 © JForum Team