“Unable to Load Servlet Class in specified module” shown while adding servlet to war file
-
22-09-2019 - |
Question
I'm using sun java app server 8.0 PE, I have created webapplication and added some servlets and deployed successful. after some time I again, tried to add someother servlet as a webcomponent, while adding I got following error , what is problem exactly?
"Unable to load servlet calss specified in module,
java.lang.ClassNotFoundException: junit/framework/Testcase"
Solution 2
Solution:
Just remove the libraries from the webapp or war file, and add servlet class now with library. this will add the servlet as web component successfully..
@Aito: thanks for your idea
OTHER TIPS
I think that you need to add a library. Your application seems to reference to a class that is not loaded (or founded).
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow