1

我刚刚将 Play Framework WAR 插件与 Maven 插件一起使用并创建了一个 WAR 文件,但在部署到 Tomcat 时出现以下异常:

java.lang.IllegalStateException
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1597)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
        at com.mysql.jdbc.DatabaseMetaData.getTables(DatabaseMetaData.java:4997)
        at com.jolbox.bonecp.BoneCP.isConnectionHandleAlive(BoneCP.java:677)
        at com.jolbox.bonecp.ConnectionTesterThread.run(ConnectionTesterThread.java:103)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:679)

application.conf在 Play Framework 中使用来插入我的连接信息。

有人可以在这个问题上帮助我吗?

4

0 回答 0