Michael Bedward ha scritto:
> If anyone can suggest what I'm doing wrong with the process module
> unit tests I'd be very grateful. I've just done a clean install here
> and everything is fine. Yet twice on hudson the tests provoke class
> not found errors...
>
>> java.lang.NoClassDefFoundError
>> at
>> org.geotools.coverage.GridSampleDimension.<clinit>(GridSampleDimension.java:1426)
>> at
>> org.geotools.coverage.grid.GridCoverageFactory.create(GridCoverageFactory.java:329)
>
> gt-coverage is in the pom so I'm not sure how to interpret the error.
Let me try a shot in the dark. As far as I remember the Hudson JDK does
not have JAI installed in the JDK. And the above code might need it.
The practice so far in GeoTools has been to declare a "provided"
dependency to JAI in all modules that do need it. Maybe process needs
it too.
From the coverage pom.xml:
<dependency>
<groupId>javax.media</groupId>
<artifactId>jai_imageio</artifactId>
<!-- The version number is specified in the parent POM. -->
<scope>provided</scope> <!-- Users should execute JAI installer. -->
</dependency>
Now, I personally disagree on this vision and think we should include
the jai jars as normal dependency, but this is another discussion.
Cheers
Andrea
--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
------------------------------------------------------------------------------
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel