Should any of these JBSEAM issues be linked (or are already linked) to
an EJBTHREE ticket?
S,
ALR
Jay Balunas wrote:
Seam 2.1.0.GA examples on AS 5
------------------------------
Below is a listing of the Seam examples and how they work with AS 5. Some
will work fine with AS 5 CR2, others require the latest trunk build (until GA
is released).
Some will only work if the workaround described at the bottom of the page is
followed. The effected examples are noted below.
AS 5 CR2 +
------------
- booking
- drools
- excel
- icefaces
- itext
- JBSEAM-3593 minor issue
- JBSEAM-3472 swing doc error
- JBSEAM-3470 jchart html page errors
- mail
- messages
- numberguess
- nestedbooking
- registration
- remoting/gwt
- remoting/helloworld
- remoting/progressbar
- todo
- rss
- wicket
- JBAS-6117 - example functions, but errors on undeploy
-
AS 5 CR2 + with workaround
---------------------
- contactlist
- dvdstore
- quartz
- seampay
- ui
AS 5 trunk
----------
- remoting/chatroom
Examples that do not fuction on AS 5
-------------------------------------
- blog
- JBSEAM-3586 caching error
- groovybooking
- JBSEAM-3579
- hibernate
- failed with trunk
- JBAS-6076, JBAS-6107
- jpa
- failed with trunk
- JBAS-6076, JBAS-6107
- seambay
- even with work around shows error (full error available if needed)
- SQLException: You cannot set autocommit during a managed transaction!
- seamdiscs - test with CR2
- JBSEAM-3586 caching error
- see seam r9361 - cache option can be removed
- even with work around shows error (full error available if needed)
- org.hibernate.hql.ast.QuerySyntaxException: Artist is not mapped [select artist
from Artist artist order by artist.name]
- seamspace
- JBSEAM-3589
- JBSEAM-3588
- spring
- JBSEAM-3587
--------------------------------
Workaround:
--------------------------------
Add the following to your components.xml file, and replace "myPersistenceUnit"
with your real entry.
persistence:entity-manager-factory name="myPersistenceUnit"/>
<persistence:managed-persistence-context name="entityManager"
auto-create="true" entity-manager-factory="#{myPersistenceUnit}"/>
You may also need to add the following to your persistence.xml file if it is not there:
<property name="hibernate.transaction.manager_lookup_class"
value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
--
Andrew Lee Rubinger
Sr. Software Engineer
JBoss EJB3
JBoss, a division of Red Hat, Inc.
http://www.jboss.org/jbossejb3/
http://exitcondition.alrubinger.com