Bruce,
I can not make it work with the DOCTYPE declaration either.
Here is what I've tried and none of these wroked:
1. Without DOCTYPE declaration; <databases> as root element in
xml file; 2 <database> child elements - Exception message:
"database is missing attribute name"
2. With DOCTYPE declaration; <databases> NOT included, only 2
<database> element; XML is not well-formed; exception thrown:
org.xml.sax.SAXException: Parsing Error : The markup in the 
document following the root element must be well-formed. (on the
line where the second <database> element starts)
3. DOCTYPE declaration + <databases> as root element - same
exception as in case 1 above

Should I submit a bug for this?

Thanks and regards,
Emir

P.S. Here are the contents of my dbconfig file. By removing
comments you can make all of the three above explained
scenarios.
------------------- database.xml ------------------------------
<!DOCTYPE databases PUBLIC
     "-//EXOLAB/Castor JDO Configuration DTD Version 1.0//EN"
     "http://castor.exolab.org/jdo-conf.dtd";>

<!--  <databases> this still doesn't work -->
<!-- Configuration of Oracle database -->

  <database name="SB" engine="oracle">
    <driver class-name="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@murgle:1521:SB">
      <param name="user" value="emir" />
      <param name="password" value="emir" />
    </driver>
    <mapping href="mapping.xml"/>
  </database>

<!-- Configuration of SAPDB database -->
  <database name="castor" engine="sapdb">
    <driver class-name="com.sap.dbtech.jdbc.DriverSapDB"
url="jdbc:sapdb://mssql2k/castor">
      <param name="user" value="dba" />
      <param name="password" value="dba" />
    </driver>
    <mapping href="mapping.xml"/>
  </database>

<!-- </databases> this still doesn't work -->
------------------- database.xml ------------------------------


Bruce Snyder writes: 
> 
> Emir, 
> 
> Do you have the DOCTYPE delcaration in the database descriptor? The 
> DOCTYPE delcaration usually looks like the following: 
> 
> 
> "-//EXOLAB/Castor JDO Configuration DTD Version 1.0//EN" 
> "http://castor.exolab.org/jdo-conf.dtd";> 
> 
> Notice that it already contains the element in the DOCTYPE 
> descriptor. In this case, you can leave the explicit and 
> elements out of your database descriptor. 
> 
> Bruce 

________________________________
15 Mbytes Free Web-based and  POP3
Sign up now: http://www.gawab.com

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to