[jira] Created: (JDO-472) Cannot use JDO 2 xsd for XML validation
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache JDO Project > [jira] Created: (JDO-472) Cannot use JDO 2 xsd for XML validation




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    [jira] Created: (JDO-472) Cannot use JDO 2 xsd for XML validation  
Ilan Kirsh (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-15-07 12:11 AM

Cannot use JDO 2 xsd for XML validation
---------------------------------------

Key: JDO-472
URL: https://issues.apache.org/jira/browse/JDO-472
Project: JDO
Issue Type: Bug
Affects Versions: JDO 2 final
Reporter: Ilan Kirsh
Fix For: JDO 2 final


I am trying to use the last JDO 2.0 xsd with:

SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEM
A_NS_URI);
URL xsdURL = getClass().getResource("/jdo_2.0.xsd");
Schema schema = factory.newSchema(xsdURL);

First I got the following exception (from newSchema):

org.xml.sax.SAXParseException: cos-nonambig: "http://java.sun.com/xml/ns/jdo
/jdo":extension and "http://java.sun.com/xml/ns/jdo/jdo":extension (or eleme
nts from their substitution group) violate "Unique Particle Attribution". Du
ring validation against thi
s schema, ambiguity would be created for those two particles.

And after trying to fix it, I got the following exception (from newSchema):

org.xml.sax.SAXParseException: src-resolve.4.2: Error resolving component 'x
s:attlist.jdo'. It was detected that 'xs:attlist.jdo' is in namespace 'http:
//www.w3.org/2001/XMLSchema', but components from this namespace are not ref
erenceable from schema docu
ment 'file:/D:/odb/dv/rt/class/jdo.xsd'. If this is the incorrect namespace,
 perhaps the prefix of 'xs:attlist.jdo' needs to be changed. If this is the 
correct namespace, then an appropriate 'import' tag should be added to 'file
:/D:/odb/dv/rt/class/jdo.xs
d'.

The same 3 lines work well with JPA 1.0 xsd. Has anyone used JDO 2.0 xsd suc
cessfully already?


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:57 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register