Freitag, 18. Juni 2010

JBoss Tools and JBoss AS 5

Well, for some reason the JBoss Tools Team refuses to add easy Seam support for JBoss 5.

If you create a new Seam war project with JBoss 5, you get many weird errors.

Some suggest to add all entities to persistence.xml....

But the real soultion is this:

add the following line to persistence.xml:
<property name="" value="java:/myEntityManagerFactory">

remove the following lines in components.xml:

<persistence:entity-manager-factory name="entityManagerFactory"

<persistence:managed-persistence-context name="entityManager" auto-create="true"

add the following line:

<persistence:managed-persistence-context name="entityManager" auto-create="true"

Also hot depoly doesn't work anymore with JBoss 5 AS if you start it normally.
Try to start JBoss AS 5 in debug mode, then hot deploy should work again.
Don't know why though...

Happy Coding all !

Keine Kommentare: