• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Configure Postgresql datasource in jetty

 
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
reply
    Bookmark Topic Watch Topic
  • New Topic