Itzik Samara
Itzik Samara

Reputation: 2288

Google App Engine cant find class Error : NoClassDefFoundError

created GAE Project imported all classes/Servlets.. uplodaded project to GAE Server when i am testing Servlet inside the uploaded Server it works find but when Servlet is creating instance of one of the inner classes i get the next Error :

Error for /Servlet
java.lang.NoClassDefFoundError : could not initialize class <my package.class>

newbie with GAE. Thanx for any help.

Upvotes: 0

Views: 68

Answers (1)

Andrei Volgin
Andrei Volgin

Reputation: 41099

This is usually an indication that you did not include the required jar in the WEB-INF/lib folder. You don't get an error because you included this jar on your class path. If it's not in the WEB-INF/lib folder, however, it will not be uploaded to App Engine.

If you use Eclipse, select your project and check the Problems tab. It may have a warning that a certain resource will not be available on the server. Right click on it and select Copy option.

Upvotes: 1

Related Questions