Dear community, I'm currently running into some classloading issues while creating a plugin for Apache Solr using Geotools. [1]
* What the plugin tries to do: In short, I'm creating a JTS LineString for each result document and use JTS.transform() and getLength() to extract the distance in kilometers. * What is my dev setup: I use a maven build, depending on latest jts and geotools and an assembly that produces the solr plugin jar and a directory containing the dependency jars. I use eclipe for development. * How the plugin is deployed to solr: The plugin jar, along side with jts and geotools dependencies, is put to <solr-core>/lib directory. This dir is scanned by solr and added to the classpath. Solr itself is a war file running inside jetty container. * What's working: Calling the JTS.transform() code snippet in a unit test inside eclipse works. * Whats my problem: Executing the same code snipptet inside solr, running in a jetty webserver, fails: java.lang.IllegalAccessError: tried to access class org.geotools.referencing.operation.transform.AffineTransform2D from class org.geotools.geometry.jts.GeometryCoordinateSequenceTransformer", Are there additional initialization steps to be performed to get the classpath scanning of geotools working inside this jetty/solr environment? Kind regards, matthias [1] Versions: * Java 7 * Solr 4.9.1 * JTS 1.13 * Geotools 13.4 ------------------------------------------------------------------------------ Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users amazing mobile app experiences with Intel(R) XDK. Use one codebase in this all-in-one HTML5 development environment. Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140 _______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users