MyEclipse8.5连接tomcat时,不能连接jvm
最近想学习struts,就在MyEclipse8.5中进行了tomcat6.2.10的配置,我的安装目录是D:\Program Files\tomcat\Tomcat 6.0
配置没有错,jdk我用的是jdk1.6 04,环境变量都配置正确了,能调试Java程序,tomcat单独是能够启动的,切能够运行http://localhost:8081的,我把端口改了,但是在MyEclipse中就是不能启动,自带的也不行提示错误信息:a configuration error occured diring stratup;please verify the interface fild with the prompt:不能连接至vm;
各位谁遇见过这问题啊,帮帮忙,解答一下!谢谢!
错误日志:
com.genuitec.eclipse.core.GenuitecCoreException: 不能连接至 VM
at com.genuitec.eclipse.easie.tomcat.Tomcat.start(Tomcat.java:55)
at com.genuitec.eclipse.easie.tomcat.Tomcat.start(Tomcat.java:44)
at com.genuitec.eclipse.easie.core.ui.action.ServerStartAction.ā(Unknown Source)
at com.genuitec.eclipse.easie.core.ui.action.ServerStartAction.basicRun(Unknown Source)
at com.genuitec.eclipse.core.ui.action.LicenseValidatingAction.run(Unknown Source)
at com.genuitec.eclipse.core.ui.action.LicenseValidatingAction.runWithEvent(Unknown Source)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:770)
at org.eclipse.jface.action.ActionContributionItem$9.handleEvent(ActionContributionItem.java:1284)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
Caused by: org.eclipse.core.runtime.CoreException: 不能连接至 VM
at org.eclipse.jdt.launching.AbstractVMRunner.abort(AbstractVMRunner.java:47)
at org.eclipse.jdt.internal.launching.StandardVMDebugger.run(StandardVMDebugger.java:340)
at com.genuitec.eclipse.core.JavaVMUtility.execute(JavaVMUtility.java:250)
at com.genuitec.eclipse.easie.tomcat.TomcatManager.startTomcat(TomcatManager.java:62)
at com.genuitec.eclipse.easie.tomcat.TomcatManager.start(TomcatManager.java:40)
at com.genuitec.eclipse.easie.tomcat.Tomcat.start(Tomcat.java:52)
... 38 more
Caused by: java.net.SocketException: select failed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
at java.net.ServerSocket.implAccept(ServerSocket.java:453)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at org.eclipse.jdi.internal.connect.SocketTransportService.accept(SocketTransportService.java:95)
at org.eclipse.jdi.internal.connect.SocketTransportImpl.accept(SocketTransportImpl.java:56)
at org.eclipse.jdi.internal.connect.SocketListeningConnectorImpl.accept(SocketListeningConnectorImpl.java:135)
at org.eclipse.jdt.internal.launching.StandardVMDebugger$ConnectRunnable.run(StandardVMDebugger.java:107)
at java.lang.Thread.run(Thread.java:619)
[解决办法]
你在MyEclipse中配置的是哪里的JRE?
MyEclipse也是自带JRE的~
我没有用过自带的啊·呵呵!
[解决办法]
Caused by: java.net.SocketException: select failed
你把你自己安装的JDK加入到MyEclipse的installed jres中了吗?