AnsweredAssumed Answered

IllegalAccessException using the activiti-context.xml file inside a cdi context

Question asked by luca.stancapiano1 on Nov 28, 2015
Latest reply on Nov 30, 2015 by trademak
I have found a bug using the activiti-context.xml file inside a cdi environmnent. Adding this file in the resources of the application I
have this exception:

Caused by: java.lang.IllegalAccessException: Class
org.activiti.engine.ProcessEngines can not access a member of class
org.activiti.spring.SpringConfigurationHelper with modifiers "public
static"

Indeed we cannot use the reflection to call the
SpringConfigurationHelper because the class is protected through the
default access modifier.

To resolve the problem you can set to public the org.activiti.spring.SpringConfigurationHelper
class:
public class SpringConfigurationHelper
instead of:
class SpringConfigurationHelper

I sent a pull request in github: https://github.com/Activiti/Activiti/pull/747

Outcomes