[jboss-dev-forums] [JBoss AS 7 Development] - Re: BeanDefinitionParsingException :: Spring NamespaceHandler

Ranendra Das do-not-reply at jboss.com
Thu May 31 14:01:30 EDT 2012


Ranendra Das [https://community.jboss.org/people/ranendas] created the discussion

"Re: BeanDefinitionParsingException :: Spring NamespaceHandler"

To view the discussion, visit: https://community.jboss.org/message/739123#739123

--------------------------------------------------------------
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 http://www.springframework.org/schema/beans"
          xmlns:context=" http://www.springframework.org/schema/context http://www.springframework.org/schema/context"
          xmlns:mvc=" http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc" 
          xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"
                    xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans         
                                                                       http://www.springframework.org/schema/beans/spring-beans-3.1.xsd http://www.springframework.org/schema/beans/spring-beans-3.1.xsd         
                                                                       http://www.springframework.org/schema/context http://www.springframework.org/schema/context         
                                                                       http://www.springframework.org/schema/context/spring-context-3.1.xsd http://www.springframework.org/schema/context/spring-context-3.1.xsd
                                                                       http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc         
                                                                       http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd 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
[https://community.jboss.org/message/739123#739123]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120531/8ec5327d/attachment.html 


More information about the jboss-dev-forums mailing list