struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john lee <sh_thorn_b...@yahoo.com>
Subject configure struts 2
Date Tue, 07 Apr 2009 04:37:28 GMT
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
 


      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message