Hi Martin

Am Montag 30 Juli 2007 schrieben Sie:
> Stefan Krüger a écrit :
> > But, when i pack it all up (with fatjar actually -
> > http://fjep.sourceforge.net/ ) to a JAR and run it, i get the following
> >
> > exception:
> >> org.opengis.referencing.NoSuchIdentifierException: No transform for
> >> classification "Transverse_Mercator". at
> >> org.geotools.referencing.operation.DefaultMathTransformFactory.getProvid
> >>er(DefaultMathTransformFactory.java:266)
>
> Check what happen to the content of META-INF/services directory in your
> packed JAR. Does it contains a
> org.geotools.referencing.operation.MathTransformProvider file? Also note
> that some files appear in more than one JAR with the same name, for example
> org.opengis.referencing.CRSAuthorityFactory. I don't know how fatjar behave
> in such case, but if it overwrite those files with the one found in the
> latest JAR, it will not work. If we want everything in the same JAR, we
> need to make sure that the content of every META-INF/services files is
> concatenated.
>
>       Martin

Thanks for the tip.. i found a moment to check it...

The META-INF/services is full of files, also containing 
 org.geotools.referencing.operation.MathTransformProvider
which contains only one line:
 org.geotools.referencing.operation.transform.EarthGravitationalModel$Provider

The file  META-INF/services/org.opengis.referencing.CRSAuthorityFactory is 
included, and contains 4 lines:
 org.geotools.referencing.factory.epsg.DefaultFactory
 org.geotools.referencing.factory.epsg.LongitudeFirstFactory
 org.geotools.referencing.factory.wms.AutoCRSFactory
 org.geotools.referencing.factory.wms.WebCRSFactory

Looks like fatjar concatenated it right, or?

So.. if META-INF/services is right... where is the problem?!?!???

OK.. have to go... will hopefully crack this down tomorrow.. 

Thanks anyway..

Stefan Krüger







-- 
wiki² - Softwareentwicklung
Stefan Krüger
Straßburger Weg 26
53113 Bonn

email   [EMAIL PROTECTED]
phone   0228 9437868
web     www.wikisquare.de
jabber  [EMAIL PROTECTED]
skype   alfonx
PGPKey  51B576FD

WER MASSENMAILS OHNE BCC SCHREIBT VERSTOESST GEGEN DEN DATENSCHUTZ!

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to