0

zksample2 and postgresql

asked 2012-09-21 05:06:13 +0800

spinx73 gravatar image spinx73
27

Hello Stephan,
I'm trying to change the database to postgresql using your documentation section 17, How to Replace the inMemory H2 sample database
but when i run on server (tomcat) it always said could not load postgresql jdbc, what when wrong with this configuration? because when i change back to H2 everything works well

thanks before

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2012-09-21 08:12:33 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2012-09-21 08:13:34 +0800

Done.

You must add the needed PostgreSQL database JDBC driver to the project/war.
You are right. I have yet added a few lines to the documentation Chapter 17 and pre-declared the postgres entry in the pom.xml.All files are committed.

. . .

Be sure you have the needed jdbc driver for the additional database declared in the maven pom.xml from the 
frontend project (zkoss). By using the PostgreSQL database it looks like the declaration 
in the next lines. Modify the version to you needs.

<!-- PostgreSQL database -->
<dependency> 
  <groupId>postgresql</groupId> 
  <artifactId>postgresql</artifactId> 
  <version>9.0-801.jdbc4 </version> 
</dependency>

best
Stephan

link publish delete flag offensive edit

answered 2012-09-21 11:35:27 +0800

spinx73 gravatar image spinx73
27

Hello Stephan,
thanks for your prompt reply
it works now :)

before you explained, I thought dependency locating on spring-hibernate-backend, because in project properties --> java build path-->maven dependencies there was folder of spring-hibernate-backend

link publish delete flag offensive edit

answered 2012-09-21 12:05:39 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

have fun with it. :-)

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-09-21 05:06:13 +0800

Seen: 109 times

Last updated: Sep 21 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More