Hi Dogie,
we adopt a new concept to make the PBKey
independent from the repository.xml, by using
the 'jcd-alias' name in PBKey.
Thus in your case you should do somthing like
PBF.createPersistenceBroker(new PBKey("default"));
or
PBF.createPersistenceBroker(new PBKey("default", "sa", "passwd"));
or when the attribute default-connection="true" was
set you could use the convenient
PBF.defaultPersistenceBroker()
The tests shown when using >=jboss 3.0.4 the eager-release
attribute should be set to 'false'.
An updated version of the deployment doc
(deployment.xml) you could find under
http://cvs.apache.org/viewcvs/db-ojb/xdocs/
replace the old one shipped with OJB
and call "bin\build.bat htmldoc"
HTH
regards,
Armin
----- Original Message -----
From: "���զ�" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Thursday, March 13, 2003 4:22 AM
Subject: Why can't work for deploying OJB(db-ojb-1.0.rc1) to Jboss3.0.4?
Hi!
I try to re-deploy 1.0.rc1 to Jboss3.0.4,but it can't work. I ever
deployed 0.9.8 success.
The repository_database.xml file as:
<jdbc-connection-descriptor
jcd-alias="default"
default-connection="true"
platform="MsSQLServer"
jdbc-level="2.0"
jndi-datasource-name="java:/TestDS"
username="sa"
password="******"
eager-release="true"
batch-mode="false"
useAutoCommit="0"
ignoreAutoCommitExceptions="false"
>
<sequence-manager className=
"org.apache.ojb.broker.util.sequence.SequenceManagerNextValImpl">
</sequence-manager>
</jdbc-connection-descriptor>
I have followed the deployment doc step by step. It raised error
message:
11:08:32,031 INFO [STDOUT]
[org.apache.ojb.broker.metadata.ConnectionRepository] INFO:
11:08:32,046 INFO [STDOUT] Could not found
org.apache.ojb.broker.metadata.JdbcC
onnectionDescriptor for PBKey org.apache.ojb.broker.PBKey:
repository=repository
.xml, user=null, password=null
11:08:32,093 INFO [STDOUT]
[org.apache.ojb.broker.accesslayer.ConnectionManager
Factory] ERROR:
11:08:32,109 INFO [STDOUT] ConfigurableFactory instantiation failed for
class c
lass org.apache.ojb.broker.accesslayer.ConnectionManagerImpl
* Factory types:
1 - Type: org.apache.ojb.broker.PersistenceBroker
* Factory arguments:
1 - Argument:
[EMAIL PROTECTED]
11:08:32,156 INFO [STDOUT] null
11:08:32,187 ERROR [STDERR] java.lang.reflect.InvocationTargetException
:
:
What's wrong?
Thanks.
Dogie Tsai
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]