Hi,
I am translating geojson files to shape with Geotools and my app works
well locally as a Java application.
The only thing I get is a warning:
30-Jun-2010 4:26:11 PM org.geotools.factory.FactoryRegistry
scanForPlugins
WARNING: Can't load a service for category "MathTransformProvider".
Cause is "NoClassDefFoundError: javax/media/jai/WarpAffine".
But If I use the same code and access it through a REST web service in a
web application (using Spring in Tomcat) I get the following exception:
java.lang.NoClassDefFoundError: org/opengis/referencing/FactoryException
at
...java.feature.translator.beans.Geojson2ShapeBean.geojson2shape(Geojson
2ShapeBean.java:71)
at
...java.feature.translator.ws.rest.RestGeojson2Shape.geojson2shape(RestG
eojson2Shape.java:81)
I know this stack trace is not very useful (will add logging to the java
class, had no time yet...) but this issue seems to be the same reported
in
http://jira.codehaus.org/browse/GEOT-1864 but it is reported as fixed
for GT 2.7 ...
I am using JDK 5 and gt-2.7 (including gt-epsg-hsql-2.7-SNAPSHOT.jar,
hsqldb-1.8.0.7.jar, vecmath-1.3.2.jar, jsr-275-1.0-beta-2.jar,
gt-referencing-2.7-SNAPSHOT.jar, etc...)
Does anybody have a solution for this? Should I try to install JAI in
my server?
(will add more logging to see if I get a more useful stack trace)
Thanks,
Jose Lopes
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users