我的EC版本是3.2,tomcat版本是5.5.26,安装配置好后在EC中启动TOMCAT没有问题,但新建JSP文档时无法编辑,还有打开JSP文档时出错,在网上读了很多文档发现可能是插件问题(我当时用emf-sdo-runtime-2.0.0,lomboz.301,tomcatPlugin3.1.0)于是下了lomboz-wtp-emf-gef-jem-3.1.2与tomcatPluginV31。用之前的办法把相应的文件复制到相应的位置,再重启EC,启动画面变成了橙色,但随后弹出窗口说发现错误,打开窗口所说的文档看了一下却不知所云,唯有在此向各位求教。
相应文档说明如下:
!SESSION 2008-02-23 00:43:48.203 -----------------------------------------------
eclipse.buildId=M20060118-1600
java.version=1.5.0_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
Command-line arguments: -os win32 -ws win32 -arch x86
!ENTRY org.eclipse.core.runtime 4 0 2008-02-23 00:43:51.593
!MESSAGE FrameworkEvent.ERROR
!STACK 0
org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Require-Bundle: org.eclipse.equinox.common; bundle-version="[3.2.0,4.0.0)"
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:294)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:329)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1037)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:573)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:495)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:275)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:455)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:189)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:291)
!ENTRY org.eclipse.osgi 2 0 2008-02-23 00:43:51.984
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2008-02-23 00:43:51.984
!MESSAGE Bundle update@plugins/org.eclipse.text_3.2.0.v20060605-1400.jar was not resolved.
!SUBENTRY 2 org.eclipse.text 2 0 2008-02-23 00:43:51.984
------解决方案--------------------
你使用那种all in one的版本吧!
比如
wtp + eclipse http://download.eclipse.org/webtools/downloads/
myeclipse + eclipse
免得有插件兼容问题!