System.out.println not showing up in "run" output window for Tomcat

Answered

I am working on a Java / JSP application with IntelliJ Ultimate edition. I am using Mac El Capitan. Previously, I was able to use System.out.println("..."); inside of a servlet, and everytime I landed on that page, it would print that statement.

After removing one print statement, restarting my computer and then starting intellij, any logs that previously worked do not work anymore. Even my default page will not print anything to the run console when it is run. I know for a fact I'm getting the correct servlet address, and the fact that this just worked before restarting my computer is pretty infuriating.

I've made sure that my logs are not being saved to a file, and have checked my project structure, updated my classes and resources, re-built the project, and restarted tomcat multiple times, with no results.

What could be happening?

3 comments
Comment actions Permalink

Does it work if you start Tomcat from the Terminal and deploy your app manually? Maybe there is some change in the default Tomcat logging? Try making a new clean Tomcat installation and see if it helps.

0
Comment actions Permalink

When I deploy an app manually (from terminal), I essentially don't have a "run" output window. I usually build everything from command line, deploy it, and then restart tomcat. I tried doing a clean install of tomcat, however, the problem persists.

0
Comment actions Permalink

You should have the same output in the Terminal as in Run tool window.

0

Please sign in to leave a comment.