How to start two equal services in Tomcat, but with different Final Ames

Asked

Viewed 91 times

0

Basically I have a service running on Tomcat, I would like to upload a copy of it with another final name in Tomcat.

The problem is that there is some limiter that is not the end that prevents me from climbing two equal services.

When trying to give 'Start' in the service the following error appears:

FAIL - Application at context path [/xtr-conteudos-2] could not be started
FAIL - Encountered exception [org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/xtr-conteudos-2]]]

The structure of the project composes Thymeleaf and Spring, but even seeking this error I could not visualize what is limiting it to run.

Remembering that, the service that is already open works normally, so I do not believe it is something versioning JVM.

1 answer

0

I believe the problem must be related to the configured ports of your Tomcat. Unless mistaken, each application already comes with the built-in Tomcat.

So just set up on application.properties located in src/main/resources the door to be used.

To replace the standard port you need to use the property server.port.

Make sure to set a different port in each app.

For example, set server.port=8088 on an application and server.port=8090 on another application, with this your Application01 will run on the port 8088 and your Applitivo02 will run on the door 8090.

  • I will check as soon as possible, thanks for the reply

  • Unfortunately even going up one service with port 8080 and another with port 8090 the same error keeps popping up.

  • Check if there is anything that can clarify better in the logs/Catalina.out

Browser other questions tagged

You are not signed in. Login or sign up in order to post.