Hello Experts -
I get java.lang.NoClassDefFoundError when I try to run my j2ee application. A servlet called MainServlet.java is the entry point to the application and WSAD 5.0 is unable to find the .class file for the servlet and it also cannot locate the .properties file for the project. The problem started when I replaced a .jar file with a new one that I imported – I imported it in the following way:
In J2ee perspective I went to project properties by right clicking the project name and then selecting “Java build path” and then under the libraries tab I selected “Add External Jars” and selected the .jar file – After doing this I restarted the server and then rebuild the project and now I keep on getting the error. I even went to an extent where I deleted the workspace directory and imported a working .ear file with the original .jar file but no go.. The project is compiling properly as I dont see any errors flagging under the tasks tab.
Please throw some light – this is urgent.