Skip to content
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

[DROOLS-7598] Upgrade tomcat version #3007

Merged
merged 2 commits into from
Dec 22, 2023

Conversation

tkobayas
Copy link
Contributor

JIRA:
https://issues.redhat.com/browse/DROOLS-7598

referenced Pull Requests:

How to replicate CI configuration locally?

Build Chain tool does "simple" maven build(s), the builds are just Maven commands, but because the repositories relates and depends on each other and any change in API or class method could affect several of those repositories there is a need to use build-chain tool to handle cross repository builds and be sure that we always use latest version of the code for each repository.

build-chain tool is a build tool which can be used on command line locally or in Github Actions workflow(s), in case you need to change multiple repositories and send multiple dependent pull requests related with a change you can easily reproduce the same build by executing it on Github hosted environment or locally in your development environment. See local execution details to get more information about it.

How to retest this PR or trigger a specific build:
  • a pull request please add comment: Jenkins retest this

  • a full downstream build please add comment: Jenkins run fdb

  • a compile downstream build please add comment: Jenkins run cdb

  • a full production downstream build please add comment: Jenkins execute product fdb

  • an upstream build please add comment: Jenkins run upstream

How to backport a pull request to a different branch?

In order to automatically create a backporting pull request please add one or more labels having the following format backport-<branch-name>, where <branch-name> is the name of the branch where the pull request must be backported to (e.g., backport-7.67.x to backport the original PR to the 7.67.x branch).

NOTE: backporting is an action aiming to move a change (usually a commit) from a branch (usually the main one) to another one, which is generally referring to a still maintained release branch. Keeping it simple: it is about to move a specific change or a set of them from one branch to another.

Once the original pull request is successfully merged, the automated action will create one backporting pull request per each label (with the previous format) that has been added.

If something goes wrong, the author will be notified and at this point a manual backporting is needed.

NOTE: this automated backporting is triggered whenever a pull request on main branch is labeled or closed, but both conditions must be satisfied to get the new PR created.

@mareknovotny
Copy link
Member

so new version brings also some already declared or used dependency for servlet-api

this needs to be excluded :(

2023-12-21T09:45:32.399Z]   Found in:
[2023-12-21T09:45:32.399Z]     org.apache.tomcat:tomcat-servlet-api:jar:9.0.84:provided
[2023-12-21T09:45:32.399Z]     jakarta.servlet:jakarta.servlet-api:jar:4.0.3:provided
[2023-12-21T09:45:32.399Z]   Duplicate classes:
[2023-12-21T09:45:32.399Z]     javax/servlet/http/Cookie.class
[2023-12-21T09:45:32.399Z]     javax/servlet/ServletContext.class
[2023-12-21T09:45:32.399Z]     javax/servlet/Registration.class
[2023-12-21T09:45:32.399Z]     javax/servlet/http/HttpSessionContext.class
[2023-12-21T09:45:32.399Z]     javax/servlet/http/HttpSessionListener.class
[2023-12-21T09:45:32.399Z]     javax/servlet/FilterChain.class
[2023-12-21T09:45:32.399Z]     javax/servlet/http/WebConnection.class
[2023-12-21T09:45:32.399Z]     javax/servlet/http/HttpServletRequestWrapper.class
[2023-12-21T09:45:32.399Z]     javax/servlet/http/HttpSessionAttributeListener.class
[2023-12-21T09:45:32.399Z]     javax/servlet/annotation/HandlesTypes.class
[2023-12-21T09:45:32.399Z]     javax/servlet/http/HttpSessionBindingListener.class
[2023-12-21T09:45:32.399Z]     javax/servlet/ServletRequestAttributeEvent.class
[2023-12-21T09:45:32.399Z]     javax/servlet/ServletRequestWrapper.class
[2023-12-21T09:45:32.399Z]     javax/servlet/annotation/ServletSecurity.class
[2023-12-21T09:45:32.399Z]     javax/servlet/ServletRequestAttributeListener.class
[2023-12-21T09:45:32.399Z]     javax/servlet/ServletContainerInitializer.class
[2023-12-21T09:45:32.399Z]     javax/servlet/ReadListener.class
[2023-12-21T09:45:32.399Z]     javax/servlet/annotation/MultipartConfig.class
[2023-12-21T09:45:32.399Z]     javax/servlet/ServletRequestEvent.class
[2023-12-21T09:45:32.399Z]     javax/servlet/ServletRequest.class
[2023-12-21T09:45:32.399Z]     javax/servlet/http/HttpServlet.class
[2023-12-21T09:45:32.399Z]     javax/servlet/http/HttpServletRequest$1.class
[2023-12-21T09:45:32.399Z]     javax/servlet/MultipartConfigElement.class
[2023-12-21T09:45:32.399Z]     javax/servlet/http/HttpUtils.class
[2023-12-21T09:45:32.399Z]     javax/servlet/AsyncContext.class
[2023-12-21T09:45:32.399Z]     javax/servlet/SessionCookieConfig.class
[2023-12-21T09:45:32.399Z]     javax/servlet/http/HttpFilter.class
[2023-12-21T09:45:32.399Z]     javax/servlet/FilterConfig.class
[2023-12-21T09:45:32.399Z]     javax/servlet/ServletResponseWrapper.class
[2023-12-21T09:45:32.399Z]     javax/servlet/Registration$Dynamic.class
[2023-12-21T09:45:32.399Z]     javax/servlet/descriptor/JspConfigDescriptor.class
[2023-12-21T09:45:32.399Z]     javax/servlet/ServletResponse.class
[2023-12-21T09:45:32.399Z]     javax/servlet/http/Part.class
[2023-12-21T09:45:32.399Z]     javax/servlet/annotation/WebFilter.class
[2023-12-21T09:45:32.400Z]     javax/servlet/http/HttpServletMapping.class
[2023-12-21T09:45:32.400Z]     javax/servlet/http/HttpServletResponseWrapper.class
[2023-12-21T09:45:32.400Z]     javax/servlet/AsyncListener.class
[2023-12-21T09:45:32.400Z]     javax/servlet/annotation/HttpMethodConstraint.class
[2023-12-21T09:45:32.400Z]     javax/servlet/SingleThreadModel.class
[2023-12-21T09:45:32.400Z]     javax/servlet/ServletConfig.class
[2023-12-21T09:45:32.400Z]     javax/servlet/HttpConstraintElement.class
[2023-12-21T09:45:32.400Z]     javax/servlet/annotation/WebServlet.class
[2023-12-21T09:45:32.400Z]     javax/servlet/http/HttpSessionActivationListener.class
[2023-12-21T09:45:32.400Z]     javax/servlet/HttpMethodConstraintElement.class
[2023-12-21T09:45:32.400Z]     javax/servlet/WriteListener.class
[2023-12-21T09:45:32.400Z]     javax/servlet/annotation/HttpConstraint.class
[2023-12-21T09:45:32.400Z]     javax/servlet/http/HttpSessionBindingEvent.class
[2023-12-21T09:45:32.400Z]     javax/servlet/DispatcherType.class
[2023-12-21T09:45:32.400Z]     javax/servlet/ServletOutputStream.class
[2023-12-21T09:45:32.400Z]     javax/servlet/descriptor/JspPropertyGroupDescriptor.class
[2023-12-21T09:45:32.400Z]     javax/servlet/GenericFilter.class
[2023-12-21T09:45:32.400Z]     javax/servlet/SessionTrackingMode.class
[2023-12-21T09:45:32.400Z]     javax/servlet/GenericServlet.class
[2023-12-21T09:45:32.400Z]     javax/servlet/http/HttpSessionIdListener.class
[2023-12-21T09:45:32.400Z]     javax/servlet/ServletException.class
[2023-12-21T09:45:32.400Z]     javax/servlet/annotation/ServletSecurity$EmptyRoleSemantic.class
[2023-12-21T09:45:32.400Z]     javax/servlet/ServletContextListener.class
[2023-12-21T09:45:32.400Z]     javax/servlet/Filter.class
[2023-12-21T09:45:32.400Z]     javax/servlet/ServletRegistration.class
[2023-12-21T09:45:32.400Z]     javax/servlet/http/MappingMatch.class
[2023-12-21T09:45:32.400Z]     javax/servlet/http/HttpUpgradeHandler.class
[2023-12-21T09:45:32.400Z]     javax/servlet/ServletContextAttributeEvent.class
[2023-12-21T09:45:32.400Z]     javax/servlet/AsyncEvent.class
[2023-12-21T09:45:32.400Z]     javax/servlet/FilterRegistration.class
[2023-12-21T09:45:32.400Z]     javax/servlet/http/HttpServletResponse.class
[2023-12-21T09:45:32.400Z]     javax/servlet/ServletSecurityElement.class
[2023-12-21T09:45:32.400Z]     javax/servlet/annotation/ServletSecurity$TransportGuarantee.class
[2023-12-21T09:45:32.400Z]     javax/servlet/ServletContextAttributeListener.class
[2023-12-21T09:45:32.400Z]     javax/servlet/Servlet.class
[2023-12-21T09:45:32.400Z]     javax/servlet/http/HttpSession.class
[2023-12-21T09:45:32.400Z]     javax/servlet/annotation/WebInitParam.class
[2023-12-21T09:45:32.400Z]     javax/servlet/descriptor/TaglibDescriptor.class
[2023-12-21T09:45:32.400Z]     javax/servlet/ServletContextEvent.class
[2023-12-21T09:45:32.400Z]     javax/servlet/ServletRegistration$Dynamic.class
[2023-12-21T09:45:32.400Z]     javax/servlet/http/PushBuilder.class
[2023-12-21T09:45:32.400Z]     javax/servlet/RequestDispatcher.class
[2023-12-21T09:45:32.400Z]     javax/servlet/UnavailableException.class
[2023-12-21T09:45:32.400Z]     javax/servlet/http/HttpSessionEvent.class
[2023-12-21T09:45:32.400Z]     javax/servlet/ServletRequestListener.class
[2023-12-21T09:45:32.400Z]     javax/servlet/annotation/WebListener.class
[2023-12-21T09:45:32.400Z]     javax/servlet/http/HttpServletRequest.class
[2023-12-21T09:45:32.400Z]     javax/servlet/ServletInputStream.class
[2023-12-21T09:45:32.400Z]     javax/servlet/FilterRegistration$Dynamic.class

@mareknovotny
Copy link
Member

c&p the dep:tree from build log here:

2023-12-21T09:54:46.8337310Z [INFO] --- maven-dependency-plugin:3.1.1:tree (default-cli) @ kie-tomcat-integration ---
2023-12-21T09:54:46.8368996Z [INFO] org.kie:kie-tomcat-integration:jar:7.75.0-SNAPSHOT
2023-12-21T09:54:46.8370563Z [INFO] +- org.apache.tomcat:tomcat-catalina:jar:9.0.84:provided
2023-12-21T09:54:46.8372577Z [INFO] |  +- org.apache.tomcat:tomcat-servlet-api:jar:9.0.84:provided
2023-12-21T09:54:46.8374275Z [INFO] |  +- org.apache.tomcat:tomcat-jsp-api:jar:9.0.84:provided
2023-12-21T09:54:46.8376219Z [INFO] |  |  \- org.apache.tomcat:tomcat-el-api:jar:9.0.84:provided
2023-12-21T09:54:46.8377919Z [INFO] |  +- org.apache.tomcat:tomcat-juli:jar:9.0.84:provided
2023-12-21T09:54:46.8380255Z [INFO] |  +- org.apache.tomcat:tomcat-annotations-api:jar:9.0.84:provided
2023-12-21T09:54:46.8381652Z [INFO] |  +- org.apache.tomcat:tomcat-api:jar:9.0.84:provided
2023-12-21T09:54:46.8383272Z [INFO] |  +- org.apache.tomcat:tomcat-jni:jar:9.0.84:provided
2023-12-21T09:54:46.8385442Z [INFO] |  +- org.apache.tomcat:tomcat-coyote:jar:9.0.84:provided
2023-12-21T09:54:46.8387771Z [INFO] |  +- org.apache.tomcat:tomcat-util:jar:9.0.84:provided
2023-12-21T09:54:46.8389199Z [INFO] |  +- org.apache.tomcat:tomcat-util-scan:jar:9.0.84:provided
2023-12-21T09:54:46.8391357Z [INFO] |  \- org.apache.tomcat:tomcat-jaspic-api:jar:9.0.84:provided
2023-12-21T09:54:46.8395017Z [INFO] +- jakarta.security.jacc:jakarta.security.jacc-api:jar:1.6.1:provided
2023-12-21T09:54:46.8396173Z [INFO] |  \- jakarta.servlet:jakarta.servlet-api:jar:4.0.3:provided

Copy link

sonarcloud bot commented Dec 21, 2023

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@mareknovotny mareknovotny added dependencies Pull requests that update a dependency file java Pull requests that update Java code backport-7.67.x Generate backport PR for 7.67.x branch backport-7.67.x-blue Generate backport PR for 7.67.x-blue branch labels Dec 21, 2023
@mareknovotny mareknovotny merged commit 1f901ca into kiegroup:main Dec 22, 2023
12 checks passed
github-actions bot pushed a commit that referenced this pull request Dec 22, 2023
* [DROOLS-7598] Upgrade tomcat version

* excluded servlet-api to avoid BanDuplicateClasses
github-actions bot pushed a commit that referenced this pull request Dec 22, 2023
* [DROOLS-7598] Upgrade tomcat version

* excluded servlet-api to avoid BanDuplicateClasses
tkobayas added a commit that referenced this pull request Dec 23, 2023
* [DROOLS-7598] Upgrade tomcat version

* excluded servlet-api to avoid BanDuplicateClasses

Co-authored-by: Toshiya Kobayashi <toshiyakobayashi@gmail.com>
tkobayas added a commit that referenced this pull request Dec 23, 2023
* [DROOLS-7598] Upgrade tomcat version

* excluded servlet-api to avoid BanDuplicateClasses

Co-authored-by: Toshiya Kobayashi <toshiyakobayashi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-7.67.x Generate backport PR for 7.67.x branch backport-7.67.x-blue Generate backport PR for 7.67.x-blue branch dependencies Pull requests that update a dependency file java Pull requests that update Java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants