当前位置: 代码迷 >> Web前端 >> 如分门别类
  详细解决方案

如分门别类

热度:143   发布时间:2012-09-07 10:38:15.0
如分类
org.springframework.beans.NotWritablePropertyException: Invalid property 'sessionFactory' of bean class [com.clear2pay.dao.impl.OrganizationDaoImpl]: Bean property 'sessionFactory' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

在dao中写出  sessionFactory的get和set方法
sessionFactory.getCurrentSessiion()
HibernateTemplate.getSessionFactory.getCurrentSession()


The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml...,解决办法  检查应用目录下WEB-INF的lib里是否有jstl.jar和standard.jar两个包(注意:两个包的版本要一致,这一点要注意,如jstl-1.1.2.jar和standard-1.0.6.jar不起效的),可以用winrar打开包查看META-INF下的MANIFEST.MF文件里Implementation-Version的值来看版本号,或者直接将tomcat应用目录下的examles里WEB-INF\lib下的两个标准库文件复制到项目的目录中。