so I read a lot of articles, blogs and in forums about this topic and I always find the same answer to change the tomcat port in eclipse and for everybody else it instantly works... but not for me.
Here is my situation:
I have two Web applications (Frontend & Backend) that I want to deploy from my computer. The Frontend runs on one workspace, the backend on another workspace, so that is separated.
When I run the Frontend on tomcat Port 8080 it works fine no problem. So I tried to run the backend on the other workspace and it said port 8080 already in use. I knew that would happen, because like I said, I read a lot in forums etc.
So I tried to change the ports on frontend workspace. I changed port in the server overview, as well as in server.xml in my workspace to 9090. AND I changed the port to 9090 in the Apache tomcat home directory on my C drive as well.
server.xml file in my workspace
server.xml file home directory
I deleted the tomcat folder under the eclipse workspace and then I created a new Server in eclipse.
It worked for the server itself, you can see that in the picture from the console in red:
I then started the web application again and after all this it still runs tomcat on port 8080, so I came back to stackoverflow and I hope that someone can help me:
I already solved this problem by adding "server.port = 9090" to my application.properties file in my web application.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.