现在的位置: 首页 > 综合 > 正文

xplanner部署错误

2013年10月04日 ⁄ 综合 ⁄ 共 596字 ⁄ 字号 评论关闭
启动抛出以下异常:


org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.apache.commons.collections.map.LinkedMap] to required type [java.util.HashMap] for property 'repositories'

解决方法:
1.  Open /xplanner/WEB-INF/classes/sbring-beans.xml
2.  Find the bean id="metaRepository"
3.  Replace
     <property name="repositories"><map>......</map></property>
     with
    <property name="repositories">
        <bean class="java.util.HashMap">
        <constructor-arg>
        <map>.....</map>
        </constructor-arg>
        </bean>
    </property>

This will cause spring to create a HashMap populated with the contents os the spring created map.

出处:

抱歉!评论已关闭.