现在的位置: 首页 > 综合 > 正文

org.springframework.orm.hibernate3.HibernateQueryException: ClassNotFoundException:

2014年01月15日 ⁄ 综合 ⁄ 共 581字 ⁄ 字号 评论关闭

Stacktraces

org.springframework.orm.hibernate3.HibernateQueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken [from oa.domain.User where username=? and password=?]; nested exception is org.hibernate.QueryException:



在用户工程代码web-inf下建立xml文件:weblogic.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" "http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">
<weblogic-web-app>   
    <container-descriptor>
        <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
</weblogic-web-app>

抱歉!评论已关闭.