Hi, I have an application which shows a RasterLayer over a JMapFrame,  
and it works fine in Netbeans, but when I execute the external jar, it  
doesn't work and the problem says:


WARNING: Can't load a service for category "Operation". Cause is  
"ServiceConfigurationError: org.opengis.coverage.processing.Operation:  
Provider org.geotools.coverage.processing.operation.ZonalStatistics  
could not be instantiated".
java.util.ServiceConfigurationError:  
org.opengis.coverage.processing.Operation: Provider  
org.geotools.coverage.processing.operation.ZonalStatistics could not  
be instantiated

I've searched some solutios, but none works:

A part of my POM.xml it's:

<build>
         <plugins>
             <plugin>
                 <artifactId>maven-assembly-plugin</artifactId>
                 <executions>
                     <execution>
                         <id>make-assembly</id>
                         <phase>package</phase>
                         <goals>
                             <goal>single</goal>
                         </goals>
                     </execution>
                 </executions>
                 <configuration>
                     <descriptorRefs>
                         <descriptorRef>jar-with-dependencies</descriptorRef>
                     </descriptorRefs>
                     <archive>
                         <manifest>
                             <mainClass>mapaRaster.rasterMap</mainClass>
                              
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                              
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
                         </manifest>
                         <manifestEntries>
                             <Specification-Vendor>Sun Microsystems,  
Inc.</Specification-Vendor>
                             <Implementation-Vendor>Sun Microsystems,  
Inc.</Implementation-Vendor>
                         </manifestEntries>
                     </archive>
                     <transformers>
                         <!-- merges META-INF/services/ entries  
instead of overwriting -->
                         <transformer  
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
                         <!-- merges  
META-INF/javax.media.jai.registryFile.jai entries instead of  
overwriting -->
                         <transformer  
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
                              
<resource>META-INF/javax.media.jai.registryFile.jai</resource>
                         </transformer>
                         <!-- merges META-INF/registryFile.jai entries  
instead of overwriting -->
                         <transformer  
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
                             <resource>META-INF/registryFile.jai</resource>
                         </transformer>
                         <!-- merges META-INF/registryFile.jaiext  
entries instead of overwriting -->
                         <transformer  
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
                             <resource>META-INF/registryFile.jaiext</resource>
                         </transformer>
                     </transformers>
                 </configuration>
             </plugin>
         </plugins>
</build>

Someone knows a solution for my problem?

Thanks



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to