Eclipse 3.4.1 (Ganymede SR1) 版本后,其SOA/SCA开发工具包STP的发布变为只提供站点更新方式,而不在提供原来的stp-all-in-one打包,但经过实际测试,截至链接:
http://download.eclipse.org/stp/downloads/
到提供的STP 2.0M3版本(16 Nov 2008)都存在错误,在 Eclipse 3.4.1 (Ganymede SR1) 版本上安装了更新后,会引发类似如下的错误:
1.Eclipse Window菜单组/Preferences/SOA Tools/Annotation Validator 引发错误:
java.lang.ClassNotFoundException
Unable to create the selected preference page.
org.eclipse.stp.sc.xmlvalidator.preferences.ValidatorPreferencePage
2.Eclipse Window菜单组/Preferences/SOA Tools/SCA引发错误:
java.lang.ClassNotFoundException
Unable to create the selected preference page.
org.eclipse.stp.sc.sca.preferences.SCAMainPreferencePage
3.Eclipse File菜单组/New Project.../SOA Tools/SCA Java Component Project引发错误
Problem Opening wizard
The selected wizard could not be started.
Plug-in org.eclipse.stp.sc.sca.java was unable to load class org.eclipse.stp.sc.sca.java.wizards.ScaJavaProjectWizard.
org.eclipse.stp.sc.sca.java.wizards.ScaJavaProjectWizard
经过仔细分析从 http://dev.eclipse.org/svnroot/stp 下载的最新的STP只读源码,发现问题出在org.eclipse.stp.sc.*插件的打包配置中,如果打开Eclipse运行时下的org.eclipse.stp.sc.sca.java_0.9.0.200809261307.jar文件,可以发现此文件中未包含任何JAVA Class文件。
相关下载:
好多朋友回复要可用的编译后版本,我已经上传到CSDN资源库中,需要者可以自行下载:
http://download.csdn.net/source/973737
有兴趣了结问题发生的原因的,可以参考如下做法自己解决:
修改org.eclipse.stp.sc.*插件工程中的build.properties文件(重点在于添加bin.includes取值中的 . )
例如org.eclipse.stp.sc.sca.java插件工程的build.properties文件内容修改如下:
javacSource = 1.5 javacTarget = 1.5 bin.includes = META-INF/,/ plugin.xml,/ plugin.properties,/ schema/,/ icons/,/ . jars.compile.order = . src.includes = schema/,/ src/ source.. = src/ |