Hello All.. 

I have a strange problem.. My application runs perfect on my own computer but 
when I deploy it to a web server and try to run it through an applet I get the 
following exception when trying to create a FeatureType.. I use the following 
code (which is also the code line where the exception below is thrown):

            schema = FeatureTypeBuilder.newFeatureType(attTypes, typeName);

I get the following exception on the java console of my browser:

Caused by: java.lang.ClassCastException: java.util.PropertyResourceBundle
    at org.geotools.resources.i18n.Logging.getResources(Logging.java:54)
    at 
org.geotools.factory.FactoryRegistry.scanForPlugins(FactoryRegistry.java:415)
    at 
org.geotools.factory.FactoryRegistry.getServiceProviders(FactoryRegistry.java:124)
    at 
org.geotools.factory.FactoryRegistry.getServiceProvider(FactoryRegistry.java:223)
    at 
org.geotools.factory.FactoryRegistry.getServiceProvider(FactoryRegistry.java:202)
    at 
org.geotools.factory.FactoryCreator.getServiceProvider(FactoryCreator.java:95)
    at 
org.geotools.feature.FeatureTypeFactory.newInstance(FeatureTypeFactory.java:235)
    at org.geotools.feature.FeatureTypes.newFeatureType(FeatureTypes.java:217)
    at org.geotools.feature.FeatureTypes.newFeatureType(FeatureTypes.java:168)
    at org.geotools.feature.FeatureTypes.newFeatureType(FeatureTypes.java:247)
    at org.geotools.feature.FeatureTypes.newFeatureType(FeatureTypes.java:279)
    at org.wateraspects.gui.viewer.geotools.WAGridCoverageHelper.wrapGc(Unknown 
Source)
    ... 7 more

What I really don't understand is why the FactoryRegistry is scanning for 
plugins since the default geotools implementation of FeatureTypeFactory id 
available.. 

I have seen a similar exception when some service providers were not available, 
but I was able to solve this by adding the correct service provider in the 
META-INF/services folder on my web server..

I am using geotools 2.2.0

Sincerly Kasper Kaergaard






 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to