0
我想從我的Grails應用中刪除H2。在我BuildConfig.groovy
:Grails引發H2 WebServlet加載錯誤
grails.project.dependency.resolution = {
inherits("global") {
excludes 'h2'
}
...
}
在我Datasource.groovy
文件:
hibernate {
cache.use_second_level_cache = true
cache.use_query_cache = false
cache.region.factory_class = 'org.hibernate.cache.ehcache.EhCacheRegionFactory'
singleSession = true
}
當我做了run-app
我的應用程序運行在瀏覽器的罰款,但在控制檯中我看到下面的錯誤輸出:
|Loading Grails 2.4.2
|Configuring classpath
.
|Environment set to development
.................................
|Packaging Grails application
....................................
|Running Grails application
Error |
2014-12-06 06:13:58,476 [localhost-startStop-1] ERROR [localhost].[/] - Servlet threw load() exception
Message: org.h2.server.web.WebServlet
Line | Method
->> 59 | findClass in org.grails.plugins.tomcat.ParentDelegatingClassLoader
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 425 | loadClass in java.lang.ClassLoader
| 358 | loadClass in ''
| 262 | run in java.util.concurrent.FutureTask
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker
^ 744 | run . . . in java.lang.Thread
|Server running. Browse to http://localhost:8080/
H2自帶web servlet?!? 這裏發生了什麼,我能做些什麼來解決它?