尝试通过Intellij IDEA部署tomcat服务器并获得一个奇怪的丢失server.xml错误 [英] Trying to deploy tomcat server through Intellij IDEA and getting a weird missing server.xml error

查看:632
本文介绍了尝试通过Intellij IDEA部署tomcat服务器并获得一个奇怪的丢失server.xml错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将从我收到的错误开始,然后解释到目前为止我做了什么。

I'll start with the error I'm receiving, and then explain what I have done so far.

Error running Guestbook: Cannot load /home/anthony/.IntelliJIdea11/system/tomcat/Unnamed_guestbook-spring/conf/server.xml

使用Intellij IDEA 11终极版:

Using Intellij IDEA 11 Ultimate Edition:

我已经在Intellij IDEA的设置 - >应用程序服务器菜单中添加了tomcat6服务器,方法是添加目录安装了tomcat,然后我在运行下拉框中编辑配置,并添加了tomcat服务器的本地默认值。在部署选项卡下,我单击了+ - > Artifacts ...并选择了ProjectName:war文件工件。

I've added the tomcat6 server in the settings -> application servers menu of Intellij IDEA by adding the directory where tomcat is installed, then I went to edit configurations in the run drop-down box, and added the tomcat server local defaults. Under the deployment tab, I clicked + -> Artifacts... and selected the ProjectName:war file artifact.

现在,当我第一次运行它时,它给了它我有一些错误,比如

Now, when I ran it the first time, it gave me some error like

no conf folder found in /home/anthony/.IntelliJIdea11/system/tomcat/Unnamed_guestbook-spring/

在绝望的时刻我刚刚创建了一个名为conf的目录,并且错误消息,确实已经改变了to:

In a moment of desperation I just made a directory called conf there and the error message, sure enough, changed to:

Cannot load /home/anthony/.IntelliJIdea11/system/tomcat/Unnamed_guestbook-spring/conf/server.xml

我不知道应该找到这个文件的位置,应该包含哪些内容,为什么不创建它,或者最重要的是 - 如何在正确的地方获得它。非常感谢对这一个的任何帮助!!

I have no idea where this file should be found, what should be in it, why it's not being created, or most of all - how to get it in the right place. Any help on this one would be greatly appreciated!!

推荐答案

感谢CrazyCoder的提示 - 我下载了一个vanilla Tomcat 7安装并在应用程序服务器菜单中添加了一个,然后更改了运行配置以使用它,并且它立即启动。

Thanks to CrazyCoder for the tip - I downloaded a vanilla Tomcat 7 installation and added that one in the Application Servers menu, then changed the run configuration to use this instead, and it started right up.

感谢帮助!

这篇关于尝试通过Intellij IDEA部署tomcat服务器并获得一个奇怪的丢失server.xml错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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