Hi Max

Thanks for this info, will save us a lot of time with trying to migrate to Tomcat 9 :-). In the simplest case, is it enough just to add a .getConnector() call, without having to set up a Connector explicitly as in your code ?

Cheers. Sergey
On 08/11/17 13:58, Maxim Solodovnik wrote:
Hello,

Recently I found an issue with running Tomcat to perform web-services tests
There were no issues until I have updated to Tomcat 9.0.1

The code to start Tomcat was taken from
https://github.com/apache/cxf/blob/master/systests/cdi/base/src/main/java/org/apache/cxf/systests/cdi/base/tomcat/AbstractTomcatServer.java#L45

Here is the discussion in Tomcat mailing list:
http://tomcat.10.x6.nabble.com/Start-embedded-Tomcat-9-0-1-server-from-java-code-td5068985.html

Here is how it is currently look like in our code base:
https://github.com/apache/openmeetings/blob/master/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/AbstractWebServiceTest.java#L100

Hope it will be helpful :))

Reply via email to