I am not sure many people are running GeoServer with a good naming 
service around. When I deployed epsg-hsql into JBoss I encountered 
problems as well; there should be some hints you can set to provide a 
good lookup key for epsg-hsql to use.

I encountered the problem as the difference between "jdbc/EPSG" on one 
system and "jdbc:EPSG" on another system. There are test cases in 
GeoTools that use an in memory JNDI service to ensure that epsg-hsql can 
function.
- http://docs.codehaus.org/display/GEOTOOLS/DataSource+Hint+for+EPSG

I am pretty sure the test cases are only written against my "new" 
implementation of the coordinate reference system authorities; I was not 
interested in the existing ones (as my main task was to clean up the use 
of concurrency and caching).
- 
http://docs.codehaus.org/display/GEOTOOLS/Improve+CRSAuthority+Concurrency+Caching+and+Connection+Use

Jody

Marshall Crocker wrote:
> 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
>   


-------------------------------------------------------------------------
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