2009-04-21 16:02:54,843 ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'adminManager' defined in file [C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ssh_hospital\WEB-INF\classes\applicationContext-beans.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ssh_hospital\WEB-INF\classes\applicationContext-common.xml]: Invocation of init method failed; nested exception is org.hibernate.PropertyNotFoundException: Could not find a getter for appiontments in class org.niat.hospital.web.bean.Doctor
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ssh_hospital\WEB-INF\classes\applicationContext-common.xml]: Invocation of init method failed; nested exception is org.hibernate.PropertyNotFoundException: Could not find a getter for appiontments in class org.niat.hospital.web.bean.Doctor麻烦各位看一下,弄了一天也没搞好!
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'adminManager' defined in file [C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ssh_hospital\WEB-INF\classes\applicationContext-beans.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ssh_hospital\WEB-INF\classes\applicationContext-common.xml]: Invocation of init method failed; nested exception is org.hibernate.PropertyNotFoundException: Could not find a getter for appiontments in class org.niat.hospital.web.bean.Doctor
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ssh_hospital\WEB-INF\classes\applicationContext-common.xml]: Invocation of init method failed; nested exception is org.hibernate.PropertyNotFoundException: Could not find a getter for appiontments in class org.niat.hospital.web.bean.Doctor麻烦各位看一下,弄了一天也没搞好!
解决方案 »
- 在tomcat中成功发布webservice服务 怎么使用
- 在编译器外部将包导入lib目录出错的问题???
- form 里面的 file
- wade
- Spring配置文件中加入Hibernate映射文件时出现异常.
- 在JSF中自定义了一个验证器,引用后提示500错误,为什么啊?
- 关于spring泛型的自动注入问题
- 写java程序用adm和cpu好还是用inter的好?????
- rmi在本机上和两台机子上运行需要什么大的改变吗(100分)
- JavaMail问题
- java测试工具?
- struts validation.xml中其他验证方法都可以,就是mask无效啊,换了好多正则表达式尝试,也没效果啊。我用的是struts1.1 跟版本有关系吗
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <servlet> <servlet-name>action</servlet-name> <servlet-class> org.apache.struts.action.ActionServlet </servlet-class> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-config.xml</param-value> </init-param> <init-param> <param-name>debug</param-name> <param-value>2</param-value> </init-param> <init-param> <param-name>detail</param-name> <param-value>2</param-value> </init-param> <load-on-startup>2</load-on-startup> </servlet> <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping> <!--Spring 配置 --> <context-param> <param-name>contextConfigLocation</param-name> <param-value>
/WEB-INF/applicationContext-*.xml,classpath*:applicationContext-*.xml </param-value> </context-param> <listener> <listener-class> org.springframework.web.context.ContextLoaderListener </listener-class> </listener> <!-- Hibernate 配置 --> <filter> <filter-name>hibernateFilter</filter-name> <filter-class>
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter </filter-class> </filter> <filter-mapping> <filter-name>hibernateFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <!-- Character Encoding 配置 --> <filter> <filter-name>Spring character encoding filter</filter-name> <filter-class> org.springframework.web.filter.CharacterEncodingFilter </filter-class> <init-param> <param-name>encoding</param-name> <param-value>GBK</param-value> </init-param> </filter> <filter-mapping> <filter-name>Spring character encoding filter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <!-- 工程启动后的首页 -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>