문제

I am developing a web application with Eclipse. I've set the build path to include my classes but sometimes I get the ClassNotFoundException and now I'm getting:

SEVERE: Allocate exception for servlet MyServlet
java.lang.ClassNotFoundException: com.free.MyServlet

From the Servlet! How is this possible?

도움이 되었습니까?

해결책

I assume that you are using the integrated to Eclipse tomcat.
Most probably, your classes have not been copied under WEB-INF\lib of your web app in tomcat. Eclipse does that. Copy them mannually (from your project's bin directory). I am not sure how you keep it in sych with your coding project to avoid the mannual step

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top