Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

OJB 1.0.1 and SAXParserException

 
Anand Gondhiya
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am new to Object RealtionalBridge (OJB). I just started using OJB 1.0.1.

While playing with examples , it gives me SAXParcerException and gives this error:
org.xml.sax.SAXParseException: Whitespace required before attributes.

Following is my repository XML file:


<xml? version="1.0" encoding="UTF-8" >
<descriptor-repository version="1.0.1" isolation-level="read-uncommited" >

<jdbc-connection-descriptor platform="MySQL"
jdbc-level="2.0"
driver="org.gjt.mm.mysql.Driver"
protocol="jdbc"
dbalias="NEADB"
username="anandgondhia"
password="gulabi" />

<class-descriptor class="DTO.StateDTO" table="state" >
<field-descriptor
name="id"
column="id"
primarykey="true"
jdbc-type="VARCHAR"
/>
<field-descriptor
name="state"
column="state"
jdbc-type="VARCHAR"
/>
</class-decriptor>
</descriptor-repository>


Any ideas ?
thanks in advance.

-Anand.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic