[geotk] Concerting Coordinates between custom Transverse Mercator
and WGS84 Lon-Lat
martin.desruisseaux at geomatys.fr
Thu Mar 4 04:41:45 EST 2010
Thanks for the report. The symptoms that you are facing look like a ClassLoader
issue. I would be curious to know:
* Do you have a development cycle where the application is deployed,
undeployed and redeployed again without restarting the server? Or
something similar like a JAR file installed, uninstalled and re-
* If the above is 'yes', do you install / uninstall individual Maven
JAR files, or the "everything in one big JAR" bundle?
Do be more specific, the services declared in the META-INF/services need to be
unregistered when Geotk is uninstalled. I have not yet provided a convenience
method for that.
Le 04/03/10 10:08, dan twining a écrit :
> Hi Martin,
> Thanks for your reply. It turns out that the exception is caused by a
> weird interaction between GTK and the GWT (Google Web Toolkit) "devmode"
> (the coordinate conversion is happening in the back-end of a GWT/Java
> web app). For the record, this is the exception:
> Caused by: java.lang.RuntimeException: java.lang.ClassCastException:
> class org.geotoolkit.referencing.operation.DefaultMathTransformFactory
> at com.example.LonLatConverter.toLonLat(LonLatConverter.java:47)
> Caused by: java.lang.ClassCastException: class
> at java.lang.Class.asSubclass(Class.java:3018)
> at com.example.LonLatConverter.toLonLat(LonLatConverter.java:35)
> My current work-around is to use the GWT Eclipse Plug-in. That doesn't
> throw the exception, nor does building the war and deploying the web-app
> to either Tomcat or Jetty. All very strange, but I'm happy to ignore it
> for now.
> Thanks again for your help,
More information about the Geotoolkit