db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Al Lofus (JIRA)" <j...@apache.org>
Subject [jira] Created: (OJB-81) The repository_internal.xml contains invalid XML
Date Tue, 13 Dec 2005 23:13:45 GMT
The repository_internal.xml contains invalid XML
------------------------------------------------

         Key: OJB-81
         URL: http://issues.apache.org/jira/browse/OJB-81
     Project: OJB
        Type: Bug
    Versions: 1.0.3    
    Reporter: Al Lofus
    Priority: Minor


We run our repository.xml through a SAX parser with validation turned on against the repository.dtd
each time before deploying our project. After updating to OJB 1.3, the validation started
spitting out an error:

ERROR: Got parse exception at 62,5 in repository_internal.xml: org.xml.sax.SAXParseException:
Attribute value "org.apache.ojb.odmg.NamedRootsMap$NamedEntry" of type ID must be a name.

Basically it is complaining about this snippet in the repository_internal.xml:

<!-- THIS IS THE OJB NAMED ROOTS TABLE, DO NOT EDIT-->
   <class-descriptor
   	  class="org.apache.ojb.odmg.NamedRootsMap$NamedEntry"
   	  table="OJB_NRM"
   >
   ...

After a little investigation, I saw that the problem is that the definition of class-descriptor
in the repository.dtd states that the attribute class is of type ID. Type ID in the XML specification
says that the value of ID types must follow the rules for Name. The Name type does not allow
for $. Since the class-descriptor for OJB named roots refers to a private class, it contains
a $. This results in invalid XML.




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message