Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Configure Postgresql datasource in jetty  RSS feed

 
Darvesh Niz
Ranch Hand
Posts: 123
  • 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: 20940
81
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: 123
  • 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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!