On Wed, Aug 15, 2012 at 2:47 PM, Eike Hinderk Jürrens <
> I am new to geotools and building a swing application displaying a WMS
> layer and offering at least one tool for interaction. I developed the
> application using eclipse IDE + maven and just following these  steps
> regarding the reference system identification task.
> When running with eclipse IDE everything is fine. BUT, when packed as
> jar, I am getting an exception:
> org.opengis.referencing.NoSuchAuthorityCodeException: No code
> "EPSG:4326" from authority "EPSG" found for object of type
> My problem is, that I have gt-epsg-hsql as direct dependency for my
> application and I am building my application jar with
> maven-assembly-plugin + jar-with-dependencies.
> All required files are present in the final jar.
> Any hints or ideas?
> Did I miss any information you may need for solving my issue?
This issue has been reported under different names over and over on this
search for the achives.
The problem is that the GeoTools plugin system (Java own SPI, Service
uses files in META-INF/services that have a predictable name, and you get
files with the
same name in different jars. All is good until you try to mix everything
into a single jar,
most of these utilities are not smart enough to handle the duplicated files
and you end up
with only the last one, whilst their contents should be merged instead
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
Ing. Andrea Aime
Via Poggio alle Viti 1187
55054 Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 339 8844549