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/[email protected]/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


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to