I'm attempting to move my webapp from Tomcat to WildFly 8, but I'm running into file system problems. I think I need to understand more about configuration and the VFS.
My webapp is built on Spring, so I have some spring beans which receive paths from the 'applicationContext.xml' file. I pass in a path to a folder that will receive files to for processing, so I must have access to a physical file location for the webapp to function properly.
My problem is that at the path [wildfly]/standalone/deployments/myapp.war, the .war is not expanded. Tomcat auto-expands wars, so I end up passing in ServletContext-relative paths into the spring beans like "/MyFilesDir", which I expect to be in the expanded war directory. I'm not sure how to handle the fact that the WAR is not expanded.
Ideally, I would like to be able to modify the applicationContext.xml file and have this work. Can I reference a WildFly path into the applicationContext.xml somehow? I can modify my app to take absolute paths rather than relative ones, but I'd like to make this work by configuration rather then re-coding.