Personalize

Installation Guidence

Forums :

Hi,

I am new to spring and web services as well but need to use both. Got to know about this tool. I have both web servcies and spring basic app running on my machine but want to integrate them using this tool.

I downloaded the distribution and was going through the Install.txt everything went well except the line

4. Add the following line in your application context (WEB-INF/ in this case) and copy the axisConfig.xml to the relevant location

<import resource="axis2Config.xml"/>

My question is what did it mean by application context the one defined in server.xml in tomcat or the one for spring.

Where do i have to place <import resource="axis2Config.xml"/> exactly?

I got the following error after placing axis2Config.xml in WEB-INF/ and then running the server.

org.springframework.beans.factory.BeanDefinitionStoreException

 

: IOException parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/applicationContext.xml]

java.io.FileNotFoundException

at org.springframework.web.context.support.ServletContextResource.getInputStream(

at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(

at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(

at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(

at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(

at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(

at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(

at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(

at org.springframework.context.support.AbstractApplicationContext.refresh(

at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(

at org.springframework.web.context.ContextLoader.createWebApplicationContext(

at org.springframework.web.context.ContextLoader.initWebApplicationContext(

at org.springframework.web.context.ContextLoaderListener.contextInitialized(

at org.apache.catalina.core.StandardContext.listenerStart(

at org.apache.catalina.core.StandardContext.start(

at org.apache.catalina.core.ContainerBase.start(

at org.apache.catalina.core.StandardHost.start(

at org.apache.catalina.core.ContainerBase.start(

at org.apache.catalina.core.StandardEngine.start(

at org.apache.catalina.core.StandardService.start(

at org.apache.catalina.core.StandardServer.start(

at org.apache.catalina.startup.Catalina.start(

at sun.reflect.NativeMethodAccessorImpl.invoke0(

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.apache.catalina.startup.Bootstrap.start(

at org.apache.catalina.startup.Bootstrap.main(

2008-02-25 12:37:38,903 ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/SpringMVCEclipse] - Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener

: Could not open ServletContext resource [/WEB-INF/applicationContext.xml]ServletContextResource.java:99)XmlBeanDefinitionReader.java:167)XmlBeanDefinitionReader.java:148)AbstractBeanDefinitionReader.java:129)AbstractBeanDefinitionReader.java:145)XmlWebApplicationContext.java:126)XmlWebApplicationContext.java:94)AbstractRefreshableApplicationContext.java:89)AbstractApplicationContext.java:270)AbstractRefreshableWebApplicationContext.java:139)ContextLoader.java:252)ContextLoader.java:190)ContextLoaderListener.java:49)StandardContext.java:3763)StandardContext.java:4211)ContainerBase.java:1013)StandardHost.java:718)ContainerBase.java:1013)StandardEngine.java:442)StandardService.java:450)StandardServer.java:709)Catalina.java:551)Native Method)Bootstrap.java:294)Bootstrap.java:432)

org.springframework.beans.factory.BeanDefinitionStoreException

: IOException parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/applicationContext.xml]

java.io.FileNotFoundException

at org.springframework.web.context.support.ServletContextResource.getInputStream(

at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(

at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(

at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(

at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(

at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(

at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(

at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(

at org.springframework.context.support.AbstractApplicationContext.refresh(

at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(

at org.springframework.web.context.ContextLoader.createWebApplicationContext(

at org.springframework.web.context.ContextLoader.initWebApplicationContext(

at org.springframework.web.context.ContextLoaderListener.contextInitialized(

at org.apache.catalina.core.StandardContext.listenerStart(

at org.apache.catalina.core.StandardContext.start(

at org.apache.catalina.core.ContainerBase.start(

at org.apache.catalina.core.StandardHost.start(

at org.apache.catalina.core.ContainerBase.start(

at org.apache.catalina.core.StandardEngine.start(

at org.apache.catalina.core.StandardService.start(

at org.apache.catalina.core.StandardServer.start(

at org.apache.catalina.startup.Catalina.start(

at sun.reflect.NativeMethodAccessorImpl.invoke0(

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.apache.catalina.startup.Bootstrap.start(

at org.apache.catalina.startup.Bootstrap.main(

Feb 25, 2008 12:37:38 PM org.apache.catalina.core.Sta

: Could not open ServletContext resource [/WEB-INF/applicationContext.xml]ServletContextResource.java:99)XmlBeanDefinitionReader.java:167)XmlBeanDefinitionReader.java:148)AbstractBeanDefinitionReader.java:129)AbstractBeanDefinitionReader.java:145)XmlWebApplicationContext.java:126)XmlWebApplicationContext.java:94)AbstractRefreshableApplicationContext.java:89)AbstractApplicationContext.java:270)AbstractRefreshableWebApplicationContext.java:139)ContextLoader.java:252)ContextLoader.java:190)ContextLoaderListener.java:49)StandardContext.java:3763)StandardContext.java:4211)ContainerBase.java:1013)StandardHost.java:718)ContainerBase.java:1013)StandardEngine.java:442)StandardService.java:450)StandardServer.java:709)Catalina.java:551)Native Method)Bootstrap.java:294)Bootstrap.java:432)

 

thanks,

 

 

 

 

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

your problem is not with the

your problem is not with the axisConfig.xml but with your application context. This looks for your app context in WEB-INF/. Maybe your naming of that file isn't applicationcontext.xml . Refer the Spring documentation it will give you a more through idea about this. This is not an issue with WSF/Spring

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.