Hello,
I’m just migrating from spring4vaadin to vaadin-spring addon.
I have some problems with starting with the new addon.
I just use the easy way with “VaadinAutoConfiguration.class”.
My log is good, but my root context is empty and no views are accessible.
Let’s see :
INFOS: Initializing Spring embedded WebApplicationContext
2015-05-18 16:34:15,213 INFO [localhost-startStop-1]
ContextLoader: Root WebApplicationContext: initialization completed in 5998 ms
2015-05-18 16:34:15,435 DEBUG [localhost-startStop-1]
VaadinServletConfiguration: com.vaadin.spring.boot.internal.VaadinServletConfiguration$$EnhancerBySpringCGLIB$$a09e8fee initialized
2015-05-18 16:34:15,447 INFO [localhost-startStop-1]
VaadinServletConfiguration: Registering Vaadin servlet
2015-05-18 16:34:21,055 INFO [localhost-startStop-1]
VaadinServletConfiguration: Servlet will be mapped to URLs
[/vaadinServlet/*, /VAADIN/*]
2015-05-18 16:34:21,249 INFO [localhost-startStop-1]
VaadinServletConfiguration: Setting servlet init parameters
2015-05-18 16:34:21,249 INFO [localhost-startStop-1]
VaadinServletConfiguration: Set servlet init parameter [productionMode]
= [false]
2015-05-18 16:34:21,249 INFO [localhost-startStop-1]
VaadinServletConfiguration: Set servlet init parameter [resourceCacheTime]
= [3600]
2015-05-18 16:34:21,249 INFO [localhost-startStop-1]
VaadinServletConfiguration: Set servlet init parameter [heartbeatInterval]
= [300]
2015-05-18 16:34:21,249 INFO [localhost-startStop-1]
VaadinServletConfiguration: Set servlet init parameter [closeIdleSessions]
= [false]
2015-05-18 16:34:22,162 INFO [localhost-startStop-1]
DefaultSecurityFilterChain: Creating filter chain: Ant [pattern='/**']
, []
2015-05-18 16:34:22,330 INFO [localhost-startStop-1]
DefaultSecurityFilterChain: Creating filter chain: org.springframework.security.web.util.matcher.AnyRequestMatcher@1, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@126b8bd, org.springframework.security.web.context.SecurityContextPersistenceFilter@15ad92d, org.springframework.security.web.header.HeaderWriterFilter@da8918, org.springframework.security.web.csrf.CsrfFilter@50bd02, org.springframework.security.web.authentication.logout.LogoutFilter@f347c2, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@e2f489, org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter@cf962a, org.springframework.security.web.authentication.www.BasicAuthenticationFilter@570470, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@cf1138, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@1851ed1, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@12a84fc, org.springframework.security.web.session.SessionManagementFilter@1683a4b, org.springframework.security.web.access.ExceptionTranslationFilter@c65797, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@1218ee9]
2015-05-18 16:34:22,361 INFO [localhost-startStop-1]
ServletRegistrationBean: Mapping servlet: 'springVaadinServlet' to
[/vaadinServlet/*, /VAADIN/*]
2015-05-18 16:34:22,361 INFO [localhost-startStop-1]
FilterRegistrationBean: Mapping filter: 'errorPageFilter' to:
[/*]
2015-05-18 16:34:22,361 INFO [localhost-startStop-1]
FilterRegistrationBean: Mapping filter: 'springSecurityFilterChain' to:
[/*]
2015-05-18 16:34:23,111 INFO [localhost-startStop-1]
DefaultContextLoadTimeWeaver: Determined server-specific load-time weaver: org.springframework.instrument.classloading.tomcat.TomcatLoadTimeWeaver
mai 18, 2015 4:34:23 PM org.apache.catalina.loader.WebappClassLoaderBase addTransformer
INFOS: Added class file transformer [org.springframework.context.weaving.AspectJWeavingEnabler$AspectJClassBypassingClassFileTransformer@28d092]
to web application
[/pmt-web].
2015-05-18 16:34:23,149 INFO [localhost-startStop-1]
DefaultContextLoadTimeWeaver: Determined server-specific load-time weaver: org.springframework.instrument.classloading.tomcat.TomcatLoadTimeWeaver
2015-05-18 16:34:23,614 INFO [localhost-startStop-1]
VaadinServletConfiguration: Registering Vaadin servlet of type [com.vaadin.spring.server.SpringVaadinServlet]
2015-05-18 16:34:23,632 INFO [localhost-startStop-1]
VaadinServletConfiguration: Checking the application context for Vaadin UI mappings
2015-05-18 16:34:23,648 INFO [localhost-startStop-1]
VaadinServletConfiguration: Forwarding @SpringUI URLs from {/=org.springframework.web.servlet.mvc.ServletForwardingController@998549}
2015-05-18 16:34:23,663 INFO [localhost-startStop-1]
SimpleUrlHandlerMapping: Root mapping to handler of type [class org.springframework.web.servlet.mvc.ServletForwardingController]
2015-05-18 16:34:23,679 DEBUG [localhost-startStop-1]
VaadinAutoConfiguration: com.vaadin.spring.boot.VaadinAutoConfiguration$EnableVaadinServletConfiguration$$EnhancerBySpringCGLIB$$687cc5e2 initialized
2015-05-18 16:34:23,679 INFO [localhost-startStop-1]
SpringViewProvider: Looking up SpringViews
2015-05-18 16:34:23,929 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [changeManagementView]
with view name [ChangeManagement]
2015-05-18 16:34:23,929 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [changeProposalView]
with view name [ChangeProposal]
2015-05-18 16:34:23,929 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [changeRequestView]
with view name [ChangeRequest]
2015-05-18 16:34:23,929 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [configurationListView]
with view name [ConfigurationList]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [configurationView]
with view name [Configuration]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [projectListView]
with view name [ProjectList]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [projectView]
with view name [Project]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [pmtPortal]
with view name []
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [businessProcessView]
with view name [BusinessProcess]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [contextView]
with view name [Context]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [operationView]
with view name [Operation]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [organizationalProcessView]
with view name [OrganizationalProcess]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [boundaryEventView]
with view name [BoundaryEvent]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [endEventView]
with view name [EndEvent]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [intermediateCatchEventView]
with view name [IntermediateCatchEvent]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [startEventView]
with view name [StartEvent]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [throwEventView]
with view name [ThrowEvent]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [eventGatewayView]
with view name [EventGateway]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [exclusiveGatewayView]
with view name [ExclusiveGateway]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [inclusiveGatewayView]
with view name [InclusiveGateway]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [parallelGatewayView]
with view name [ParallelGateway]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [dataObjectView]
with view name [DataObject]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [actorView]
with view name [Actor]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [repositoryView]
with view name [Repository]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [businessFunctionView]
with view name [BusinessFunction]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [externalReferenceView]
with view name [ExternalReference]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [indicatorView]
with view name [Indicator]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [systemView]
with view name [System]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [securedView]
with view name [secured]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [testPortal]
with view name [test]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [error401View]
with view name [error401]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [loginView]
with view name [login]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [adminPortal]
with view name [Admin]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [groupListView]
with view name [Groups]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [groupView]
with view name [Group]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [roleListView]
with view name [Roles]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [roleView]
with view name [Role]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [siteListView]
with view name [Sites]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [siteView]
with view name [Site]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [userListView]
with view name [Users]
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
SpringViewProvider: Found SpringView bean [userView]
with view name [User]
2015-05-18 16:34:23,945 INFO [localhost-startStop-1]
SpringViewProvider: 41 SpringViews found
2015-05-18 16:34:23,945 DEBUG [localhost-startStop-1]
VaadinAutoConfiguration: com.vaadin.spring.boot.VaadinAutoConfiguration$EnableVaadinConfiguration$$EnhancerBySpringCGLIB$$faf2fe69 initialized
On my URL i have a 404 error page.
What’s wrong please ?
Default “ServletForwardingController” defect ?