解决:关于MyEclipse下关联Tomcat7时运行出错

来源:互联网 发布:twisted 网络编程精髓 编辑:程序博客网 时间:2024/04/28 19:21

解决:关于MyEclipse下关联Tomcat7时运行出错

今天在官方网站上下了一个tomcat7.0版本,我用的是安装版的,

安装完测试也没有问题,但是我在MyEclipse中关联Tomcat,

点击运行按钮时,出现了一个错误,

于是在网上找了很久终于解决了,在这里呢也分享给大家,

不过启动完之后我这里的提示信息是红色的,如果谁有更好的解决方法,也希望分享出来

就是这样的一个错误:如下图

 

 

 

 

到网上搜索了一下,比较好解决,

Solutions

      1. In Eclipse, Open the “Server” tab.
      2. Double click on the “Tomcat6″ entry to see the configuration.
      3. Then click on the “Open launch configuration” link in the “General      information” block.
      4. In the dialog, select the “Classpath” tab.
      5. Click the “Add external jar” button.
      6. Select the file “/usr/share/tomcat6/bin/tomcat-juli.jar”
      7. Close the dialog.
      8. Start tomcat 6 from Eclipse.

实际上,就是把bin/tomcat-juli.jar 下add tomcat classpath下,效果如下:

 

然后重新启动tomcat7.0就可以了!但是我也不太清楚具体是什么原因

然后再发一张启动成功的图:(但是这里字体是红色的)

 

 

好了,到这里就结束了,希望遇到次问题的也能尽快解决,解决了别忘了顶下哈

 

原创粉丝点击