Tomcat in docker container deploys successfully but nothing seems to work

Answered

Hello,

I am working on mac os, trying to create a webapp using intellij and the tomcat server. After many failed tutorials on how to set it up, I created a new empty project and followed the same step-by-step instructions provided in this JetBrains guide: https://www.jetbrains.com/help/idea/deploying-a-web-app-into-an-app-server-container.html#bd844b0d. During the guide, I could not locate /usr/local/tomcat so I used the webapps folder in the "tomcat-9.0.43" that I had installed previously. When I run the docker, it says "'TomcatContainer Image id: tomcat:latest' has been deployed successfully.", but when I try to open the index.jsp file, I get the following message: "There is no configured/running web-servers found! Please, run any web-configuration and hit the Refresh button!". I also tried "localhost:8080" and "127.0.0.1:8080" in the browser but always get the 404 error. I am a little new to all this and have no idea what my problem is, any help would be much appreciated.

0
3 comments

Hi. Could you please provide idea.log (Help | Show log..) after running?

0
Avatar
Permanently deleted user

How should I share the file? It is a long log. Also, when I try to run now I get "Failed to deploy 'TomcatContainer Image id: tomcat:latest': java.lang.NullPointerException" 

0

Could you please raise a ticket at https://youtrack.jetbrains.com/issues, and attach the logfile there?

0

Please sign in to leave a comment.