如何通过IntelliJ IDEA 10.5处理Tomcat [英] How is Tomcat handled by IntelliJ IDEA 10.5

查看:155
本文介绍了如何通过IntelliJ IDEA 10.5处理Tomcat的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是IntelliJ IDEA的新手。我试图在Tomcat中部署一个Web应用程序。

I am a newbie to IntelliJ IDEA. I was trying to deploy a web app in Tomcat.

它无法部署,我无法在日志控制台中看到任何错误。

It failed to deploy and i was not able to see any errors in the log console.

经过多次搜索,我能够找到
〜/ Library / Caches / IntelliJIdea10 / tomcat / _p1 / logs / 文件夹。

After much searching, I was able to find out the log files at ~/Library/Caches/IntelliJIdea10/tomcat/_p1/logs/ folder.

这里有一堆日志文件,其中一个文件包含错误。然后,我可以解决问题并继续。

There were a bunch of log files here and one of the files contained the error. I then could solve the issue and proceed.

我是eclipse的用户,这个错误将直接出现在eclipse的日志控制台中。然而,IntelliJ IDEA并非如此。有人可以解释一下我在这里缺少什么吗?

I was a user of eclipse and this error would have come directly in the log console in eclipse. However this is not the case in IntelliJ IDEA. Can somebody please explain what I am missing here?

此外,如果有人能指出如何在IDEA中完成与Tomcat的集成(为了更好地理解),那将是很好的。注意:我在Mac OS 10.6.8上使用IntelliJ IDEA 10.5.2 Ultimate版。

Also, it would be nice if somebody could point out how the integration with Tomcat is done in IDEA (for better understanding). Note: I am using IntelliJ IDEA 10.5.2 Ultimate edition on Mac OS 10.6.8.

推荐答案

IntelliJ IDEA指示Tomcat使用临时目录为 CATALINA_BASE 它将上下文配置与项目设置中的工件路径放在一起,它不会将您的Web应用程序复制到 webapps 目录。

IntelliJ IDEA instructs Tomcat to use temporary directory as CATALINA_BASE where it places context configuration with the Artifact path from your project settings, it doesn't copy your web application into webapps directory.

Tomcat运行/调试配置日志选项卡您可以在其中指定要在IDEA控制台中显示的自定义日志,它应该开箱即用,但您可能已经在Tomcat配置或应用程序本身中自定义日志记录。或者Tomcat 7日志记录配置可能不同,并且不适用于IDEA,在这种情况下,您应该提交错误

In the Tomcat Run/Debug configuration there is Logs tab where you can specify custom logs to show in IDEA console, it should work out of the box, but probably you have customized logging in Tomcat configuration or in the application itself. Or maybe Tomcat 7 logging configuration is different and doesn't work with IDEA in which case you should submit a bug.

这篇关于如何通过IntelliJ IDEA 10.5处理Tomcat的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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