[Java Web Learning] war exploded: Error during artifact deployment, explodedartifact

Source: Internet
Author: User

[Java Web Learning] war exploded: Error during artifact deployment, explodedartifact

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

SEVERE: Exception sending context initialized event to listener instance of class org. springframework. web. context. ContextLoaderListener
Org. springframework. beans. factory. beanDefinitionStoreException: Failed to read candidate component class: file [/Users/lizhix/MyDemo/out/artifacts/Tables/WEB-INF/classes/com/lizhix/study/dao/UserInfoDao $1. class]; nested exception is java. lang. illegalArgumentException
At org. springframework. context. annotation. ClassPathScanningCandidateComponentProvider. findCandidateComponents (ClassPathScanningCandidateComponentProvider. java: 261)
At org. springframework. context. annotation. classpathbeandefinitiondetail. doScan (classpathbeandefinitiondetail. java: 242)
At org. springframework. context. annotation. ComponentScanBeanDefinitionParser. parse (ComponentScanBeanDefinitionParser. java: 84)
At org. springframework. beans. factory. xml. NamespaceHandlerSupport. parse (NamespaceHandlerSupport. java: 73)
At org. springframework. beans. factory. xml. BeanDefinitionParserDelegate. parseCustomElement (BeanDefinitionParserDelegate. java: 1435)
At org. springframework. beans. factory. xml. BeanDefinitionParserDelegate. parseCustomElement (BeanDefinitionParserDelegate. java: 1425)
At org. springframework. beans. factory. xml. DefaultBeanDefinitionDocumentReader. parseBeanDefinitions (DefaultBeanDefinitionDocumentReader. java: 184)
At org. springframework. beans. factory. xml. DefaultBeanDefinitionDocumentReader. doRegisterBeanDefinitions (DefaultBeanDefinitionDocumentReader. java: 140)
At org. springframework. beans. factory. xml. DefaultBeanDefinitionDocumentReader. registerBeanDefinitions (DefaultBeanDefinitionDocumentReader. java: 111)
At org. springframework. beans. factory. xml. XmlBeanDefinitionReader. registerBeanDefinitions (XmlBeanDefinitionReader. java: 493)
At org. springframework. beans. factory. xml. XmlBeanDefinitionReader. doLoadBeanDefinitions (XmlBeanDefinitionReader. java: 390)
At org. springframework. beans. factory. xml. XmlBeanDefinitionReader. loadBeanDefinitions (XmlBeanDefinitionReader. java: 334)
At org. springframework. beans. factory. xml. XmlBeanDefinitionReader. loadBeanDefinitions (XmlBeanDefinitionReader. java: 302)
At org. springframework. beans. factory. support. AbstractBeanDefinitionReader. loadBeanDefinitions (AbstractBeanDefinitionReader. java: 174)
At org. springframework. beans. factory. support. AbstractBeanDefinitionReader. loadBeanDefinitions (AbstractBeanDefinitionReader. java: 209)
At org. springframework. beans. factory. support. AbstractBeanDefinitionReader. loadBeanDefinitions (AbstractBeanDefinitionReader. java: 180)
At org. springframework. web. context. support. XmlWebApplicationContext. loadBeanDefinitions (XmlWebApplicationContext. java: 125)
At org. springframework. web. context. support. XmlWebApplicationContext. loadBeanDefinitions (XmlWebApplicationContext. java: 94)
At org. springframework. context. support. AbstractRefreshableApplicationContext. refreshBeanFactory (AbstractRefreshableApplicationContext. java: 131)
At org. springframework. context. support. AbstractApplicationContext. obtainFreshBeanFactory (AbstractApplicationContext. java: 537)
At org. springframework. context. support. AbstractApplicationContext. refresh (AbstractApplicationContext. java: 451)
At org. springframework. web. context. ContextLoader. configureAndRefreshWebApplicationContext (ContextLoader. java: 383)
At org. springframework. web. context. ContextLoader. initWebApplicationContext (ContextLoader. java: 283)
At org. springframework. web. context. ContextLoaderListener. contextInitialized (ContextLoaderListener. java: 112)
At org. apache. catalina. core. StandardContext. listenerStart (StandardContext. java: 4853)
At org. apache. catalina. core. StandardContext. startInternal (StandardContext. java: 5314)
At org. apache. catalina. util. LifecycleBase. start (LifecycleBase. java: 145)
At org. apache. catalina. core. ContainerBase. addChildInternal (ContainerBase. java: 753)
At org. apache. catalina. core. ContainerBase. addChild (ContainerBase. java: 729)
At org. apache. catalina. core. StandardHost. addChild (StandardHost. java: 717)
At org. apache. catalina. startup. HostConfig. manageApp (HostConfig. java: 1696)
At sun. reflect. NativeMethodAccessorImpl. invoke0 (Native Method)
At sun. reflect. NativeMethodAccessorImpl. invoke (NativeMethodAccessorImpl. java: 62)
At sun. reflect. DelegatingMethodAccessorImpl. invoke (DelegatingMethodAccessorImpl. java: 43)
At java. lang. reflect. Method. invoke (Method. java: 498)
At org. apache. tomcat. util. modeler. BaseModelMBean. invoke (BaseModelMBean. java: 300)
At com. sun. jmx. interceptor. DefaultMBeanServerInterceptor. invoke (DefaultMBeanServerInterceptor. java: 819)
At com. sun. jmx. mbeanserver. JmxMBeanServer. invoke (JmxMBeanServer. java: 801)
At org. apache. catalina. mbeans. MBeanFactory. createStandardContext (MBeanFactory. java: 484)
At org. apache. catalina. mbeans. MBeanFactory. createStandardContext (MBeanFactory. java: 433)
At sun. reflect. NativeMethodAccessorImpl. invoke0 (Native Method)
At sun. reflect. NativeMethodAccessorImpl. invoke (NativeMethodAccessorImpl. java: 62)
At sun. reflect. DelegatingMethodAccessorImpl. invoke (DelegatingMethodAccessorImpl. java: 43)
At java. lang. reflect. Method. invoke (Method. java: 498)
At org. apache. tomcat. util. modeler. BaseModelMBean. invoke (BaseModelMBean. java: 300)
At com. sun. jmx. interceptor. DefaultMBeanServerInterceptor. invoke (DefaultMBeanServerInterceptor. java: 819)
At com. sun. jmx. mbeanserver. JmxMBeanServer. invoke (JmxMBeanServer. java: 801)
At javax. management. remote. rmi. RMIConnectionImpl. doOperation (RMIConnectionImpl. java: 1468)
At javax. management. remote. rmi. RMIConnectionImpl. access $300 (RMIConnectionImpl. java: 76)
At javax. management. remote. rmi. RMIConnectionImpl $ PrivilegedOperation. run (RMIConnectionImpl. java: 1309)
At javax. management. remote. rmi. RMIConnectionImpl. doPrivilegedOperation (RMIConnectionImpl. java: 1401)
At javax. management. remote. rmi. RMIConnectionImpl. invoke (RMIConnectionImpl. java: 829)
At sun. reflect. NativeMethodAccessorImpl. invoke0 (Native Method)
At sun. reflect. NativeMethodAccessorImpl. invoke (NativeMethodAccessorImpl. java: 62)
At sun. reflect. DelegatingMethodAccessorImpl. invoke (DelegatingMethodAccessorImpl. java: 43)
At java. lang. reflect. Method. invoke (Method. java: 498)
At sun. rmi. server. UnicastServerRef. dispatch (UnicastServerRef. java: 346)
At sun. rmi. transport. Transport $ 1.run( Transport. java: 200)
At sun. rmi. transport. Transport $ 1.run( Transport. java: 197)
At java. security. AccessController. doPrivileged (Native Method)
At sun. rmi. transport. Transport. serviceCall (Transport. java: 196)
At sun. rmi. transport. tcp. TCPTransport. handleMessages (TCPTransport. java: 568)
At sun. rmi. transport. tcp. TCPTransport $ ConnectionHandler. run0 (TCPTransport. java: 826)
At sun. rmi. transport. tcp. TCPTransport $ ConnectionHandler. lambda $ run $0 (TCPTransport. java: 683)
At java. security. AccessController. doPrivileged (Native Method)
At sun. rmi. transport. tcp. TCPTransport $ ConnectionHandler. run (TCPTransport. java: 682)
At java. util. concurrent. ThreadPoolExecutor. runWorker (ThreadPoolExecutor. java: 1142)
At java. util. concurrent. ThreadPoolExecutor $ Worker. run (ThreadPoolExecutor. java: 617)
At java. lang. Thread. run (Thread. java: 748)
Caused by: java. lang. IllegalArgumentException
At org. springframework. asm. ClassReader. <init> (Unknown Source)
At org. springframework. asm. ClassReader. <init> (Unknown Source)
At org. springframework. asm. ClassReader. <init> (Unknown Source)
At org. springframework. core. type. classreading. SimpleMetadataReader. <init> (SimpleMetadataReader. java: 52)
At org. springframework. core. type. classreading. SimpleMetadataReaderFactory. getMetadataReader (SimpleMetadataReaderFactory. java: 80)
At org. springframework. core. type. classreading. CachingMetadataReaderFactory. getMetadataReader (CachingMetadataReaderFactory. java: 101)
At org. springframework. context. annotation. ClassPathScanningCandidateComponentProvider. findCandidateComponents (ClassPathScanningCandidateComponentProvider. java: 237)
... 68 more

12-Jun-2017 17:42:15. 052 SEVERE [rmi tcp Connection (2)-127.0.0.1] org. apache. catalina. core. standardContext. startInternal One or more listeners failed to start. full details will be found in the appropriate container log file
12-Jun-2017 17:42:15. 066 SEVERE [rmi tcp Connection (2)-127.0.0.1] org. apache. catalina. core. StandardContext. startInternal Context [] startup failed due to previous errors
Jun 12,201 7 5:42:15 org. apache. catalina. core. ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Jun 12,201 7 5:42:15 org. apache. catalina. core. StandardContext listenerStop
SEVERE: Exception sending context destroyed event to listener instance of class org. springframework. web. context. ContextLoaderListener
Java. lang. IllegalStateException: BeanFactory not initialized or already closed-call 'refresh' before accessing beans via the ApplicationContext
At org. springframework. context. support. AbstractRefreshableApplicationContext. getBeanFactory (AbstractRefreshableApplicationContext. java: 172)
At org. springframework. context. support. AbstractApplicationContext. destroyBeans (AbstractApplicationContext. java: 1090)
At org. springframework. context. support. AbstractApplicationContext. doClose (AbstractApplicationContext. java: 1064)
At org. springframework. context. support. AbstractApplicationContext. close (AbstractApplicationContext. java: 1010)
At org. springframework. web. context. ContextLoader. closeWebApplicationContext (ContextLoader. java: 549)
At org. springframework. web. context. ContextLoaderListener. contextDestroyed (ContextLoaderListener. java: 143)
At org. apache. catalina. core. StandardContext. listenerStop (StandardContext. java: 4900)
At org. apache. catalina. core. StandardContext. stopInternal (StandardContext. java: 5537)
At org. apache. catalina. util. LifecycleBase. stop (LifecycleBase. java: 221)
At org. apache. catalina. util. LifecycleBase. start (LifecycleBase. java: 149)
At org. apache. catalina. core. ContainerBase. addChildInternal (ContainerBase. java: 753)
At org. apache. catalina. core. ContainerBase. addChild (ContainerBase. java: 729)
At org. apache. catalina. core. StandardHost. addChild (StandardHost. java: 717)
At org. apache. catalina. startup. HostConfig. manageApp (HostConfig. java: 1696)
At sun. reflect. NativeMethodAccessorImpl. invoke0 (Native Method)
At sun. reflect. NativeMethodAccessorImpl. invoke (NativeMethodAccessorImpl. java: 62)
At sun. reflect. DelegatingMethodAccessorImpl. invoke (DelegatingMethodAccessorImpl. java: 43)
At java. lang. reflect. Method. invoke (Method. java: 498)
At org. apache. tomcat. util. modeler. BaseModelMBean. invoke (BaseModelMBean. java: 300)
At com. sun. jmx. interceptor. DefaultMBeanServerInterceptor. invoke (DefaultMBeanServerInterceptor. java: 819)
At com. sun. jmx. mbeanserver. JmxMBeanServer. invoke (JmxMBeanServer. java: 801)
At org. apache. catalina. mbeans. MBeanFactory. createStandardContext (MBeanFactory. java: 484)
At org. apache. catalina. mbeans. MBeanFactory. createStandardContext (MBeanFactory. java: 433)
At sun. reflect. NativeMethodAccessorImpl. invoke0 (Native Method)
At sun. reflect. NativeMethodAccessorImpl. invoke (NativeMethodAccessorImpl. java: 62)
At sun. reflect. DelegatingMethodAccessorImpl. invoke (DelegatingMethodAccessorImpl. java: 43)
At java. lang. reflect. Method. invoke (Method. java: 498)
At org. apache. tomcat. util. modeler. BaseModelMBean. invoke (BaseModelMBean. java: 300)
At com. sun. jmx. interceptor. DefaultMBeanServerInterceptor. invoke (DefaultMBeanServerInterceptor. java: 819)
At com. sun. jmx. mbeanserver. JmxMBeanServer. invoke (JmxMBeanServer. java: 801)
At javax. management. remote. rmi. RMIConnectionImpl. doOperation (RMIConnectionImpl. java: 1468)
At javax. management. remote. rmi. RMIConnectionImpl. access $300 (RMIConnectionImpl. java: 76)
At javax. management. remote. rmi. RMIConnectionImpl $ PrivilegedOperation. run (RMIConnectionImpl. java: 1309)
At javax. management. remote. rmi. RMIConnectionImpl. doPrivilegedOperation (RMIConnectionImpl. java: 1401)
At javax. management. remote. rmi. RMIConnectionImpl. invoke (RMIConnectionImpl. java: 829)
At sun. reflect. NativeMethodAccessorImpl. invoke0 (Native Method)
At sun. reflect. NativeMethodAccessorImpl. invoke (NativeMethodAccessorImpl. java: 62)
At sun. reflect. DelegatingMethodAccessorImpl. invoke (DelegatingMethodAccessorImpl. java: 43)
At java. lang. reflect. Method. invoke (Method. java: 498)
At sun. rmi. server. UnicastServerRef. dispatch (UnicastServerRef. java: 346)
At sun. rmi. transport. Transport $ 1.run( Transport. java: 200)
At sun. rmi. transport. Transport $ 1.run( Transport. java: 197)
At java. security. AccessController. doPrivileged (Native Method)
At sun. rmi. transport. Transport. serviceCall (Transport. java: 196)
At sun. rmi. transport. tcp. TCPTransport. handleMessages (TCPTransport. java: 568)
At sun. rmi. transport. tcp. TCPTransport $ ConnectionHandler. run0 (TCPTransport. java: 826)
At sun. rmi. transport. tcp. TCPTransport $ ConnectionHandler. lambda $ run $0 (TCPTransport. java: 683)
At java. security. AccessController. doPrivileged (Native Method)
At sun. rmi. transport. tcp. TCPTransport $ ConnectionHandler. run (TCPTransport. java: 682)
At java. util. concurrent. ThreadPoolExecutor. runWorker (ThreadPoolExecutor. java: 1142)
At java. util. concurrent. ThreadPoolExecutor $ Worker. run (ThreadPoolExecutor. java: 617)
At java. lang. Thread. run (Thread. java: 748)

[05:42:15, 096] Artifact FirstWeb: war exploded: Error during artifact deployment. See server log for details.

I found a lot on the Internet. Most of them are about the Edit Configuration solution of Tomcat, which is not solved. It was found that JDK1.8 was used, while Spring 3. X is incompatible. Download The Spring4.X jar package again to solve the problem.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.