WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only

Spring Context load listener not Run WAS liberty v 18

  • 1.  Spring Context load listener not Run WAS liberty v 18

    Posted Thu September 13, 2018 06:26 AM

    Dears, I'm experiencing and issue that the application context loader class for spring web application is not loaded when the ear application starts, there is no error message or any exception thrown.

     

    I have a the listener register in web xml as follow

    <listener>

                  <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>

      </listener>

    Also I have the context PARAM to point to the application configurations

     

    <context-param>

                  <param-name>contextConfigLocation</param-name>

                  <param-value>/WEB-INF/applicationContext.xml</param-value>

    </context-param>

     

     

    Also I have the below enabled features.

     

           <featureManager>

                  <feature>appSecurity-2.0</feature>

                  <feature>el-3.0</feature>

                  <feature>jndi-1.0</feature>

                  <feature>jsp-2.3</feature>

                  <feature>ldapRegistry-3.0</feature>

                  <feature>managedBeans-1.0</feature>

                  <feature>servlet-3.1</feature>

                  <feature>jdbc-4.2</feature>

                  <feature>transportSecurity-1.0</feature>

                  <feature>jsf-2.0</feature>

           </featureManager>

     

     

    Also I have disabled the lazy initializes by adding the below in server xml

     

    <webContainer deferServletLoad="false"/>



    ------------------------------
    Omar Adel
    ------------------------------