java - org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized -
i adding sessionlistener in springinitializer class extends webapplicationinitializer. using sping 4.0.. jars.
getting below exception :-
org.apache.catalina.core.standardcontext.listenerstart exception sending context initialized event listener instance of class org.springframework.web.context.contextloaderlistener org.springframework.beans.factory.beandefinitionstoreexception: failed parse configuration class [com.myapp.container.impl.config.springconfiguration]; nested exception java.io.filenotfoundexception: class path resource [org/springframework/security/config/annotation/web/configuration/websecurityconfigureradapter.class] cannot opened because not exist @ org.springframework.context.annotation.configurationclassparser.parse(configurationclassparser.java:177) @ org.springframework.context.annotation.configurationclasspostprocessor.processconfigbeandefinitions(configurationclasspostprocessor.java:306) @ org.springframework.context.annotation.configurationclasspostprocessor.postprocessbeandefinitionregistry(configurationclasspostprocessor.java:239) @ org.springframework.context.support.postprocessorregistrationdelegate.invokebeandefinitionregistrypostprocessors(postprocessorregistrationdelegate.java:254) @ org.springframework.context.support.postprocessorregistrationdelegate.invokebeanfactorypostprocessors(postprocessorregistrationdelegate.java:94) @ org.springframework.context.support.abstractapplicationcontext.invokebeanfactorypostprocessors(abstractapplicationcontext.java:606) @ org.springframework.context.support.abstractapplicationcontext.__refresh(abstractapplicationcontext.java:462) @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java) @ org.springframework.web.context.contextloader.configureandrefreshwebapplicationcontext(contextloader.java:403) @ org.springframework.web.context.contextloader.initwebapplicationcontext(contextloader.java:306) @ org.springframework.web.context.contextloaderlistener.contextinitialized(contextloaderlistener.java:106) @ org.apache.catalina.core.standardcontext.listenerstart(standardcontext.java:4726) @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5162) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) @ org.apache.catalina.core.containerbase.addchildinternal(containerbase.java:725) @ org.apache.catalina.core.containerbase.addchild(containerbase.java:701) @ org.apache.catalina.core.standardhost.addchild(standardhost.java:717) @ org.apache.catalina.startup.hostconfig.deploydirectory(hostconfig.java:1069) @ org.apache.catalina.startup.hostconfig$deploydirectory.run(hostconfig.java:1719) @ java.util.concurrent.executors$runnableadapter.call(executors.java:511) @ java.util.concurrent.futuretask.run(futuretask.java:266) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ java.lang.thread.run(thread.java:745)
any why getting exception. adding listener in context.addlistener(new sessionlistener ());
Comments
Post a Comment