Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7926277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T18:43:28+00:00 2026-06-03T18:43:28+00:00

Ok so ive just finished my first JSF project and i want to upload

  • 0

Ok so ive just finished my first JSF project and i want to upload it to GAE. I have been trying for about the last 4 hours and cannot make it work.

I am using JSF 2.0 and App Engine 1.6.5.

I have tried several tutorials and all combinations of the following:

First tutorial

Jars – javax.faces-2.1.7-sources.jar el-ri-1.0.jar

Setup – GAE 1.6.5, JDK 1.7

Error:

java.lang.NoClassDefFoundError: javax.naming.InitialContext is a restricted class.     Please see the Google  App Engine developer's guide for more details.
at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:51)

I thought this was because I was using different configuration so i changed to use the exact set up. Downgraded to GAE 1.6.3.1 and used the exact jars in the tutorial but it was no different.

So i tried the second tutorial which stated fix listed which involves replacing the jsf-impl.jar with jsf-impl-gae.jar but this has not helped.

After i do this I get the error:

WARNING: failed com.google.appengine.tools.development.DevAppEngineWebAppContext@1678d71{/,C:\Users\TOSHIBA\Documents\NetBeansProjects\Google AppEngine JSF 2.0 Template\war}: java.lang.VerifyError: Expecting a stackmap frame at branch target 36 in method com.sun.faces.config.WebConfiguration.getServletContextName()Ljava/lang/String; at offset 10
May 07, 2012 5:07:17 AM com.google.apphosting.utils.jetty.JettyLogger warn
WARNING: failed JettyContainerService$ApiProxyHandler@1547ec9: java.lang.VerifyError: Expecting a stackmap frame at branch target 36 in method com.sun.faces.config.WebConfiguration.getServletContextName()Ljava/lang/String; at offset 10
May 07, 2012 5:07:17 AM com.google.apphosting.utils.jetty.JettyLogger warn
WARNING: Error starting handlers
java.lang.VerifyError: Expecting a stackmap frame at branch target 36 in method com.sun.faces.config.WebConfiguration.getServletContextName()Ljava/lang/String; at offset 10
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:163)

I have also tried the guide listed here

I have tried every conceivable combination of tutorials here on two different app engine SDKs and two JDKs with the 7 jar i now have: el-api-2.2.1-b04.jar, el-impl-2.2.1-b05.jar, el-ri-1.0.jar, javax.faces-2.1.7.jar, javax.faces-2.1.7-sources.jar, jsf-api-2.1.7.jar, jsf-impl-gae.jar.

Any help would be greatly appreciated I think i will look for a different way to upload my project tomorrow as I have had nothing but trouble with JSF and Eclipse thus why I always use Netbeans however the GAE plugin for Netbeans is no longer functioning.

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T18:43:32+00:00Added an answer on June 3, 2026 at 6:43 pm

    From the tutorial:

    3.3 Create a new WebConfiguration.java.

    JSF 2 is using “javax.naming.InitialContext” that’s not support in GAE.

    To solve this, you need to get a copy of the JSF’s source code, clone the WebConfiguration.java, comment methods that are using “javax.naming.InitialContext” class, put it in “src/com/sun/faces/comfig/WebConfiguration.java“. Now, your newly created WebConfiguration.java class will overload the original WebConfiguration.java.

    According to the tutorial, the class that is throwing your ClassDefNotFoundError is a retricted class. You’ll need to visit GAE-JSF javax.naming.InitialContext is a Restricted Class Source Code and retrieve a copy of the JSF source code and make a copy of the WebConfiguration Class and overload the original.

    GAE’s Whitelisting can be overrided by renaming packages or, in this case, avoiding them altogether. To clarify, what this step is asking you to do is replace WebConfiguration.java with one you modify where all methods using InitialContext are commented out. This hides that class from Google’s whitelist so it doesn’t force ClassNotFoundDefErrors.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm just about finished my first release of automailer, a program I've been working
I have just finished my first app and I want to submit it to
I've just finished merging two branches that have been separated for a long time,
I'm working with .Net using VB and have just finished a website project and
Ive just finished up my first Cordova/PhoneGap app but it was rejected on submission
So I've just about finished my first F# program, with my only functional background
I've just finished my first year of Java and I've been looking at the
I have just finished building my first website with a mobile-first responsive design process
I've just finished setting up a project using MVC 3, Fluent nHibernate, AutoMapper, and
I've just finished a functional piece of code and would like to upload it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.