Jump to content
We've recently updated our Privacy Statement, available here ×

org.xml.sax.driver problem


Recommended Posts

By: Ralph Schaer - rasch

org.xml.sax.driver problem

2002-07-24 01:37

I have some problem to run the jasperreport sample programs with JDK 1.4.

 

org.xml.sax.SAXException: System property org.xml.sax.driver not specified

 

I think the problem is that JRXmlLoader does not use the prefered way to load

an SAX Parser.

 

XMLReader xmlReader = XMLReaderFactory.createXMLReader();

xmlReader.setFeature("http://xml.org/sax/features/validation", true);

 

IMHO this is a better and more standard way to do the same task that:

 

SAXParserFactory factory = SAXParserFactory.newInstance();

factory.setValidating(true);

XMLReader xmlReader = factory.newSAXParser().getXMLReader();

 

 

 

 

By: Teodor Danciu - teodord

RE: org.xml.sax.driver problem

2002-08-05 00:13

 

Hi,

 

No, this is not the problem.

 

The problem is that you didn't provide a value

for the system property "org.xml.sax.driver".

You can do this using the -D switch when

you launch the JVM.

Its value depends on the XML parser you are using.

 

Check the samples to see how this is done using

the ANT tool. There we parse the XML file using

Xerces.

 

I hope this helps.

Teodor

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...