There is a change in the 0.9.9 version on how to refer to the database. Previously one would refer to repository.xml, now one needs to refer to the jcd-alias attribute, in your case "postgres". This is because one can now define multiple db connections. If you want your code to work as it currently is then change your connection descriptor to
jcd-alias="repository.xml"
Regards, Will
Robert S. Sfeir wrote:
This is most likely a newbie thing, but I've got my datasource setup properly, I've copied the latest files from the 0.9.9 and modified the repository_database.xml to have the following XML block:
<!-- Postgresql connection -->
<jdbc-connection-descriptor
jcd-alias="postgres"
default-connection="true"
platform="PostgreSQL"
jdbc-level="2.0"
driver="org.postgresql.Driver"
protocol="jdbc"
subprotocol="postgresql"
dbalias="//localhost:5432/rex"
username="rex"
password=""
batch-mode="false">
<connection-pool maxActive="5" validationQuery=""/>
<sequence-manager className="org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImp l">
<attribute attribute-name="grabSize" attribute-value="5"/>
</sequence-manager>
</jdbc-connection-descriptor>
But for some reason I get this (By the way there's a typo it should Could not find not Could not found). I know it can find the repository.xml since it found the datasource. Which user and password does it expect?
The ojb jar file is in the lib directory for my webapp under WEB-INF... all this was working OK under 0.9.8. :-\
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
