Exception sending context initialized event to listener instance of class Org.springframework.web.context.ContextLoaderListener

Source: Internet
Author: User

Severity: Exception sending context initialized event to listener instance of class Org.springframework.web.context.ContextLoad Erlistener
Org.springframework.beans.factory.BeanCreationException:Error creating bean with Name ' Org.apache.cxf.bus.spring.Jsr250BeanPostProcessor ': Injection of resource dependencies failed; Nested exception is org.springframework.beans.factory.CannotLoadBeanClassException:Cannot find class [ Com.neusoft.util.AddSoapHeader] for beans with name ' addsoapheader ' defined in ServletContext resource [/web-inf/config/ Cxf-client.xml]; Nested exception is Java.lang.ClassNotFoundException:com.neusoft.util.AddSoapHeader
At Org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues ( commonannotationbeanpostprocessor.java:306)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean ( abstractautowirecapablebeanfactory.java:1146)
... Omitted...
At Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:615)
At Java.lang.Thread.run (thread.java:745)
caused by:org.springframework.beans.factory.CannotLoadBeanClassException:Cannot Find class [ Com.neusoft.util.AddSoapHeader] for beans with name ' addsoapheader ' defined in ServletContext resource [/web-inf/config/ Cxf-client.xml]; Nested exception is Java.lang.ClassNotFoundException:com.neusoft.util.AddSoapHeader
At Org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass (abstractbeanfactory.java:1281 )
... Omitted...
At Org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues ( commonannotationbeanpostprocessor.java:303)
... More
caused By:java.lang.ClassNotFoundException:com.neusoft.util.AddSoapHeader
At Org.apache.catalina.loader.WebappClassLoader.loadClass (webappclassloader.java:1720)
... Omitted...
At Org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass (abstractbeanfactory.java:1273 )
... More

View exception information This exception was found to occur at the time the event was initialized.

There are several possible causes for this abnormal error:

1, the project used to connect pool, but did not import Commons.pool.jar package, if not imported, import the package can be resolved. Commons.pool.jar package Download Link: http://mirrors.tuna.tsinghua.edu.cn/apache//commons/pool/binaries/commons-pool2-2.6.0-bin.zip

2, check the version of the imported jar package is correct, the wrong version will also cause such problems

3, check the path is correct, sometimes applicationcontext.xml this file can not find, to put under classes. Find the correct path and configuration information for the error file

4. Finally, you can reinstall Tomcat and reconfigure it.

Exception sending context initialized event to listener instance of class Org.springframework.web.context.ContextLoaderListener

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.