Failed to read schema document

This should cover W3C XML Schema, Relax NG and DTD related problems.
ctammes
Posts: 2
Joined: Tue Nov 20, 2007 11:02 am

Failed to read schema document

Post by ctammes »

Using Eclipse, I get this error:
[Xerces] schema_reference.4: Failed to read schema document 'http://maven.apache.org/maven-v4_0_0.xsd'
on this line in a xml document:

Code: Select all

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
The console reports:
XMLSchema XML Error Scanner - start scanning file:/C:/MBWorkspace/eclipse/utilityBatch/pom.xml with schema(s): http://maven.apache.org/maven-v4_0_0.xsd
When I use another XML editor in Eclipse (Faces Config Editor), no error is reported.

Any suggestions?

Chris.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

I think no error is reported in the XML editor of the other plugin because you did not validate the opened file file:/C:/MBWorkspace/eclipse/utilityBatch/pom.xml in that plugin or because the connection to http://maven.apache.org/maven-v4_0_0.xsd for the validation operation requires a proxy server which is set correctly for that plugin but is not set correctly in the oXygen plugin. The oXygen plugin reports the error when the XML file is validated either when you run the Validate Document action or when the Validate as you type feature validates the file when you open the file or modify it. The Validate as you type feature is enabled in Window -> Preferences -> oXygen -> Editor -> Document Checking. If connecting to http://maven.apache.org/maven-v4_0_0.xsd requires a proxy server you have to set it in Window -> Preferences -> oXygen -> HTTP/FTP/Proxy Configuration.


Regards,
Sorin
ctammes
Posts: 2
Joined: Tue Nov 20, 2007 11:02 am

Post by ctammes »

Thanks, it was the (missing) proxy setting.
Post Reply