Announcement Announcement Module
Collapse
No announcement yet.
Tomcat not finding filterChainProxy Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tomcat not finding filterChainProxy

    Hello Everybody,

    I am working with tomcat + spring + hibernate, i am trying to plug acegi.

    The application context is well created, all acegi beans are created

    INFO: Pre-instantiating singletons in factory [org.springframework.beans.factor
    .support.DefaultListableBeanFactory defining beans [messageSource,filterChainProxy,formAuthenticationProcessingFilter,httpSessionContextIntegrationFilter,securtyEnforce mentFilter,filterSecurityInterceptor,authenticatio nManager,daoAuthentiationProvider,authenticationDa o,formEntryPoint,sessionFactory,hibernateIntercepor,personDao,time cardDao,timeAllocationDao,taskDao,serviceTransacti onIntercepto,peopleService,timeTrackingService,ser viceSecurityInterceptor,serviceAccessDeciionManage r,serviceDecisionVoter,dataSource,transactionManag er]; root of BeanFacory hierarchy]

    As you can see the filterChainProxy bean is created, but when tomcat
    tries to init the acegi filter

    web.xml

    <filter>
    <filter-name>AcegiFilterChainProxy</filter-name>
    <filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class>
    <init-param>
    <param-name>targetClass</param-name>
    <param-value>org.acegisecurity.util.FilterChainProxy</param-value>

    </init-param>
    </filter>

    it seems that it is not able to access to the application context because
    I get following error

    SEVERE: Exception starting filter AcegiFilterChainProxy
    javax.servlet.ServletException: Bean context must contain at least one bean of type org.acegisecurity.util.FilterChainProxy
    at org.acegisecurity.util.FilterToBeanProxy.doInit

    I think that the problem is related to tomcat config.
    Any idea?

    Thanks a lot

    Manolo

  • #2
    Is your acegi context loaded from web.xml or through the servlet context? I could not tell from the web.xml below. If it is the latter, then use the contextloaderlistener in web.xml and load your acegi context via that way.

    Comment


    • #3
      Hello,

      loaded from web.xml this is what i have

      <filter>
      <filter-name>AcegiFilterChainProxy</filter-name>
      <filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class>
      <init-param>
      <param-name>targetClass</param-name>
      <param-value>org.acegisecurity.util.FilterChainProxy</param-value>
      </init-param>
      </filter>

      <filter-mapping>
      <filter-name>AcegiFilterChainProxy</filter-name>
      <url-pattern>/*</url-pattern>
      </filter-mapping>

      <context-param>
      <param-name>contextConfigLocation</param-name>
      <param-value>
      classpath*:applicationContext*.xml
      classpath*:beanRefFactory.xml
      classpath*:*hbm.xml
      </param-value>
      </context-param>

      <listener>
      <listener class>org.springframework.web.context.ContextLoade rListener</listener-class>
      </listener>

      <listener>
      <listener-class>org.acegisecurity.ui.session.HttpSessionEven tPublisher</listener-class>
      </listener>

      Comment


      • #4
        Your web.xml looks fine. Can you post your startup logs and your security context file?

        Comment


        • #5
          Hello, here is my applicationContext-acegi.xml

          <?xml version="1.0" encoding="UTF-8"?>
          <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

          <beans>

          <!-- ========================= GENERAL DEFINITIONS ========================= -->

          <!-- Message source for this context, loaded from localized "messages_xx" files -->
          <bean id="messageSource" class="org.springframework.context.support.Resourc eBundleMessageSource">
          <property name="basename"><value>messages</value></property>
          </bean>

          <!-- ========================ACEGI FILTER CHAIN ======================= -->

          <!--Defining FilterChainProxy=======================-->
          <!--Create and start chain filter=======================-->

          <bean id="filterChainProxy" class="org.acegisecurity.util.FilterChainProxy">
          <property name="filterInvocationDefinitionSource">
          <value>
          CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
          PATTERN_TYPE_APACHE_ANT
          /**=httpSessionContextIntegrationFilter,formAuthent icationProcessingFilter,securityEnforcementFilter
          </value>
          </property>
          </bean>

          <!-- Define AuthenticationProcessingFilter ======================= -->
          <!-- Handles authentication request ======================= -->

          <bean id="formAuthenticationProcessingFilter" class="org.acegisecurity.ui.webapp.AuthenticationP rocessingFilter">
          <property name="filterProcessesUrl">
          <value>/timetracker/j_acegi_security_check </value>
          </property>
          <property name="authenticationFailureUrl">
          <value>/loginFailed.html</value>
          </property>
          <property name="defaultTargetUrl">
          <value>/</value>
          </property>
          <property name="authenticationManager"> <ref bean="authenticationManager" />
          </property>
          </bean>

          <!-- Define HttpSessionContextIntegrationFilter ======================= -->
          <!-- Propagates authentication object through requests ======================= -->

          <bean id="httpSessionContextIntegrationFilter" class="org.acegisecurity.context.HttpSessionContex tIntegrationFilter">
          <property name="context">
          <value>
          org.acegisecurity.context.SecurityContextImpl
          </value>
          </property>
          </bean>

          <!-- Define SecurityEnforcementFilter ======================= -->
          <!-- Propagates authentication object through requests ======================= -->

          <bean id="securityEnforcementFilter" class="org.acegisecurity.ui.ExceptionTranslationFi lter">
          <property name="authenticationEntryPoint"> <ref bean="formEntryPoint" /></property>
          </bean>

          <!-- ======================END ACEGI FILTER CHAIN ======================= -->

          <!-- ======================ACEGI DEFINITIONS ============================ -->

          <!-- Define FilterSecurityInterceptor ======================= -->
          <!-- Contains definitions of secured resources ======================= -->


          <bean id="filterSecurityInterceptor" class="org.acegisecurity.intercept.web.FilterSecur ityInterceptor">
          <property name="authenticationManager"> <ref bean="authenticationManager" /></property>
          <property name="accessDecisionManager"> <ref bean="serviceAccessDecisionManager" /></property>
          <property name="objectDefinitionSource">
          <value>
          CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
          PATTERN_TYPE_APACHE_ANT
          /secure/admin/*=ROLE_ADMIN
          /secure/app/*=ROLE_USER
          </value>
          </property>
          </bean>

          <!-- Define Authentication Manager ======================= -->
          <!-- Validates user/password ======================= -->

          <bean id="authenticationManager" class="org.acegisecurity.providers.ProviderManager ">
          <property name="providers">
          <list><ref bean="daoAuthenticationProvider" /></list>
          </property>
          </bean>

          <bean id="daoAuthenticationProvider" class="org.acegisecurity.providers.dao.DaoAuthenti cationProvider">
          <property name="userDetailsService"> <ref bean="authenticationDao" /></property>
          </bean>

          <bean id="authenticationDao" class="org.acegisecurity.userdetails.memory.InMemo ryDaoImpl">
          <property name="userMap">
          <value>
          user=user,ROLE_Admin
          admin=admin,ROLE_User
          </value>
          </property>
          </bean>

          <!-- Define uthenticationProcessingFilterEntryPoint ======================= -->
          <!-- Starting point of authentication dialog ======================= -->

          <bean id="formEntryPoint" class="org.acegisecurity.ui.webapp.AuthenticationP rocessingFilterEntryPoint">
          <property name="loginFormUrl">
          <value>/timetracker/login/login-form.jsp</value>
          </property>
          <property name="forceHttps">
          <value>false</value>
          </property>
          </bean>

          <!-- ================= Define Service Security Interceptor ================ -->

          <bean id="serviceSecurityInterceptor" class="org.acegisecurity.intercept.method.aopallia nce.MethodSecurityInterceptor">
          <property name="authenticationManager"> <ref bean="authenticationManager" /></property>
          <property name="accessDecisionManager"><ref bean="serviceAccessDecisionManager"/></property>
          <property name="objectDefinitionSource">
          <value>
          org.andromda.timetracker.service.PeopleService.cre atePerson=ROLE_Admin
          org.andromda.timetracker.service.PeopleService.get Person=ROLE_Admin
          org.andromda.timetracker.service.PeopleService.get AllPeople=ROLE_Admin, ROLE_User
          </value>
          </property>
          </bean>

          <bean id="serviceAccessDecisionManager" class="org.acegisecurity.vote.AffirmativeBased">
          <property name="allowIfAllAbstainDecisions">
          <value>false</value>
          </property>
          <property name="decisionVoters">
          <list>
          <ref local="serviceDecisionVoter"/>
          </list>
          </property>
          </bean>

          <bean id="serviceDecisionVoter" class="org.acegisecurity.vote.RoleVoter">
          <property name="rolePrefix"><value>ROLE_</value></property>
          </bean>

          <!-- ================== End of ACEGI SERVICE SECURITY DEFINITIONS ================= -->

          </beans>

          Comment


          • #6
            here the logs host-manager.log

            May 18, 2006 9:15:42 AM org.apache.catalina.core.StandardContext listenerStart
            FINE: Configuring event listener class 'org.springframework.web.context.ContextLoaderList ener'
            May 18, 2006 9:15:42 AM org.apache.catalina.core.StandardContext listenerStart
            FINE: Configuring event listener class 'org.acegisecurity.ui.session.HttpSessionEventPubl isher'
            May 18, 2006 9:15:42 AM org.apache.catalina.core.StandardContext listenerStart
            FINE: Sending application start events
            May 18, 2006 9:15:42 AM org.apache.catalina.core.ApplicationContext log
            INFO: Loading Spring root WebApplicationContext
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext filterStart
            FINE: Starting filters
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext filterStart
            FINE: Starting filter 'ResponseOverrideFilter'
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext filterStart
            FINE: Starting filter 'AcegiFilterChainProxy'
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext filterStart
            SEVERE: Exception starting filter AcegiFilterChainProxy
            javax.servlet.ServletException: Bean context must contain at least one bean of type org.acegisecurity.util.FilterChainProxy
            at org.acegisecurity.util.FilterToBeanProxy.doInit(Fi lterToBeanProxy.java:197)
            at org.acegisecurity.util.FilterToBeanProxy.init(Filt erToBeanProxy.java:132)
            at org.apache.catalina.core.ApplicationFilterConfig.g etFilter(ApplicationFilterConfig.java:223)
            at org.apache.catalina.core.ApplicationFilterConfig.s etFilterDef(ApplicationFilterConfig.java:304)
            at org.apache.catalina.core.ApplicationFilterConfig.< init>(ApplicationFilterConfig.java:77)
            at org.apache.catalina.core.StandardContext.filterSta rt(StandardContext.java:3600)
            at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4189)
            at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:759)
            at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:739)
            at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:524)
            at org.apache.catalina.startup.HostConfig.deployWAR(H ostConfig.java:809)
            at org.apache.catalina.startup.HostConfig.deployWARs( HostConfig.java:698)
            at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:472)
            at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:1112)
            at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java:310)
            at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:119)
            at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1021)
            at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:718)
            at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1013)
            at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:442)
            at org.apache.catalina.core.StandardService.start(Sta ndardService.java:450)
            at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:709)
            at org.apache.catalina.startup.Catalina.start(Catalin a.java:551)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:275)
            at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:413)
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext filterStop
            FINE: Stopping filters
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext filterStop
            FINE: Stopping filter 'ResponseOverrideFilter'
            May 18, 2006 9:15:46 AM org.apache.catalina.core.ApplicationContext log
            INFO: Closing Spring root WebApplicationContext
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext listenerStart
            FINE: Sending application start events
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext filterStart
            FINE: Starting filters
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext filterStart
            FINE: Starting filter 'BalancerFilter'
            May 18, 2006 9:15:46 AM org.apache.catalina.core.ApplicationContext log
            INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRul e: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterR ule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingR ule: Redirect URL: http://jakarta.apache.org]]
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext listenerStart
            FINE: Configuring event listener class 'listeners.ContextListener'
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext listenerStart
            FINE: Configuring event listener class 'listeners.SessionListener'
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext listenerStart
            FINE: Sending application start events
            May 18, 2006 9:15:46 AM org.apache.catalina.core.ApplicationContext log
            INFO: ContextListener: contextInitialized()
            May 18, 2006 9:15:46 AM org.apache.catalina.core.ApplicationContext log
            INFO: SessionListener: contextInitialized()
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext filterStart
            FINE: Starting filters
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext filterStart
            FINE: Starting filter 'Servlet Mapped Filter'
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext filterStart
            FINE: Starting filter 'Compression Filter'
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext filterStart
            FINE: Starting filter 'Set Character Encoding'
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext filterStart
            FINE: Starting filter 'Path Mapped Filter'
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext filterStart
            FINE: Starting filter 'Request Dumper Filter'
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext listenerStart
            FINE: Sending application start events
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext filterStart
            FINE: Starting filters
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext listenerStart
            FINE: Configuring event listener class 'listeners.ContextListener'
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext listenerStart
            FINE: Configuring event listener class 'listeners.SessionListener'
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext listenerStart
            FINE: Sending application start events
            May 18, 2006 9:15:46 AM org.apache.catalina.core.ApplicationContext log
            INFO: ContextListener: contextInitialized()
            May 18, 2006 9:15:46 AM org.apache.catalina.core.ApplicationContext log
            INFO: SessionListener: contextInitialized()
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext filterStart
            FINE: Starting filters
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext filterStart
            FINE: Starting filter 'Servlet Mapped Filter'
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext filterStart
            FINE: Starting filter 'Compression Filter'
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext filterStart
            FINE: Starting filter 'Set Character Encoding'
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext filterStart
            FINE: Starting filter 'Path Mapped Filter'
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext filterStart
            FINE: Starting filter 'Request Dumper Filter'
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext listenerStart
            FINE: Sending application start events
            May 18, 2006 9:15:46 AM org.apache.catalina.core.StandardContext filterStart
            FINE: Starting filters
            May 18, 2006 9:15:47 AM org.apache.catalina.core.StandardContext listenerStart
            FINE: Sending application start events
            May 18, 2006 9:15:47 AM org.apache.catalina.core.StandardContext filterStart
            FINE: Starting filters
            May 18, 2006 9:16:20 AM org.apache.catalina.core.StandardContext filterStop
            FINE: Stopping filters
            May 18, 2006 9:16:20 AM org.apache.catalina.core.StandardContext filterStop
            FINE: Stopping filters
            May 18, 2006 9:16:20 AM org.apache.catalina.core.StandardContext filterStop
            FINE: Stopping filter 'Servlet Mapped Filter'
            May 18, 2006 9:16:20 AM org.apache.catalina.core.StandardContext filterStop
            FINE: Stopping filter 'Compression Filter'
            May 18, 2006 9:16:20 AM org.apache.catalina.core.StandardContext filterStop
            FINE: Stopping filters

            Comment


            • #7
              stdout 1/2

              \jdk1.5.0_02\bin;.;C:\WINDOWS\system32;C:\WINDOWS; C:\Program Files\alfresco-1.2\
              bin;C:\Program Files\Java\jdk1.5.0_02\bin;C:\mydev\maven1.0.2\bin ;C:\WINDOWS\sys
              tem32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Progr am Files\ATI Technologies\ATI
              Control Panel;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\PROGRA~1\U
              LTRAEDT;C:\mydev\maven1.0.2\bin;C:\development\nan t\nant-0.85-rc3\bin;C:\develop
              ment\nant\nantcontrib-0.85-rc3\bin;%MYSQL_HOME%\bin;
              May 18, 2006 9:26:18 AM org.apache.coyote.http11.Http11BaseProtocol init
              INFO: Initializing Coyote HTTP/1.1 on http-8080
              May 18, 2006 9:26:18 AM org.apache.catalina.startup.Catalina load
              INFO: Initialization processed in 735 ms
              May 18, 2006 9:26:18 AM org.apache.catalina.realm.JAASRealm setContainer
              INFO: Set JAAS app name Catalina
              May 18, 2006 9:26:18 AM org.apache.catalina.core.StandardService start
              INFO: Starting service Catalina
              May 18, 2006 9:26:18 AM org.apache.catalina.core.StandardEngine start
              INFO: Starting Servlet Engine: Apache Tomcat/5.5.16
              May 18, 2006 9:26:18 AM org.apache.catalina.core.StandardHost start
              INFO: XML validation disabled
              May 18, 2006 9:26:19 AM org.apache.catalina.startup.HostConfig deployWAR
              INFO: Deploying web application archive timetracker.war
              May 18, 2006 9:26:19 AM org.springframework.web.context.ContextLoader initWebApp
              licationContext
              INFO: Root WebApplicationContext: initialization started
              May 18, 2006 9:26:19 AM org.springframework.beans.factory.xml.XmlBeanDefin itionR
              eader loadBeanDefinitions
              INFO: Loading XML bean definitions from URL [jar:file:/C:/mydev/apache-tomcat-5.
              5.16/webapps/timetracker/WEB-INF/lib/timetracker-core-1.0.jar!/beanRefFactory.xm
              l]
              May 18, 2006 9:26:19 AM org.springframework.context.support.AbstractRefres hableA
              pplicationContext refreshBeanFactory
              INFO: Bean factory for application context [Root WebApplicationContext]: org.spr
              ingframework.beans.factory.support.DefaultListable BeanFactory defining beans [be
              anRefFactory]; root of BeanFactory hierarchy
              May 18, 2006 9:26:20 AM org.springframework.context.support.AbstractApplic ationC
              ontext refresh
              INFO: 1 beans defined in application context [Root WebApplicationContext]
              May 18, 2006 9:26:20 AM org.springframework.core.CollectionFactory <clinit>
              INFO: JDK 1.4+ collections available
              May 18, 2006 9:26:20 AM org.springframework.core.CollectionFactory <clinit>
              INFO: Commons Collections 3.x available
              May 18, 2006 9:26:20 AM org.springframework.context.support.AbstractApplic ationC
              ontext initMessageSource
              INFO: Unable to locate MessageSource with name 'messageSource': using default [o
              rg.springframework.context.support.DelegatingMessa geSource@15253d5]
              May 18, 2006 9:26:20 AM org.springframework.context.support.AbstractApplic ationC
              ontext initApplicationEventMulticaster
              INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMu
              lticaster': using default [org.springframework.context.event.SimpleApplicatio nEv
              entMulticaster@9df354]
              May 18, 2006 9:26:20 AM org.springframework.ui.context.support.UiApplicati onCont
              extUtils initThemeSource
              INFO: Unable to locate ThemeSource with name 'themeSource': using default [org.s
              pringframework.ui.context.support.ResourceBundleTh emeSource@1e87719]
              May 18, 2006 9:26:20 AM org.springframework.beans.factory.support.DefaultL istabl
              eBeanFactory preInstantiateSingletons
              INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory
              .support.DefaultListableBeanFactory defining beans [beanRefFactory]; root of Bea
              nFactory hierarchy]
              May 18, 2006 9:26:20 AM org.springframework.beans.factory.xml.XmlBeanDefin itionR
              eader loadBeanDefinitions
              INFO: Loading XML bean definitions from class path resource [applicationContext.
              xml]
              May 18, 2006 9:26:20 AM org.springframework.beans.factory.xml.XmlBeanDefin itionR
              eader loadBeanDefinitions

              Comment


              • #8
                stdout 2/2
                INFO: Loading XML bean definitions from
                class path resource [applicationContext-localDataSource.xml]
                May 18, 2006 9:26:20 AM org.springframework.context.support.AbstractRefres hableA
                pplicationContext refreshBeanFactory
                INFO: Bean factory for application context [org.springframework.context.support.
                ClassPathXmlApplicationContext;hashCode=33492446]: org.springframework.beans.fac
                tory.support.DefaultListableBeanFactory defining beans [messageSource,filterChai
                nProxy,formAuthenticationProcessingFilter,httpSess ionContextIntegrationFilter,se
                curityEnforcementFilter,filterSecurityInterceptor, authenticationManager,daoAuthe
                nticationProvider,authenticationDao,formEntryPoint ,sessionFactory,hibernateInter
                ceptor,personDao,timecardDao,timeAllocationDao,tas kDao,serviceTransactionInterce
                ptor,peopleService,timeTrackingService,serviceSecu rityInterceptor,serviceAccessD
                ecisionManager,serviceDecisionVoter,dataSource,tra nsactionManager]; root of Bean
                Factory hierarchy
                May 18, 2006 9:26:20 AM org.springframework.context.support.AbstractApplic ationC
                ontext refresh
                INFO: 24 beans defined in application context [org.springframework.context.suppo
                rt.ClassPathXmlApplicationContext;hashCode=3349244 6]
                May 18, 2006 9:26:20 AM org.springframework.context.support.AbstractApplic ationC
                ontext initMessageSource
                INFO: Using MessageSource [org.springframework.context.support.ResourceBundle Mes
                sageSource: basenames=[messages]]
                May 18, 2006 9:26:20 AM org.springframework.context.support.AbstractApplic ationC
                ontext initApplicationEventMulticaster
                INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMu
                lticaster': using default [org.springframework.context.event.SimpleApplicatio nEv
                entMulticaster@12a55aa]
                May 18, 2006 9:26:20 AM org.springframework.beans.factory.support.DefaultL istabl
                eBeanFactory preInstantiateSingletons
                INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory
                .support.DefaultListableBeanFactory defining beans [messageSource,filterChainPro
                xy,formAuthenticationProcessingFilter,httpSessionC ontextIntegrationFilter,securi
                tyEnforcementFilter,filterSecurityInterceptor,auth enticationManager,daoAuthentic
                ationProvider,authenticationDao,formEntryPoint,ses sionFactory,hibernateIntercept
                or,personDao,timecardDao,timeAllocationDao,taskDao ,serviceTransactionInterceptor
                ,peopleService,timeTrackingService,serviceSecurity Interceptor,serviceAccessDecis
                ionManager,serviceDecisionVoter,dataSource,transac tionManager]; root of BeanFact
                ory hierarchy]
                May 18, 2006 9:26:20 AM org.acegisecurity.userdetails.memory.UserMap addUser
                INFO: Adding user [org.acegisecurity.userdetails.User@0: Username: admin; Passwo
                rd: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired:
                true; AccountNonLocked: true; Granted Authorities: ROLE_User]
                May 18, 2006 9:26:20 AM org.acegisecurity.userdetails.memory.UserMap addUser
                INFO: Adding user [org.acegisecurity.userdetails.User@ed9d7500: Username: user;
                Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExp
                ired: true; AccountNonLocked: true; Granted Authorities: ROLE_Admin]
                May 18, 2006 9:26:20 AM org.acegisecurity.intercept.AbstractSecurityInterc eptor
                afterPropertiesSet
                INFO: Validated configuration attributes
                May 18, 2006 9:26:20 AM org.springframework.jdbc.datasource.DriverManagerD ataSou
                rce setDriverClassName
                INFO: Loaded JDBC driver: com.mysql.jdbc.Driver
                May 18, 2006 9:26:20 AM org.hibernate.cfg.Environment <clinit>
                INFO: Hibernate 3.0.5
                May 18, 2006 9:26:20 AM org.hibernate.cfg.Environment <clinit>
                INFO: hibernate.properties not found
                May 18, 2006 9:26:20 AM org.hibernate.cfg.Environment <clinit>
                INFO: using CGLIB reflection optimizer
                May 18, 2006 9:26:20 AM org.hibernate.cfg.Environment <clinit>
                INFO: using JDK 1.4 java.sql.Timestamp handling
                May 18, 2006 9:26:21 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommo
                nValues
                INFO: Mapping class: org.andromda.timetracker.domain.PersonImpl -> PERSON
                May 18, 2006 9:26:21 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommo
                nValues
                INFO: Mapping class: org.andromda.timetracker.domain.TimecardImpl -> TIMECARD
                May 18, 2006 9:26:21 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommo
                nValues
                INFO: Mapping class: org.andromda.timetracker.domain.TimeAllocationImpl -> TIME_
                ALLOCATION
                May 18, 2006 9:26:21 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommo
                nValues
                INFO: Mapping class: org.andromda.timetracker.domain.TaskImpl -> TASK
                May 18, 2006 9:26:21 AM org.springframework.orm.hibernate3.LocalSessionFac toryBe
                an afterPropertiesSet
                INFO: Building new Hibernate SessionFactory
                May 18, 2006 9:26:21 AM org.hibernate.cfg.Configuration secondPassCompile
                INFO: processing extends queue
                May 18, 2006 9:26:21 AM org.hibernate.cfg.Configuration secondPassCompile
                INFO: processing collection mappings
                May 18, 2006 9:26:21 AM org.hibernate.cfg.HbmBinder bindCollectionSecondPass
                INFO: Mapping collection: org.andromda.timetracker.domain.TimecardImpl.alloc atio
                ns -> TIME_ALLOCATION
                May 18, 2006 9:26:21 AM org.hibernate.cfg.Configuration secondPassCompile
                INFO: processing association property references
                May 18, 2006 9:26:21 AM org.hibernate.cfg.Configuration secondPassCompile
                INFO: processing foreign key constraints
                May 18, 2006 9:26:21 AM org.hibernate.connection.ConnectionProviderFactory newCo
                nnectionProvider
                INFO: Initializing connection provider: org.springframework.orm.hibernate3.Local
                DataSourceConnectionProvider
                May 18, 2006 9:26:21 AM org.hibernate.cfg.SettingsFactory buildSettings
                INFO: RDBMS: MySQL, version: 5.0.20a-nt
                May 18, 2006 9:26:21 AM org.hibernate.cfg.SettingsFactory buildSettings
                INFO: JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-3.1.12 (
                $Date: 2005-11-17 15:53:48 +0100 (Thu, 17 Nov 2005) $, $Revision$ )
                May 18, 2006 9:26:21 AM org.hibernate.dialect.Dialect <init>
                INFO: Using dialect: org.hibernate.dialect.MySQLDialect
                May 18, 2006 9:26:21 AM org.hibernate.transaction.TransactionFactoryFactor y buil
                dTransactionFactory
                INFO: Using default transaction strategy (direct JDBC transactions)
                May 18, 2006 9:26:21 AM org.hibernate.transaction.TransactionManagerLookup Factor
                y getTransactionManagerLookup

                Comment


                • #9
                  INFO: No TransactionManagerLookup configured (in JTA environment, use of read-wr
                  ite or transactional second-level cache is not recommended)
                  May 18, 2006 9:26:21 AM org.hibernate.cfg.SettingsFactory buildSettings
                  INFO: Automatic flush during beforeCompletion(): disabled
                  May 18, 2006 9:26:21 AM org.hibernate.cfg.SettingsFactory buildSettings
                  INFO: Automatic session close at end of transaction: disabled
                  May 18, 2006 9:26:21 AM org.hibernate.cfg.SettingsFactory buildSettings
                  INFO: JDBC batch size: 15
                  May 18, 2006 9:26:21 AM org.hibernate.cfg.SettingsFactory buildSettings
                  INFO: JDBC batch updates for versioned data: disabled
                  May 18, 2006 9:26:21 AM org.hibernate.cfg.SettingsFactory buildSettings
                  INFO: Scrollable result sets: enabled
                  May 18, 2006 9:26:21 AM org.hibernate.cfg.SettingsFactory buildSettings
                  INFO: JDBC3 getGeneratedKeys(): enabled
                  May 18, 2006 9:26:21 AM org.hibernate.cfg.SettingsFactory buildSettings
                  INFO: Connection release mode: null
                  May 18, 2006 9:26:21 AM org.hibernate.cfg.SettingsFactory buildSettings
                  INFO: Maximum outer join fetch depth: 2
                  May 18, 2006 9:26:21 AM org.hibernate.cfg.SettingsFactory buildSettings
                  INFO: Default batch fetch size: 1
                  May 18, 2006 9:26:21 AM org.hibernate.cfg.SettingsFactory buildSettings
                  INFO: Generate SQL with comments: disabled
                  May 18, 2006 9:26:21 AM org.hibernate.cfg.SettingsFactory buildSettings
                  INFO: Order SQL updates by primary key: disabled
                  May 18, 2006 9:26:21 AM org.hibernate.cfg.SettingsFactory createQueryTranslatorF
                  actory
                  INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
                  May 18, 2006 9:26:21 AM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
                  INFO: Using ASTQueryTranslatorFactory
                  May 18, 2006 9:26:21 AM org.hibernate.cfg.SettingsFactory buildSettings
                  INFO: Query language substitutions: {}
                  May 18, 2006 9:26:21 AM org.hibernate.cfg.SettingsFactory buildSettings
                  INFO: Second-level cache: enabled
                  May 18, 2006 9:26:21 AM org.hibernate.cfg.SettingsFactory buildSettings
                  INFO: Query cache: disabled
                  May 18, 2006 9:26:21 AM org.hibernate.cfg.SettingsFactory createCacheProvider
                  INFO: Cache provider: org.hibernate.cache.EhCacheProvider
                  May 18, 2006 9:26:21 AM org.hibernate.cfg.SettingsFactory buildSettings
                  INFO: Optimize cache for minimal puts: disabled
                  May 18, 2006 9:26:21 AM org.hibernate.cfg.SettingsFactory buildSettings
                  INFO: Structured second-level cache entries: disabled
                  May 18, 2006 9:26:21 AM org.hibernate.cfg.SettingsFactory buildSettings
                  INFO: Echoing all SQL to stdout
                  May 18, 2006 9:26:21 AM org.hibernate.cfg.SettingsFactory buildSettings
                  INFO: Statistics: disabled
                  May 18, 2006 9:26:21 AM org.hibernate.cfg.SettingsFactory buildSettings
                  INFO: Deleted entity synthetic identifier rollback: disabled
                  May 18, 2006 9:26:21 AM org.hibernate.cfg.SettingsFactory buildSettings
                  INFO: Default entity-mode: pojo
                  May 18, 2006 9:26:21 AM org.hibernate.impl.SessionFactoryImpl <init>
                  INFO: building session factory
                  May 18, 2006 9:26:22 AM org.hibernate.impl.SessionFactoryObjectFactory addInstan
                  ce
                  INFO: Not binding factory to JNDI, no JNDI name configured
                  May 18, 2006 9:26:22 AM org.hibernate.impl.SessionFactoryImpl checkNamedQueries
                  INFO: Checking 0 named queries
                  May 18, 2006 9:26:22 AM org.springframework.aop.framework.DefaultAopProxyF actory
                  <clinit>
                  INFO: CGLIB2 available: proxyTargetClass feature enabled
                  May 18, 2006 9:26:22 AM org.springframework.orm.hibernate3.HibernateTransa ctionM
                  anager afterPropertiesSet
                  INFO: Using DataSource [org.springframework.jdbc.datasource.DriverManagerD ataSou
                  rce@f8395f] of Hibernate SessionFactory for HibernateTransactionManager
                  May 18, 2006 9:26:22 AM org.acegisecurity.intercept.method.MethodDefinitio nMap a
                  ddSecureMethod
                  INFO: Adding secure method [public abstract org.andromda.timetracker.vo.PersonVO
                  [] org.andromda.timetracker.service.PeopleService.get AllPeople()] with attribute
                  s [[ROLE_Admin, ROLE_User]]
                  May 18, 2006 9:26:22 AM org.acegisecurity.intercept.method.MethodDefinitio nMap a
                  ddSecureMethod
                  INFO: Adding secure method [public abstract java.lang.Long org.andromda.timetrac
                  ker.service.PeopleService.createPerson(org.andromd a.timetracker.vo.PersonVO)] wi
                  th attributes [[ROLE_Admin]]
                  May 18, 2006 9:26:22 AM org.acegisecurity.intercept.method.MethodDefinitio nMap a
                  ddSecureMethod
                  INFO: Adding secure method [public abstract org.andromda.timetracker.vo.PersonVO
                  org.andromda.timetracker.service.PeopleService.get Person(java.lang.Long)] with
                  attributes [[ROLE_Admin]]
                  May 18, 2006 9:26:22 AM org.acegisecurity.intercept.AbstractSecurityInterc eptor
                  afterPropertiesSet
                  INFO: Validated configuration attributes
                  May 18, 2006 9:26:22 AM org.springframework.web.context.ContextLoader initWebApp
                  licationContext
                  INFO: Using context class [org.springframework.web.context.support.XmlWebAppl ica
                  tionContext] for root WebApplicationContext
                  May 18, 2006 9:26:22 AM org.springframework.web.context.ContextLoader initWebApp
                  licationContext
                  INFO: Root WebApplicationContext: initialization completed in 2969 ms
                  May 18, 2006 9:26:22 AM org.displaytag.filter.ResponseOverrideFilter init
                  INFO: Filter initialized. Response buffering is enabled
                  May 18, 2006 9:26:22 AM org.apache.catalina.core.StandardContext start
                  SEVERE: Error filterStart
                  May 18, 2006 9:26:22 AM org.apache.catalina.core.StandardContext start
                  SEVERE: Context [/timetracker] startup failed due to previous errors
                  May 18, 2006 9:26:22 AM org.springframework.context.support.AbstractApplic ationC
                  ontext close
                  INFO: Closing application context [Root WebApplicationContext]
                  May 18, 2006 9:26:22 AM org.springframework.beans.factory.support.Abstract BeanFa
                  ctory destroySingletons
                  INFO: Destroying singletons in factory {org.springframework.beans.factory.suppor
                  t.DefaultListableBeanFactory defining beans [beanRefFactory]; root of BeanFactor
                  y hierarchy}
                  May 18, 2006 9:26:22 AM org.springframework.context.support.AbstractApplic ationC
                  ontext close
                  INFO: Closing application context [org.springframework.context.support.ClassPath
                  XmlApplicationContext;hashCode=33492446]
                  May 18, 2006 9:26:22 AM org.springframework.beans.factory.support.Abstract BeanFa
                  ctory destroySingletons
                  INFO: Destroying singletons in factory {org.springframework.beans.factory.suppor
                  t.DefaultListableBeanFactory defining beans [messageSource,filterChainProxy,form
                  AuthenticationProcessingFilter,httpSessionContextI ntegrationFilter,securityEnfor
                  cementFilter,filterSecurityInterceptor,authenticat ionManager,daoAuthenticationPr
                  ovider,authenticationDao,formEntryPoint,sessionFac tory,hibernateInterceptor,pers
                  onDao,timecardDao,timeAllocationDao,taskDao,servic eTransactionInterceptor,people
                  Service,timeTrackingService,serviceSecurityInterce ptor,serviceAccessDecisionMana
                  ger,serviceDecisionVoter,dataSource,transactionMan ager]; root of BeanFactory hie
                  rarchy}
                  May 18, 2006 9:26:22 AM org.springframework.orm.hibernate3.LocalSessionFac toryBe
                  an destroy
                  INFO: Closing Hibernate SessionFactory
                  May 18, 2006 9:26:22 AM org.hibernate.impl.SessionFactoryImpl close
                  INFO: closing
                  May 18, 2006 9:26:23 AM org.apache.coyote.http11.Http11BaseProtocol start
                  INFO: Starting Coyote HTTP/1.1 on http-8080
                  May 18, 2006 9:26:23 AM org.apache.jk.common.ChannelSocket init
                  INFO: JK: ajp13 listening on /0.0.0.0:8009
                  May 18, 2006 9:26:23 AM org.apache.jk.server.JkMain start
                  INFO: Jk running ID=0 time=0/31 config=null
                  May 18, 2006 9:26:23 AM org.apache.catalina.storeconfig.StoreLoader load
                  INFO: Find registry server-registry.xml at classpath resource
                  May 18, 2006 9:26:23 AM org.apache.catalina.startup.Catalina start
                  INFO: Server startup in 5140 ms

                  Comment

                  Working...
                  X