“工作”在哪里目录位于在Eclipse中运行的Tomcat实例? [英] Where is the "work" directory located for a Tomcat instance running in Eclipse?

查看:155
本文介绍了“工作”在哪里目录位于在Eclipse中运行的Tomcat实例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Eclipse中,您可以配置多个服务器以在IDE中运行,包括Tomcat。根据您的Tomcat配置,在webapp的生命周期的某个时刻,您的JSP文件将被编译成servlet。这些新的servlet .class 文件存储在%TOMCAT_HOME%/ work 目录中以及 .java 中间文件从JSP创建。当您的JSP抛出异常并引用与 .java 相对应的行号,而不是 .jsp 时,这个 .java p>

更新:在我的环境(Windows)中,它位于这里:


C:/ Documents and Settings / %USER% /workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/work


也许更完整地回答有人可以发布* nix环境的位置。

解决方案

您可以在

  projectworkspace / .metadata / .plugins / org.eclipse.wst .server.core / tmp0 

这是Eclipse 3.4发布项目的默认位置。但是,可以通过更改服务器视图中的设置来更改。


In Eclipse you can configure numerous servers to run inside the IDE, including Tomcat. Depending on your Tomcat configuration, at some point in the life cycle of a webapp your JSP files will get compiled into servlets. These new servlet .class files are stored in the %TOMCAT_HOME%/work directory along with the .java intermediate file created from the JSP. This .java file is very helpful when your JSPs throw exceptions and cite a line number corresponding to the .java and not the .jsp

Update: On my environment (Windows), it is located here:

C:/Documents and Settings/%USER%/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/work

Perhaps to answer more completely somebody could post the location for *nix environments.

解决方案

You will find it in

projectworkspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0

This is the default place where Eclipse 3.4 publishes the project. However, this can be changed by changing the settings in your 'Server' view.

这篇关于“工作”在哪里目录位于在Eclipse中运行的Tomcat实例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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