seam2问题汇总

EntityMaganer 注入失效
http://www.javaeye.com/topic/88345

2.jboss链接数的问题
INFO [CachedConnectionManager] Closing a connection for you. Please close them yourself: org.jboss.resource.adapter.jdbc.jdk6.WrappedConnectionJDK6@1c0f6d9
java.lang.Throwable: STACKTRACE
http://xumiao.javaeye.com/blog/488000

http://forums.sun.com/thread.jspa?threadID=737400

http://issues.liferay.com/browse/LPS-405

3.
14:39:32,448 ERROR [SchemaUpdate] could not complete schema update
java.sql.SQLException: You cannot set autocommit during a managed transaction!

<property name=”hibernate.hbm2ddl.auto” value=”update” />作怪
如果没有此方面的需求建议set value=”none”.

其它几个参数的意思:

validate 加载hibernate时,验证创建数据库表结构

create 每次加载hibernate,重新创建数据库表结构
create-drop 加载hibernate时创建,退出是删除表结构
update 加载hibernate自动更新数据库结构

4.Caused by: javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57fe0b:b20:4c08b00e:64 status: ActionStatus.ABORT_ONLY >

部分代码有异常未被捕获,导致程序出错
It turned out that this is not a hibernate or jboss exception at all. The actual cause of this was a NullPointerException somewhere in the flow of the application. This caused the transaction to end and re-enter a loop when the transaction was not active and this was thrown. So if you ever get this exception I suggest you put some break points in your code and see where it fails. It’s likely that there is an unchecked exception thrown somewhere in your programme.

5.Unable to query database - QuerySyntaxException: (object) is not mapped
used the fully qualified name/使用完整的类名:com.XX.entity.类

6.javax.ejb.EJBException: java.lang.IllegalArgumentException: Unknown entity
在persistence.xml 文件加入类全路径<class>org.domain.ctiproxy.entity.ContactosUteis</class>
http://seamframework.org/Community/JavalangIllegalArgumentExceptionUnknownEntity

7.javax.persistence.TransactionRequiredException: no transaction is in progress