Asked By: Anonymous
I have downloaded tomcat, used start.sh and shutdown.sh to display the default localhost:8080 page that states that tomcat is working properly, no problem there. I added tomcat to intelij and i added the artifact that intelij recommended. But when running tomcat, i get no errors in server output, but i can’t reach localhost:8080 (404 error), and i tried to run my html pages with tomcat but they seem to only work when tomcat uses the intelij port.
when i click the browse icon of URL and select the html page, it automatically uses the port that Intelij is running on, and not through 8080. When i try to later reach my servlet through this html page, nothing happens, possibly because tomcat is never used?
the html page when accessed through
http://localhost:63342/Diatom/web/html/startrenewed.html works fine.
How do i make intellij use the 8080 port of tomcat? Or if my problem lies in a different area, please support me in finding where the mistake really lies.
Answered By: Anonymous
I solved the problem after messing around with the artifact some more.
WEB-INF only contained classes and lib, I included both ‘WEB-INF’ directory contents and Diatom module: ‘Web’ facet resources. I think one of these isn’t needed, but I’m too afraid to break it again by messing around with it, so I will leave it as it is for now.