struts+spring+hibernate搞了一天,总是有Servlet action is not available异常,高手指教一下

一开始我先是struts1.1 + spring1.2.6,没有问题,一切正常
后来我加上hibernate3,改动applicationContext.xml后,编译是总是产生The requested resource (Servlet action is not available) is not available.异常,高手帮我看一下有什么问题

struts-config.xml:










applicationContext.xml:









oracle.jdbc.driver.OracleDriver


jdbc:oracle:thin:@10.10.10.112:1521:orcl


trms


trmswaygoing










com/ssh/pro/dto/Manageinfo.hbm.xml




org.hibernate.dialect.OracleDialect
true

























PROPAGATION_REQUIRED
PROPAGATION_REQUIRED,readOnly
PROPAGATION_REQUIRED,readOnly



DAO:
import java.util.List;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

public class ManageinfoDAO extends HibernateDaoSupport{

private static String hql = "from Manageinfo m where m.username=? ";

public boolean isValidUser(String username, String password) {

List userList = this.getHibernateTemplate().find(hql, username);

if (userList.size() > 0) {

return true;

}

return false;

}

}

我也遇到这个问题,很郁闷
>The requested resource (Servlet action is not available) is not available

这些都是struts或Spring基本配置出现问题,struts配置在web.xml中检查一下,Spring的配置也是web.xml,确认没有问题

出现这样的原因 首先 1.、web.xml文件中未配置ActionServlet。

2、struts-config.xml文件未配置你要访问的Action。

3、你的jsp文件form标记中action属性的路径名称错误。
检查

1、在web.xml文件中加上ActionServlet的配置信息


action
org.apache.struts.action.ActionServlet

config
/WEB-INF/struts-config.xml


debug
0


detail
0

2


2、在struts-config.xml文件检查你要访问的Action配置文件。

3、检查jsp文件form标记中action属性的路径名称是否与struts-config.xml文件中action标记的path属性的路径名称一致。

4、非以上情况的解决办法就是检查web容器的log日志,如果时tomcat则检查下logs目录下的localhost_log文件,看里边是否记录有错误信息,然后根据错误信息提示将其纠正。

除了以上的 :
也有可能是找不到spring.jar包 。建议重新导入