RAP Step by step--三、与spring,hibernate一起工作 6

10)配置plugin.xmlclasspath

双击plugin.xml,然后选择runtime ,ClasspathAdd按钮,将lib目录下的全部文件加进来。

其中

MANIFEST.MF内容为

Manifest-Version: 1.0

Bundle-ManifestVersion: 2

Bundle-Name: Rapdemo Plug-in

Bundle-SymbolicName: com.sword.rapdemo; singleton:=true

Bundle-Version: 1.0.0

Bundle-Activator: com.sword.rapdemo.Activator

Bundle-Vendor: SWORD

Require-Bundle: org.eclipse.rap.ui,

 org.springframework.bundle.spring.beans;bundle-version="2.5.5",

 org.springframework.bundle.spring.core;bundle-version="2.5.5",

 org.apache.commons.logging;bundle-version="1.0.4"

Bundle-RequiredExecutionEnvironment: J2SE-1.5

Bundle-ActivationPolicy: lazy

Import-Package: javax.servlet;version="2.4.0",

 javax.servlet.http;version="2.4.0"

Bundle-ClassPath: .,

 lib/,

 lib/cglib-nodep-2.1_3.jar,

 lib/commons-collections.jar,

 lib/commons-dbcp.jar,

 lib/commons-pool.jar,

 lib/dom4j-1.6.1.jar,

 lib/hibernate3.jar,

 lib/jta.jar,

 lib/spring-jdbc.jar,

 lib/spring-orm.jar,

 lib/spring-tx.jar,

 lib/sqljdbc.jar

 

build.properties内容为

output.. = bin/

bin.includes = plugin.xml,\

               META-INF/,\

               bin/,\

               .,\

               lib/,\

               lib/cglib-nodep-2.1_3.jar,\

               lib/commons-collections.jar,\

               lib/commons-dbcp.jar,\

               lib/commons-pool.jar,\

               lib/dom4j-1.6.1.jar,\

               lib/hibernate3.jar,\

               lib/jta.jar,\

               lib/spring-jdbc.jar,\

               lib/spring-orm.jar,\

               lib/spring-tx.jar,\

               lib/sqljdbc.jar

source.. = src/

 

11)增加运行时需要的Bundle

将与spring有关的全部选中如:

选择 org.springframework.bundle.spring.aop

        org.springframework.bundle.spring.beans

        org.springframework.bundle.spring.core

12)配置web服务器的端口号和浏览器

Configure Browsers…,然后选择 IE浏览器或其他浏览器

选中Manual Port configuration,然后输入端口号,8088

然后点Run按钮.

当程序在IE浏览器中运行后,点click me 按钮。

如果一切顺利,将会在Eclipse Console看到运行结果,如:

你可能感兴趣的:(eclipse,spring,工作,Hibernate,IE)