Hi Andre,
can you please send me at minimum the next nest of the stacktrace which
should be a MappingException to see where this exception is thrown in
JDOConfLoader.
You should also check if it matters your reslover that the jdo-conf.xml
is unmarshalled multipl times ATM. First time at loadConfiguration() and
then 2 times at JDOManager.getDatabase(). It looks like it fails at the
first unmarshalling at JDOManager.getDatabase() which is the the second
one over all.
Having said that I'm working exactly on removing this multiple
unmarshallings and a problem when configuring JDOManager with a JdoConf
object ATM.
Regards
Ralf
ATM I'm working
Andre Teubner schrieb:
Hi all,
during migration from 0.9.6 to 0.9.7 castor throw an exception:
2005-08-08 17:23:49,385 [main] ERROR org.exolab.castor.jdo.JDOManager -
Failed to initalize TransactionManagerFactory
org.exolab.castor.jdo.transactionmanager.TransactionManagerAcquireException:
Problem obtaining JDO configuration: Nested error: Stream closed
at
org.exolab.castor.jdo.transactionmanager.TransactionManagerFactoryRegistry.load(TransactionManagerFactoryRegistry.java:199)
at org.exolab.castor.jdo.JDOManager.getDatabase(JDOManager.java:690)
at com.morixs.mcare.ds.castor.CastorDS.getDB(CastorDS.java:108)
at com.morixs.mcare.ds.castor.CastorDS.init(CastorDS.java:92)
[...] a hell of causes 'Nested error: Stream closed'
jdo config file looks like this:
<?xml version='1.0' encoding='utf-8'?>
<!--
$Id: database.xml,v 1.17 2005/08/02 14:22:54 aetr Exp $
$Author: aetr $
$Date: 2005/08/02 14:22:54 $
-->
<jdo-conf>
<database name="MobileCare" engine="sapdb" >
<data-source class-name="org.apache.commons.dbcp.BasicDataSource">
<!--url--><param name="url"
value="jdbc:sapdb://xx.xx.xx.xx/xxx"/><!--url-->
<param name="driver-class-name"
value="com.sap.dbtech.jdbc.DriverSapDB" />
<!--username--><param name="username"
value="xxx"/><!--username-->
<!--password--><param name="password"
value="xxxx"/><!--password-->
<param name="max-active" value="10" />
<param name="initial-size" value="5" />
</data-source>
<mapping href="/castor/mapping.xml" />
[...] some other mapping files
<mapping href="/castor/caretransition_mapping.xml" />
</database>
<transaction-demarcation mode="local"/>
</jdo-conf>
So far, i figured out that castor read all mapping files without any
error. When initialized TransactionManagerFactoryRegistry castor throw
an exception as you can seen above.
We use our own EntityResolver wich works fine in 0.9.6 and lower.
Any suggestions or hints?
Thanks in advance
Andre Teubner
-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:
[EMAIL PROTECTED]
-------------------------------------------------
-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:
[EMAIL PROTECTED]
-------------------------------------------------