• Post Reply Bookmark Topic Watch Topic
  • New Topic

changing j2ee database to postgresql

 
sanpra sing
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried to change the database for the account example in j2ee developers guide from Cloudscape to Postgresql.
I put the driver in %j2ee_home%\lib\ and set the classpath to it.
Made the necessary changes in default.properties.
I inspected that many a time and contains no errors.
Edited the resource references and the changed the JNDI name to the one bound to the new data base.Also supplied username and password to the new database in the resource references dialog box.
When I deploy the application and run it I get...

Caught an exception.
java.rmi.ServerException: RemoteException occurred in server thread; nested exce
ption is:
java.rmi.RemoteException: Could not create Entity EJB
java.rmi.RemoteException: Could not create Entity EJB
what could be the problem? Where can I get more info to trouble shoot the problem?
 
Tim Holloway
Bartender
Posts: 18408
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dig around and see if you can find some further information logged somewhere. I've used PostgreSQL with 3 different appservers and never noticed anything outstandingly wierd about it.
URLs are wierd in JDBC anyway. For PostgreSQL it should look like:
jdbc ostgresql://myserver/mydatabase
Also, around 7.1, they renamed the jdbc driver class from postgresql.Driver to org.postgresql.Driver
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!