EAP 6.4.9 (with and without BZ1358913) doesn't call ServiceLoader (META-INF/services/org.jboss.msc.service.ServiceActivator) when it is deployed in EAR/lib. It is called on EAP 6.4.8. The SingletonService (not a singleton EJB) is activated in the ServiceLoader so the SingletonService hasn't been activated from the first. It works as expected when deployed as an EJB (not in EAR/lib). When the ServiceLoader is called, a message of "HATimerService will be installed!" is logged and the SingletonService will be activated. $ fgrep -e HATimerService -e '[org.jboss.as.clustering.singleton]' domain/servers/server-one/log/server.log 12:14:52,373 INFO [org.jboss.as.quickstarts.cluster.hasingleton.service.ejb.HATimerServiceActivator] (MSC service thread 1-7) HATimerService will be installed! 12:14:56,251 INFO [org.jboss.as.clustering.singleton] (ServerService Thread Pool -- 54) JBAS010342: master:server-one/singleton elected as the singleton provider of the jboss.quickstart.ha.singleton.timer service 12:14:56,251 INFO [org.jboss.as.clustering.singleton] (ServerService Thread Pool -- 54) JBAS010340: This node will now operate as the singleton provider of the jboss.quickstart.ha.singleton.timer service 12:14:56,268 INFO [org.jboss.as.quickstarts.cluster.hasingleton.service.ejb.HATimerService] (MSC service thread 1-8) Start HASingleton timer service 'org.jboss.as.quickstarts.cluster.hasingleton.service.ejb.HATim erService' 12:14:56,873 INFO [org.jboss.as.clustering.singleton] (notification-thread-0) JBAS010342: master:server-one/singleton elected as the singleton provider of the jboss.quickstart.ha.singleton.timer service Attaching a reproducer "jboss-ejb-in-ear.ear" which is based on "cluster-ha-singleton" and "ejb-in-ear" quickstarts projects. EJB calls from the SingletonService are disabled to avoid exceptions.
Created attachment 1191636 [details] reproducer
Is there a viable workaround for this issue ?
Panagiotis Sotiropoulos <psotirop> updated the status of jira WFCORE-1730 to Closed
Panagiotis Sotiropoulos <psotirop> updated the status of jira JBEAP-5746 to Closed
Panagiotis Sotiropoulos <psotirop> updated the status of jira JBEAP-5745 to Closed
Verified with EAP 6.4.11.CP.CR1
Retroactively bulk-closing issues from released EAP 6.4 cummulative patches.