-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARQ-2194 Tomcat 9 embedded starts without connector by default, we ne… #42
Conversation
@MatousJobanek @bartoszmajsak Can some of you guys look into this, please? |
Thanks for the PR @manovotn. I'm just wondering how calling Also - should we think about having Tomcat 9 test suite in here? |
As for my first question - I think this thread explains what is going on under the hood https://bz.apache.org/bugzilla/show_bug.cgi?id=60368#c1 |
Yea, the getter registers the default connector which is exactly the same as what Tomcat 8 does automatically if you register none. That's why this change works for both. |
What kind of testsuite would you imagine? I didn't want to create a new We could maybe add a maven profile with tomcat 9 and run pretty much the same tests that are there for 8? |
That is something I had in mind as a good start. This way we could have been able to detect this problem before it hurt you :) Could you add it to this PR? |
Sure, will look into it |
@bartoszmajsak So I remade that Note that Tomcat 9 no longer needs extra logging artifact( Any ideas on how to convince surefire to execute the TS on both tomcats? |
Or we could just add a line to Travis to execute these tests again with a profile... |
@manovotn one way would be defining multiple executions as part of the https://gist.github.com/bartoszmajsak/6cacaf40f0abd7d70e4c28165bd1ab24#file-pom-xml-L51-L86 |
Hmm, |
I'm adding version for 8... in |
@bartoszmajsak that doesn't work. It is Here is what I tried - https://gist.github.com/manovotn/497707377dbda83671574b5671f355ec |
@bartoszmajsak alternatively, we could create a tomcat-embedded-9 sub project which just takes the sources and tests from 8 and executes them on 9. |
Make sense 👍. It would also avoid the confusion of using Tomcat 8 container for Tomcat 9. I think it's fine. Go ahead with this change on this PR. Many thanks! |
2363c69
to
2228fac
Compare
…ed to register one ourselves.
2228fac
to
415ed32
Compare
Done Not sure why GH claims this branch isn't updated, I have just rebased it. |
@manovotn there are other small PRs coming in with dep updates done by @dependabot[bot], most likely that's the reason. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for your contribution.
@bartoszmajsak no problem, do you think you would be able to cut a release any time soon? |
New version |
…ister one ourselves.
JIRA link - https://issues.jboss.org/browse/ARQ-2194
I was trying to utilize tomcat-embedded-8 adapter with Tomcat 9 (in Weld servlet testing)
Turns out there is one change needed during startup, Tomcat 9 by default does not register any connectors (e.g. listens on no ports). Adding this line fixes it for Tomcat 9 and it still works with Tomcat 8.
Happy to provide any additional details/info/changes.