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 版本。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
发布评论
评论(3)
在这里找到解决方案:无法将项目部署到 intellij IDEA 14 内的 tomcat< /a>.应用程序上下文不正确。
运行/调试配置 ->部署选项卡->应用环境
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
IntelliJ IDEA 指示 Tomcat 使用临时目录作为
CATALINA_BASE
,它将上下文配置与项目设置中的 Artifact 路径一起放置,它不会将您的 Web 应用程序复制到webapps
目录中。在 Tomcat 运行/调试配置 中有 日志选项卡,您可以在其中指定要在 IDEA 控制台中显示的自定义日志,它应该开箱即用,但可能您已经自定义了日志记录在 Tomcat 配置或应用程序本身中。或者 Tomcat 7 日志记录配置可能不同,并且不适用于 IDEA,在这种情况下,您应该提交错误。
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 intowebapps
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.