【问题标题】:javax.naming.InitialContext is a restricted class. Please see the Google App Engine developer's guide for more detailsjavax.naming.InitialContext 是一个受限类。有关详细信息,请参阅 Google App Engine 开发人员指南
【发布时间】:2011-10-20 06:27:27
【问题描述】:

每当我尝试运行我的 Google App Engine 项目(使用 JSF 2 和 Apache MyFaces)时,都会出现以下错误:

java.lang.NoClassDefFoundError: javax.naming.InitialContext 是一个受限类。有关详细信息,请参阅 Google App Engine 开发人员指南。

有什么办法吗?

【问题讨论】:

  • Google App Engine 开发人员指南对此有何评论?

标签: java


【解决方案1】:

您是否尝试过它的建议?您可能正在寻找JRE class whitelist in the developer's guide没有列出javax.naming.InitialContext。 IE。您不能在 GAE 中使用该类。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-06-05
    • 1970-01-01
    • 2017-06-30
    • 1970-01-01
    • 2011-10-18
    • 2014-11-03
    • 2013-09-21
    • 1970-01-01
    相关资源
    最近更新 更多