Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Spring Security + WebFlow + JSF 2.0 Problem

  1. #11
    Join Date
    Sep 2012
    Posts
    6

    Default

    Ok... I removed the @ManagedBean...

    These are my new versions:

    Code:
    	<properties>
    		<springframework-version>3.0.5.RELEASE</springframework-version>
    		<springsecurity-version>3.0.5.RELEASE</springsecurity-version>
    		<webflow-version>2.3.1.RELEASE</webflow-version>
    		<slf4j-version>1.5.10</slf4j-version>
    		<mojarra-version>2.1.7</mojarra-version>
    		<primefaces-version>3.1.1</primefaces-version>
    		<servlet-version>3.0.1</servlet-version>
    	</properties>
    I also include my web.xml, maybe I need something else:

    Code:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    	version="2.4">
    
    	<!-- The master configuration file for this Spring web application -->
    	<context-param>
    		<param-name>contextConfigLocation</param-name>
    		<param-value>
    			/WEB-INF/config/web-application-config.xml
    		</param-value>
    	</context-param>
    	
    	<!-- Use JSF view templates saved as *.xhtml, for use with Facelets -->
    	<context-param>
    		<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
    		<param-value>.xhtml</param-value>
    	</context-param>
    	
    	<!-- Enables special Facelets debug output during development -->
      	<context-param>
            <param-name>javax.faces.PROJECT_STAGE</param-name>
       		<param-value>Development</param-value>
      	</context-param>
      	
      	<!-- Causes Facelets to refresh templates during development -->
      	<context-param>
      		<param-name>javax.faces.FACELETS_REFRESH_PERIOD</param-name>
      		<param-value>1</param-value>
      	</context-param>
    
    	<context-param> 
        	<description> 
            	Enables the ui:debug facelets tag. 
        	</description> 
        	<param-name>javax.faces.FACELETS_DEVELOPMENT</param-name> 
        	<param-value>true</param-value> 
    	</context-param> 
    
    	
    	<context-param>
    		<param-name>javax.faces.CONFIG_FILES</param-name>
    		<param-value>
    			/WEB-INF/faces-config.xml
    		</param-value>
    	</context-param>
    	<listener>
    		<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    	</listener>
    	<listener>
    		<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
    	</listener>
    	
    	<!--
    		Uncomment this to disable partial state saving when using Apache MyFaces 2 !!
    	<context-param>
    		<param-name>javax.faces.PARTIAL_STATE_SAVING</param-name>
    		<param-value>false</param-value>
    	</context-param>
    	-->
    
      	
      	<!-- Declare Spring Security Facelets tag library -->
      	<context-param>
      		<param-name>javax.faces.FACELETS_LIBRARIES</param-name>
      		<param-value>/WEB-INF/springsecurity.taglib.xml</param-value>
      	</context-param>
      	
        <!-- Enforce UTF-8 Character Encoding -->
        <filter>
            <filter-name>charEncodingFilter</filter-name>
            <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
            <init-param>
                <param-name>encoding</param-name>
                <param-value>UTF-8</param-value>
            </init-param>
            <init-param>
                <param-name>forceEncoding</param-name>
                <param-value>true</param-value>
            </init-param>
        </filter>
        
        <filter-mapping>
            <filter-name>charEncodingFilter</filter-name>
            <url-pattern>/*</url-pattern>
            <dispatcher>FORWARD</dispatcher>
    		<dispatcher>REQUEST</dispatcher>
        </filter-mapping>
        
    	<!-- Enables Spring Security -->
    	<filter>
            <filter-name>springSecurityFilterChain</filter-name>
            <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
        </filter>
    	 
        <filter-mapping>
          <filter-name>springSecurityFilterChain</filter-name>
          <url-pattern>/*</url-pattern>
          	<dispatcher>FORWARD</dispatcher>
    		<dispatcher>REQUEST</dispatcher>
        </filter-mapping>
    
    	<!-- Loads the Spring web application context -->
    	<listener>
    		<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    	</listener>
      	
    	<!-- The front controller of this Spring Web application, responsible for handling all application requests -->
    	<servlet>
    		<servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
    		<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    		<init-param>
    			<param-name>contextConfigLocation</param-name>
    			<param-value></param-value>
    		</init-param>
    		<load-on-startup>1</load-on-startup>
    	</servlet>
    		
    	<!-- Map all /spring requests to the Dispatcher Servlet for handling -->
    	<servlet-mapping>
    		<servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
    		<url-pattern>/spring/*</url-pattern>
    	</servlet-mapping>
    
    	<!-- Just here so the JSF implementation can initialize, *not* used at runtime -->
    	<servlet>
    		<servlet-name>Faces Servlet</servlet-name>
    		<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    		<load-on-startup>1</load-on-startup>
    	</servlet>
    	
    	<!-- Just here so the JSF implementation can initialize -->
    	<servlet-mapping>
    		<servlet-name>Faces Servlet</servlet-name>
    		<url-pattern>*.xhtml</url-pattern>
    	</servlet-mapping>
    	
    	<welcome-file-list>
    		<welcome-file>index.html</welcome-file>
    	</welcome-file-list>
    
    </web-app>
    Regards,
    Carlos

  2. #12
    Join Date
    Aug 2012
    Posts
    15

    Default

    Hi Carlos,

    you still use 2.4 in web.xml

    <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">

    should be declared :-)

    so if you said you use 2.5 servlet and you use 2.4 in web.xml, guess that don't work well...

    here is our web.xml:

    HTML Code:
    <?xml version="1.0" encoding="UTF-8"?>
    
    <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">
    
    	<display-name>Patrimonium</display-name>
    
    	<welcome-file-list>
    		<welcome-file>index.html</welcome-file>
    		<welcome-file>index.xhtml</welcome-file>
    	</welcome-file-list>
    	
    	<!-- ERROR HANDLERS -->
    	<error-page>
    		<exception-type>java.lang.Exception</exception-type>
    		<location>/estatemanagement/exception</location>
    	</error-page>
    	<error-page>
    		<error-code>403</error-code>
    		<location>/estatemanagement/forbidden</location>
    	</error-page>
    	<error-page>
    		<error-code>404</error-code>
    		<location>/estatemanagement/notfound</location>
    	</error-page>
    	<error-page>
    		<error-code>500</error-code>
    		<location>/estatemanagement/error</location>
    	</error-page>
    	
    	<!-- SPRING CONTEXT PARAMS -->
    	<context-param>
    		<param-name>contextConfigLocation</param-name>
    		<param-value>classpath*:spring/*-context.xml</param-value>
    	</context-param>
    
    	<!-- JSF CONTEXT PARAMS -->
    	<context-param>
    		<description>default = .jsp</description>
    		<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
    		<param-value>.xhtml</param-value>
    	</context-param>
    
    	<context-param>
    		<description>default = -1</description>
    		<param-name>javax.faces.FACELETS_REFRESH_PERIOD</param-name>
    		<param-value>-1</param-value>
    	</context-param>
    
    	<context-param>
    		<description>default = false</description>
    		<param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
    		<param-value>true</param-value>
    	</context-param>
    
    	<context-param>
    		<description>default = 20</description>
    		<param-name>javax.faces.NUMBER_OF_VIEWS_IN_SESSION</param-name>
    		<param-value>10</param-value>
    	</context-param>
    
    	<context-param>
    		<description>default = true</description>
    		<param-name>javax.faces.PARTIAL_STATE_SAVING</param-name>
    		<param-value>false</param-value>
    	</context-param>
    
    	<context-param>
    		<description>default = production</description>
    		<param-name>javax.faces.PROJECT_STAGE</param-name>
    		<param-value>Production</param-value>
    	</context-param>
    
    	<context-param>
    		<description>default = server</description>
    		<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    		<param-value>server</param-value>
    	</context-param>
    
    	<!-- MYFACES CONTEXT PARAMS -->
    	<context-param>
    		<description>default = true</description>
    		<param-name>org.apache.myfaces.PRETTY_HTML</param-name>
    		<param-value>true</param-value>
    	</context-param>
    
    	<context-param>
    		<description>default = false</description>
    		<param-name>org.apache.myfaces.COMPRESS_STATE_IN_CLIENT</param-name>
    		<param-value>false</param-value>
    	</context-param>
    
    	<context-param>
    		<description>default = true</description>
    		<param-name>org.apache.myfaces.COMPRESS_STATE_IN_SESSION</param-name>
    		<param-value>true</param-value>
    	</context-param>
    
    	<context-param>
    		<description>default = true</description>
    		<param-name>org.apache.myfaces.SERIALIZE_STATE_IN_SESSION</param-name>
    		<param-value>false</param-value>
    	</context-param>
    
    	<context-param>
    		<description>default = true</description>
    		<param-name>org.apache.myfaces.USE_ENCRYPTION</param-name>
    		<param-value>true</param-value>
    	</context-param>
    
    	<context-param>
    		<param-name>org.apache.myfaces.EXPRESSION_FACTORY</param-name>
    		<param-value>com.sun.el.ExpressionFactoryImpl</param-value>
    	</context-param> 
    	
    	<!-- PRIME FACES CONTEXT PARAMS -->
    	<context-param>
    		<description>Theme used by JSF</description>
    		<param-name>primefaces.THEME</param-name>
    		<param-value>cupertino</param-value>
    	</context-param>
    	
    	<!-- SPRING CONTEXT PARAMS -->
    	<context-param>
    		<param-name>contextInitializerClasses</param-name>
    		<param-value>be.laco.framework.core.spring.ApplicationContextInitializerImpl</param-value>
    	</context-param>
    
    	<!-- FILTER ENCODING UTF-8 -->
    	<filter>
    		<filter-name>charEncodingFilter</filter-name>
    		<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
    		<init-param>
    			<param-name>encoding</param-name>
    			<param-value>UTF-8</param-value>
    		</init-param>
    		<init-param>
    			<param-name>forceEncoding</param-name>
    			<param-value>true</param-value>
    		</init-param>
    	</filter>
    	<filter-mapping>
    		<filter-name>charEncodingFilter</filter-name>
    		<url-pattern>/*</url-pattern>
    	</filter-mapping>
    
    	<!-- FILTER PRIMEFACES UPLOAD -->
    	<filter>
    		<filter-name>PrimeFaces FileUpload Filter</filter-name>
    		<filter-class>org.primefaces.webapp.filter.FileUploadFilter</filter-class>
    	</filter>
    	<filter-mapping>
    		<filter-name>PrimeFaces FileUpload Filter</filter-name>
    		<servlet-name>FacesServlet</servlet-name>
    	</filter-mapping>
    
    	<!-- SPRING SECURITY -->
    	<filter>
    		<filter-name>springSecurityFilterChain</filter-name>
    		<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
    	</filter>
    	<filter-mapping>
    		<filter-name>springSecurityFilterChain</filter-name>
    		<url-pattern>/*</url-pattern>
    		<dispatcher>FORWARD</dispatcher>
            <dispatcher>REQUEST</dispatcher>
    	</filter-mapping>
    
    	<!-- SPRING LISTENERS -->
    	<listener>
    		<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    	</listener>
    	<listener>
    		<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
    	</listener>
    	<listener>
    		<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
    	</listener>
    
    	<!-- CUSTOM LISTENERS -->
    	<listener>
    		<listener-class>be.laco.framework.core.web.HttpSessionListenerImpl</listener-class>
    	</listener>
    	<listener>
    		<listener-class>be.laco.framework.core.web.ServletContextListenerImpl</listener-class>
    	</listener>
    	
    	<!-- SPRING DISPATCHER SERVLET -->
    	<servlet>
    		<servlet-name>estate-dispatcher</servlet-name>
    		<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    		<load-on-startup>1</load-on-startup>
    	</servlet>
    	<servlet-mapping>
    		<servlet-name>estate-dispatcher</servlet-name>
    		<url-pattern>/estatemanagement/*</url-pattern>
    	</servlet-mapping>
    
    	<!-- FACES SERVLET -->
    	<servlet>
    		<servlet-name>FacesServlet</servlet-name>
    		<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    		<load-on-startup>1</load-on-startup>
    	</servlet>
    	<servlet-mapping>
    		<servlet-name>FacesServlet</servlet-name>
    		<url-pattern>/faces/*</url-pattern>
    	</servlet-mapping>
    </web-app>
    I don't see a lot different except some context params of JSF ...

    I blame the webflow hehe... I am almost out of options

    <javax.el.version>2.2</javax.el.version>
    <javax.jstl.version>1.2</javax.jstl.version>
    <javax.jsp.version>2.2</javax.jsp.version>
    <javax.servlet.version>3.0.1</javax.servlet.version>
    <jsf.version>2.1.8</jsf.version>
    <spring.version>3.1.0.RELEASE</spring.version>

    btw: you could create a servlet context listener to see if there is literally a context created /destroyed:

    Code:
    @WebListener(value = "servletContextListener")
    public class ServletContextListenerImpl implements ServletContextListener {
    
    	private static final Logger LOGGER = LoggerFactory.getLogger(ServletContextListenerImpl.class);
    	
    	@Override
    	public void contextInitialized(ServletContextEvent context) {
    		LOGGER.debug("Servlet context has been initialized ... ");
    	}
    	
    	@Override
    	public void contextDestroyed(ServletContextEvent context) {
    		LOGGER.debug("Servlet context has been destroyed ... ");
    	}
    }
    declare this listener in your web.xml or annotation
    Last edited by Kristof303; Sep 13th, 2012 at 07:26 AM.

  3. #13
    Join Date
    Sep 2012
    Posts
    6

    Default

    Very good error! , but... it doesn't work yet...

    I installed the listener and it's ok:

    Code:
    INFO: Initializing Mojarra 2.1.0 (FCS 2.1.0-b11) for context '/BOAT'
    
    INFO: Running on PrimeFaces 3.1.1
    INFO: Monitoring jndi:/server/BOAT/WEB-INF/faces-config.xml for modifications
    
    INFO: PWC1412: WebModule[null] ServletContext.log():Initializing Spring root WebApplicationContext
    INFO: INFO : org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started
    
    INFO: INFO : org.springframework.web.context.support.XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Thu Sep 13 14:33:41 BST 2012]; root of context hierarchy
    
    
    INFO: DEBUG: org.springframework.web.context.support.XmlWebApplicationContext - Bean factory for Root WebApplicationContext: org.springframework.beans.factory.support.DefaultListableBeanFactory@10e9a04: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,csrController,csrDao,csrService,loginBean,loginController,newUserBean,loginDao,loginService,iaDao,iaService,mailDao,mailService,miscDao,miscService,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter#0,jsfResourceRequestHandler,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0,org.springframework.webflow.mvc.servlet.FlowHandlerMapping#0,faceletsViewResolver,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter#0,org.springframework.faces.webflow.JsfFlowHandlerAdapter#0,flowExecutor,flowRegistry,org.springframework.faces.model.converter.FacesConversionService#0,org.springframework.webflow.expression.spel.WebFlowSpringELExpressionParser#0,org.springframework.faces.webflow.JsfViewFactoryCreator#0,facesFlowBuilderServices,facesContextListener,securityFlowExecutionListener,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,sessionFactory,dataSource,transactionManager,org.springframework.security.web.PortMapperImpl#0,org.springframework.security.web.context.HttpSessionSecurityContextRepository#0,org.springframework.security.web.authentication.session.SessionFixationProtectionStrategy#0,org.springframework.security.authentication.ProviderManager#0,org.springframework.security.access.vote.AffirmativeBased#0,org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0,org.springframework.security.web.access.DefaultWebInvocationPrivilegeEvaluator#0,org.springframework.security.authentication.AnonymousAuthenticationProvider#0,org.springframework.security.web.savedrequest.HttpSessionRequestCache#0,org.springframework.security.web.authentication.www.BasicAuthenticationEntryPoint#0,org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0,org.springframework.security.config.http.UserDetailsServiceInjectionBeanPostProcessor#0,org.springframework.security.filterChainProxy,customUserContextMapper,org.springframework.security.contextSettingPostProcessor,org.springframework.security.ldap.authentication.LdapAuthenticationProvider#0,org.springframework.security.authentication.DefaultAuthenticationEventPublisher#0,org.springframework.security.authenticationManager,org.springframework.security.securityContextSource]; root of factory hierarchy
    
    
    INFO: INFO : org.springframework.web.context.support.XmlWebApplicationContext - Bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0' of type [class org.springframework.transaction.annotation.AnnotationTransactionAttributeSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    
    INFO: INFO : org.springframework.web.context.support.XmlWebApplicationContext - Bean 'org.springframework.transaction.config.internalTransactionAdvisor' of type [class org.springframework.transaction.interceptor.BeanFactoryTransactionAttributeSourceAdvisor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    
    INFO: DEBUG: org.springframework.web.context.support.XmlWebApplicationContext - Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@ce1b4c]
    
    INFO: DEBUG: org.springframework.web.context.support.XmlWebApplicationContext - Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@db4f0e]
    
    
    INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
    INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
    INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
    
    INFO: WARN : org.hibernate.mapping.RootClass - composite-id class does not override equals(): com.ericsson.boat.login.domain.UserRole
    
    INFO: WARN : org.hibernate.mapping.RootClass - composite-id class does not override hashCode(): com.ericsson.boat.login.domain.UserRole
    
    
    INFO: INFO : org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/javax.faces.resource/**] onto handler 'jsfResourceRequestHandler'
    
    
    INFO: DEBUG: org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl - Registering flow definition 'ServletContext resource [/WEB-INF/flows/denied/denied-flow.xml]' under id 'denied'
    
    INFO: DEBUG: org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl - Registering flow definition 'ServletContext resource [/WEB-INF/flows/main/main-flow.xml]' under id 'main'
    
    INFO: DEBUG: org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl - Registering flow definition 'ServletContext resource [/WEB-INF/flows/admin/admin-flow.xml]' under id 'admin'
    
    
    INFO: DEBUG: org.springframework.webflow.execution.factory.ConditionalFlowExecutionListenerLoader - Adding flow execution listener org.springframework.faces.webflow.FlowFacesContextLifecycleListener@1cd8b1c with criteria *
    
    INFO: DEBUG: org.springframework.webflow.execution.factory.ConditionalFlowExecutionListenerLoader - Adding flow execution listener org.springframework.webflow.security.SecurityFlowExecutionListener@1259e16 with criteria *
    
    
    INFO: DEBUG: org.springframework.web.context.support.XmlWebApplicationContext - Unable to locate LifecycleProcessor with name 'lifecycleProcessor': using default [org.springframework.context.support.DefaultLifecycleProcessor@15d9428]
    
    INFO: DEBUG: org.springframework.web.context.ContextLoader - Published root WebApplicationContext as ServletContext attribute with name [org.springframework.web.context.WebApplicationContext.ROOT]
    
    INFO: INFO : org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 11645 ms
    
    INFO: *************************************** Servlet context has been initialized **************************
    
    INFO: DEBUG: org.springframework.web.filter.DelegatingFilterProxy - Initializing filter 'springSecurityFilterChain'
    
    INFO: DEBUG: org.springframework.web.filter.DelegatingFilterProxy - Filter 'springSecurityFilterChain' configured successfully
    
    ...
    
    
    INFO: INFO : org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'Spring MVC Dispatcher Servlet': initialization completed in 385 ms
    
    INFO: DEBUG: org.springframework.web.servlet.DispatcherServlet - Servlet 'Spring MVC Dispatcher Servlet' configured successfully

  4. #14
    Join Date
    Aug 2012
    Posts
    15

    Default

    Quote Originally Posted by sCarlosSM View Post
    Very good error! , but... it doesn't work yet...

    I installed the listener and it's ok:

    Code:
    INFO: Initializing Mojarra 2.1.0 (FCS 2.1.0-b11) for context '/BOAT'
    
    INFO: Running on PrimeFaces 3.1.1
    INFO: Monitoring jndi:/server/BOAT/WEB-INF/faces-config.xml for modifications
    
    INFO: PWC1412: WebModule[null] ServletContext.log():Initializing Spring root WebApplicationContext
    INFO: INFO : org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started
    
    INFO: INFO : org.springframework.web.context.support.XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Thu Sep 13 14:33:41 BST 2012]; root of context hierarchy
    
    
    INFO: DEBUG: org.springframework.web.context.support.XmlWebApplicationContext - Bean factory for Root WebApplicationContext: org.springframework.beans.factory.support.DefaultListableBeanFactory@10e9a04: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,csrController,csrDao,csrService,loginBean,loginController,newUserBean,loginDao,loginService,iaDao,iaService,mailDao,mailService,miscDao,miscService,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter#0,jsfResourceRequestHandler,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0,org.springframework.webflow.mvc.servlet.FlowHandlerMapping#0,faceletsViewResolver,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter#0,org.springframework.faces.webflow.JsfFlowHandlerAdapter#0,flowExecutor,flowRegistry,org.springframework.faces.model.converter.FacesConversionService#0,org.springframework.webflow.expression.spel.WebFlowSpringELExpressionParser#0,org.springframework.faces.webflow.JsfViewFactoryCreator#0,facesFlowBuilderServices,facesContextListener,securityFlowExecutionListener,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,sessionFactory,dataSource,transactionManager,org.springframework.security.web.PortMapperImpl#0,org.springframework.security.web.context.HttpSessionSecurityContextRepository#0,org.springframework.security.web.authentication.session.SessionFixationProtectionStrategy#0,org.springframework.security.authentication.ProviderManager#0,org.springframework.security.access.vote.AffirmativeBased#0,org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0,org.springframework.security.web.access.DefaultWebInvocationPrivilegeEvaluator#0,org.springframework.security.authentication.AnonymousAuthenticationProvider#0,org.springframework.security.web.savedrequest.HttpSessionRequestCache#0,org.springframework.security.web.authentication.www.BasicAuthenticationEntryPoint#0,org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0,org.springframework.security.config.http.UserDetailsServiceInjectionBeanPostProcessor#0,org.springframework.security.filterChainProxy,customUserContextMapper,org.springframework.security.contextSettingPostProcessor,org.springframework.security.ldap.authentication.LdapAuthenticationProvider#0,org.springframework.security.authentication.DefaultAuthenticationEventPublisher#0,org.springframework.security.authenticationManager,org.springframework.security.securityContextSource]; root of factory hierarchy
    
    
    INFO: INFO : org.springframework.web.context.support.XmlWebApplicationContext - Bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0' of type [class org.springframework.transaction.annotation.AnnotationTransactionAttributeSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    
    INFO: INFO : org.springframework.web.context.support.XmlWebApplicationContext - Bean 'org.springframework.transaction.config.internalTransactionAdvisor' of type [class org.springframework.transaction.interceptor.BeanFactoryTransactionAttributeSourceAdvisor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
    
    INFO: DEBUG: org.springframework.web.context.support.XmlWebApplicationContext - Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@ce1b4c]
    
    INFO: DEBUG: org.springframework.web.context.support.XmlWebApplicationContext - Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@db4f0e]
    
    
    INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
    INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
    INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
    
    INFO: WARN : org.hibernate.mapping.RootClass - composite-id class does not override equals(): com.ericsson.boat.login.domain.UserRole
    
    INFO: WARN : org.hibernate.mapping.RootClass - composite-id class does not override hashCode(): com.ericsson.boat.login.domain.UserRole
    
    
    INFO: INFO : org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/javax.faces.resource/**] onto handler 'jsfResourceRequestHandler'
    
    
    INFO: DEBUG: org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl - Registering flow definition 'ServletContext resource [/WEB-INF/flows/denied/denied-flow.xml]' under id 'denied'
    
    INFO: DEBUG: org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl - Registering flow definition 'ServletContext resource [/WEB-INF/flows/main/main-flow.xml]' under id 'main'
    
    INFO: DEBUG: org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl - Registering flow definition 'ServletContext resource [/WEB-INF/flows/admin/admin-flow.xml]' under id 'admin'
    
    
    INFO: DEBUG: org.springframework.webflow.execution.factory.ConditionalFlowExecutionListenerLoader - Adding flow execution listener org.springframework.faces.webflow.FlowFacesContextLifecycleListener@1cd8b1c with criteria *
    
    INFO: DEBUG: org.springframework.webflow.execution.factory.ConditionalFlowExecutionListenerLoader - Adding flow execution listener org.springframework.webflow.security.SecurityFlowExecutionListener@1259e16 with criteria *
    
    
    INFO: DEBUG: org.springframework.web.context.support.XmlWebApplicationContext - Unable to locate LifecycleProcessor with name 'lifecycleProcessor': using default [org.springframework.context.support.DefaultLifecycleProcessor@15d9428]
    
    INFO: DEBUG: org.springframework.web.context.ContextLoader - Published root WebApplicationContext as ServletContext attribute with name [org.springframework.web.context.WebApplicationContext.ROOT]
    
    INFO: INFO : org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 11645 ms
    
    INFO: *************************************** Servlet context has been initialized **************************
    
    INFO: DEBUG: org.springframework.web.filter.DelegatingFilterProxy - Initializing filter 'springSecurityFilterChain'
    
    INFO: DEBUG: org.springframework.web.filter.DelegatingFilterProxy - Filter 'springSecurityFilterChain' configured successfully
    
    ...
    
    
    INFO: INFO : org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'Spring MVC Dispatcher Servlet': initialization completed in 385 ms
    
    INFO: DEBUG: org.springframework.web.servlet.DispatcherServlet - Servlet 'Spring MVC Dispatcher Servlet' configured successfully
    hehe yea ! damn, I really hoped it was that ! so a servlet is created... really weird it's giving a nullpointer then..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •