Hi,
Have uncovered a class loader issue.
Deploying under Tomcat 5.5 I got a "ClassDefNotFound" error with a
configuration that ended up executing the code in
org.geotools.data.geometryless.ConnectionPoolFacade:
public ConnectionPoolFacade(String poolKey, String driver)
throws SQLException {
try {
javax.sql.ConnectionPoolDataSource _nativePool =
(javax.sql.ConnectionPoolDataSource) (Class.forName(driver)
.newInstance());
// LOGGER.fine("Obtained ConnectionPoolDataSource " +
_nativePool
// + " from driver " + driver);
} catch (Exception e) {
throw new SQLException(
"Failed to instantiate connection pool using " + driver
+ "(" + e + ")");
}
}
But the same code in a simple JSP page worked just fine.
The same configuration, however, worked just fine in Jetty on the same
machine.
So, there is some quirk or bug in the class loading that may be related
to the way the datastore plugin stuff works in geoserver.
Has anyone got any insight into this beast?
I will attempt to test under Tomcat 4.1 on the same box when I get
access again.
Rob Atkinson
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel