Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throuble with the new VAADIN 14 resource location #53

Open
linspinho opened this issue Nov 26, 2019 · 1 comment
Open

Throuble with the new VAADIN 14 resource location #53

linspinho opened this issue Nov 26, 2019 · 1 comment

Comments

@linspinho
Copy link

### ERROR when using vaadin 14 + spring boot 2 in Production MODE

IT seems SPRING can´t find CSS file in production.

2019-11-26 16:21:02.035 DEBUG 6944 --- [nio-8080-exec-7] o.s.web.servlet.DispatcherServlet : GET "/frontend-es6/com/github/appreciated/app-layout/app-layout-styles-lumo.css", parameters={}
2019-11-26 16:21:02.035 DEBUG 6944 --- [nio-8080-exec-7] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped to org.springframework.web.servlet.mvc.ServletForwardingController@1d97afdc
2019-11-26 16:21:02.051 DEBUG 6944 --- [nio-8080-exec-7] o.s.web.servlet.DispatcherServlet : Completed 404 NOT_FOUND
2019-11-26 16:21:02.051 DEBUG 6944 --- [nio-8080-exec-8] o.s.web.servlet.DispatcherServlet : GET "/frontend-es6/com/github/appreciated/app-layout/left/left-responsive-hybrid.css", parameters={}
2019-11-26 16:21:02.051 DEBUG 6944 --- [nio-8080-exec-8] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped to org.springframework.web.servlet.mvc.ServletForwardingController@1d97afdc
2019-11-26 16:21:02.067 DEBUG 6944 --- [nio-8080-exec-8] o.s.web.servlet.DispatcherServlet : Completed 404 NOT_FOUND

DOES NOT happens when using in DEBUG MODE

2019-11-26 17:32:38.367 DEBUG 6444 --- [nio-8080-exec-2] o.s.web.servlet.DispatcherServlet : GET "/frontend/com/github/appreciated/app-layout/app-layout-styles-lumo.css", parameters={}
2019-11-26 17:32:38.382 DEBUG 6444 --- [nio-8080-exec-2] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped to org.springframework.web.servlet.mvc.ServletForwardingController@e31a27
2019-11-26 17:32:38.601 DEBUG 6444 --- [nio-8080-exec-3] o.s.web.servlet.DispatcherServlet : GET "/frontend/com/github/appreciated/app-layout/left/left-responsive-hybrid.css", parameters={}
2019-11-26 17:32:38.601 DEBUG 6444 --- [nio-8080-exec-3] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped to org.springframework.web.servlet.mvc.ServletForwardingController@e31a27
2019-11-26 17:32:38.679 DEBUG 6444 --- [nio-8080-exec-2] o.s.web.servlet.DispatcherServlet : Completed 200 OK
2019-11-26 17:32:38.710 DEBUG 6444 --- [nio-8080-exec-3] o.s.web.servlet.DispatcherServlet : Completed 200 OK
@linspinho linspinho added the question label now

@linspinho
Copy link
Author

As indicated from another user here: appreciated/vaadin-app-layout#297, I have fix that with a workaround: "UI.getCurrent().getPage().setLocation(...);" instead of "this.getUI().ifPresent(ui -> ui.navigate(...));" in my login page. It seems to be a vaadin bug, as the addon provider stated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant