• Post Reply Bookmark Topic Watch Topic
  • New Topic

Configure Postgresql datasource in jetty

 
Darvesh Niz
Ranch Hand
Posts: 122
  • 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
Posts: 20829
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: 122
  • 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?
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!