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

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

问题描述

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

部署失败,我无法在日志控制台中看到任何错误.

经过多次搜索,我能够在以下位置找到日志文件~/Library/Caches/IntelliJIdea10/tomcat/_p1/logs/ 文件夹.

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

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

另外,如果有人能指出如何在 IDEA 中完成与 Tomcat 的集成(以便更好地理解),那就太好了.注意:我在 Mac OS 10.6.8 上使用 IntelliJ IDEA 10.5.2 Ultimate 版.

解决方案

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

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

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.

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.

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?

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 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.

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天全站免登陆