私は RestEasy クライアント フレームワークを使用してWARN
おり、次のコードを使用しています。
RegisterBuiltin.register(ResteasyProviderFactory.getInstance());
// [WARN] org.jboss.resteasy.logging.impl.Log4jLogger-103: NoClassDefFoundError:
// Unable to load builtin provider:
// org.jboss.resteasy.plugins.providers.DocumentProvider
GrepCodeによると、このクラスはresteasy-jaxrs
モジュール内にある必要があります。これは単なる警告ですが、Google でこれに関するヒントをいくつか見つけたにすぎず、これを無視するか、解決策を見つけるかを考えています。これは単なる警告であり、CNFE ではないためです。以下のコードは問題なく動作します。
<dependencyManagement>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-bom</artifactId>
<version>2.3.1.GA</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-jaxrs</artifactId>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-jaxb-provider</artifactId>
</dependency>
</dependencies>