当我启动tomcat时,我收到以下错误:
Caused by: java.lang.NoClassDefFoundError: Core/Interfaces/ILogger
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
at java.lang.Class.getDeclaredFields(Class.java:1916)
at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:110)
at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:262)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:136)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:66)
at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:328)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:778)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5105)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
这里ILogger.java是我项目中的一个文件。我的构建路径可能出错?是什么开始检查问题?
按要求添加ILogger.java。 包Core.Interfaces;
public interface ILogger {
void Information(String info);
void Warning(String msg);
void Warning(String warning, String methodName);
void Warning(String warning, String methodName, RuntimeException ex);
void Error(String info);
void Error(String error, String message, RuntimeException ex);
void Error(String p, String p_2);
void ErrorException(RuntimeException ex);
void ErrorException(Exception ex);
void ForceInformation(String info);
void ForceInformation(String info, String method);
void ForceWarning(String msg);
void ForceWarning(String msg, String method);
void ForceWarning(String warning, String methodName, RuntimeException ex);
//void ForceWarning(String warning, String methodName, RuntimeException ex, StackTrace stackTrace);
void Information(String information, String methodName);
void Information(String information, int inEventID, short inCategory);
void FileName(String fileName, String key);
}