any expert can give me the help?
 
i installed struts 2, but when i re-start the tomcat, and get the following 
error message
 
You might need to add the following to web.xml:
    <listener>
        
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>
 
so, i did put above <listener>...</listener> into 
/usr/apache-tomcat-6.0.18/conf/web.xml, then restart tomcat, and get the 
following new error message:
 
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]
Caused by: java.io.FileNotFoundException: Could not open ServletContext 
resource [/WEB-INF/applicationContext.xml]
 
 
so, i did put above  <listener>...</listener> into 
/usr/apache-tomcat-6.0.18/webapps/tutorial/WEB_CONF/web.xml, and get new error 
messgae at following:
 
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]
Caused by: java.io.FileNotFoundException: Could not open ServletContext 
resource [/WEB-INF/applicationContext.xml]
 
tks in advance
 
john
 


      

Reply via email to