相关软件:还是接上一篇的linux环境,Tomcat5.5.25 eclipse3.3.2(eclipse-jee-europa-winter-linux-gtk) gridsphere3.1 myeclipse6.5
1.新建web project,命名为gridsphere,将Web root folder改为webapps。
2.右击工程选择Import-import file system-gridsphere3.1解压文件夹。
3. 选择工程-properties-java build path ,sources 中导入gridsphere下的src包; librabries选项卡选择导入ant.jar和gridsphere下所有jar文件。
此时可能会在./webapps/gridsphere/jsp/rss/viewRSS.jsp文件中出现前三个包找不到的错误,注意随便修改一下文件然后复原重新保存即可,只是eclipse暂时没找到那几个包而已,反正我是经常见这种类似的错误,或许是eclipse的bug吧?你人品好的话或许遇不到这种错误。但是此时./webapps/gridsphere/WEB-INF/persitence和web.xml都有错,本人也没找到可以解决的办法,并且估计很可能也是eclipse的事,因为先前做jsp的时候老是有些命名正确的标签或属性不认识,很奇怪,但是这里的红叉叉对后面好像也没什么影响。
4. 选择工程的build.xml-run as... ,Environment中添加变量CATALINA_HOME赋值Tomcat安装路径。targets中选择help、setenv和install,run
补充:其实将gridsphere3.1的解压文件按文件系统导入myeclipse后an