All of a sudden, when i run tomcat from within intellij, the output console is constantly bombarded with messages.
(very) short video showing this:
http://screencast.com/t/ddBhIh3UZiA
The messages constantly output is:
16:05:31,157 WARN http-nio-8222-exec-1 servlet.PageNotFound:198 - Request method 'HEAD' not supported
16:05:31,158 WARN http-nio-8222-exec-2 servlet.PageNotFound:1120 - No mapping found for HTTP request with URI [/] in DispatcherServlet with name 'dispatcher'
I am using Spring 4.1 and tomcat 8. Java 8 and Windows 8.1
This phenomenon didnt use to happen before and it suddently started occuring. What is going on?
If you're not creating a new project from scratch and instead have an existing project that runs on Tomcat, you can configure IntelliJ IDEA Ultimate to connect to your existing Tomcat installation.
There will be an option to Edit Configurations. In the resulting popup, click the Add icon, then click Tomcat and Local. From that dialog, you will need to click the Configure... button next to Application Server to tell IntelliJ where Tomcat is installed.
Setup IntelliJ to Debug Tomcat Now switch to the “Startup/Connection” tab and select “Debug” and set the debugging port. Note: 8000 is the default debugging port for Tomcat when using the jpda command. Now click “Apply” and “OK“.
Configuring an Application ServerDownload and extract Tomcat installation package to a local directory, as instructed in "Installing Apache Tomcat". Select Configure › Settings. Select IDE Settings › Application Servers. Click + and select Tomcat Server to add a Tomcat server, or any of the other supported servers.
I'm having the exact same problem. If you have your Tomcat run configuration set to open a browser on launch, IntelliJ will try to ping the website to ensure it's up prior to opening the browser. I believe it's doing HEAD requests and since your site isn't set to answer / HEAD requests, you get the error.
Unchecking the "After launch" checkbox under "Open browser" in the server tab of the run configuration fixed it for me.
As for getting JetBrains to fix this, I'm not sure what to do about it. I did just upgrade to 14.0.3 so that might be the cause...
Solved by JetBrains in this ticket, and if you want you can change a Jar to avoid the regression.
https://youtrack.jetbrains.com/issue/IDEA-135196
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With