[Geoserver-users] Error with Glassfish JNDI connection to Oracle Spatial

Hi

We are getting started with Geoserver 2.5 here, hosted on Glassfish and things are going well. Following recommended practice I’m trying to setup a JNDI connection to our Oracle 11g database to be able to pool the connections between data stores and workspaces, however am receiving the following error :

error:java.lang.RuntimeException: Error reading Features java.lang.RuntimeException: Error reading Features Error reading Features java.sql.SQLException: Could not obtain native oracle connection for class com.sun.gjc.spi.jdbc40.ConnectionWrapper40 Could not obtain native oracle connection for class com.sun.gjc.spi.jdbc40.ConnectionWrapper40

This happens when trying to compute the bounds of a layer, or when viewing a layer if it’s been published with manually entered bounds.

It seems the issue is related to Ian’s error to do with geoserver not being able to backtrack from the JNDI connection to a native one when the pool is hosted on Glassfish:

http://osgeo-org.1560.x6.nabble.com/Oracle-JNDI-connection-with-JBOSS-EAP-td5091016.html

I’ve a couple of questions I hope someone can help me with, if this is indeed the problem;

  • How could implement a fix to allow JNDI pools with Glassfish server ?
    (We have limited Java experience to do this ourselves, but if it’s straightforward we could possibly give it a go)
  • If JNDI data stores resort to native connections to retrieve SDO_GEOMETRY objects, is there any benefit in using a JNDI pool over a native Oracle NG connection ?

Thanks,

Andrew


Andrew Kesterton
Team Leader (GIS), IT Division
Dundee City Council


Dundee City Council Banner. This email and any files transmitted with it is confidential and intended solely for the person or organisation to whom it is addressed. If you are not the intended recipient, you must not read, copy or disseminate the information or take any action in reliance on it and it would be appreciated if you would also notify the sender by reply email and then delete this email immediately. All messages passing out of this gateway are checked for viruses but Dundee City Council strongly recommends that you check for viruses using your own virus scanner as the Council will not take responsibility for any damage caused as a result of virus infection.

You could try disabling the "Wrap JDBC Objects" advanced option of the
connection pool (in the GF).

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Error-with-Glassfish-JNDI-connection-to-Oracle-Spatial-tp5149646p5150639.html
Sent from the GeoServer - User mailing list archive at Nabble.com.