You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@deltaspike.apache.org by BONNEMAISON Sylvain <sy...@soprasteria.com> on 2017/09/27 20:16:19 UTC
Configuration process failure
Hi,
A EAR application is composed with an EJB module + WAR module. Both are depending on Deltaspike (1.8.0) libraries. While deploy the application under JBoss EAP 7.0, the output shows the following exception:
Caused by: java.util.ServiceConfigurationError: org.apache.deltaspike.core.spi.config.ConfigSourceProvider: Provider org.apache.deltaspike.core.impl.config.DefaultConfigSourceProvider not a subtype
at java.util.ServiceLoader.fail(ServiceLoader.java:239)
at java.util.ServiceLoader.access$300(ServiceLoader.java:185)
at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:376)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
at org.apache.deltaspike.core.util.ServiceUtils.loadServiceImplementations(ServiceUtils.java:66)
The problem happen with CDI View extension ony from the WAR module. The initialization is correct from the EJB module.
What's giong wrong with the WAR. Is it a configuration problem ?
Thanks,
Sylvain
Re: Configuration process failure
Posted by "John D. Ament" <jo...@apache.org>.
Sylvain,
How is your project packaged? In the EAR, are the deltaspike libraries
present there? Is there a copy in the WAR file?
John
On Wed, Sep 27, 2017 at 4:16 PM BONNEMAISON Sylvain <
sylvain.bonnemaison@soprasteria.com> wrote:
> Hi,
>
> A EAR application is composed with an EJB module + WAR module. Both are
> depending on Deltaspike (1.8.0) libraries. While deploy the application
> under JBoss EAP 7.0, the output shows the following exception:
>
> Caused by: java.util.ServiceConfigurationError:
> org.apache.deltaspike.core.spi.config.ConfigSourceProvider: Provider
> org.apache.deltaspike.core.impl.config.DefaultConfigSourceProvider not a
> subtype
> at java.util.ServiceLoader.fail(ServiceLoader.java:239)
> at java.util.ServiceLoader.access$300(ServiceLoader.java:185)
> at
> java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:376)
> at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
> at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
> at
> org.apache.deltaspike.core.util.ServiceUtils.loadServiceImplementations(ServiceUtils.java:66)
>
> The problem happen with CDI View extension ony from the WAR module. The
> initialization is correct from the EJB module.
>
> What's giong wrong with the WAR. Is it a configuration problem ?
> Thanks,
>
> Sylvain
>
>