Tomcat выдает ошибку при развернутом загрузочном приложении - PullRequest
0 голосов
/ 15 мая 2019
2019-05-15 14:14:39.760 ERROR 5700 --- [io-8080-exec-14] org.thymeleaf.TemplateEngine             : [THYMELEAF][http-nio-8080-exec-14] Exception processing template "Dashboard": An error happened during template parsing (template: "class path resource [templates/Dashboard.html]")

На моем локальном компьютере проблем нет.

И в конце журнала, некоторые другие журналы:

Caused by: org.thymeleaf.exceptions.TemplateInputException: Error resolving template [layouts/left-nav-bar], template might not exist or might not be accessible by any of the configured Template Resolvers (template: "layouts/Master" - line 99, col 14)

Ошибка появляется здесь:

response.sendRedirect("/myPassword" + viewMyPasswordParam);

Я использовал request.getContextPath()

вместо этого, но все еще ошибка.

2019-05-15 14:44:20.228  INFO 5700 --- [io-8080-exec-14] c.b.g.backend.service.GenericService     : Redirecting to /myPassword

в onAuthenticationSuccess НЕОЖИДАННАЯ ОШИБКА (это пользовательское сообщение for / error) 404 не удалось найти страницу: / error

это код

        @Override
        public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException {
           .
    .
    .
    .
    .
        response.sendRedirect(request.getContextPath() + "/myPassword" + viewMyPasswordParam);
  GenericService.logger.info("Redirecting to {} in onAuthenticationSuccess");
//i tried also without request.getContextPath() + 

это про тимелист? Должен ли я дать classpath тимелисту?

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...