This week's book giveaways are in the Cloud and AI/ML forums.
We're giving away four copies each of Cloud Native Patterns and Natural Language Processing and have the authors on-line!
See this thread and this one for details.
Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Exception using Quartz org.quartz.plugins.xml.JobInitializationPlugin

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am trying to use the plugins provided by Quartz.
This is my quartz.properties


This is the jobs.xml


I have this code in my Web.xml


This the exception I am getting when I start the server, I tried the solution provided on the internet but the entry was the same as the solution provided.


Any help is greatly appreciated.

Thanks
 
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like it is unhappy reading your quartz job configuration file. Have you tried running it through an independent XML editor/parser such as Stylus Studio?
 
Sahana Hegde
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dint check that. I will try that.
 
Sahana Hegde
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply.

I tried to validate xml in Dreamweaver. I have attached the results I got.
How can I correct them?

Thanks
Filename: xmlValidation.bmp
File size: 864 Kbytes
 
Martijn Verburg
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are validating your jobs.xml before filtering takes place (I can see ${0} references etc), can you validate it after thos properties have been evaluated to real values?
 
Sahana Hegde
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I do that?
 
Martijn Verburg
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm, can you upload your file here? I'll try to run it through Stylus Studio
 
Sahana Hegde
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot.

But for some reason it is not allowing me to attach .xml or .txt or .html or .zip format.
This is the entire code I have in jobs.xml




 
Martijn Verburg
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, your problem is that

verison="1.5">

should be

version="1.5">

Notice the small typo

Hope that helps!
 
Sahana Hegde
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot.
But still remains the same.

 
Sahana Hegde
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I noticed this.
If I add


in my quartz.properties I do not get the exception. But the job does not execute either.

Thanks
 
Martijn Verburg
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm a little confused, the original error


..
..
/xml/job_scheduling_data_1_5.xsd
25 Jan 2009 12:26:28,515 ERROR Digester:789 - Digester.getParser:
java.lang.UnsupportedOperationException: This parser does not support specification "null" version "null"
at javax.xml.parsers.SAXParserFactory.setXIncludeAware(Unknown Source)
..
..



Should no longer be there with the fix to the version attribute. Are you getting _exactly_ the same error message?
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had the same problem.
The exception occurred because an old version of the SAXParserFactory was used.
To fix it, I had to remove the xalan, xerces jar file from the classpath so the default SAXParserFactory of the jdk 1.5 would be used.

Hope this will also help you.

Regards,
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!