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]")
On my local computer, there is no problem.
And in the end of log, some other logs:
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)
The error comes after here:
response.sendRedirect("/myPassword" + viewMyPasswordParam);
I used request.getContextPath()
instead of that but still error.
2019-05-15 14:44:20.228 INFO 5700 --- [io-8080-exec-14] c.b.g.backend.service.GenericService : Redirecting to /myPassword
in onAuthenticationSuccess UNEXPECTED ERROR (this is custom message for /error) 404 could not find page: /error
this is code
@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() +
is it about thymeleaf? Should i give classpath to thymeleaf?