-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade has removed appengine-api jar from projects. Now getting noClassDefFoundErrors #2530
Comments
After that, verify that you get correct Servlet and JSP API versions (e.g., Servlet 2.5 vs. 3.1). |
You are correct. Not using Maven and it is a standard app. The only thing that I would add is that I am using services. So the .jar files get exported to somewhere else and then get ran. (I think) I deleted the app engine standard and it shows the api jar. It also shows the servlet and JSP and that they are the correct versions. (I assume) unfortunately this did not fix my problem. Here is a video showing what I did. |
I think I know why this is happening, but I need to do some more testing before I explain everything. In the meanwhile, as a workaround, drop the JAR found under your |
The workaround worked. :) Thanks. |
@mhopkins-dynactive FYI, you need this workaround only for debugging locally with the dev server; the JAR is provided by the production runtime like the servlet API JAR. So, in this sense, the dev server is not reflecting the prod env precisely, and this is sort of a known issue. Therefore, anyone who wants to use the API locally should export the JAR in their web apps; many times, tools or users just export the JAR to make life easier. You don't have to worry about the workaround regarding the prod env, because we will remove the JAR from |
Opened #2531. Closing this issue. Thanks for the report. |
(please ensure you are running the latest version of CT4E with Help > Check for Updates)
What did you do?
I upgraded to 1.4.0
What did you expect to see?
I expected everything to work the same and that the build path would still work.
What did you see instead?
Now I am seeing java.lang.NoClassDefFoundError: com/google/appengine/api/memcache/MemcacheServiceException
The release notes say "In native projects the App Engine SDK (com.google.appengine:appengine-sdk-1.0-api) is now included in the App Engine standard runtime definition, as it is in the server runtime." So I assume that it should be included in the run time and it should just work.
I have no idea what I need to do to get the Appengine Api to work. :(
The text was updated successfully, but these errors were encountered: