// the expanded war file structure and thus breaks service-ref usage for servlet clients.
// This needs to be fixed in org.jboss.web.AbstractWebDeployer (JBOSS_AS/server module)
if (vfsRoot instanceof URLLoaderAdapter)
{
URLLoaderAdapter ula = (URLLoaderAdapter)vfsRoot;
URL rootURL = ula.toURL();
if ("file".equals(rootURL.getProtocol()) && rootURL.getFile().endsWith(".war"))
{
String fileName = rootURL.getFile();
if (!new File(fileName).exists()) // might be an exploded directory