Artifact XXX exploded: Error during artifact deployment. See server log for details.

Posted figsprite

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Artifact XXX exploded: Error during artifact deployment. See server log for details.相关的知识,希望对你有一定的参考价值。

    前排提醒,这只是篇排错日记,可能解决不了你的问题。

 

  

  点击右侧查看tomcat日志

技术图片

技术图片

  看这个报错信息,知道是映射文件路径出错了。

  改一下

 

 

然后又报新错误:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘employeeController‘: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.figsprite.Service.EmployeeService com.figsprite.Controller.EmployeeController.employeeService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.figsprite.Service.EmployeeService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

技术图片

  可以知道是扫描包出现问题, = =这里因为懒,直接复制了SpringMVC的配置文件,导致Spring扫描不到包了

 

 

  = =还是错

技术图片

 

 

   在控制层加点料

 

技术图片

 

技术图片

 

 = =好熟悉的错误,刚学习SpringMVC时令人抓疯的错误

 

 

= = 途中又碰到新问题

在web.xml里改一改

<context-param>
   <param-name>log4jConfigLocation</param-name>
   <param-value>/WEB-INF/config/log4j.properties</param-value>
</context-param>

······

<!-- 定义LOG4J监听器 -->
<listener>
   <listener-class>
org.springframework.web.util.Log4jConfigListener
   </listener-class>
</listener>

 

技术图片

 

至此,整合SSM宣告成功!!!万里长征,刚刚开始

 

 

 

 

 

 

 

 

以上是关于Artifact XXX exploded: Error during artifact deployment. See server log for details.的主要内容,如果未能解决你的问题,请参考以下文章

Error:Cannot build artifact 'XXX:war exploded' because it is included into a circular depend

Artifact EVDBSoftys:war exploded: Artifact is being deployed, please wait...

报错解决:Artifact JSP:war exploded: Error during artifact deployment.

Artifact *:war exploded: Error during artifact deployment. See server log for details.

Artifact preTest:war exploded: Error during artifact deployment. See server log for details.问题的解决

[Java Web学习]Tomcat启动时报war exploded: Error during artifact deployment