Announcement Announcement Module
Collapse
No announcement yet.
Exception sending context initialized event to listener.... Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Exception sending context initialized event to listener....

    I use for my project spring, ibatis and struts. I can't run the application(running=false)

    I checked everything and it looks like anything is defined well and the accountDao mapping is also pointing to the correct class.

    Something else i noticed is that my classes map is empty. There is no SqlMapAccountDao.class, accountDao.class etc..

    It's very strange because tomcat points to the right jdk path. I tried everything to solve the problem, but i can't see it.

    thnx, every help is appreciated



    this is the generated log file:

    2005-09-06 21:14:35,453 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/CMS_my]] - Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListe ner
    org.springframework.beans.factory.BeanDefinitionSt oreException: Error registering bean with name 'accountDao' defined in ServletContext resource [/WEB-INF/daoContext-local.xml]: Bean class [com.my.cms.service.sqlmapdao.SqlMapAccountDao] not found; nested exception is java.lang.ClassNotFoundException: com.my.cms.service.sqlmapdao.SqlMapAccountDao
    java.lang.ClassNotFoundException: com.my.cms.service.sqlmapdao.SqlMapAccountDao
    at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1332)
    at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1181)
    at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:242)
    at org.springframework.util.ClassUtils.forName(ClassU tils.java:87)
    at org.springframework.beans.factory.support.BeanDefi nitionReaderUtils.createBeanDefinition(BeanDefinit ionReaderUtils.java:61)
    at org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser.parseBeanDefinitionElement(Defa ultXmlBeanDefinitionParser.java:313)
    at org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser.parseBeanDefinitionElement(Defa ultXmlBeanDefinitionParser.java:281)
    at org.springframework.beans.factory.xml.DefaultXmlBe anDefinitionParser.registerBeanDefinitions(Default XmlBeanDefinitionParser.java:193)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.registerBeanDefinitions(XmlBeanDefinit ionReader.java:188)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:146)
    at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:99)
    at org.springframework.web.context.support.XmlWebAppl icationContext.loadBeanDefinitions(XmlWebApplicati onContext.java:114)
    at org.springframework.web.context.support.XmlWebAppl icationContext.loadBeanDefinitions(XmlWebApplicati onContext.java:82)
    at org.springframework.context.support.AbstractRefres hableApplicationContext.refreshBeanFactory(Abstrac tRefreshableApplicationContext.java:87)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:262)
    at org.springframework.web.context.support.AbstractRe freshableWebApplicationContext.refresh(AbstractRef reshableWebApplicationContext.java:131)
    at org.springframework.web.context.ContextLoader.crea teWebApplicationContext(ContextLoader.java:224)
    at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:150)
    at org.springframework.web.context.ContextLoaderListe ner.contextInitialized(ContextLoaderListener.java: 48)
    at org.apache.catalina.core.StandardContext.listenerS tart(StandardContext.java:3669)
    at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4104)
    at org.apache.catalina.manager.ManagerServlet.start(M anagerServlet.java:1175)
    at org.apache.catalina.manager.HTMLManagerServlet.sta rt(HTMLManagerServlet.java:510)
    at org.apache.catalina.manager.HTMLManagerServlet.doG et(HTMLManagerServlet.java:104)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:689)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:178)
    at org.apache.catalina.authenticator.AuthenticatorBas e.invoke(AuthenticatorBase.java:482)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:856)
    at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.processConnection(Http11Protocol.jav a:744)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThr ead.runIt(LeaderFollowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:595)
    2005-09-06 21:14:35,468 INFO [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/CMS_my]] - Closing Spring root WebApplicationContext
    2005-09-06 21:14:35,468 INFO [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/CMS_my]] - Shutting down Log4J

  • #2
    Are you absolutely *sure* that
    Code:
    com.my.cms.service.sqlmapdao.SqlMapAccountDao
    is in your WAR file?

    Try unzipping your WAR file.

    Comment

    Working...
    X