Springboot application does not see some resource files when I try to deploy to wildfly 10 in standalone mode.

When I run through gradle run (tomcat starts automatically), System.getProperty("java.class.path") contains the path

 *****/build/classes/main 

On this path are Kong. mapping files and files, i.e. everything works in this mode (path)

When I try to deploy to wildfly, I only get

 /home/***/servers/wildfly-9.0.1.Final/jboss-modules.jar 

How to set up the default project path to *****/build/classes/main? in wildfly *****/build/classes/main? Thank.

  • wildfly-9.0.1. Final as if not at all 10. Are you sure that it deploys to the 10th version? And with what wildfly will the classpath *****/build/classes/main need? If the application is deployed correctly, then no classpath is needed. - Sergey
  • I apologize, version 9, the application is deployed correctly, but at the time of execution an error occurs due to the fact that the application does not see the mapping file, in the resources - sergpc
  • Are these files packaged into a finished application? Make sure that they are exactly where they expect to see springboot. Or are you trying to download them yourself? - Sergey
  • Yes, they are packaged into the application, and when started this way: 'java -jar examplename.war' everything is fine, when running through the 'gradle run' there were problems, but this was fixed, 'sourceSets.main.output.resourcesDir = sourceSets. main.output.classesDir 'in build.gradle - sergpc

0