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麻烦各位看一下,弄了一天也没搞好!
解决方案 »
- activemq以Topic发送消息,如何将消息定时删除(fileserver目录中的内容一并清除)?
- struts 中 servlet action is not available 如何解决
- 请问大侠们如何用JSP连动显示数据库的库名、表名、列名
- 有数据库的java程序怎么生成exe文件或安装文件???
- 下面HQL语言需要怎么写,,SQL这样写查询的结果是正确的
- 【hibernate】超级简单查询问题,解答立马给分!!!!!!!!
- Hibernate 在get之后会自动update?
- 哪位高手有JSP和Servlet发布到Weblogic的配置的文档,谢谢
- 不会下载!!!
- 在用javamail收邮件的时候,当附件大于40M的时候为什么不能读去后不能解析了呢?如何解决这个问题呢?
- 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>