2013-06-28 32 views
1

JDK 1.7
GAE 1.8.1
MyFaces的2.1.11IllegalAccessException MyFaces的AppEngine上1.8.1

我的應用程序工作正常與GAE 1.8.0。

我剛剛更新爲appengine sdk1.8.1,並且在本地環境中運行時出現以下異常。

但是,部署的環境似乎沒問題。

SEVERE: Could not access AddResource class 
java.lang.IllegalAccessException: Class com.google.appengine.tools.development.a 
gent.runtime.Runtime can not access a member of class org.apache.myfaces.renderk 
it.html.util.DefaultAddResource with modifiers "protected" 
<snip> 
at com.google.appengine.tools.development.agent.runtime.Runtime.newInsta nce(Runtime.java:148) 
at org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance (AddResourceFactory.java:213) 
at org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance (AddResourceFactory.java:304) 

爲什麼gae sdk 1.8.1運行時檢查突然不喜歡DefaultAddResource類?

看起來像是一個jdk問題。當我切換回Windows jdk 1.6時,一切都很好。

任何幫助,歡迎

-lp

回答