Thanks, Florence and Xiangtan. This has just been very useful to me. Andrea, accessToUnderlyingConnectionAllowed is set to true in gt-jdbc JDBCDataStoreFactory for non-JNDI connection pools. Should we recommend it for JNDI as well, as it appears that Oracle sometimes needs it?
If so, I will add it to the JNDI examples: http://docs.geoserver.org/latest/en/developer/eclipse-guide/index.html http://docs.geoserver.org/latest/en/user/tutorials/tomcat-jndi/tomcat-jndi.html Kind regards, Ben. On 02/09/10 15:31, florence....@csiro.au wrote: > Hi List, > > For the problem below, I had a solution from Xiangtan : > > ---------------------------------------------------------------- > I encountered a similar DBCP configuration error before. > > "Could not unwrap connection. Is the DBCP pool configured to allow access to > underlying connections?" tells that the "accessToUnderlyingConnectionAllowed" > parameter is not configure properly. > > http://commons.apache.org/dbcp/configuration.html > > Try to set accessToUnderlyingConnectionAllowed parameter to true in your JNDI > configuration in Tomcat/Jetty, see whether it works. > ---------------------------------------------------------------- > > Added this parameter to my jetty.xml<Set > name="accessToUnderlyingConnectionAllowed">true</Set> and have not run into > the above problem since then. > > Regards, > Florence > > > -----Original Message----- > From: Tan, Florence (CESRE, Kensington) > Sent: Wednesday, 25 August 2010 3:13 PM > To: geoserver-users@lists.sourceforge.net > Subject: java.lang.RuntimeException: Could not unwrap connection > > Hi List, > > I'd svn update and rebuild my geotools (revision 36118) and geoserver > (revision 14733) to latest trunk and running my geoserver configuration from > elipse from time to time run into the following error : > > 25 Aug 13:42:35 ERROR [geoserver.ows] - > java.lang.RuntimeException: Could not unwrap connection. Is the DBCP pool > configured to allow access to underlying connections? > at > org.geotools.data.jdbc.datasource.DBCPUnWrapper.unwrap(DBCPUnWrapper.java:45) > at > org.geotools.data.oracle.OracleDialect.unwrapConnection(OracleDialect.java:478) -- Ben Caradoc-Davies <ben.caradoc-dav...@csiro.au> Software Engineering Team Leader CSIRO Earth Science and Resource Engineering Australian Resources Research Centre ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users