Announcement Announcement Module
Collapse
No announcement yet.
Problem using DispatcherServlet Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem using DispatcherServlet

    My web.xml is like the following
    Code:
    <context-param>
       <param-name>contextConfigLocation</param-name>
       <param-value>
          /WEB-INF/contextA.xml,
          /WEB-INF/contextB.xml
          ...
       </param-value>
    </context-param>
    
    <listener>
       <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>
    
    <listener>
       <listener-class>flex.messaging.HttpFlexSession</listener-class>
    </listener>
    
    <servlet>
       <servlet-name>BlazeDSServlet</servlet-name>
       <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
       <init-param>
          <param-name>contextConfigLocation</param-name>
          <param-value>/WEB-INF/blazeDSContext.xml</param-value>
       </init-param>
       <load-on-startup>1</load-on-startup>
    </servlet>
    
    <servlet-mapping>
       <servlet-name>BlazeDSServlet</servlet-name>
       <url-pattern>/messagebroker/*</url-pattern>
    </servlet-mapping>
    However other components in contextA, etc. have already used names such as "localeResolver" and "themeResolver" and I could not change them, and this causes DispatcherServlet failed to instantiate. My question is if there is a way to solve this problem, e.g. using different servlet, etc.

    Thank you for any suggestion.
Working...
X