To prevent a memory leak, the JDBC Driver has been forcibly unregistered

后端 未结 14 1469
执念已碎
执念已碎 2020-11-22 02:15

I am getting this message when I run my web application. It runs fine but I get this message during shutdown.

SEVERE: A web application registered the

14条回答
  •  死守一世寂寞
    2020-11-22 03:17

    I have faced this problem when I was deploying my Grails application on AWS. This is matter of JDBC default driver org.h2 driver . As you can see this in the Datasource.groovy inside your configuration folder . As you can see below :

    dataSource {
        pooled = true
        jmxExport = true
        driverClassName = "org.h2.Driver"   // make this one comment
        username = "sa"
        password = ""
    }
    

    Comment those lines wherever there is mentioned org.h2.Driver in the datasource.groovy file , if you are not using that database . Otherwise you have to download that database jar file .

    Thanks .

提交回复
热议问题