NoClassDefFoundError:org / glassfish / jersey / process / internal / RequestExecutorFactory [英] NoClassDefFoundError: org/glassfish/jersey/process/internal/RequestExecutorFactory

查看:688
本文介绍了NoClassDefFoundError:org / glassfish / jersey / process / internal / RequestExecutorFactory的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



  NoClassDefFoundError:org / glassfish / jersey / process / internal / RequestExecutorFactory 

我的代码如下所示:

  @POST 
@Path(/ processPayment)
public Response processPay(PaymentRequestInterface request)throws ServletException {


Object obj = new Object();

//在所使用的库上创建一个对象并使用它执行一些操作

return Response.status(status).entity(obj).build();
}

如果我将POST更改为GET方法,则会出现此错误: / p>

  NoClassDefFoundError:org / glassfish / jersey / client / ClientAsyncExecutorFactory 

也许这个信息可以帮助别人....

你需要将以下依赖添加到您的Maven项目中

 <依赖项> 
< groupId> org.glassfish.jersey.core< / groupId>
< artifactId>球衣客户端< / artifactId>
< version> 2.23< / version>
< /依赖关系>


I get this error when I send out a request with post:

NoClassDefFoundError: org/glassfish/jersey/process/internal/RequestExecutorFactory

my code looks like that:

@POST
@Path("/processPayment")
public Response processPay(PaymentRequestInterface request) throws ServletException {


    Object obj = new Object();

    //create an object at the used library and do something with it

    return Response.status(status).entity(obj).build();
}

and if I change my POST to a GET method I get this error:

NoClassDefFoundError: org/glassfish/jersey/client/ClientAsyncExecutorFactory

maybe this information helps someone....

解决方案

You need to add the following dependency to your Maven project

<dependency>
    <groupId>org.glassfish.jersey.core</groupId>
    <artifactId>jersey-client</artifactId>
    <version>2.23</version>
</dependency>

这篇关于NoClassDefFoundError:org / glassfish / jersey / process / internal / RequestExecutorFactory的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆