Eclipse中启动Tomcat无任何反应
来源:互联网 发布:淘宝号子账号怎么认证 编辑:程序博客网 时间:2024/04/29 08:39
现象:
eclipse中安装了tomcat插件,tomcat原来是可以在eclipse中启动,后来无法启动,点击启动按钮无任何反应。
故障跟踪:
在eclipse的console没有任何反应,是不是有文件日志。果然在eclisep当前的workspace下面的.metadata/.log找到了错误日志,如下:
Eclipse中安装了tomcat插件
!ENTRY com.sysdeo.eclipse.tomcat 4 4 2008-07-16 23:52:11.687
!MESSAGE Impossible to start Tomcat
Check home directory setup in Tomcat preference page/n
!ENTRY com.sysdeo.eclipse.tomcat 4 4 2008-07-16 23:52:11.687
!MESSAGE org.eclipse.core.runtime.CoreException: Unable to parse XML document.
at org.eclipse.debug.core.DebugPlugin.abort(DebugPlugin.java:1198)
at org.eclipse.debug.core.DebugPlugin.parseDocument(DebugPlugin.java:1176)
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doInitializeFromMemento(AbstractSourceLookupDirector.java:410)
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.initializeFromMemento(AbstractSourceLookupDirector.java:546)
at org.eclipse.debug.internal.core.LaunchConfiguration.initializeSourceLocator(LaunchConfiguration.java:566)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:761)
at com.sysdeo.eclipse.tomcat.VMLauncherUtility.runVM(VMLauncherUtility.java:95)
at com.sysdeo.eclipse.tomcat.TomcatBootstrap.runTomcatBootsrap(TomcatBootstrap.java:202)
at com.sysdeo.eclipse.tomcat.TomcatBootstrap.start(TomcatBootstrap.java:95)
at com.sysdeo.eclipse.tomcat.actions.StartActionDelegate.run(StartActionDelegate.java:38)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:256)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:443)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
org.eclipse.core.runtime.CoreException[120]: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 2-byte UTF-8 sequence.
at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanLiteral(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanAttributeValue(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanAttribute(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at org.eclipse.debug.core.DebugPlugin.parseDocument(DebugPlugin.java:1168)
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doInitializeFromMemento(AbstractSourceLookupDirector.java:410)
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.initializeFromMemento(AbstractSourceLookupDirector.java:546)
at org.eclipse.debug.internal.core.LaunchConfiguration.initializeSourceLocator(LaunchConfiguration.java:566)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:761)
at com.sysdeo.eclipse.tomcat.VMLauncherUtility.runVM(VMLauncherUtility.java:95)
at com.sysdeo.eclipse.tomcat.TomcatBootstrap.runTomcatBootsrap(TomcatBootstrap.java:202)
at com.sysdeo.eclipse.tomcat.TomcatBootstrap.start(TomcatBootstrap.java:95)
at com.sysdeo.eclipse.tomcat.actions.StartActionDelegate.run(StartActionDelegate.java:38)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:256)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:443)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
可以看到异常的原因是eclisep无法解析xml文件,xml文件可以认为是配置文件。回顾下eclipse环境是否有改动过?因为当时我在使用tomcat启动x工程,所以remove了tomcat context再试。结果还是一样的错误。
在错误打印出的堆栈信息中可以看到AbstractSourceLookupDirector,如果大家都eclipse中tomat的设置熟悉的话,可以想到tomcat有个Source Path的设置。在计算源代码路径中我去掉了x工程,结果tomcat可以启动了。找到了问题的原因,但是还不是根因。回顾了在x工程的配置的修改,结合错误信息,最终得到根因:buildpath的libraries中jar包的路径中 含有中文。这样导致启动tomcat的时候,tomcat插件计算路径的时候,不识别中文导致错误,从错误中可以看到:“ Invalid byte 2 of 2-byte UTF-8 sequence.“。这个应该属于tomcat的bug,或者需要修改某些设置,使得可以解析中文。至此,问题解决的了。- Eclipse中启动Tomcat无任何反应
- Eclipse中启动Tomcat无任何反应
- Android AVD启动窗口消失之后无任何反应(附上离线安装Eclipse Android开发环境)
- 会声会影点击无任何反应问题
- 按钮提交无任何反应的解决情况
- 键入service iptables status/start/restart无任何反应
- 右击项目无任何反应,无菜单列表
- phpmyadmin 登录没反应,无任何错误提示
- Eclipse Maven install build 无任何作用
- iptables 无法正常启动且无任何报错
- JSONObject j=JSONObject.fromObject(map) 这部分后就没反应了,无任何异常抛出
- lsnrctl status后即无任何反应,而SQL*Plus正常
- JSONObject j=JSONObject.fromObject(map) 这部分后就没反应了,无任何异常抛出
- 使用QT点击运行按钮无任何反应,出现错误Could not create directory
- 打包 ipa 文件给别人下载,下载安装桌面无反应(点击安裝后无任何反应)
- eclipse 中启动tomcat服务
- eclipse中启动tomcat,内存不足!
- eclipse中tomcat启动不了
- python UnicodeDecodeError: 'ascii' codec can't decode
- unity3d简单的AI
- Android事件传递机制(一)deprecated
- [5月8日的脚本] 展示项所属的组织单元 (PowerShell)
- Perl 变量的作用my, our, local和全局变量
- Eclipse中启动Tomcat无任何反应
- 字符串反转
- iOS ASIHTTPRequest详解
- centos5.5开机登录后提示“您的会话只持续了不到10秒钟,如果您没有注销,就意味着安装可能出现了问题”
- 8本游戏开发书籍推荐
- 输出字符串子集
- C#+统计图-柱形图+饼形图+折线图
- Intel 北京OTC 招聘Intern 对体系结构的要求
- 常用delegate代码