cancel
Showing results for 
Search instead for 
Did you mean: 

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

luca_stancapian
Champ in-the-making
Champ in-the-making
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
1 REPLY 1

trademak
Star Contributor
Star Contributor
Hi,

Ok thanks, I've added a question about a unit test to the pull request.

Best regards,