(Is this the correct list for help on this plugin? Its web page does not have a
list listed, it is not listed on sf's "Maven Plugins", but it is hosted on sf,
so I am not sure.)
I am using Maven beta 1.1 and trying to get the Validator "3rd party" plugin
working (maven-xhtml-plugin).
The following problem occurs:
Could not start validation: null not found
at org.apache.maven.xhtml.Validator.initValidator (Validator.java:176)
Has anyone seen this before?
The offending lines are:
// turn validation on
try
{
this.xmlReader = XMLReaderFactory.createXMLReader();
this.xmlReader.setFeature(VALIDATION_FEATURE, true);
}
catch (SAXNotRecognizedException e)
{
throw new BuildException("Could not start validation: " +
this.xmlReader + " doesn't provide validation");
}
catch (SAXNotSupportedException e)
{
throw new BuildException("Could not start validation: " +
this.xmlReader + " doesn't provide validation");
}
catch (SAXException e)
{
throw new BuildException("Could not start validation: " +
this.xmlReader + " not found");
}
So a SAXException was thrown, probably by "XMLReaderFactory.createXMLReader()".
>From the Javadoc: "This method uses the value of the system property
"org.xml.sax.driver" as the full name of a Java class and tries to instantiate
that class as a SAX2 XMLReader."
I wonder if I have to set "org.xml.sax.driver" system property?
Or is there an extra config step I need to do that I did not see on the plugin
web site instructions?
Regretfully the real exception message is swallowed. And before I have to get
source and modify and build to see it, I am hoping someone has a quick & easy
answer to the problem! :-)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]