在web应用中突然爆出如下错误:
SEVERE: Servlet.service() for servlet default threw exception
java.lang.Error: Unresolved compilation problems:
The import com.yuhong.it.ycgl.web.service.impl.CaseService cannot be resolved
CaseService cannot be resolved to a type
at com.yuhong.it.ycgl.web.action.cases.CreateAndUpdateCaseAction.<init>(CreateAndUpdateCaseAction.java:10)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
This error comes when Java Compiler not able to find any particular class , referenced from your code.
this issue goes away after I rebuild and redeploy the project