[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Quartz schema not being picked up?  XML
Forum Index -> Quartz
Author Message
stevecoh

journeyman

Joined: 01/27/2010 09:34:13
Messages: 27
Offline

Is something wrong with the quartz xml schema?

I create a new xml file in eclipse using the suggested schema:

Code:
<?xml version="1.0" encoding="UTF-8"?>
 <quartz xmlns="http://www.quartz-scheduler.org/JobSchedulingData"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://www.quartzscheduler.org/ns/quartz
           http://www.quartz-scheduler.org/xml/job_scheduling_data_1_5.xsd"
         version="1.5">
      <job></job>   
 </quartz>


I validate the schema in Eclipse. Immediately a warning is posted:

No grammar constraints (DTD or XML schema) detected for the document. jobs.xml

I don't see this with other XML files in my workspace. The schemas are found. What's going on here?

stevecoh

journeyman

Joined: 01/27/2010 09:34:13
Messages: 27
Offline

Instead of using the above schema declaration, I made a local schema definition from the schema in the 1.7.1 distribution. Then, declaring the schema as follows:

Code:
<?xml version="1.0" encoding="UTF-8"?>
  <quartz xmlns="http://www.quartz-scheduler.org/JobSchedulingData"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://www.quartz-scheduler.org/JobSchedulingData
            job_scheduling_data_1_5.xsd"
          version="1.5">
  
  </quartz>


I get a workable schema.

The question is, now, what is the correct remote reference for this schema. Something is out of synch here.
jhouse

seraphim
[Avatar]
Joined: 11/06/2009 15:29:56
Messages: 1703
Offline


The new home is:

http://www.quartz-scheduler.org/xml/job_scheduling_data_1_5.xsd
stevecoh

journeyman

Joined: 01/27/2010 09:34:13
Messages: 27
Offline

This doesn't work.

If I look at the schema you reference:

http://www.quartz-scheduler.org/xml/job_scheduling_data_1_5.xsd

there is a comment indicating how this schema is to be used:

Code:
            <quartz xmlns="http://www.opensymphony.com/quartz/JobSchedulingData"
                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                     xsi:schemaLocation="http://www.quartzscheduler.org/ns/quartz
                       http://www.opensymphony.com/quartz/xml/job_scheduling_data_1_5.xsd"
                     version="1.5">


If I follow this comment in my XML file, it won't validate.

Can you please provide a working schema declaration for such files?



jhouse

seraphim
[Avatar]
Joined: 11/06/2009 15:29:56
Messages: 1703
Offline


Yes, the docs within the schema need updated, and actually the whole XML support will be overhauled a good lot in the next release.

In the mean time, this declaration seems to work fine for me:

Code:
 <?xml version="1.0" encoding="UTF-8"?>
 <quartz xmlns="http://www.opensymphony.com/quartz/JobSchedulingData"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://www.opensymphony.com/quartz/JobSchedulingData http://www.quartz-scheduler.org/xml/job_scheduling_data_1_5.xsd">
   <job>
      ....
   </job>
 

stevecoh

journeyman

Joined: 01/27/2010 09:34:13
Messages: 27
Offline

Thanks. This works.

Quite frankly I've never understood how these darned declarations work.
 
Forum Index -> Quartz
Go to:   
Powered by JForum 2.1.7 © JForum Team