You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Istvan Toth (Jira)" <ji...@apache.org> on 2023/02/09 18:43:00 UTC

[jira] [Resolved] (PHOENIX-6605) Cancel the shade relocation on javax.servlet

     [ https://issues.apache.org/jira/browse/PHOENIX-6605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Istvan Toth resolved PHOENIX-6605.
----------------------------------
    Fix Version/s: queryserver-6.0.1
         Assignee: Istvan Toth
       Resolution: Duplicate

We've made this a compile time option in PHOENIX-6861

> Cancel the shade relocation on javax.servlet
> --------------------------------------------
>
>                 Key: PHOENIX-6605
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-6605
>             Project: Phoenix
>          Issue Type: Bug
>          Components: queryserver
>         Environment: # Hadoop 3.2.2
>  # HBase 2.4.2
>  # Phoenix 5.1.2
>            Reporter: Cong Luo
>            Assignee: Istvan Toth
>            Priority: Minor
>             Fix For: queryserver-6.0.1
>
>
> In 6.0.0, PQS already do a shade with relocation on the `javax.servlet` package, but use the test framework (extend the org.apache.phoenix.query.BaseTest) got :
> {code:java}
> java.lang.NoSuchMethodError: org.eclipse.jetty.servlet.ServletHolder.<init>(Lorg/apache/phoenix/shaded/javax/servlet/Servlet;)V
>         at org.apache.phoenix.queryserver.server.customizers.JMXJsonEndpointServerCustomizer.customize(JMXJsonEndpointServerCustomizer.java:53)
>         at org.apache.phoenix.queryserver.server.customizers.JMXJsonEndpointServerCustomizer.customize(JMXJsonEndpointServerCustomizer.java:36)
>         at org.apache.calcite.avatica.server.HttpServer.internalStart(HttpServer.java:232)
>         at org.apache.calcite.avatica.server.HttpServer.start(HttpServer.java:203)
>         at org.apache.phoenix.queryserver.server.QueryServer.run(QueryServer.java:265)
>         at org.apache.phoenix.queryserver.server.QueryServer.run(QueryServer.java:469)
>         at java.lang.Thread.run(Thread.java:748) {code}
> It is recommended to cancel the relocation to allow the parent project to overwrite the version of `javax.servlet`.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)