Spring dm环境搭建

Spring dm环境搭建

1 下载eclipse 3.6 压缩包并解压 。下载地址:

http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/helios/R/eclipse-jee-helios-win32.zip

 

2 下载spring-osgi-2.0.0.M1压缩包并解压到e:\spring-dm 下载地址:

http://www.springsource.com/download/community?sid=635492

3 我们首先导入srping-dm的包。打开eclipse,选择Import,在导入的对话框中选择Plug-ins and Fragments,选择spring-dm所在的目录(e:\spring-dm\dist),选中coreioextender这三个bundle

4 使用这种方式再导入com.springsource.org.aopallianceorg.srpingframework.aoporg.springframework.beansorg.springframework.contextorg.springframework.context.supportorg.springframework.core这几个bundle

这时如果启动的话,会报错。是因为前面导入的几个bundle有的依赖apachecommon-logging日志包。在run-configurations对话框中选中target platformorg.apache.commons.logging(1.0.4.v201005080501)bundle

5 修改依赖org.apache.commons.loggingbundle的模块的manifest.mf文件。

org.apache.commons.logging;version="[1.1.1,2.0.0)",

修改为org.apache.commons.logging;version="[1.0.4,2.0.0)"

现在在启动,就会看到所有bundle的状态都为active了。

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值