Announcement Announcement Module
Collapse
No announcement yet.
ERROR: org.springframework.web.context.ContextLoader - Context initialization failed Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ERROR: org.springframework.web.context.ContextLoader - Context initialization failed

    Hi,

    From Spring Source Tool, I have creating spring MVC template project, After running i'm geeting below error, could please help me.

    Feb 25, 2011 3:03:04 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:mvc4' did not find a matching property.
    Feb 25, 2011 3:03:04 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:TestMVC' did not find a matching property.
    Feb 25, 2011 3:03:04 PM org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_13\bin;.;C:\WINDOWS\Sun\Java\b in;C:\WINDOWS\system32;C:\WINDOWS;C:\PROGRA~1\CA\S C\\ETPKI\lib;C:\oracle\ora81\bin;C:\Program Files\Oracle\jre\1.1.7\bin;C:\Program Files\CA\DCS\CAWIN\;C:\WINDOWS\system32;C:\WINDOWS ;C:\WINDOWS\System32\Wbem;C:\Program Files\Symantec\pcAnywhere\;C:\NETMANAG.32\;C:\PROG RA~1\CA\SC\CAM\bin;C:\Program Files\CA\DSM\bin;D:\OpenLaszlo Server 4.1.1\bin;D:\jakarta-tomcat-5.5.9\bin;C:\Program Files\Java\jdk1.5.0_10\bin;C:\Program Files\CA\SC\Csam\SockAdapter\\bin;
    Feb 25, 2011 3:03:04 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Feb 25, 2011 3:03:04 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 364 ms
    Feb 25, 2011 3:03:04 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Feb 25, 2011 3:03:04 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
    Feb 25, 2011 3:03:04 PM org.apache.catalina.core.ApplicationContext log
    INFO: Initializing Spring root WebApplicationContext
    INFO : org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started
    INFO : org.springframework.web.context.support.XmlWebAppl icationContext - Refreshing Root WebApplicationContext: startup date [Fri Feb 25 15:03:04 IST 2011]; root of context hierarchy
    ERROR: org.springframework.web.context.ContextLoader - Context initialization failed
    java.lang.ExceptionInInitializerError
    at org.springframework.context.support.AbstractRefres hableApplicationContext.createBeanFactory(Abstract RefreshableApplicationContext.java:194)
    at org.springframework.context.support.AbstractRefres hableApplicationContext.refreshBeanFactory(Abstrac tRefreshableApplicationContext.java:127)
    at org.springframework.context.support.AbstractApplic ationContext.obtainFreshBeanFactory(AbstractApplic ationContext.java:467)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:397)
    at org.springframework.web.context.ContextLoader.crea teWebApplicationContext(ContextLoader.java:276)
    at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:197)
    at org.springframework.web.context.ContextLoaderListe ner.contextInitialized(ContextLoaderListener.java: 47)
    at org.apache.catalina.core.StandardContext.listenerS tart(StandardContext.java:3934)
    at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4429)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1045)
    at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:722)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(Sta ndardService.java:516)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:583)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:413)
    Caused by: java.lang.NullPointerException
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.<clinit>(DefaultListableBeanFac tory.java:104)
    ... 22 more
    Feb 25, 2011 3:03:04 PM org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListe ner
    java.lang.ExceptionInInitializerError
    at org.springframework.context.support.AbstractRefres hableApplicationContext.createBeanFactory(Abstract RefreshableApplicationContext.java:194)
    at org.springframework.context.support.AbstractRefres hableApplicationContext.refreshBeanFactory(Abstrac tRefreshableApplicationContext.java:127)
    at org.springframework.context.support.AbstractApplic ationContext.obtainFreshBeanFactory(AbstractApplic ationContext.java:467)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:397)
    at org.springframework.web.context.ContextLoader.crea teWebApplicationContext(ContextLoader.java:276)
    at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:197)
    at org.springframework.web.context.ContextLoaderListe ner.contextInitialized(ContextLoaderListener.java: 47)
    at org.apache.catalina.core.StandardContext.listenerS tart(StandardContext.java:3934)
    at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4429)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1045)
    at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:722)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(Sta ndardService.java:516)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:583)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:413)
    Caused by: java.lang.NullPointerException
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.<clinit>(DefaultListableBeanFac tory.java:104)
    ... 22 more
    Feb 25, 2011 3:03:04 PM org.apache.catalina.core.StandardContext start
    SEVERE: Error listenerStart
    Feb 25, 2011 3:03:04 PM org.apache.catalina.core.StandardContext start
    SEVERE: Context [/TestMVC] startup failed due to previous errors
    Feb 25, 2011 3:03:04 PM org.apache.catalina.core.ApplicationContext log
    INFO: Closing Spring root WebApplicationContext
    Feb 25, 2011 3:03:04 PM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    Feb 25, 2011 3:03:04 PM org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    Feb 25, 2011 3:03:04 PM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/15 config=null
    Feb 25, 2011 3:03:04 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 561 ms
Working...
X