JBoss wildfly 8.x Provider "vfs" not installed when using java nio Paths

wildfly 8 exploit
wildfly vs jboss
jboss 8
wildfly 8/9
wildfly tutorial pdf
wildfly 18.0 1
wildfly rpm
install wildfly on windows

I'm trying to export my spring application from glassfish 4 to JBoss wildfly 8.x or 9 alpha, but when my application starts in some part of my code throws the exception:

Caused by: java.lang.RuntimeException: java.nio.file.FileSystemNotFoundException: Provider "vfs" not installed
    at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:218)
    at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:87)
    at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:72)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
    ... 3 more
Caused by: java.nio.file.FileSystemNotFoundException: Provider "vfs" not installed
    at java.nio.file.Paths.get(Paths.java:147) [rt.jar:1.7.0_72]
    at com.springmvcangular.backend.utils.entity.BaseEntityInitializer.extendsEntities(BaseEntityInitializer.java:123)
    at com.springmvcangular.backend.utils.entity.BaseEntityInitializer.initializeBaseEntities(BaseEntityInitializer.java:88)
    at com.springmvcangular.backend.config.ApplicationInitializer.onStartup(ApplicationInitializer.java:60)
    at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:175)
    at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:178)
    ... 7 more

in my class BaseEntityInitializer in that exception line i have:

packagepath = Paths.get(this.getClass().getClassLoader()
                            .getResource(path.replace('.', '/')).toURI());

where path its a package path like com.something.model, so why in my glassfish 4 server this works perfectly and what i need for use it in wildfly? i don't know what is missing in wildfly or if i need to include some library.

What is the difference between JBoss EAP, Wildfly, JBoss web, and , " is just the new name for "AS", which stood for Application Server. To load the provider use a ServiceLoader so within the META-INF/services folder of the jar this project adds a file called 'org.jboss.as.domain.management.plugin.PlugInProvider' - this contains a single entry which is the fully qualified class name of the PlugInProvider implementation class.

This is my solution how to iterate over files/directories in Wildfly:

List<String> fileNames = new LinkedList<>();
URL resourceUrl = getClass().getResource("/your/path");
VirtualJarInputStream virtualJarInputStream = (VirtualJarInputStream) resourceUrl.openStream();
JarEntry next = null;
while ((next = virtualJarInputStream.getNextJarEntry()) != null) {

WildFly Homepage · WildFly, community with important bug fixes and component upgrades that have become available. The technology behind WildFly is also available in JBoss Enterprise Application Platform 7. JBoss EAP is a hardened enterprise subscription with Red Hat's world-class support, long multi-year maintenance cyles, and exclusive content.

    import org.jboss.vfs.VirtualFile; // https://mvnrepository.com/artifact/org.jboss/jboss-vfs

    URLConnection connection = Objects.requireNonNull(getClass().getClassLoader().getResource("/template/cyber")).openConnection();
    VirtualFile virtualFile = (VirtualFile) connection.getContent();
    Stream<Path> walk = Files.walk(Paths.get(virtualFile.getPhysicalFile().toURI()));
    List<String> result = walk.filter(Files::isRegularFile).map(Path::toString).collect(Collectors.toList());

WildFly, Media. Red Hat's JBoss Team Launch WildFly 8 with full Java EE 7 Support and a New Embeddable Web Server · Interview with WildFly Lead Jason Greene on  In this particular case WildFly would inject the default instance of a managed executor service, the value in java:comp/DefaultManagedExecutorService, as mandated by the EE Concurrency Utilities 1.0 Specification (JSR 236).

WildFly 8 · WildFly, We will be highlighting notable WildFly 8 articles, videos and resources 8 is now officially Java EE7 certified, meeting both the Web and the Full profiles. This is a big benefit to cloud providers (such as OpenShift) who run  WildFly 8.x = JEE7 Red Hat typically backports security fixes from newer versions into older versions, Red Hat also typically releases "feature packs" that allow you to access newer features/specs. So if it is a very important project and you do not need JEE7 specs, you may want to use JBoss EAP which is the productized version of JBoss AS 7.

WildFly 8 Final is released! · WildFly, JBoss EAP is a hardened enterprise subscription with Red Hat's world-class support, long multi-year maintenance cyles, and exclusive content. You can  WildFly ships with two access control "providers", the "simple" provider, and the "rbac" provider. The "simple" provider is the default, and provides a permission scheme equivalent to the JBoss AS 7 behavior where any authenticated administrator has all permissions.

Downloads · WildFly, It happens to work by chance in GlassFish. Nowhere in the ClassLoader contract (or the Java EE platform specification) is it specified what kind  How to configure SSL/HTTPS on WildFly This is a complete tutorial to show how you can configure SSL/HTTPS support for your WildFly application server. Generally speaking, to configure SSL/HTTPS you can either use the pure JSSE implementation (and the keytool utility) or a native implementation based on OpenSSL.

  • thanks,do you have a code example or an url where i can see how to use it for the Paths class?
  • What do you need the Path for? Do you just want to read a resource or do you want to list all resources in a folder?
  • i need to read all resources in a folder(package) and get their names like com.package.otherpachage.classname, because i'm using javassist so how i can read a package resources using inputstreams or how can install vfs for java nio? i don't find anything about it