Red Hat JBoss Developer Studio Version: 10.2.0.GA Build id: GA-v20161125-1418-B55 Build date: 20161125-1418
I have an maven EAR project with separate projects for:
war ejb-jar ejb-client ( local interfaces)
If I run a mvn clean install
on the parent project from the command line, I can deploy the generated ear file to jboss eap7 with no problem. However, if I perform a clean/build all from the IDE, then select run-as on server, I get the following error:
Caused by: java.lang.IllegalStateException: WFLYEE0042: Failed to
construct component instance
Caused by: java.lang.IllegalArgumentException: Can not set
com.hsntech.hif.eao.OperationsCache field
com.hsntech.hif.application.HIFManagement.opCache to
com.hsntech.hif.eao.OperationsCache$$$view8"}}
the ejb-client jar project contains the interface:
@Local
public interface OperationsCache {
Map<String, OperationMapping> getOperationsMaps() throws HIFEJBException;
void resetCache();
}
and the ejb.jar impelemtation contains:
@Singleton
@ConcurrencyManagement(ConcurrencyManagementType.CONTAINER)
public class OperationsCacheImpl implements OperationsCache, Observer {
The EJB is being created in the war project in this class:
@Singleton
@Startup
public class HIFManagement implements HIFManagementMBean {
@EJB
private OperationsCache opCache;