今天遇到这么一个问题,tomcat单独可以运行并能访问到其主页管理界面,但是嵌入到eclipse就是不行,找了一上午总结出两点:
1.启动tomcat出现这个信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path,这是因为tomcat从5.5后使用本身自带Apr,而JDK已不具有,你需要将你tomcat的bin目录下tcnative-1.dll文件拷贝到jdk的bin下即可;
2.双击你eclipse中的tomcat服务器,按照下图配置后,你的tomcat配置完成