Wildfly 8 does not read network folder when run as a service

Asked

Viewed 40 times

0

Good morning!

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

Follows 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);
  • I tried to set up a Wildfly service account, but it still didn’t work.

  • What is dirOrigem?

  • @Victorstafusa It is the mapping of the network folder that holds the images. dirOrigem: Z: TEMP images.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.