HBASE-24820 [hbase-thirdparty] Add jersey-hk2 when shading jersey and…#29
HBASE-24820 [hbase-thirdparty] Add jersey-hk2 when shading jersey and…#29Apache9 merged 2 commits intoapache:masterfrom
Conversation
… bump jetty to 9.4.31
|
Finally I could get all the UTs under hbase-http to pass with the shaded jetty and jersey. There are still two problems:
The elements of WebAppContext.__dftServerClasses have '-' at the beginning and the shade plugin will not relocate them and cause trouble(although when shading source they are relocated...). I do not know how to replace string literals in a class file, so the solution is to write a method in the hbase code base to do the replacement...
Not sure if it is intenional or not... But anyway this could also be solved by changing the test, not a big deal. |
|
Can you try to add the following relocation rule to deal with
Changing the test looks fine to me. |
You're right, I'm testing exactly what you suggest here(but with org.eclipse.jetty) before you post this comment :) It is not easy to view the string literals in class file so let me depend on it in hbase to see if it works. |
|
Good, it works! I mean relocating '-org.eclipse.jetty'. Pushed a new commit to add the relocation rule. PTAL @petersomogyi |
… bump jetty to 9.4.31