`

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.

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics