From: Martin D. (JIRA) <ji...@co...> - 2005-06-05 23:44:24
|
JAI dependency in CRS framework ------------------------------- Key: GEOT-561 URL: http://jira.codehaus.org/browse/GEOT-561 Project: GeoTools Type: Bug Components: referencing Versions: 2.1.M5 Reporter: Martin Desruisseaux Assigned to: Martin Desruisseaux Priority: Minor Fix For: 2.1.RC0 The CRS framework should not have any JAI (Java Advanced Imaging) dependency. However, the following exception has been reported: java.lang.NoClassDefFoundError: javax/media/jai/WarpAffine at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at sun.misc.Service$LazyIterator.next(Unknown Source) at org.geotools.factory.FactoryRegistry.scanForPlugins(FactoryRegistry.java:420) at org.geotools.factory.FactoryRegistry.getServiceProviders(FactoryRegistry.java:114) at org.geotools.referencing.operation.MathTransformFactory.getProvider(MathTransformFactory.java:255) [...etc...] This is probably caused by the following MathTransform provider, registered in META-INF/services/org.geotools.referencing.operation.MathTransformProvider org.geotools.referencing.operation.transform.WarpTransform2D$Provider Just removing the above line from the META-INF/services/[...]MathTransformProvider file should do the trick as a short-term fix for the 2.1 branch. In the longer term, we need some mechanism on the trunk for avoiding this exception on installations without JAI. A try ... catch block in FactoryRegistry.scanForPlugins may do the trick. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |