Re: [Geotools-gt2-users] using the FileDataStore from an jee context.

2014-10-16 Thread Andreas Mogensen
It turns out that I was using the wrong scope on my jsf managed bean. Switching from @SessionScoped to @ViewScoped apparently solved the problem. Thank you so much for the assistance Kind regards Andreas > Den 16/10/2014 kl. 18.23 skrev Jody Garnett : > > It is possible that you had an ass

Re: [Geotools-gt2-users] using the FileDataStore from an jee context.

2014-10-16 Thread Jody Garnett
It is possible that you had an assembly step that combined several jars. If you do take that route you need ensure that the META-INF/services files are combined in the final product. * http://docs.geotools.org/stable/userguide/welcome/integration.html * http://docs.geotools.org/stable/userguide/fa

Re: [Geotools-gt2-users] using the FileDataStore from an jee context.

2014-10-16 Thread Andreas Mogensen
Indeed it does work. I have no idea why I've been getting this nullpointer. Perhaps my IDE (Netbeans) didn't deploy the app correctly on the server (Glassfish 4.0). Sorry for the inconvenience. > Den 16/10/2014 kl. 07.36 skrev Jody Garnett : > > That is the correct way, any idea why it would r

Re: [Geotools-gt2-users] using the FileDataStore from an jee context.

2014-10-15 Thread Jody Garnett
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 t

[Geotools-gt2-users] using the FileDataStore from an jee context.

2014-10-15 Thread Andreas Mogensen
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