一启动就报这个错 java.lang.Error: Unresolved compilation problems:
严重:Errorconfiguringapplicationlistenerofclasscom.saas.biz.commen.MyTimerjava.lang.Err...
严重: Error configuring application listener of class com.saas.biz.commen.MyTimer
java.lang.Error: Unresolved compilation problems:
The import javax.servlet cannot be resolved
The import javax.servlet cannot be resolved
ServletContextListener cannot be resolved to a type
ServletContextEvent cannot be resolved to a type
ServletContextEvent cannot be resolved to a type
at com.saas.biz.commen.MyTimer.<init>(MyTimer.java:20)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308) 展开
java.lang.Error: Unresolved compilation problems:
The import javax.servlet cannot be resolved
The import javax.servlet cannot be resolved
ServletContextListener cannot be resolved to a type
ServletContextEvent cannot be resolved to a type
ServletContextEvent cannot be resolved to a type
at com.saas.biz.commen.MyTimer.<init>(MyTimer.java:20)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308) 展开
2个回答
展开全部
The import javax.servlet cannot be resolved 应该是没找到包
at com.saas.biz.commen.MyTimer.<init>(MyTimer.java:20) MyTimer类有没有无参构者物迹造蚂激方法首并?
at com.saas.biz.commen.MyTimer.<init>(MyTimer.java:20) MyTimer类有没有无参构者物迹造蚂激方法首并?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询