启动期间没有找到 JDBC 驱动器

如果使用数据库或属性扩展存储库,启动 WebSphere Application Server 时可能会发生此处所述的问题。

问题

发生 ClassNotFoundException,如此样本 virtual member manager 跟踪中所示:

Caused by: java.lang.ClassNotFoundException: com.ibm.db2.jcc.DB2Driver
 at java.lang.Class.forNameImpl(Native Method)                            
 at java.lang.Class.forName(Class.java:163)                               
 at com.ibm.ws.wim.dao.AbstractDAO.loadJDBCClass(AbstractDAO.java:300)

(如果使用的是 WebSphere Application Server V6.1,可能会发生以下引起混淆的异常:The registry implementation file com.ibm.ws.wim.registry.WIMUserRegistry cannot be initialized because of the following exception com.ibm.websphere.wim.exception.WIMConfigurationException: CWWIM5034E The parameter value 'uid' is not correct for the parameter 'loginProperties'. The parameter must have one of the following values: 'null'。安装 WebSphere Application Server 6.1.0.19 修订包,以使用根源 ClassNotFoundException 替换不明确的异常。)

解决方案

将 JDBC 驱动程序复制到 app_server_root/lib 目录并重新启动服务器。



使用条款 | 反馈