SSH
司马他
这个作者很懒,什么都没留下…
展开
-
Exception: No CurrentSessionContext configured!
Exception: No CurrentSessionContext configured! [code="java"]org.hibernate.HibernateException: No CurrentSessionContext configured! at org.hibernate.impl.SessionFactoryImpl.getCurrentSessi...2012-05-26 19:34:00 · 96 阅读 · 0 评论 -
转帖Hibernate 常见异常
Hibernate 常见异常net.sf.hibernate.MappingException 当出现net.sf.hibernate.MappingException: Error reading resource:…异常时一般是因为映射文件出现错误。 当出现net.sf.hibernate.MappingException: Resource: … not found...原创 2012-05-27 09:23:37 · 109 阅读 · 0 评论 -
转-could not initialize a collection
其实并不是本身JDBC驱动不好.问题是MS的JDBC驱动(也就是3个JAR包)不支持二次查询导致的. 而用过Hibernate的人都知道,在用*.hbm.xml文件中通常用Set的时候需要采用延时的检索机制来减少不必要的开销.当如果我们需要采取立即检索的时候,通常是在代码中调用Hibernate.initialize()方法,而不是将lasy改为fals...原创 2012-05-27 11:05:12 · 249 阅读 · 0 评论 -
警告: No configuration found for the specified action: 'hello' in namespace: ''. F
转帖: 在s:form里加上你的namespace即可. 如 <s:form namespace="/你的namespace" action="module"> ... </s:form> struts.xml <package name="struts2" namespace="/page" extends="struts-原创 2012-05-28 00:01:58 · 111 阅读 · 0 评论 -
Exception starting filter struts2 java.lang.ClassNotFoundException: org.apache.
[code="java"]org.apache.catalina.core.StandardContext filterStart 严重: Exception starting filter struts2 java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExec...原创 2012-05-29 14:18:25 · 209 阅读 · 0 评论 -
IOException while loading persisted sessions: java.io.WriteAbortedException: wr
[code="java"] IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.ancong.entity.Phone java.io.WriteAbortedException: wr...原创 2012-05-29 17:11:41 · 105 阅读 · 0 评论