2011-11-03 119 views
0

我想安裝ejbca使用mysql,但有問題。我不太確定有哪些錯誤或如何解決這些錯誤。錯誤是:錯誤與mysql

2011-11-03 14:16:15,191 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (main) could not get database metadata 
2011-11-03 14:16:15,353 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (main) could not complete schema update 
2011-11-03 14:16:31,656 ERROR [org.hibernate.util.JDBCExceptionReporter] (main) Unable to get managed connection for MySQLDB; - nested throwable: (javax.resource.ResourceException: Unable to get managed connection for MySQLDB) 
2011-11-03 14:16:31,731 ERROR [org.ejbca.ui.web.admin.configuration.StartServicesServlet] (main) Error creating CAAdminSession: 
2011-11-03 14:16:32,577 ERROR [org.hibernate.util.JDBCExceptionReporter] (main) Unable to get managed connection for MySQLDB; - nested throwable: (javax.resource.ResourceException: Unable to get managed connection for MySQLDB) 
2011-11-03 14:16:32,774 ERROR [org.hibernate.ejb.AbstractEntityManagerImpl] (main) Unable to mark for rollback on PersistenceException: 
2011-11-03 14:16:32,945 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/ejbca/adminweb]] (main) StandardWrapper.Throwable 
2011-11-03 14:16:33,256 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/ejbca/adminweb]] (main) Servlet /ejbca/adminweb threw load() exception 
2011-11-03 14:16:34,250 ERROR [org.hibernate.util.JDBCExceptionReporter] (main) Unable to get managed connection for MySQLDB; - nested throwable: (javax.resource.ResourceException: Unable to get managed connection for MySQLDB) 
2011-11-03 14:16:34,250 ERROR [org.hibernate.ejb.AbstractEntityManagerImpl] (main) Unable to mark for rollback on PersistenceException: 
2011-11-03 14:16:34,277 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/ejbca/publicweb/status]] (main) StandardWrapper.Throwable 
2011-11-03 14:16:34,454 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/ejbca/publicweb/status]] (main) Servlet /ejbca/publicweb/status threw load() exception 

任何人都可以幫助我嗎?

回答

2

我已經使用grep來獲取這些錯誤,如果日誌文件。我已經解決了這個問題。問題只是mysql連接器的位置。我已經將整個zip文件解壓縮到jboss/server/default/lib中。這創建了一個額外的文件夾,所以連接器是在〜/ lib/mysqlconnector/mysqlconnector.jar 我把.jar文件上移了一個級別,並且錯誤得到了解決。:)

0

這是完整的錯誤跟蹤?我懷疑你正在使用的是什麼AS錯誤的MySQL驅動程序(我假設JBoss)。

如果是這種情況,請查閱文檔here