-
1. Re: Unpredictable UnsatisfiedResolutionException: WELD-001308 Unable to resolve any beans for Types
mkouba Jan 2, 2017 4:10 AM (in response to a-st)Hi Alexander,
please provide more details (environment, deployment structure, ...). A simple test/reproducer would be helpful too.
-
2. Re: Unpredictable UnsatisfiedResolutionException: WELD-001308 Unable to resolve any beans for Types
a-st Jan 3, 2017 9:19 AM (in response to mkouba)Hi Martin,
sorry for my late response. We've got it working now by just removing "implements RapRestClientService" from AcmeService class. Our JBoss version is JBoss 7.4.3.Final-redhat-2 (from JBoss EAP 6.3.3). Any hints why the error vanishes after removing "implements RapRestClientService"? In our case RapRestClientService is an empty public interface like:
package de.acme.service; public interface RapRestClientService { }
-
3. Re: Unpredictable UnsatisfiedResolutionException: WELD-001308 Unable to resolve any beans for Types
mkouba Jan 3, 2017 9:45 AM (in response to a-st)1 of 1 people found this helpfulWell, it's actually expected.
RapRestClientService
is assumed to be the business interface ofAcmeService
session bean (see also 4.9.7 Session Bean’s Business Interface in EJB spec) and soAcmeService
is not in the set of bean types (see also http://docs.jboss.org/cdi/spec/1.2/cdi-spec.html#session_bean_types). When removed,AcmeService
becomes a session bean with no-interface view andAcmeService
is included in the set of bean type, i.e.@Inject Provider<AcmeService>
is resolvable. However, I don't understand why the problem happened intermittently.