JBoss Community

Re: BeanDefinitionParsingException :: Spring NamespaceHandler

created by Ranendra Das in JBoss AS 7 Development - View the full discussion

Ok, one more development, if I put commenting in component scan and mvc annotation and use spring old settings, it works fine

 

 

this .xml works fine

 

 

 

 

<?xml version="1.0" encoding="UTF-8"?>

 

 

<beans xmlns="http://www.springframework.org/schema/beans"

          xmlns:context="http://www.springframework.org/schema/context"

          xmlns:mvc="http://www.springframework.org/schema/mvc"

          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                    xsi:schemaLocation="http://www.springframework.org/schema/beans        

                                                                      http://www.springframework.org/schema/beans/spring-beans-3.1.xsd        

                                                                      http://www.springframework.org/schema/context        

                                                                      http://www.springframework.org/schema/context/spring-context-3.1.xsd

                                                                      http://www.springframework.org/schema/mvc        

                                                                      http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd        

                                                                      ">

 

 

          <bean id="SePendingUserPortletController" class="com.se.oneprm.controller.SePendingUserPortletController"/>

 

          <bean id="portletModeHandlerMapping" class = "org.springframework.web.portlet.handler.PortletModeHandlerMapping">

                    <property name="portletModeMap">

                              <map>

                                        <entry key="view">

                                                  <ref bean="SePendingUserPortletController"/>

                                        </entry>

                              </map>

                    </property>

          </bean>

 

 

 

 

<!--                     <context:component-scan base-package="com.se.oneprm" /> -->

<!--                     <mvc:annotation-driven /> -->

 

          

          <!-- Resolves view names to protected .jsp resources within the /WEB-INF/views directory -->

          <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">

                    <property name="prefix" value="/WEB-INF/view/"/>

                    <property name="suffix" value=".jsp"/>

          </bean>

</beans>

 

 

So, what could be the reason?

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community