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)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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)
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