On Tue, May 13, 2014 at 9:43 PM, Greg Knight <greg.knight...@gmail.com>wrote:

> Greetings,
>
> I am trying to deploy the EPSG HSQL plugin under Tomcat.
>
> I am able to successfully run JUnit tests against my class (which I
> understand uses the embedded Jetty engine).  However, when I run in Tomcat
> in Debug mode, my class fails when it makes a call to the EPSG database.
>
>      final CRSAuthorityFactory crsFactory = CRS.getAuthorityFactory(true
> );
>
> So, I suspect this is an issue with the HSQL plugin. I could not find the
> location where the EPSG data was being unpacked (Im running on a Mac) --
> but I suspect its somewhere Tomcat isnt able to access.  Is there something
> specific I need to do to deploy HSQL in the Tomcat environment? Can I
> configure / specify the location of where the EPSG database is unpacked?
>

It's unpacked in the temp directory, which normally in Tomcat is redefined
to be $tomcat_home/temp
I know we can run GeoServer easily in Tomcat, and we use the HSQL database
in it without, I believe, issues.
The only setting we add in a servlet context listener, before everything
else can start, is the following:

        // don't allow the connection to the EPSG database to time out.
This is a server app,
        // we can afford keeping the EPSG db always on
        System.setProperty("org.geotools.epsg.factory.timeout", "-1");

Cheers
Andrea


-- 
==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to