Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trying to deploy tomcat server through Intellij IDEA and getting a weird missing server.xml error

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

Using Intellij IDEA 11 Ultimate Edition:

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/

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

like image 313
Anthony Avatar asked Mar 27 '12 00:03

Anthony


1 Answers

It happened to me too. I found out that I accidentally edited server.xml file and it was no longer a valid xml. As it couldn't be parsed properly, it wasn't loaded in. Fixing server.xml resolved the issue.

like image 176
radek1st Avatar answered Sep 30 '22 06:09

radek1st