在Eclipse中调试tomcat项目3.4.2 [英] Debugging a tomcat project in Eclipse 3.4.2

查看:120
本文介绍了在Eclipse中调试tomcat项目3.4.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了eclipse 3.4.2,并尝试从sysdeo安装eclipse的tomcat插件(3.2.1版)( http://www.eclipsetotale.com/tomcatPlugin.html



我已经遵循安装说明,但是从eclipse工具栏启动tomcat时,我得到以下内容错误



java.lang.NoClassDefFoundError:org / apache / tomcat / util / log / SystemLogHandler
在java.lang.Class.getDeclaredConstructors0(Native Method)
在java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
在java.lang.Class.getConstructor0(Class.java:2671)
在java.lang.Class.newInstance0( Class.java:321)
在java.lang.Class.newInstance(Class.java:303)
在org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:205)
在org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:390)



我没有遵循排查说明,但没有成功。 p>

我试图将插件放在dropin目录中,但仍然有相同的错误。



这在eclipse中工作正常3.2和3.3



然后我尝试使用标准的内建WTP来设置我的tomcat服务器。我不知道如何在tomcat的conf目录中选择我的server.xml,似乎现在没有选择。
如何将我的eclipse项目与此设置相关联。我可以启动服务器,但是当我浏览tomcat的开始页面时,它不会显示任何内容。



如果有人可以提供一些方法来解决这个问题,我将不胜感激。



提前感谢



-Dipesh

解决方案

在尝试了几件事之后,我能够调试eclipse中的tomcat项目3.4.2
要使用eclipse 3.4.2调试tomcat应用程序/项目,请使用安装在其中的WTP插件使用它。



转到窗口 - >显示视图 - >其他 - >服务器



这个视图创建一个新的服务器,请选择tomcat安装目录和版本信息。



然后双击本地主机上的Tomcat VX.X Server,它打开配置设置页面



在服务器位置部分选择使用Tomcat安装(控制Tomcat安装),然后输入部署路径。



在发布部分中,选择不发布更新上下文路径复选框。



Voila!所有设置在Eclipse中调试tomcat项目3.4.2



没有必要下载并复制任何额外的插件。



感谢Juri。希望这有帮助。


I downloaded eclipse 3.4.2 and tried installing tomcat plugin (version 3.2.1)for eclipse from sysdeo (http://www.eclipsetotale.com/tomcatPlugin.html)

I have followed installation instructions but when is start tomcat from eclipse toolbar i got the following error

java.lang.NoClassDefFoundError: org/apache/tomcat/util/log/SystemLogHandler at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357) at java.lang.Class.getConstructor0(Class.java:2671) at java.lang.Class.newInstance0(Class.java:321) at java.lang.Class.newInstance(Class.java:303) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:205) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:390)

I did follow troubleshoot instructions but no success.

I tried to putting plugin in dropin directory too but still got the same error.

This was working fine in eclipse 3.2 and 3.3

Then I tried using standard inbuilt WTP to set up my tomcat server. I am not sure how it will pick my server.xml in conf directory of tomcat, it seems it is not picking as of now. How do I associate my eclipse project with this setup. I am able to start the server but when i browse the tomcat start page, it does not show anything.

I would appreciate if someone can provide some ways to fix this.

Thanks in advance.

-Dipesh

解决方案

After trying out few things I was able to debug tomcat project in eclipse 3.4.2 To debug tomcat application/project using eclipse 3.4.2 use WTP plugins which are installed along with it.

Go to Window --> Show View --> Others --> Server

In this view create a new server, please select tomcat installation directory and version information.

Then double click on Tomcat VX.X Server at local host, it opens up configuration settings page

In the Server Locations Section select "Use Tomcat Installation (takes control of Tomcat Installation) and enter deploy path.

In the publishing section select Never Publish automatically and uncheck update context path checkbox.

Voila!! All set to debug tomcat project in eclipse 3.4.2

There is no need to download and copy any extra plugin.

Thanks Juri. Hope this helps.

这篇关于在Eclipse中调试tomcat项目3.4.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆