myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lucio Piccoli <>
Subject jdk1.7/appengine Could not access AddResource error
Date Mon, 01 Jul 2013 06:54:52 GMT
Hi MyFaces Team,

We have been working with MyFaces in Google App Engine's platform and
everything works well until we upgraded to java sdk 1.7.

Our issue is with the error (on our local development server):

SEVERE: Could not access AddResource class
java.lang.IllegalAccessException: Class can not access
a member of class org.apache.myfaces.renderkit.html.util.DefaultAddResource
with modifiers "protected"

at sun.reflect.Reflection.ensureMemberAccess(

Im not sure if this affects our application in any way because as of the
moment it is working just as well, but we are still concerned nonetheless.

Our problem lies in the fact that
"org.apache.myfaces.renderkit.html.util.DefaultAddResource" has no public
"default" or any public constructor at all.
Right, we are doing a sort of workaround to get over this problem by
extending the DefaultAddResource class with a public constructor with a
call to super().
and explicitely used it in our context param:


For now this is working without problem. We are just curious on why myfaces
uses the "protected" access modified for the DefaultAddResource class.

Again, this issue may very likely be NOT a MyFaces issue since you might be
using that to control the instantiation of the DefaultAddResource object
Maybe this is java7.

Specs for our maven dependencies:

org.apache.myfaces.core/ myfaces-api /2.1.11
org.apache.myfaces.core/ myfaces-impl /2.1.11
org.apache.myfaces.tomahawk / tomahawk20 / 1.1.14

any idea why this fails on jdk1.7?


-Lucio Piccoli


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message