SSH项目从tomcat6迁移到weblogic11
?? 今天做了一次把STRUTS2 + HIBERNATE3.6+SPRING2.5项目从TOMCAT6.0迁移到WEBLOGIC11。在迁移过程中发现了一些错误,也解决了一些错误。记录如下:
? 1.ClassNotFoundException: org.hibernate.hql.ast.HqlToken? 异常:
???? 在hibernate下执行hql语句出现上述错误。
??? 解决方法:
??? 在hibernate.cfg.xml文件中配置如下属性即可:
???
<session-descriptor> <timeout-secs>3600</timeout-secs> <invalidation-interval-secs>60</invalidation-interval-secs> <cookie-name>ADMINCONSOLESESSION</cookie-name> <cookie-max-age-secs>-1</cookie-max-age-secs> <cookie-http-only>false</cookie-http-only> <url-rewriting-enabled>false</url-rewriting-enabled> </session-descriptor>
?