RH-SSO custom user federation provider fails to load with error: "Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEJB0498: Business view method wait declared final in ..."
Issue
-
The custom user federation provider does not load anymore, getting the below error in the logs:
2018-03-27 00:25:05,821 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.subunit."mytestapp-keycloak-extension-archive.ear"."mytestapp-user-federation-ejb.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."mytestapp-keycloak-extension-archive.ear"."mytestapp-user-federation-ejb.jar".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment "mytestapp-user-federation-ejb.jar" of deployment "mytestapp-keycloak-extension-archive.ear" at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:172) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEJB0466: Failed to process business interfaces for EJB class class com.mytestorg.sso.plugins.federation.service.MyTestAppUserStorageProvider at org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor.deploy(BusinessViewAnnotationProcessor.java:96) at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:165) ... 5 more Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEJB0498: Business view method wait declared final in com.mytestorg.sso.plugins.federation.service.MyTestAppUserStorageProvider at org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor.verifyViewMethodsNotDeclaredFinal(BusinessViewAnnotationProcessor.java:214) at org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor.processViewAnnotations(BusinessViewAnnotationProcessor.java:136) at org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor.deploy(BusinessViewAnnotationProcessor.java:94) ... 6 more
Environment
- Red Hat Single Sign-On (RH-SSO)
- 7.2.1
- Patching RH-SSO 7.2.0 installation to 7.2.1 patch
- Using a custom user federation provider that is based on the official Keycloak
Example User Storage Provider with EJB and JPA
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.