-
Bug
-
Resolution: Done
-
Major
-
3.15.2.Final
-
None
-
None
-
-
Undefined
org.jboss.resteasy.test.microprofile.restclient.FollowRedirectsTest fails when running tests without ts.standalone.microprofile against a server without MP config enabled
[ERROR] org.jboss.resteasy.test.microprofile.restclient.FollowRedirectsTest Time elapsed: 0.01 s <<< ERROR! org.jboss.arquillian.container.spi.client.container.DeploymentException: Cannot deploy followRedirects_client.war: {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"followRedirects_client.war\".WeldStartService" => "Failed to start service Caused by: org.jboss.weld.exceptions.DefinitionException: Exception List with 1 exceptions: Exception 0 : java.lang.IllegalStateException: No ConfigProviderResolver implementation found! at org.eclipse.microprofile.config.api@2.0.0.redhat-00002//org.eclipse.microprofile.config.spi.ConfigProviderResolver.loadSpi(ConfigProviderResolver.java:138) at org.eclipse.microprofile.config.api@2.0.0.redhat-00002//org.eclipse.microprofile.config.spi.ConfigProviderResolver.instance(ConfigProviderResolver.java:124) at org.eclipse.microprofile.config.api@2.0.0.redhat-00002//org.eclipse.microprofile.config.ConfigProvider.getConfig(ConfigProvider.java:85) at org.jboss.resteasy.resteasy-client-microprofile@3.15.1.Final-redhat-00001//org.jboss.resteasy.microprofile.client.RestClientDelegateBean.<init>(RestClientDelegateBean.java:92) at org.jboss.resteasy.resteasy-client-microprofile@3.15.1.Final-redhat-00001//org.jboss.resteasy.microprofile.client.RestClientExtension.createProxy(RestClientExtension.java:55) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.jboss.weld.core@3.1.6.Final-redhat-00001//org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:95) ...
FollowRedirectsServiceIntf class in followRedirects_client deployment uses org.eclipse.microprofile.rest.client.inject.RegisterRestClient that brings the dependency on MP. The test class should be annotated with @Category(MicroProfileDependent.class), so that it's exluded from non-MP executions.