[jboss-user] [JBoss Tools (users)] - howto change projects' database connection?

daveyx do-not-reply at jboss.com
Sat Mar 8 11:51:12 EST 2008


hi everybody,

i built a seamproject via new seam wizzard shipped with jboss tools.
i used default databseconnection with hsqldb.

now i want to change to postgresql and dont know how :-(

i tried to rewrite the myproj-ds.xml,hibernate-console.properties and persitence.xml, but starting my application results in following exception:


  | ...
  | 17:43:38,193 INFO  [InjectedDataSourceConnectionProvider] Using provided datasource
  | 17:43:38,265 INFO  [SettingsFactory] RDBMS: PostgreSQL, version: 8.2.6
  | 17:43:38,266 INFO  [SettingsFactory] JDBC driver: PostgreSQL Native Driver, version: PostgreSQL 8.3 JDBC3 with SSL (build 603)
  | 17:43:38,270 WARN  [ServiceController] Problem starting service persistence.units:ear=myproj-ear.ear,jar=myproj-ejb.jar,unitName=myproj
  | javax.persistence.PersistenceException: org.hibernate.HibernateException: Dialect class not found: org.hibernat­e.dialect.PostgreSQL­Dialect
  | 	at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:720)
  | ...
  | 

is there any possibility to change the settings run at creationtime of the project?
when running new seamproject wizzard, i have to create a database connection, but where i can configure it later?

any ideas are welcome

davey


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135092#4135092

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135092




More information about the jboss-user mailing list