4 Replies Latest reply on Jul 28, 2017 4:39 AM by Jiri Sebesta

    Conflict between applications' instances  in WildFly

    Jiri Sebesta Newbie

      Hello,

      We have a problem with WildFly in domain mode. WildFly contains multiple application instances (up to 4) for different regions (same war files, just a different configuration). Our app is a common Spring web application which connects to Oracle db. When we deploy all applications with different Runtime Name at once, everything is OK. But when we change something in a configuration for a concrete instance and restart this server then other instances crash. We have to undeploy all apps and re-deploy them again to work correctly. In the future we plan to switch to standalone mode (instances will be separated), but is there any advice for the existing solution? When other servers crash, they report errors indicating some xml files conflicting each other. We guess that their context path could collide, but Runtime Name is different...

      Here is an example of log after the instance crash:

       

      DEBUG [default task-20] 25.7.2017 14:03:38 TemplateEngine:process(line 1051) - [THYMELEAF][default task-20] STARTING PROCESS OF TEMPLATE “welcome” WITH LOCALE en

      ERROR [default task-20] 25.7.2017 14:03:38 TemplateEngine:process(line 1085) - [THYMELEAF][default task-20] Exception processing template “welcome”: Error resolving template “welcome”, template might not exist or might not be accessible by any of the configured Template Resolvers

      DEBUG [default task-20] 25.7.2017 14:03:38 DispatcherServlet:render(line 1261) - Error rendering view [org.thymeleaf.spring4.view.ThymeleafView@733bbe98] in DispatcherServlet with name ‘web’

      org.thymeleaf.exceptions.TemplateInputException: Error resolving template “welcome”, template might not exist or might not be accessible by any of the configured Template Resolvers

          at org.thymeleaf.TemplateRepository.getTemplate(TemplateRepository.java:246)

          at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1104)

          at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1060)

          at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1011)

          at org.thymeleaf.spring4.view.ThymeleafView.renderFragment(ThymeleafView.java:335)

          at org.thymeleaf.spring4.view.ThymeleafView.render(ThymeleafView.java:190)

       

      Versions we are using: 

      WildFly 10.1.0.Final

      Spring 4.3.2.RELEASE

       

      We will be happy for any idea that will help us to solve this. Thank you in advance,

       

      Jiri