jbpm version 6.1.0.CR1 custom authentication is not working.
soumya.plavaga Jul 21, 2014 8:22 AMI am trying to put a custom authentication for jbpm-console project. I have a custom authentication project jar having three class files -
com.sample.custom.authentication.CustomUserGroupInfoProducer
com.sample.custom.authentication.CustomUserGroupCallBack
com.sample.custom.authentication.CustomUserInfo
CustomUserGroupInfoProducer is internally calling CustomUserGroupCallBack & CustomUserInfo classes.
Then I have edited the jbpm-console/WEB-INF/beans.xml file as -
<alternatives>
<class>com.sample.custom.authentication.CustomUserGroupInfoProducer</class>
</alternatives>
and I have copied my above custom authenticator jar file within jbpm-console/WEB-INF/lib.
After the above set of changes once I restart the Jboss server, deployment of jbpm-console project is getting failed and following exception is coming in jboss server console -
org.jboss.msc.service.StartException in service jboss.deployment.unit."jbpm-console.war".WeldService: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [UserGroupInfoProducer] with qualifiers [@Selectable] at injection point [[field] @Inject @Selectable private org.kie.workbench.backend.BpmDependenciesProducer.userGroupInfoProducer]
at org.jboss.as.weld.services.WeldService.start(WeldService.java:83)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]
at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [UserGroupInfoProducer] with qualifiers [@Selectable] at injection point [[field] @Inject @Selectable private org.kie.workbench.backend.BpmDependenciesProducer.userGroupInfoProducer]
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:275)
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:244)
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:107)
at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:127)
at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:346)
at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:331)
at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)
at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)
at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)
Am I missing anything? I am attaching my custom authenticator's java files if that helps.
Note: I am using jbpm version 6.1.0.CR1
-
CustomUserGroupInfoProducer.java 940 bytes
-
CustomUserGroupCallBack.java 764 bytes
-
CustomUserInfo.java 1.5 KB