[seam-dev] Seam 2.1.0 Example rundown on AS 5

Jay Balunas jbalunas at redhat.com
Mon Oct 20 15:57:53 EDT 2008


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"/>

  



More information about the seam-dev mailing list