javax.servlet.ServletException: Error creating bean with name '/login' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Error setting property values; nested exception is PropertyAccessExceptionsException (1 errors)
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
------------------------------------------------------------------------
问题解决了, 是LoginAction里面NrSysUserTabDAO对应import的包是hibernate.bean;
但是我是用springdao管理的action,对应改为hibernate.dao.*即可。
-----------------------------------------------------------------------
Listener启动失败
web.xml中,绿色部分,对应改为红色的代码即可
contextConfigLocation
/WEB-INF/applicationContext.xml
contextLoader
org.springframework.web.context.ContextLoaderServlet
0
阅读(546) | 评论(0) | 转发(0) |