I can't seem to get <transaction-demarcation mode="local" /> to read in
correctly. I am receiving this error when calling my first jdo
instance.
I get this error about a 100 times.
org.exolab.castor.jdo.DatabaseNotFoundException: Nested error: unable
to add 'tr
nsaction-demarcation' to <database> due to the following exception:
>>>--- Begin Exception ---<<<
java.lang.IllegalStateException: java.lang.ClassCastException
at
org.exolab.castor.jdo.conf.JdoConfDescriptor$2.setValue(JdoConfDescri
tor.java:122)
at
org.exolab.castor.xml.UnmarshalHandler.endElement(UnmarshalHandler.ja
a:1016)
at
org.exolab.castor.xml.UnmarshalHandler.endElement(UnmarshalHandler.ja
<jdo-conf>
<database name="HPPROD1" engine="oracle">
<data-source class-name="oracle.jdbc.driver.OracleDriver">
<param name="user" value="**" />
<param name="password" value="**" />
<param name="port-number" value="1526" />
<param name="server-name" value="***" />
<param name="database-name" value="HPPROD1" />
</data-source>
<mapping href="WEB-INF/mapping.xml" />
<transaction-demarcation mode="local" />
</database>
</jdo-conf>
>>> [EMAIL PROTECTED] 05/13/05 11:33 AM >>>
Problem was not starting with
<jdo-conf> as the dtd now states.