java - Datanucleus + Postgres 9.3 + Amazon RDS failure -
the title says all.
i'm developing java web app, hosted in elastic beanstalk using datanucleus 4.0.6 communicate postgresql 9.3 database. database hosted in amazon rds.
i've tried every combination of settings can think of:
- getting beanstalk create db
- manually creating private db
- manually creating public db
- assigning public/private dbs available
vpcs - using postgres 9.4 instead of 9.3
no matter do, following error message when trying start communication db.
no suitable driver found jdbc:postgresql://myvalidurl.com:5432/ebdb i same error if make myvalidurl invalid, cannot tell if cannot "see" db, or if port closed or if somehow isn't speaking expected type of postgres.
finally, can run local db , ok.
does have idea might have missed when configuring elastic beanstalk talk rds?
this kind of error happens when postgre-jdbc.jar in your.war#web-app/lib/ folder. remove there , put in $catalina_home/lib/ folder , work fine.
the problem in classloader used drivermanager class.
Comments
Post a Comment