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了。

 

 

你可能感兴趣的:(apache,eclipse,spring,AOP,osgi)