Closed pschwarzer-tt closed 1 month ago
Seems to be a duplicate of #23
Thanks for figuring out the root cause.
Is it possible to change this to new HTTPContext(tomcat.getHost().getName(), tomcat.getConnector().getLocalPort()); so it uses the port used by tomcat?
Sure, would anyone of you be up for opening a pull request with this improvement?
Seems to be a duplicate of #23
Right, closed as duplicate.
Fixed for 1.2.2.Final. Closing! Thanks for the reports and fixes everyone.
Hi, is it possible to adjust plugin, so it allows automatic search for a free port? The
org.apache.catalina.startup.Tomcat
class allows this by passing 0 as port:When i pass 0 in
setup(TomcatConfiguration)
the TomcatContainer::start method will pass 0 to Tomcat and Tomcat identifies any free port. Checkingtomcat.getConnector().getLocalPort()
aftertomcat.start()
give me the free port.But in the TomcatContainer::deploy method, the original port 0 is passed to create a HTTPContext.
Is it possible to change this to
new HTTPContext(tomcat.getHost().getName(), tomcat.getConnector().getLocalPort());
so it uses the port used by tomcat?We are using the tomcat-embedded-8 version of the plugin.