是能帮帮解决一下 struts2项目运行问题,刚接手的项目,

北城小林 2019-04-17 05:24:33
7:17:38,679 INFO LoginAction:83 - /------------------------------------------------------------------------------------/
17:17:38,680 INFO LoginAction:84 - 当前登陆用户:admin
17:17:38,681 INFO LoginAction:85 - /------------------------------------------------------------------------------------/
ERROR ParametersInterceptor Unexpected Exception caught setting '_dc' on 'class dps.action.login.LoginAction: Error setting expression '_dc' with value ['1555492659348', ]
Unable to instantiate Action, publishUploadAction, defined for 'publishUpload' in namespace '/'Error creating bean with name 'publishUploadAction' defined in file [D:\Tomcat9\webapps\DeclareIssue\WEB-INF\classes\dps\logic\publish\action\PublishUploadAction.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [dps.logic.publish.action.PublishUploadAction]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems:
The import javax.servlet.ServletContext cannot be resolved
The import javax.servlet.http.HttpServletRequest cannot be resolved
The import javax.servlet.http.HttpServletResponse cannot be resolved
The type BaseAction must implement the inherited abstract method ServletContextAware.setServletContext(ServletContext)
The type BaseAction must implement the inherited abstract method ServletResponseAware.setServletResponse(HttpServletResponse)
The type BaseAction must implement the inherited abstract method ServletRequestAware.setServletRequest(HttpServletRequest)
HttpServletRequest cannot be resolved to a type
HttpServletResponse cannot be resolved to a type
ServletContext cannot be resolved to a type
HttpServletRequest cannot be resolved to a type
HttpServletRequest cannot be resolved to a type
ServletContext cannot be resolved to a type
ServletContext cannot be resolved to a type
HttpServletResponse cannot be resolved to a type
HttpServletResponse cannot be resolved to a type
- action - file:/D:/Tomcat9/webapps/DeclareIssue/WEB-INF/classes/struts.xml:381:83
at com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:320)
at com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:401)
at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:201)
at org.apache.struts2.factory.StrutsActionProxy.prepare(StrutsActionProxy.java:57)
at org.apache.struts2.factory.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:32)
at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:60)
at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:564)
at org.apache.struts2.dispatcher.ExecuteOperations.executeAction(ExecuteOperations.java:79)
at org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:141)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:668)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:770)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1415)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'publishUploadAction' defined in file [D:\Tomcat9\webapps\DeclareIssue\WEB-INF\classes\dps\logic\publish\action\PublishUploadAction.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [dps.logic.publish.action.PublishUploadAction]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems:
The import javax.servlet.ServletContext cannot be resolved
The import javax.servlet.http.HttpServletRequest cannot be resolved
The import javax.servlet.http.HttpServletResponse cannot be resolved
The type BaseAction must implement the inherited abstract method ServletContextAware.setServletContext(ServletContext)
The type BaseAction must implement the inherited abstract method ServletResponseAware.setServletResponse(HttpServletResponse)
The type BaseAction must implement the inherited abstract method ServletRequestAware.setServletRequest(HttpServletRequest)
HttpServletRequest cannot be resolved to a type
HttpServletResponse cannot be resolved to a type
ServletContext cannot be resolved to a type
HttpServletRequest cannot be resolved to a type
HttpServletRequest cannot be resolved to a type
ServletContext cannot be resolved to a type
ServletContext cannot be resolved to a type
HttpServletResponse cannot be resolved to a type
HttpServletResponse cannot be resolved to a type

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:965)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1075)
at com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:166)
at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:177)
at com.opensymphony.xwork2.factory.DefaultActionFactory.buildAction(DefaultActionFactory.java:40)
at com.opensymphony.xwork2.ObjectFactory.buildAction(ObjectFactory.java:142)
at com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:301)
... 27 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [dps.logic.publish.action.PublishUploadAction]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems:
The import javax.servlet.ServletContext cannot be resolved
The import javax.servlet.http.HttpServletRequest cannot be resolved
The import javax.servlet.http.HttpServletResponse cannot be resolved
The type BaseAction must implement the inherited abstract method ServletContextAware.setServletContext(ServletContext)
The type BaseAction must implement the inherited abstract method ServletResponseAware.setServletResponse(HttpServletResponse)
The type BaseAction must implement the inherited abstract method ServletRequestAware.setServletRequest(HttpServletRequest)
HttpServletRequest cannot be resolved to a type
HttpServletResponse cannot be resolved to a type
ServletContext cannot be resolved to a type
HttpServletRequest cannot be resolved to a type
HttpServletRequest cannot be resolved to a type
ServletContext cannot be resolved to a type
ServletContext cannot be resolved to a type
HttpServletRespo
nse cannot be resolved to a type
HttpServletResponse cannot be resolved to a type

at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)
... 38 more
Caused by: java.lang.Error: Unresolved compilation problems:
The import javax.servlet.ServletContext cannot be resolved
The import javax.servlet.http.HttpServletRequest cannot be resolved
The import javax.servlet.http.HttpServletResponse cannot be resolved
The type BaseAction must implement the inherited abstract method ServletContextAware.setServletContext(ServletContext)
The type BaseAction must implement the inherited abstract method ServletResponseAware.setServletResponse(HttpServletResponse)
The type BaseAction must implement the inherited abstract method ServletRequestAware.setServletRequest(HttpServletRequest)
HttpServletRequest cannot be resolved to a type
HttpServletResponse cannot be resolved to a type
ServletContext cannot be resolved to a type
HttpServletRequest cannot be resolved to a type
HttpServletRequest cannot be resolved to a type
ServletContext cannot be resolved to a type
ServletContext cannot be
...全文
367 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
北城小林 2019-04-17
  • 打赏
  • 举报
回复
谁有过这问题啊

50,528

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧