Greetings,
I have successfully used a custom
Microprofile Config Source inside a WAR file deployed to Wildfly, but when the same WAR is deployed inside an EAR file I get the following error:
Caused by: io.smallrye.config.inject.ConfigException: No Config Value exists for required property dummy
at io.smallrye.config//io.smallrye.config.inject.ConfigExtension.validate(ConfigExtension.java:104)
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...@3.1.5.Final//org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:95)
I much appreciate any help pointing to whatever is missing in the EAR file. I have tried to debug and it seams SmallRyeConfigProviderResolver is able to pick up the custom config source but for whatever reason it will not be included in the known config sources.
I have attached two files:
- service-1.0.war - contains a custom config source and a REST webservice where a "dummy" property is injected (made available by the custom config source);
- custom-config-1.0.ear - an EAR with the the exact same WAR file but in this form it is not able to resolve the "dummy" property.
Wildfly version: 21.0.2.Final
Thanks,
Bruno