I'm trying to deploy an existing weblogic 6.1 on JBoss 4.0.3 with an Oracle Database 8.
There are some CMP 2.0 for which I configured the auto-increment data in my jbosscmp-jdbc.xml. It wasworking fine but then I was getting another issue with relationship at insert time, because it was said to be null. So I put true to <insert-after-ejb-post-create> in the standardjboss.xml. Now that both solutions are applied, the primary key of my entity doesn't seem to come from the auto-increment anymore because I'm getting the following exception on each insert:
javax.ejb.CreateException: Primary key for created instance is null.
Here's the values I have defined:
<container-name>Standard CMP EntityBean</container-name>
<entity-command name="oracle-sequence" class="org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCOracleCreateCommand">
Anyone has any ideas why this is happening?