vfs is not supported by some of the framework's api, so we need to have some mechanism to convert vfs to file protocol. I'm not so convinced using openStream or openConnection to make this work done, do you know any other tweak.

Mainly we are getting this problem from struts2 framework. We can't modify the source for our purpose, since it may lead to problem while upgrading the framework. I dont think struts2 will work if we deploy it outside the EAR.

vfs is not supported by some of the framework's api, so we need to have some mechanism to convert vfs to file protocol. I'm not so convinced using openStream or openConnection to make this work done, do you know any other tweak.

The bad part is that still struts2 latest is facing some problem in JBoss AS 5 and JBoss AS 7 in different OS... I have provided patch twice to get rid of this problem. But recent struts2 upgrades (fixes) broke those patches. Please see the below apache jira link.