-
1. Re: Using VFS to load an embedded bundle resource not working?
thomas.diesler Oct 21, 2011 7:08 AM (in response to tpesce)1 of 1 people found this helpfulThe OSGi layer uses the jbosgi-vfs abstraction. I've never tried jboss-vfs directly. I believe org.jboss.osgi.vfs;version=1.0 is exported from the system bundle. So you should not need to add any of the vfs module explicitly.
A lot has happend in OSGi since 7.0.2. Try to work with the latest from https://github.com/tdiesler/jboss-as - I can give you better support with that. You should get a 7.1.0.Beta within the next few days.
-
2. Re: Using VFS to load an embedded bundle resource not working?
tpesce Oct 21, 2011 10:59 AM (in response to thomas.diesler)I thought the same thing too about adding the vfs modules, but if I don't add those I get unresolved references when I deploy the bundle:
Imported Packages org.jboss.vfs -- Cannot be resolved
Regardless, I'll work from source - thanks for the suggestion!
-
3. Re: Using VFS to load an embedded bundle resource not working?
tpesce Oct 21, 2011 5:24 PM (in response to tpesce)I've built from your repo, and things look really good in general!
Unfortunately though I still had to explicitly enable the VFS capabilities. I am also still experiencing the same FileNotFoundException.
-
4. Re: Using VFS to load an embedded bundle resource not working?
thomas.diesler Oct 24, 2011 4:09 AM (in response to tpesce)I suggested to work with org.jboss.osgi.vfs in your user bundle and not with org.jboss.vfs directly. I'd say the latter is not supported from OSGi. The OSGi layer uses the former extensively.
Have a look at Extender Pattern vs. Lifecycle Interceptor It talks about how a lifecycle interceptor can be used to validate/deploy an OSGi webapp. In our testsuite we have interceptors (whivh are OSGi services) that use the jbosgi-vfs API.