2011-11-03 94 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