cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johnson" <john...@soho.club.tw>
Subject Can not get Connection from DataSource named //192.168.10.1:5432/test
Date Sat, 21 Feb 2004 07:52:26 GMT
I'm trying to bind the ojb-jdo example to postgresql
when open the page,it show me Cannot get Connection from DataSource named //192.168.10.1:5432/test
below is my repository.xml

<descriptor-repository version="1.0" isolation-level="read-uncommitted">
 <jdbc-connection-descriptor jcd-alias="test" default-connection="true" platform="PostgreSQL"
jdbc-level="3.0" driver="org.postgresql.Driver" protocol="jdbc" subprotocol="postgresql" dbalias="//192.168.10.1:5432/test"
username="postgres" password="" eager-release="false" batch-mode="false" useAutoCommit="1"
ignoreAutoCommitExceptions="false">
  <connection-pool maxActive="21" validationQuery=""/>
  <sequence-manager className="org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl">
   <attribute attribute-name="autoNaming" attribute-value="true"/>
   <attribute attribute-name="grabSize" attribute-value="20"/>
   <attribute attribute-name="globalSequenceId" attribute-value="false"/>
   <attribute attribute-name="globalSequenceStart" attribute-value="10000"/>
  </sequence-manager>
 </jdbc-connection-descriptor>
 <class-descriptor class="com.goodwill.bean.Registration" table="REGISTRATION">
  <field-descriptor name="id" primarykey="true" default-fetch="true" autoincrement="true"
sequence-name="user_seq'::text" column="ID" jdbc-type="INTEGER"/>
  <field-descriptor name="name" nullable="false" default-fetch="true" column="NAME" jdbc-type="VARCHAR"/>
  <field-descriptor name="email" nullable="false" default-fetch="true" column="EMAIL" jdbc-type="VARCHAR"/>
  <field-descriptor name="age" default-fetch="true" column="AGE" jdbc-type="INTEGER"/>
  <field-descriptor name="password" nullable="false" default-fetch="true" column="PASSWORD"
jdbc-type="VARCHAR"/>
 </class-descriptor>
</descriptor-repository>

and this is cocoon.xconf about jdbc

    <jdbc logger="core.datasources.test" name="test">
      <pool-controller max="10" min="5"/>
      <dburl>jdbc:postgres://192.168.10.1:5432/test</dburl>
      <user>postgres</user>
      <password/>
    </jdbc>

can anyone point what's wrong

Best Regards

Johnson
Mime
View raw message