错误如下:
Caused by: org.hibernate.QueryException: ClassNotFoundException: org.hibernate.h
ql.ast.HqlToken [FROM com.mtm.nhis.system.po.User WHERE isDeleted='0' AND keyTyp
e='3' And passWord = ? AND supervisorsNumber = ?]
我希望用 hibernate3的批量更新删除的操作。故在applicationContext.xml里配置了
<prop key="hibernate.query.factory_class">org.hibernate.hql.ast.ASTQueryTranslatorFactory</prop>
也将antlr-2.7.5H3.jar copy 到 \opt\bea\wlserver_10.3\server\lib并且 startWeblogic.cmd 里修改如下
set PRE_CLASSPATH=\opt\bea\wlserver_10.3\server\lib\antlr-2.7.5H3.jar;
set DOMAIN_HOME=opt\bea\wlserver_10.3\samples\domains\wl_server
set CLASSPATH=%PRE_CLASSPATH%;%CLASSPATH%
但是 还是报错 classnotfound 错。说明始终没有加载上类库 。高手帮忙
------解决方案--------------------------------------------------------
在classpath上加一下,这样启动时就会自动加载