peholmst / SpringSecurityDemo

An example application demonstrating how to use Spring Security in a Vaadin application
56 stars 33 forks source link

Blank screen #3

Open reborne opened 7 years ago

reborne commented 7 years ago

I tried to fix this problem by myself, but i just gave up. Before making 'mvn spring-boot:run', i made 'mvn install -U compile' (end up successful) in project root directory, then 'cd hybrid.... && mvn install -U compile && mvn spring-boot:run' . Console prints out: 2016-11-16 14:59:42.258 INFO 7824 --- [ost-startStop-1] c.v.s.b.i.VaadinServletConfiguration : Set servlet init parameter [resourceCacheTime] = [3600] 2016-11-16 14:59:42.258 INFO 7824 --- [ost-startStop-1] c.v.s.b.i.VaadinServletConfiguration : Set servlet init parameter [heartbeatInterval] = [15] 2016-11-16 14:59:42.258 INFO 7824 --- [ost-startStop-1] c.v.s.b.i.VaadinServletConfiguration : Set servlet init parameter [closeIdleSessions] = [true] 2016-11-16 14:59:42.495 INFO 7824 --- [ost-startStop-1] o.s.b.c.e.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/] 2016-11-16 14:59:42.497 INFO 7824 --- [ost-startStop-1] o.s.b.c.e.ServletRegistrationBean : Mapping servlet: 'customServlet' to [/vaadinServlet/, /VAADIN/] 2016-11-16 14:59:42.502 INFO 7824 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/] 2016-11-16 14:59:42.503 INFO 7824 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/] 2016-11-16 14:59:42.503 INFO 7824 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/] 2016-11-16 14:59:42.503 INFO 7824 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/] 2016-11-16 14:59:42.884 INFO 7824 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@4d74b49a: startup date [Wed Nov 16 14:59:40 GMT+02:00 2016]; root of context hierarchy 2016-11-16 14:59:42.977 INFO 7824 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest) 2016-11-16 14:59:42.978 INFO 7824 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) 2016-11-16 14:59:43.017 INFO 7824 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2016-11-16 14:59:43.017 INFO 7824 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2016-11-16 14:59:43.064 INFO 7824 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2016-11-16 14:59:43.085 INFO 7824 --- [ main] c.v.s.b.i.VaadinServletConfiguration : Checking the application context for Vaadin UI mappings 2016-11-16 14:59:43.088 INFO 7824 --- [ main] c.v.s.b.i.VaadinServletConfiguration : Registering Vaadin servlet of type [org.vaadin.peholmst.samples.springsecurity.hybrid.CustomServlet] 2016-11-16 14:59:43.097 INFO 7824 --- [ main] c.v.s.b.i.VaadinServletConfiguration : Forwarding @SpringUI URLs from {/=org.springframework.web.servlet.mvc.ServletForwardingController@7778295f} 2016-11-16 14:59:43.098 INFO 7824 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Root mapping to handler of type [class org.springframework.web.servlet.mvc.ServletForwardingController] 2016-11-16 14:59:43.106 INFO 7824 --- [ main] c.v.spring.navigator.SpringViewProvider : Looking up SpringViews 2016-11-16 14:59:43.110 INFO 7824 --- [ main] c.v.spring.navigator.SpringViewProvider : 2 SpringViews found 2016-11-16 14:59:43.316 INFO 7824 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup 2016-11-16 14:59:43.394 INFO 7824 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8080 (http) 2016-11-16 14:59:43.399 INFO 7824 --- [ main] .p.s.s.h.HybridSecuritySampleApplication : Started HybridSecuritySampleApplication in 3.423 seconds (JVM running for 6.625)

And this issue persists in Chrome / Firefox

Any suggestions how to solve this?

jselamy commented 7 years ago

I'm having the same problem!

der-ali commented 7 years ago

commenting "server.context-path=/demo" in application.properties will solve the problem ;)

reborne commented 7 years ago

flips the table

der-ali commented 7 years ago

which table ?