[NEWSENDER] - Re: services management postgres config - Message is from an unknown sender
Li Wei Nan
liweinan at chinaedu.net
Sun Mar 2 22:16:20 EST 2008
we are using postgres as data source and we don't have any problem.
Here's our config, which uses sping framework to manage the data source:
<bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource"
destroy-method="close">
<property name="driverClassName">
<value>org.postgresql.Driver</value>
</property>
<property name="url">
<value>jdbc:postgresql://localhost:5432/edupass</value>
</property>
<property name="username">
<value>postgres</value>
</property>
<property name="password">
<value>XXX</value>
</property>
</bean>
- Li Wei Nan
Le 2008-3-2 à 上午1:46, Scott Battaglia a écrit :
> Robert, I've neer used Postgres' DataSource. I generally use one
> such as Apache Commons DataSource Pool, which I've never seen a
> problem with.
>
> Postgres in general is a supported database of Hibernate so there
> shouldn't be a problem there.
>
> -Scott
>
> On Fri, Feb 29, 2008 at 6:02 PM, Robert Lewis <r.lewis at tamu.edu>
> wrote:
> Hi,
>
> I am using http://www.ja-sig.org/wiki/display/CASUM/Configuring
>
> and trying to setup services management with postgres. What I am
> getting
> is an exception during deployment, log entries like the following.
>
> ...
> BeanCreationException: Error creating bean with name
> 'entityManagerFactory'
> ...
> Invocation of init method failed; nested exception is
> java.lang.StackOverflowError
>
> My bean looks like the following.
>
> <bean
> id="dataSource"
> class="org.postgresql.jdbc2.optional.SimpleDataSource"
> p:serverName="testserver.tamu.edu"
> p:databaseName="testdb"
> p:password="thisisnotit"
> p:user="nothisisnotit" />
>
>
> Has anyone used postgres for this and can point me in the right
> direction?
>
> Thanks,
>
> Robert Lewis
>
>
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>
>
>
> --
> -Scott Battaglia
> PGP Public Key Id: 0x383733AA
> LinkedIn: http://www.linkedin.com/in/scottbattaglia
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20080303/c816fde0/attachment.html
More information about the cas
mailing list