H
H
hudrogen2017-04-18 18:54:21
Java
hudrogen, 2017-04-18 18:54:21

How to run java applications on already running tomcat?

I use Ubuntu 16.04
Installed Tomcat 8 according to this guide -> automatic start of the server was added to autoload. Therefore, Tomcat always hangs on localhost: 8080, the start page of Tomcat opens.
I use Inteliji IDEA to create a web application, now in the launch config I have registered the path to the tomcat and the launch parameters localhost: 8081.
After starting my application, it turns out that I have 2 servers running at the same time. I do not need it. I need the application to run on an already running tomcat, which is located at localhost: 8080
How to implement this? And is this the correct practice, or is it to start Tomcat for each application launch and then stop it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
akass, 2017-04-18
@hudrogen

Either we start tomcat every time (I do this) or we set up a deployment to run on localhost

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question