From: Marshall C. <cr...@ca...> - 2008-08-19 20:51:22
|
When trying to get geoserver to work with geronimo, I encountered a problem where the geotools library refused to fall back to the embedded epsg-hsql db. My coworker sent an email to the mailing list which you can see here: http://www.mail-archive.com/geo...@li.../msg05751.html We were able to get it working by commenting out the exception thrown on line 317 of org.geotools.referencing.factory.epsg.ThreadEpsgFactory.java. What's happening is there is no "jdbc/EPSG" resource so the context.lookup fails and a naming exception is thrown. When the naming exception is caught, this code throws an SQLException which causes the calling function org.geotools.referencing.factory.epsg.FactoryOnHSQL.createDataSource to pass the exception up and so it doesn't create the embedded db. My question is, how come other servers don't experience the same issue? Does the context.lookup not fail or does it throw an exception other than naming exception? Why catch the naming exception and then create and throw an SQLException? Marshall |