dae pessoal…
seguinte…não to conseguindo conectar o postgresql com spring + hibernate…a seguinte exceção é lançada…
INFO: Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
04/04/2006 09:50:59 org.hibernate.util.JDBCExceptionReporter logExceptions
WARNING: SQL Error: 0, SQLState: 08001
04/04/2006 09:50:59 org.hibernate.util.JDBCExceptionReporter logExceptions
SEVERE: The url cannot be null
04/04/2006 09:50:59 org.hibernate.cfg.SettingsFactory buildSettings
WARNING: Could not obtain connection metadata
java.sql.SQLException: The url cannot be null
at java.sql.DriverManager.getConnection(DriverManager.java:502)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
ele não ta achando minha url do db??? não entendo…eis meu context dessa parte…
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName">
<value>org.postgresql.Driver</value>
</property>
<property name="url">
<value>jdbc:postgresql://localhost:5432/database</value>
</property>
<property name="username">
<value>postgres</value>
</property>
<property name="password">
<value>postgres</value>
</property>
</bean>
se alguém ja teve esse problema ou sabe o que pode ser da um toque ae…
[]'s