Page 1 of 1

Failed to read schema document

Posted: Tue Nov 20, 2007 11:08 am
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.

Posted: Tue Nov 20, 2007 11:47 am
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

Posted: Tue Nov 20, 2007 12:07 pm
by ctammes
Thanks, it was the (missing) proxy setting.