If a non-public constructor of my restful service is the "first" constructor in the source code e.g.:
@Path("/myservices")
public class Services {
Services() {
}
public Services(@Context javax.servlet.ServletContext context, @Context HttpServletRequest request)
{ ...... }the exception is thrown:
Caused by: java.lang.IllegalAccessException: Class org.jboss.resteasy.core.ConstructorInjectorImpl can not access a member of class com.axatech.eplatform.configserver.Organizations with modifiers ""
at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
at java.lang.reflect.Constructor.newInstance(Constructor.java:505)
at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:82)
... 40 more