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

  • 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, 06:05 AM.

  • #2
    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.

    Comment


    • #3
      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.

      Comment

      Working...
      X