Re: Start embedded Tomcat 9.0.1 server from java code

2017-11-08 Thread Maxim Solodovnik
Thanks a lot for the review Konstantin, I have correct our tests :) Will Also contact CXF project This code was taken from their tests: [1] :)) [1] https://github.com/apache/cxf/blob/master/systests/cdi/base/src/main/java/org/apache/cxf/systests/cdi/base/tomcat/AbstractTomcatServer.java#L45 On

Re: Start embedded Tomcat 9.0.1 server from java code

2017-11-08 Thread Konstantin Kolinko
I have several comments on [1] https://github.com/apache/openmeetings/blob/master/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/AbstractWebServiceTest.java#L98 2017-11-07 20:07 GMT+03:00 Tobias Soloschenko : > Hi Maxim, > > same for me I

Re: Start embedded Tomcat 9.0.1 server from java code

2017-11-07 Thread Tobias Soloschenko
Thanks for the hints! :-) kind regards Tobias > Am 08.11.2017 um 07:49 schrieb Rémy Maucherat : > > On Wed, Nov 8, 2017 at 5:30 AM, Maxim Solodovnik > wrote: > >> OK :) >> I finally found the difference :))) >> >> Tomcat.java 8.5.23: >>public void

Re: Start embedded Tomcat 9.0.1 server from java code

2017-11-07 Thread Maxim Solodovnik
This is why Tomcat 9.0.1 has no connectors sorry for the typo On Wed, Nov 8, 2017 at 11:30 AM, Maxim Solodovnik wrote: > OK :) > I finally found the difference :))) > > Tomcat.java 8.5.23: > public void start() throws LifecycleException { >

Re: Start embedded Tomcat 9.0.1 server from java code

2017-11-07 Thread Maxim Solodovnik
Thanks for the clarifications! I'll update my code On Wed, Nov 8, 2017 at 1:49 PM, Rémy Maucherat wrote: > On Wed, Nov 8, 2017 at 5:30 AM, Maxim Solodovnik > wrote: > > > OK :) > > I finally found the difference :))) > > > > Tomcat.java 8.5.23: > >

Re: Start embedded Tomcat 9.0.1 server from java code

2017-11-07 Thread Rémy Maucherat
On Wed, Nov 8, 2017 at 5:30 AM, Maxim Solodovnik wrote: > OK :) > I finally found the difference :))) > > Tomcat.java 8.5.23: > public void start() throws LifecycleException { > getServer(); > getConnector(); > server.start(); > } > >

Re: Start embedded Tomcat 9.0.1 server from java code

2017-11-07 Thread Maxim Solodovnik
OK :) I finally found the difference :))) Tomcat.java 8.5.23: public void start() throws LifecycleException { getServer(); getConnector(); server.start(); } Tomcat.java 9.0.1: public void start() throws LifecycleException { getServer();

Re: Start embedded Tomcat 9.0.1 server from java code

2017-11-07 Thread Tobias Soloschenko
Hi Maxim, same for me I just created a simple setup like this: String baseDir ="."; String webappDirLocation = "src/main/webapp/"; String webxmlDirLocation = "src/main/webapp/WEB-INF/web.xml"; Tomcat tomcat = new Tomcat(); tomcat.setPort(8080);

Re: Start embedded Tomcat 9.0.1 server from java code

2017-11-07 Thread Maxim Solodovnik
Thanks for the hints :) I have created sample project: https://github.com/solomax/tomcat-from-java I have compared detailed logs. Following lines appears in logs while Tomcat8 is used Nov 07, 2017 9:1 PM org.apache.catalina.util.LifecycleBase setStateInternal FINE: Setting

Re: Start embedded Tomcat 9.0.1 server from java code

2017-11-06 Thread Mark Thomas
On 04/11/17 15:25, Maxim Solodovnik wrote: > Maybe I can set breakpoint somewhere? and check what is wrong? > Could you point me to the correct class? No idea where to look at this point. I'd probably start with the start() method and go from there. Maybe try turning on debug logging? Mark >

Re: Start embedded Tomcat 9.0.1 server from java code

2017-11-04 Thread Maxim Solodovnik
Maybe I can set breakpoint somewhere? and check what is wrong? Could you point me to the correct class? On Fri, Nov 3, 2017 at 5:26 PM, Maxim Solodovnik wrote: > I'm OK to add missing code to my tests, > but I'm not sure what need to be added :( > > On Fri, Nov 3, 2017 at

Re: Start embedded Tomcat 9.0.1 server from java code

2017-11-03 Thread Maxim Solodovnik
I'm OK to add missing code to my tests, but I'm not sure what need to be added :( On Fri, Nov 3, 2017 at 3:24 PM, Maxim Solodovnik wrote: > I see no errors, > Using debugger I can see tomcat.server.state == STARTED > > Everything works as expected if I'm switching back to

Re: Start embedded Tomcat 9.0.1 server from java code

2017-11-03 Thread Maxim Solodovnik
I see no errors, Using debugger I can see tomcat.server.state == STARTED Everything works as expected if I'm switching back to 8.5.23 without any other changes nestat reports: *netstat -an |grep 8080* tcp6 0 0 :::8080 :::*LISTEN for 8.5.23 On

Re: Start embedded Tomcat 9.0.1 server from java code

2017-11-03 Thread Mark Thomas
On 03/11/17 04:51, Maxim Solodovnik wrote: > Hello, > > I recently migrated from Tomcat 8.5.23 to Tomcat 9.0.1 > Everything works as expected except tests :( > > I'm using following code to start embedded Tomcat and test CXF web services > [1]. > With Tomcat 9.0.1 tests failed, netstat -an