That is the correct way, any idea why it would return null for you?
You can step through the code with a debugger, FileDataStoreFinder calls
the methods on a data store factory - so if you need to you can call those
methods yourself to figure out what is odd about your environment.
You may need to check your app server sandboxing to ensure your EE
application has permission to see the file system.
Jody Garnett
On Wed, Oct 15, 2014 at 5:11 AM, Andreas Mogensen <ad.mogen...@gmail.com>
wrote:
> Hi Everyone,
>
> I'm trying to create a FileDataStore-object in a managed bean in a
> JSF-application via the following expression:
>
> FileDataStore store = FileDataStoreFinder.getDataStore(file);
>
> However I the FileDataStoreFinder.getDataStore(file) returns null instead
> a ShapefileFeatureStore.
>
> What is the correct way to instantiate the FileDataStore-object in a
> container managed application i.e. a J2EE/JSF application?
>
>
> Thanks
>
> Andreas
>
>
>
> ------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users