The infamous java.sql.SQLException: No suitable driver found

前端 未结 16 1526
广开言路
广开言路 2020-11-21 05:10

I\'m trying to add a database-enabled JSP to an existing Tomcat 5.5 application (GeoServer 2.0.0, if that helps).

The app itself talks to Postgres just fine, so I kn

16条回答
  •  离开以前
    2020-11-21 05:40

    I was using jruby, in my case I created under config/initializers

    postgres_driver.rb

    $CLASSPATH << '~/.rbenv/versions/jruby-1.7.17/lib/ruby/gems/shared/gems/jdbc-postgres-9.4.1200/lib/postgresql-9.4-1200.jdbc4.jar'
    

    or wherever your driver is, and that's it !

提交回复
热议问题