适用于javax.ws.rs-api2.1.jar和jsr311-api-1.1.1.jar

时间:2018-08-31 21:00:17

标签: java maven classloader presto atlas

我正在尝试运行依赖于Apache Atlas的Presto插件。启动presto服务器时,出现类强制转换异常。似乎以前依赖较新的javax.ws.rs-api。但是在Atlas中,我使用的库依赖于jsr311-api。我无法更改此依赖性,也无法修改presto服务器。我不知道如何解决这个问题。任何帮助,将不胜感激。这就是我所看到的:

ERROR   main    com.facebook.presto.server.PrestoServer ClassCastException: attempting to castjar:file:/home/presto-server-0.205/lib/javax.ws.rs-api-2.1.jar!/javax/ws/rs/ext/RuntimeDelegate.classtojar:file:/mnt/var/lib/presto/data/plugin/presto-event-listener/jsr311-api-1.1.1.jar!/javax/ws/rs/ext/RuntimeDelegate.class
java.lang.LinkageError: ClassCastException: attempting to castjar:file:/home/presto-server-0.205/lib/javax.ws.rs-api-2.1.jar!/javax/ws/rs/ext/RuntimeDelegate.classtojar:file:/mnt/var/lib/presto/data/plugin/presto-event-listener/jsr311-api-1.1.1.jar!/javax/ws/rs/ext/RuntimeDelegate.class

0 个答案:

没有答案