很早的时候就想尝试使用XPlanner,但是一直都没有成功,感觉很简单
但是运行时总是报spring的一个配置文件出错
今天终于在网上找到解决方案了
原来是因为XPlanner部署在JDK1.6上的问题
http://jira.codehaus.org/browse/XPR-391
错误如下:
ERROR - alina].[localhost].[/xplanner] - Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘metaRepository’ defined in class path resource [spring-beans.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [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’]
PropertyAccessExceptionsException (1 errors)
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’
at org.springframework.beans.BeanWrapperImpl.doTypeConversionIfNecessary(BeanWrapperImpl.java:839)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:584)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:469)
原来是spring-beans.xml文件中的问题
就是这个部分
<bean id=”metaRepository” class=”com.technoetic.xplanner.domain.repository.MetaRepositoryImpl”>
<property name=”repositories”>
<map>
com.technoetic.xplanner.domain.repository.MetaRepositoryImpl的repositories需要一个map,
spring中使用使用的实现是org.apache.commons.collections.map.LinkedMap
但是org.apache.commons.collections.map.LinkedMap实现了java.util.Map接口啊!
理论上应该的可以的啊!但是却出现了转化错误,没有找到原因,但是找到了解决方案啊!
把<property name=”repositories”><map>……</map></property>
修改为
<property name=”repositories”>
<bean class=”java.util.HashMap”>
<constructor-arg>
<map>…..</map>
</constructor-arg>
</bean>
</property>
就可以了啊!
分享到:
相关推荐
xplanner的汉化文件
Xplanner+安装报告,包括安装文件使用说明
java 极限编程 敏捷开发 xplanner 极限编程资料之三:Xplanner相关资料(全)
xplanner 汉化后,并修复中文附件问题,直接运行版本,下载后直接运行tomcat即可。省事方便实用。
特性:Features of XPlanner-Plus: - Burn down chart; - Regenerate Burn down chart button; - Online time tracking and time sheet generation; - Drag and Drop stories; - Multiple select for stories, ...
xplanner-plus.part1.rar
修改好的tomcat目录下的xplanner 修改好的tomcat目录下的xplanner 结合以上两个资源用的代码应用
1、jakarta-tomcat-5.0.28.exe 2、mysql-5.5.22-win32 3、apache-ant-1.8.3-bin.zip 4、xplanner-0.7b7b-war
NULL 博文链接:https://openstudy.iteye.com/blog/1725868
XP独特的开发概念如iteration、user stories等,XPlanner都提供了相对应的的管理工具,XPlanner支持XP开发流程,并解决利用XP思想来开发项目所碰到的问题。XPlanner特点包括:简单的模型规划,虚拟笔记卡(Virtual ...
xplanner 汉化后,直接运行版本,下载后直接运行tomcat即可。省事方便实用。
xplanner 的 IDEA 插件
博文链接:https://runthu.iteye.com/blog/227452
JUST XPlanner是将JavaFX与Java Web Start相结合的富客户端应用程序,它使记录XPlanner时间变得简单易用。 功能包括简单的用户界面,常见任务和单击访问。
讲些敏捷开发的基础知识,极限编程的主要特点等。
ALM Suite是一个集成的变更管理套件,主要(但不是唯一)是针对开发人员的。 它将多种最佳OSS开发工具集成到一个软件包中。 这些包括Subversion,RT,CruiseControl和XPlanner