Ibm mobilefirst IBM Mobilefirst 8与使用oob derby数据库的Websphere application server

Ibm mobilefirst IBM Mobilefirst 8与使用oob derby数据库的Websphere application server,ibm-mobilefirst,derby,websphere-8,Ibm Mobilefirst,Derby,Websphere 8,使用Apache derby数据库安装IBM Mobilefirst 8服务器和WAS 8.5.5.12 检查为mobilefirst服务器创建的数据源连接时遇到以下错误: java.lang.Exception: DSRA8101E: DataSource class cannot be used as one-phase: ClassCastException: org.apache.derby.jdbc.AutoloadedDriver40 incompatible with org.ap

使用Apache derby数据库安装IBM Mobilefirst 8服务器和WAS 8.5.5.12

检查为mobilefirst服务器创建的数据源连接时遇到以下错误:

java.lang.Exception: DSRA8101E: DataSource class cannot be used as one-phase: ClassCastException: org.apache.derby.jdbc.AutoloadedDriver40 incompatible with org.apache.derby.jdbc.InternalDriver

mysql数据库工作正常。

虽然此消息通常表示指定的数据源实现类未实现javax.sql.ConnectionPoolDataSource,但基于异常消息中标识的类,我认为这里的情况并非如此。另一个可能的原因是Derby JDBC驱动程序的多个副本同时位于类路径上。应该注意的是,WebSphereApplicationServerTraditional提供了DerbyJDBC驱动程序的副本。如果您有两个副本,是否可以切换到仅使用应用程序服务器附带的副本?如果不可能,您可以通过选择隔离JDBC提供程序的选项来解决此问题。

对于带有Websphere Application server 8.5.5.5的MFP 8.0独立服务器,请使用DB2、MySQL或Oracle

使用printStackTrace获取异常的完整堆栈跟踪。这很奇怪,因为这两个类都是内部类,而不是您期望Derby客户端在其代码中操作的类。