Wildfly 8 does not read network folder when run as service

0

Good morning!

I have a java 8 application running on Wildfly 8, I need to display images. The view works perfectly when the folder is local C: (Eclipse, CMD, and Service). I had to transfer the folder with the images to the network, I created the mapping. I ran several tests by Eclipse and starting Wildfly with Windows CMD, it worked perfectly. When I run the Wildfly service on Windows, the network folder is not found (can not find the files), any tips? It seems like a permission problem, but how can I start by starting Wildfly through Eclipse and Windows Command? It just does not work as a service ... Thanks in advance for the help.

Follow the code:

            final File[] files = (new File(dirOrigem)).listFiles(new FilenameFilter() {
                public boolean accept(File dir, String nome) {
                    return nome.contains(name);
                }
            });

            ImagemAux imagemAux;
            for (File arquivo: files) {
                System.out.println("arquivo: " + arquivo);
    
asked by anonymous 19.09.2017 / 16:32

0 answers