Results 1 to 3 of 3

Thread: SEVERE: Exception sending context initialized event to listener instance of class

  1. #1
    Join Date
    Dec 2012
    Posts
    1

    Default SEVERE: Exception sending context initialized event to listener instance of class

    I am having the below error while starting Tomcat 6.0 . I cannot determine why I get this error.
    Code:
    SEVERE: Exception sending context initialized event to listener instance of class 
    org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.thetasp.common.report.imp.WordMLReportImp' defined in class path resource [core-spring.xml]: Cannot resolve reference to bean 'com.thetasp.common.wordml.TemplateResolver' while setting bean property 'templateResolver'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.thetasp.common.wordml.TemplateResolver' defined in class path resource [core-spring.xml]: Cannot resolve reference to bean 'com.thetasp.common.wordml.Jod3Converter' while setting bean property 'jod3Converter'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.thetasp.common.wordml.Jod3Converter' defined in class path resource [core-spring.xml]: Invocation of init method failed; nested exception is org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: Cannot open connection; uncategorized SQLException for SQL [???]; SQL state [null]; error code [0]; Cannot create PoolableConnectionFactory (IO Error: The Network Adapter could not establish the connection); nested exception is org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (IO Error: The Network Adapter could not establish the connection) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    Last edited by Ruba; Dec 14th, 2012 at 05:05 AM.

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    Please use [ code][/code ] tags when you post code, that way it remains readable...

    Have you READ the stacktrace?

    Code:
    Cannot create PoolableConnectionFactory (IO Error: The Network Adapter could not establish the connection)
    Aparently either your configuration is wrong or there is something in your network preventing you from connecting to the database.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Dec 2009
    Location
    India
    Posts
    108

    Default

    If you're looking up your datasource from JNDI in your application, please make sure that the JDBC driver JARS are included in the server classpath in case of tomcat, it should typically be inside TOMCAT_HOME/lib directory.

    In case you're not using JNDI but creating a datasource in XML Configuration via SPRING, then there's something wrong with the JDBC URL property as it might not be pointing to the correct network address.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •