使用SSH框架,出了很大的问题,不知道原因是什么,希望能跟我指出其中的错误:
下面是 LOG4J 的DEBUG信息2009-三月-24 734 DEBUG [http-8080-1](SessionFactoryUtils.java:316)-
Opening Hibernate Session
2009-三月-24 843 DEBUG [http-8080-1](SessionImpl.java:220)-
opened session at timestamp: 12378576157
2009-三月-24 859 DEBUG [http-8080-1](QueryPlanCache.java:70)-
unable to locate HQL query plan in cache; generating (from student as s where s.userName=?)
2009-三月-24 875 DEBUG [http-8080-1](QueryTranslatorImpl.java:214)-
compiling query
2009-三月-24 921 DEBUG [http-8080-1](SessionFactoryUtils.java:772)-
Closing Hibernate Session
2009-三月-24 921 DEBUG [http-8080-1](SessionImpl.java:273)-
closing session
2009-三月-24 921 DEBUG [http-8080-1](ConnectionManager.java:375)-
connection already null in cleanup : no action
2009-三月-24 921 DEBUG [http-8080-1](StudentDAOImpl.java:35)-
org.springframework.orm.hibernate3.HibernateQueryException: unexpected token: as [from student as s where s.userName=?]; nested exception is org.hibernate.QueryException: unexpected token: as [from student as s where s.userName=?]
判断用户存在异常====验证用户是否存在--unexpected token: as [from student as s where s.userName=?]; nested exception is org.hibernate.QueryException: unexpected token: as [from student as s where s.userName=?]
2009-三月-24 937 DEBUG [http-8080-1](ActionCommandBase.java:49)-
Executing org.apache.struts.chain.commands.ExecuteForwardCommand
2009-三月-24 937 DEBUG [http-8080-1](ActionCommandBase.java:49)-
Executing org.apache.struts.chain.commands.servlet.PerformForward
2009-三月-24 937 DEBUG [http-8080-1](PerformForward.java:122)-
Redirecting to /dlw/util/sysmessage.jsp
2009-三月-24 953 DEBUG [http-8080-2](PropertyMessageResources.java:181)-
Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
2009-三月-24 968  INFO [http-8080-2](PropertyMessageResources.java:209)-
Operating in Default mode [null]
2009-三月-24 968 DEBUG [http-8080-2](PropertyMessageResources.java:181)-
Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
2009-三月-24 968  INFO [http-8080-2](PropertyMessageResources.java:209)-
Operating in Default mode [null]希望能给我指出原因,最后能说出解决办法