[ 
https://issues.apache.org/jira/browse/HDDS-11879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17906546#comment-17906546
 ] 

Wei-Chiu Chuang edited comment on HDDS-11879 at 12/17/24 10:37 PM:
-------------------------------------------------------------------

Not sure how it used to work. hadoop-kms is declared in test scope, therefore 
its transitive dependencies don't get added into the runtime classpath. So 
jersey-servlet must be declared explicitly to be used.


was (Author: jojochuang):
Not sure how it used to work. hadoop-kms is declared in test scope, therefore 
its transitive dependencies don't get pull into the runtime classpath. So 
jersey-servlet must be declared explicitly to be used.

> MiniKMS cannot be started due to ClassNotFoundException: 
> com.sun.jersey....ServletContainer
> -------------------------------------------------------------------------------------------
>
>                 Key: HDDS-11879
>                 URL: https://issues.apache.org/jira/browse/HDDS-11879
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: test
>            Reporter: Attila Doroszlai
>            Priority: Major
>
> {code}
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.818 s - in 
> org.apache.hadoop.ozone.shell.TestOzoneShellHA
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.328 s - in 
> org.apache.hadoop.ozone.client.rpc.TestOzoneAtRestEncryption
> {code}
> {code:title=log}
> java.lang.ClassNotFoundException: 
> com.sun.jersey.spi.container.servlet.ServletContainer
> ...
>       at org.apache.hadoop.http.HttpServer2.start(HttpServer2.java:1386)
>       at 
> org.apache.hadoop.crypto.key.kms.server.KMSWebServer.start(KMSWebServer.java:149)
>       at 
> org.apache.hadoop.crypto.key.kms.server.MiniKMS.start(MiniKMS.java:153)
>       at 
> org.apache.hadoop.ozone.shell.TestOzoneShellHA.startKMS(TestOzoneShellHA.java:179)
>       at 
> org.apache.hadoop.ozone.shell.TestOzoneShellHA.init(TestOzoneShellHA.java:172)
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to