You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Werner Daehn (Jira)" <ji...@apache.org> on 2021/02/10 11:00:00 UTC
[jira] [Created] (OLINGO-1509) Olingo cannot be used in a tomcat 10
environment
Werner Daehn created OLINGO-1509:
------------------------------------
Summary: Olingo cannot be used in a tomcat 10 environment
Key: OLINGO-1509
URL: https://issues.apache.org/jira/browse/OLINGO-1509
Project: Olingo
Issue Type: Bug
Components: odata4-server
Affects Versions: (Java) V4 4.8.0
Reporter: Werner Daehn
When migrating my code from tomcat 9 to tomcat 10 I had to change all HttpServletRequest/Response from javax.servlet to jakarta.servlet.
Otherwise the tomcat app cannot find any servlets is it does search for all jakarta.* implementations.
But that breaks the Olingo servlet, its handler expects javax.* objects.
Also getting javax libraries as dependencies is not nice either, so olingo itself should not use javax package in such an environment either, e.g. javax.http.
I was a bit surprised having seen just two other issues in Jira related to that but none making the full request. For Java9 you just have to manually add the javax dependency and you are good to go. Does not help when the servlet engine itself requires you to use jakarta.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)