Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Constant warning when running tomcat from intellij

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?

like image 639
pdeva Avatar asked Jan 29 '15 00:01

pdeva


People also ask

Does Tomcat work with IntelliJ?

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.

How do I start Tomcat in IntelliJ?

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.

How do I start Tomcat in debug mode IntelliJ?

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

How do I download Tomcat from IntelliJ?

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.


2 Answers

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

like image 115
prok Avatar answered Oct 21 '22 21:10

prok


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

like image 26
Kevin Davin Avatar answered Oct 21 '22 23:10

Kevin Davin