tomcat下都正常,换到weblogic 10 下
报错:org.springframework.orm.hibernate3.HibernateQueryException: ClassNotFoundException: org.hibernate.hql.ast.HqlToken
一、找到它:startWebLogic.cmd
C:/bea/user_projects/domains/digyso_domain/bin/startWebLogic.cmd
二、在set CLASSPATH=%SAVE_CLASSPATH%前面加上
set PRE_CLASSPATH=%WL_HOME%/server/lib/antlr-2.7.6rc1.jar;
三、在set CLASSPATH=%SAVE_CLASSPATH%后面加上
set CLASSPATH=%PRE_CLASSPATH%;%CLASSPATH%
四、把antlr-2.7.6rc1.jar拷到
C:/bea/wlserver_10.0/server/lib下
===============================
Compilation of JSP File '/jtlc/mntz/singleincome.jsp' failed:
singleincome.jsp:363:138: Syntax error in expression. Encountered ":singleIncomeForm". Expected one of : ".", "[", ":", ">", "gt", "<", "lt", ">=", "ge", "<=", "le", "==", "eq", "!=", "ne", "&&", "and", "||", "or", "*", "+", "-", "/", "div", "%", "mod",
<td><input name="buyRate" id="buyRate" type="text" value="${singleIncomeForm.buyRate==0?'0.6':singleIncomeForm.buyRate}" size="20" />%</td>
加上括号就好了
value="${singleIncomeForm.buyRate==0?'0.6':(singleIncomeForm.buyRate)}"
tomcat下可以不加括号
=================================
BTW:在WEB-INF下加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>
<context-root>/51fund</context-root>
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
这个写不写都行,true也行,false也行。如果报错就改成false。
http://www.diybl.com/course/4_webprogram/jsp/jsp_js/2008825/137387.html