Failed to create ConnectionPool

The error message can happen in a few different scenarios:

1. In conjunction with a "ConnectionFactory static initializer suppressed Exception", using local data access.

ERROR: ConnectionFactory static initializer suppressed Exception: oracle.jdbc.driver.OracleDriver
java.lang.Exception: Failed to create ConnectionPool. Check application log for error message.
at com.mapinfo.dp.conn.ConnectionFactory.getConnection(Unknown Source)
at com.mapinfo.dp.jdbc.DBLayerDataProvider.a(Unknown Source)
at com.mapinfo.dp.jdbc.DBLayerDataProvider.getTableInfo(Unknown Source)
at com.mapinfo.mapj.Layer.getTableInfo(Unknown Source)
at com.mapinfo.mapj.Layers.a(Unknown Source)
at com.mapinfo.mapj.Layers.a(Unknown Source)
at com.mapinfo.mapj.al.insert(Unknown Source)
at com.mapinfo.beans.layercontrol.LayerControl.a(Unknown Source)
at com.mapinfo.beans.layercontrol.LayerControl.onLayerControlChange(Unknown Source)
at com.mapinfo.beans.layercontrol.f6.a(Unknown Source)
at com.mapinfo.beans.layercontrol.f6.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1820)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
...

This error indicates that the JDBC driver (in this case oracle.jdbc.driver.OracleDriver) was not found in the classpath when the connection pool was being started. Add the appropriate jars/zips and restart the application.

2. From the MapXtremeServlet:

java.lang.Exception: Failed to create ConnectionPool. Check application log for error message.
at com.mapinfo.dp.conn.ConnectionFactory.getConnection(Unknown Source)
at com.mapinfo.dp.jdbc.DBLayerDataProvider.a(Unknown Source)
at com.mapinfo.dp.jdbc.DBLayerDataProvider.getTableInfo(Unknown Source)
at com.mapinfo.mapxtreme.MetadataHandlerServlet.createResponseComposer(Unknown Source)
at com.mapinfo.mapxtreme.MetadataHandlerServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:404)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
at com.mapinfo.mapxtreme.MapXtremeServlet.a(Unknown Source)
at com.mapinfo.mapxtreme.MapXtremeServlet.doPost(Unknown Source)

This indicates that the MapXtremeServlet is trying to access the data. The miconnections.properties in the WEB-INF\classes directory of the MapXtreme context should contain the connection pool information, and the WEB-INF\lib directory should contain the JDBC jar files for the appropriate database.

3. From a client application using MapXtremeImageRenderer or MapXtremeDataProviderRefs.

java.lang.Exception: Failed to create ConnectionPool. Check application log for error message.
at com.mapinfo.mapxtreme.client.MapXtremeDataProvider.a(Unknown Source)
at com.mapinfo.mapxtreme.client.MapXtremeDataProvider.getTableInfo(Unknown Source)
at com.mapinfo.mapj.DataLayer.getTableInfo(Unknown Source)
at com.mapinfo.xmlprot.mxtj.bj.createLabelThemeListElement(Unknown Source)
at com.mapinfo.xmlprot.mxtj.bj.a(Unknown Source)
at com.mapinfo.xmlprot.mxtj.bj.createImageRequestLayer(Unknown Source)
at com.mapinfo.xmlprot.mxtj.ImageRequestComposer.b(Unknown Source)
at com.mapinfo.xmlprot.mxtj.ImageRequestComposer.a(Unknown Source)
at com.mapinfo.xmlprot.mxtj.cz.build(Unknown Source)
at com.mapinfo.mapxtreme.client.MapXtremeImageRenderer.render(Unknown Source)

In this case, the client may need the JDBC jars and miconnections.properties in its classpath, in addition to them existing in the MapXtreme context.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值