I figured it out.
I should have read the hibernate-documentation more closely.
The Hibernate HiLo-generator is not compatible with JTA, since it uses a separate "non-rollback'able" connection for updating a special hilo-table when generating a new key. (I thougth it used the same connection)
So. I changed to using sequence instead of hilo, and now it works like a charm...