wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes OJB 1.0.1 and SAXParserException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "OJB 1.0.1 and SAXParserException" Watch "OJB 1.0.1 and SAXParserException" New topic
Author

OJB 1.0.1 and SAXParserException

Anand Gondhiya
Ranch Hand

Joined: Feb 24, 2004
Posts: 155
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: OJB 1.0.1 and SAXParserException
 
Similar Threads
OJB - Two entries in Table after commit
won't create tables with jaws.xml
CMP 2.0 problem with MySQL server
OJB findByTemplate Problem
CMP beans not entering data in database