weblogic10.3 异常:org.hibernate.hql.ast.HqlToken

weblogic10.3 中部署java应用程序时报错

org.hibernate.QueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken

 

解决方法:

进入weblogic的安装目录,修改setDomainEnv.sh文件中的参数PRE_CLASSPATH(红色字体)

[root@localhost bin]# cd /bea/weblogic/user_projects/domains/mydomain/bin
[root@localhost bin]# ls
nodemanager  server_migration  service_migration  setDomainEnv.sh  startManagedWebLogic.sh  startWebLogic.sh  stopManagedWebLogic.sh  stopWebLogic.sh
[root@localhost bin]# vi setDomainEnv.sh

#!/bin/sh

PRE_CLASSPATH=/bea/user_projects/domains/mydomain/applications/appName/WEB-INF/lib/antlr-2.7.6rc1.jar:
export PRE_CLASSPATH
# WARNING: This file is created by the Configuration Wizard.
# Any changes to this script may be lost when adding extensions to this configuration.

# --- Start Functions ---

BP=100
SP=$BP

 

你可能感兴趣的:(weblogic10.3 异常:org.hibernate.hql.ast.HqlToken)