Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Configure Postgresql datasource in jetty

 
Darvesh Niz
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

i am trying to run jetty:run and i get an error when trying to connect to postgresql

i have imported the postgresql driver



and the datasource configuration is provided as


i have specified the jdbc setting in my pom file


i get the following errors





Thanks
 
Rob Spoor
Sheriff
Pie
Posts: 20753
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're trying to use PostgresQL, but Jetty is definitely trying to use Oracle. You should try to figure out why.

(And I would start by renaming your data source if possible. A PostgreSQL data source named OracleDS? That's asking for confusion.)
 
Darvesh Niz
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the reply

i was able to solve it by changing my datasource configuration, but i have a new issue now i have posted below after the datasource snippet.




i am trying to call a stored procedure i am using spring StoredProcedure i am seeing the below exception its not able to find the stored procedure



my java class is




and the stored procedure is


any advice?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic