Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not validated model.jpa by orm_2_1.xsd #311

Open
vitavitall opened this issue Jan 30, 2019 · 0 comments
Open

Not validated model.jpa by orm_2_1.xsd #311

vitavitall opened this issue Jan 30, 2019 · 0 comments

Comments

@vitavitall
Copy link

Overview of the issue
  1. Downloaded http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/persistence/orm_2_1.xsd
  2. Running xml on xsd in netbeans 8.2
XML validation started.
Checking file:/home/klimovskih/work/loanapplications2/trunk/loanapplications/loanapplications-web/src/main/resources/META-INF/modelXml.xml...
TargetNamespace.1: Expecting namespace 'http://java.sun.com/xml/ns/persistence/orm', but the target namespace of the schema document is 'http://xmlns.jcp.org/xml/ns/persistence/orm'. [8] nbres:/org/netbeans/modules/j2ee/persistence/dd/resources/orm_2_1.xsd
cvc-elt.1: Cannot find the declaration of element 'jpa:entity-mappings'. [2] 
TargetNamespace.1: Expecting namespace 'http://java.sun.com/xml/ns/persistence/orm', but the target namespace of the schema document is 'http://xmlns.jcp.org/xml/ns/persistence/orm'. [8] nbres:/org/netbeans/modules/j2ee/persistence/dd/resources/orm_2_1.xsd
TargetNamespace.1: Expecting namespace 'http://java.sun.com/xml/ns/persistence/orm', but the target namespace of the schema document is 'http://xmlns.jcp.org/xml/ns/persistence/orm'. [8] nbres:/org/netbeans/modules/j2ee/persistence/dd/resources/orm_2_1.xsd
TargetNamespace.1: Expecting namespace 'http://java.sun.com/xml/ns/persistence/orm', but the target namespace of the schema document is 'http://xmlns.jcp.org/xml/ns/persistence/orm'. [8] nbres:/org/netbeans/modules/j2ee/persistence/dd/resources/orm_2_1.xsd
TargetNamespace.1: Expecting namespace 'http://java.sun.com/xml/ns/persistence/orm', but the target namespace of the schema document is 'http://xmlns.jcp.org/xml/ns/persistence/orm'. [8] nbres:/org/netbeans/modules/j2ee/persistence/dd/resources/orm_2_1.xsd
TargetNamespace.1: Expecting namespace 'http://java.sun.com/xml/ns/persistence/orm', but the target namespace of the schema document is 'http://xmlns.jcp.org/xml/ns/persistence/orm'. [8] nbres:/org/netbeans/modules/j2ee/persistence/dd/resources/orm_2_1.xsd
TargetNamespace.1: Expecting namespace 'http://java.sun.com/xml/ns/persistence/orm', but the target namespace of the schema document is 'http://xmlns.jcp.org/xml/ns/persistence/orm'. [8] nbres:/org/netbeans/modules/j2ee/persistence/dd/resources/orm_2_1.xsd
TargetNamespace.1: Expecting namespace 'http://java.sun.com/xml/ns/persistence/orm', but the target namespace of the schema document is 'http://xmlns.jcp.org/xml/ns/persistence/orm'. [8] nbres:/org/netbeans/modules/j2ee/persistence/dd/resources/orm_2_1.xsd
TargetNamespace.1: Expecting namespace 'http://java.sun.com/xml/ns/persistence/orm', but the target namespace of the schema document is 'http://xmlns.jcp.org/xml/ns/persistence/orm'. [8] nbres:/org/netbeans/modules/j2ee/persistence/dd/resources/orm_2_1.xsd
TargetNamespace.1: Expecting namespace 'http://java.sun.com/xml/ns/persistence/orm', but the target namespace of the schema document is 'http://xmlns.jcp.org/xml/ns/persistence/orm'. [8] nbres:/org/netbeans/modules/j2ee/persistence/dd/resources/orm_2_1.xsd
TargetNamespace.1: Expecting namespace 'http://java.sun.com/xml/ns/persistence/orm', but the target namespace of the schema document is 'http://xmlns.jcp.org/xml/ns/persistence/orm'. [8] nbres:/org/netbeans/modules/j2ee/persistence/dd/resources/orm_2_1.xsd
TargetNamespace.1: Expecting namespace 'http://java.sun.com/xml/ns/persistence/orm', but the target namespace of the schema document is 'http://xmlns.jcp.org/xml/ns/persistence/orm'. [8] nbres:/org/netbeans/modules/j2ee/persistence/dd/resources/orm_2_1.xsd
TargetNamespace.1: Expecting namespace 'http://java.sun.com/xml/ns/persistence/orm', but the target namespace of the schema document is 'http://xmlns.jcp.org/xml/ns/persistence/orm'. [8] nbres:/org/netbeans/modules/j2ee/persistence/dd/resources/orm_2_1.xsd
TargetNamespace.1: Expecting namespace 'http://java.sun.com/xml/ns/persistence/orm', but the target namespace of the schema document is 'http://xmlns.jcp.org/xml/ns/persistence/orm'. [8] nbres:/org/netbeans/modules/j2ee/persistence/dd/resources/orm_2_1.xsd
TargetNamespace.1: Expecting namespace 'http://java.sun.com/xml/ns/persistence/orm', but the target namespace of the schema document is 'http://xmlns.jcp.org/xml/ns/persistence/orm'. [8] nbres:/org/netbeans/modules/j2ee/persistence/dd/resources/orm_2_1.xsd
TargetNamespace.1: Expecting namespace 'http://java.sun.com/xml/ns/persistence/orm', but the target namespace of the schema document is 'http://xmlns.jcp.org/xml/ns/persistence/orm'. [8] nbres:/org/netbeans/modules/j2ee/persistence/dd/resources/orm_2_1.xsd
TargetNamespace.1: Expecting namespace 'http://java.sun.com/xml/ns/persistence/orm', but the target namespace of the schema document is 'http://xmlns.jcp.org/xml/ns/persistence/orm'. [8] nbres:/org/netbeans/modules/j2ee/persistence/dd/resources/orm_2_1.xsd
TargetNamespace.1: Expecting namespace 'http://java.sun.com/xml/ns/persistence/orm', but the target namespace of the schema document is 'http://xmlns.jcp.org/xml/ns/persistence/orm'. [8] nbres:/org/netbeans/modules/j2ee/persistence/dd/resources/orm_2_1.xsd
TargetNamespace.1: Expecting namespace 'http://java.sun.com/xml/ns/persistence/orm', but the target namespace of the schema document is 'http://xmlns.jcp.org/xml/ns/persistence/orm'. [8] nbres:/org/netbeans/modules/j2ee/persistence/dd/resources/orm_2_1.xsd
Too many errors, stopping further checking.
XML validation finished.

After fixing the namespace:

XML validation started.
Checking file:/home/klimovskih/work/loanapplications2/trunk/loanapplications/loanapplications-web/src/main/resources/META-INF/modelXml.xml...
cvc-complex-type.3.2.2: Attribute 'ptype' is not allowed to appear in element 'jpa:entity-mappings'. [2] 
cvc-complex-type.3.2.2: Attribute 'ppkg' is not allowed to appear in element 'jpa:entity-mappings'. [2] 
cvc-complex-type.3.2.2: Attribute 'epkg' is not allowed to appear in element 'jpa:entity-mappings'. [2] 
cvc-complex-type.3.2.2: Attribute 'v' is not allowed to appear in element 'jpa:entity-mappings'. [2] 
cvc-complex-type.3.2.2: Attribute 'rws' is not allowed to appear in element 'jpa:entity-mappings'. [2] 
cvc-complex-type.3.2.2: Attribute 'Pws' is not allowed to appear in element 'jpa:entity-mappings'. [2] 
cvc-complex-type.3.2.2: Attribute 'cws' is not allowed to appear in element 'jpa:entity-mappings'. [2] 
cvc-complex-type.3.2.2: Attribute 'persistenceUnitName' is not allowed to appear in element 'jpa:entity-mappings'. [2] 
cvc-complex-type.3.2.2: Attribute 'sm' is not allowed to appear in element 'jpa:entity-mappings'. [2] 
cvc-complex-type.3.2.2: Attribute 'xs' is not allowed to appear in element 'jpa:entity-mappings'. [2] 
cvc-complex-type.3.2.2: Attribute 'id' is not allowed to appear in element 'jpa:entity-mappings'. [2] 
cvc-complex-type.4: Attribute 'version' must appear on element 'jpa:entity-mappings'. [2] 
cvc-complex-type.3.2.2: Attribute 'compositePrimaryKeyClass' is not allowed to appear in element 'jpa:entity'. [4] 
cvc-complex-type.3.2.2: Attribute 'abs' is not allowed to appear in element 'jpa:entity'. [4] 
cvc-complex-type.3.2.2: Attribute 'v' is not allowed to appear in element 'jpa:entity'. [4] 
cvc-complex-type.3.2.2: Attribute 'gen' is not allowed to appear in element 'jpa:entity'. [4] 
cvc-complex-type.3.2.2: Attribute 'jbn' is not allowed to appear in element 'jpa:entity'. [4] 
cvc-complex-type.3.2.2: Attribute 'xre' is not allowed to appear in element 'jpa:entity'. [4] 
cvc-complex-type.3.2.2: Attribute 'm' is not allowed to appear in element 'jpa:entity'. [4] 
cvc-complex-type.3.2.2: Attribute 'rootElement' is not allowed to appear in element 'jpa:entity'. [4] 
Too many errors, stopping further checking.
XML validation finished.
Jeddict Version(s)

Jeddict 5.2
Netbeans 8.2

@jGauravGupta jGauravGupta added this to the 5.3 milestone Jan 30, 2019
@jGauravGupta jGauravGupta removed this from the 5.3 milestone Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants