From: <Jim...@fa...> - 2010-10-19 13:29:54
|
<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2><DIV>Hi all,<BR><BR><FONT size=2> I am working on deploying a JAVA application that uses GeoTools and have encountered the following error: "Authority EPSG is unknown or doesn't match the supplied hints".</FONT><BR><BR><FONT size=2> This application is being deployed in the latest version of Glassfish.</FONT><BR><BR><FONT size=2> Any help would be much appreciated.</FONT><BR><BR><FONT size=2>Thanks,<BR>Jim</FONT> </DIV></FONT> |
From: <Jim...@fa...> - 2010-10-19 19:22:18
|
<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2><DIV>Here is more information from my colleague...</DIV><DIV> </DIV><DIV>I am working with Jim on this issue and can provide more details:<BR>We are deploying a stateless EJB application in EAR format to Glassfish v3 on Windows (we will also be deploying in Solaris, but have not tried that yet). The application ran fine before we upgraded to the latest version of Glassfish. <P></P><BR>Now, a call to CRS.encode("EPSG:4326") fails with the following errors: <P></P><BR> *** <P></P><BR> org.opengis.referencing.FactoryException: Failed to connect to the EPSG database.<BR> java.sql.SQLException: Failed to get the data source for name "jdbc/EPSG"<BR> Authority "EPSG" is unknown or doesn't match the supplied hints. Maybe it is defined in an unreachable JAR file? <P></P><BR> *** <P></P><BR>However, GeoTools IS successfully creating the EPSG java database in: <P></P><BR> C:\Temp\Geotools\Databases\HSQL\v7.4.0 <P></P><BR>Once the database is created, it seems that the jar which created it (presumably gt-epsg-hsql) can't even find its own database!! <P></P><BR>We assume that it's registering jdbc/EPSG with JNDI, but clearly this is not accessible from within Glassfish v3. We'd love to create a Glassfish JNDI or JDBC pool for the EPSG database and see if that solves the problem, but we have no idea what connection parameters to supply (port, user, password, etc.). <P></P><BR>We have a PostgreSQL 8.4 database with PostGIS 1.5.1, so we also tried to download the scripts necessary to create a Postgres EPSG database from <A href="http://www.epsg.org/" target=blank>www.epsg.org</A>, but we found that the .zip file on that site was corrupted. <P></P><BR>We suspect that Glassfish v3 configuration is causing the problem. In order to even launch our application in Glassfish v3, we had to repackage our ear and move all the library jars to a lib folder within the ear archive. Interestingly, Glassfish v3 no longer supports the use of the CLASSPATH environment variable. <P></P><BR>JVM Settinsg => Path Settings from the Glassfish domain admin console reports that it will "Ignore the CLASSPATH environment variable" because it's "not supported in v3"!! <P></P><BR>Our ear includes the following geotools "gt" jars: <P></P><BR>gt-api-2.5.5.jar<BR>gt-epsg-hsql-2.5.5.jar<BR>gt-main-2.5.5.jar<BR>gt-metadata-2.5.5.jar<BR>gt-referencing-2.5.5.jar<BR>gt-shapefile-2.5.5.jar <P></P><BR>We only have one epsg jar in the ear. Our ear includes hsqldb-1.8.0.7.jar <P></P><BR>We haven't upgraded to the latest geotools or geotk jars because we are using hibernate-spatial-postgis 1.0 in our application, which pulls in the older version of geotools. <BR></DIV><FONT color=#990099>-----Jim CTR Meyer/AWA/CNTR/FAA@FAA wrote: -----<BR><BR></FONT><BLOCKQUOTE style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">To: geo...@li...<BR>From: Jim CTR Meyer/AWA/CNTR/FAA@FAA<BR>Date: 10/19/2010 09:29AM<BR>Subject: [Geotools-gt2-users] Authority EPSG is unknown or doesn't match the supplied hints<BR><BR><FONT size=2 face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif"><DIV>Hi all,<BR><BR><FONT size=2> I am working on deploying a JAVA application that uses GeoTools and have encountered the following error: "Authority EPSG is unknown or doesn't match the supplied hints".</FONT><BR><BR><FONT size=2> This application is being deployed in the latest version of Glassfish.</FONT><BR><BR><FONT size=2> Any help would be much appreciated.</FONT><BR><BR><FONT size=2>Thanks,<BR>Jim</FONT> </DIV></FONT><FONT size=2 face="Default Monospace,Courier New,Courier,monospace">------------------------------------------------------------------------------<BR>Download new Adobe(R) Flash(R) Builder(TM) 4<BR>The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly <BR>Flex(R) Builder(TM)) enable the development of rich applications that run<BR>across multiple browsers and platforms. Download your free trials today!<BR><A href="http://p.sf.net/sfu/adobe-dev2dev" target=blank>http://p.sf.net/sfu/adobe-dev2dev</A></FONT><FONT size=2 face="Default Monospace,Courier New,Courier,monospace">_______________________________________________<BR>Geotools-gt2-users mailing list<BR>Geo...@li...<BR><A href="https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users" target=blank>https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users</A><BR></FONT></BLOCKQUOTE><BR></FONT> |