Validating jdoconfig with incorrect url

前端 未结 4 1603
长情又很酷
长情又很酷 2020-12-15 10:31

I am using jdo and configuring the persistence manager with jdoconfig.xml

However everywhere I find documentation about jdoconfig.xml it states that http://java.sun.

相关标签:
4条回答
  • 2020-12-15 10:47

    In eclipse build path is pointing to the eclipse plugin jars, when i clean(removed the plugin path) my build path , i am facing the issue suddenly so i changed the xmlns path like below it was worked.

        <?xml version="1.0" encoding="UTF-8" ?>
        <jdoconfig xmlns="http://xmlns.jcp.org/xml/ns/jdo/jdoconfig"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/jdo/jdoconfig">  
    
    0 讨论(0)
  • 2020-12-15 10:54

    Changing jdoconfigile to use below worked for me.

       <jdoconfig xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/jdo/jdo
    
    0 讨论(0)
  • 2020-12-15 11:08

    The xmlns is not a real file/directory, more a namespace, so ought not exist! The version is appended to get the real XSD file, namely http://java.sun.com/xml/ns/jdo/jdoconfig_3_0.xsd

    Maybe

    <jdoconfig xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig http://java.sun.com/xml/ns/jdo/jdoconfig_3_0.xsd">
    
    0 讨论(0)
  • 2020-12-15 11:14

    Just replace

    xsi:noNamespaceSchemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig">
    

    with

    xsi:schemaLocation="http://java.sun.com/xml/ns/jdo/jdoconfig http://java.sun.com/xml/ns/jdo/jdoconfig_3_0.xsd"
    
    0 讨论(0)
提交回复
热议问题