关于java:Jboss 6.4 EAP适合哪个resteasy-client? | 珊瑚贝

Which resteasy-client is suitable for Jboss 6.4 EAP?


我正在 JBoss 上开发 REST 应用程序,我需要使用一些 JAX-RS http 客户端实现。我正在使用 Jboss 6.4 EAP。在这里我发现我需要 2.3.10.Final 版本的 resteasy-jaxrs 和 resteasy-jackson-provider.

我正在尝试使用 resteasy-client,但我不确定它是否可能。在这里我找不到像我的其他 resteasy 相关版本一样的任何版本。
此外,resteasy-client 的 3.x 版本对 3.x 版本中的 resteasy-jaxrx 具有依赖性,它会导致 RESTEASY001745: Unable to find a public constructor for class org.jboss.resteasy.core.AsynchronousDispatcher
异常。当然,我可以从 resteasy-client 中排除 resteasy-jaxrx ,但这不是解决方案。会出现另一个异常(class not found HeaderValueProcessor.java)

所以可以在 JBoss 6.4 EAP 中使用 resteasy 客户端吗?

  • 无论客户端在什么平台上运行,您使用什么 REST 客户端连接到 REST 服务都没有关系。应该有很多关于使用 resteasy 客户端 jar 的教程。
  • @Nicholas 我害怕在这种情况下它确实很重要。请注意,resteasy-jaxrx 由服务器提供(此依赖项在 pom.xml 中具有 provided 范围)。因此,我正在使用的服务器在 2.3.10.Final 版本中为我提供了 resteasy-jaxrs,但任何 resteasy-client 都依赖于其他版本(3.x)中的 resteasy-jaxrs。这里是冲突。我找不到 2.3.10.Final 的 resteasy-client。如果你有这样的教程,请提供链接。
  • 那么您是尝试在其余服务中运行客户端还是只是从任何地方连接到该服务?
  • 第一个。我正在尝试将表单服务连接到其他服务。
  • 是的,好的,我明白你在说什么。在 3.X 版本之前没有 resteasy 客户端。您可以做的(可能是最好的)是为您的客户端调用使用另一个 jax-rs 提供程序,这样您的客户端使用的 jar 和服务器的 jar 之间就不会发生冲突。 Apache CFX、Jersey 等,这是关于 Java 的 Rest 客户端的 stackoverflow 文章?
  • 正如我所预料的那样。我需要确认。我会尝试使用 Jerey。我希望这两个实现不会互相竞争。谢谢你的帮助。我很感激。


不,JBoss EAP 6.4 似乎没有 resteasy-client.jar。正如您所提到的,该版本的 JBoss 使用 resteasy-jaxrs-2.3.10.Final.jar 并且在 resteasy-jaxrs-3.0.x.jar 版本之前没有 resteasy-client。

希望这有助于为必须使用 EAP 6.4 的任何人节省时间。


来源:https://www.codenong.com/35206687/

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_8737.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?