Menu

tomcat deployment problem

Help
2009-02-20
2012-09-15
  • manmadh kancharla

    Hi Erric,

    i just followed the the document to deploy war file and deployment is successful but while runing i am getting this problem

    SEVERE: Exception sending context initialized event to listener instance of class org.jumpmind.symmetric.SymmetricEngineContextLoaderListener
    org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [additional-spring.xml]; nested exception is java.io.FileNotFoundException: class path resource [additional-spring.xml] cannot be opened because it does not exist
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:349)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
    at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)
    at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)
    at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)

     
    • Eric Long

      Eric Long - 2009-02-20

      Try removing the context-param section of the web.xml:

      <context-param>
      <param-name>contextConfigLocation</param-name>
      <param-value>classpath:additional-spring.xml</param-value>
      </context-param>

      That section was meant as an example and should probably be commented out. It causes it to try to load a file named additional-spring.xml from the classpath. If you were trying to deploy the additional-spring.xml file, it would go in the WEB-INF/classes folder of the WAR.

      Eric

       

Log in to post a comment.