myeclipse里关闭tomcat server时报错:ERROR: JDWP Unable to get JNI 1.2 environment
各位大侠好,小弟才接触myeclipse时间不长,在myeclipse里启动tomcat时没有报错,关闭时经常报错,报错信息如下:
ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2
JDWP exit error AGENT_ERROR_NO_JNI_ENV(183): [../../../src/share/back/util.c:820]
操作系统是win xp pro sp3 en,myeclipse的版本是8.6-20100723,jdk的版本是1.6.0_22,tomcat是6.0.29。
stop server时的全部信息如下:
Oct 25, 2010 8:54:17 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_22\bin;D:\Myeclipse\apache-tomcat-6.0.29\bin
Oct 25, 2010 8:54:18 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Oct 25, 2010 8:54:18 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 764 ms
Oct 25, 2010 8:54:18 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Oct 25, 2010 8:54:18 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
Oct 25, 2010 8:54:18 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
Oct 25, 2010 8:54:18 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Oct 25, 2010 8:54:18 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Oct 25, 2010 8:54:18 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Oct 25, 2010 8:54:19 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Oct 25, 2010 8:54:19 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Oct 25, 2010 8:54:19 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Oct 25, 2010 8:54:19 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Oct 25, 2010 8:54:19 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Oct 25, 2010 8:54:19 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/47 config=null
Oct 25, 2010 8:54:19 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1264 ms
Oct 25, 2010 8:54:24 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Oct 25, 2010 8:54:25 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2
JDWP exit error AGENT_ERROR_NO_JNI_ENV(183): [../../../src/share/back/util.c:820]
[解决办法]
这个错误不常见,我觉得有可能是你配置Tomcat的时候有问题。
不知道你配置Tomcat是不是按照相关文档的。
JNI找不到你的虚拟机吧?Tomcat配置的时候看看JDK有没有配置好。
[解决办法]
没遇到过,不清楚
帮顶了
[解决办法]
虽然不知道,但还是顶起来,期望高手解答!!
[解决办法]
D:\Myeclipse\apache-tomcat-6.0.29\bin你把tomcat装在Myeclipse目录里了?
建议卸载tomcat,装在其他的目录下。重新把Myeclipse和tomcat关联。
或是先关闭Myeclipse,然后删掉MyEclipse工作区间\.metadata\下面的.me_tcat文件夹。重启动试试看。
你这个错误真的不常见。
[解决办法]
好像是Tomcat6.0有点问题,你要是用5.0的话, 正常配置应该不会出现问题,我以前也用6.0的 经常出问题,问过一些开发人员,他们都这样反应,现在用5.0的就没出过问题。。
------解决方案--------------------
两次运行就可以了,不会有错
[解决办法]
这个不是个错误 只是个警告而已
你的电脑卡的话有可能出现 你重启就好了