[jboss-jira] [JBoss JIRA] (AS7-6260) EJB 2.x Entity Bean Audit Field Deployment Issue

Cory Dahlstrom (JIRA) jira-events at lists.jboss.org
Thu Jan 3 14:39:08 EST 2013


    [ https://issues.jboss.org/browse/AS7-6260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12743433#comment-12743433 ] 

Cory Dahlstrom commented on AS7-6260:
-------------------------------------

I ended up patching 2 classes in JBoss 7.1.1 Final to get this working ( JDBCAbstractCreateCommand & JDBCAuditMetaData ).

Cory.
                
> EJB 2.x Entity Bean Audit Field Deployment Issue
> ------------------------------------------------
>
>                 Key: AS7-6260
>                 URL: https://issues.jboss.org/browse/AS7-6260
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: EJB
>    Affects Versions: 7.1.1.Final
>            Reporter: Cory Dahlstrom
>            Assignee: jaikiran pai
>              Labels: new_and_noteworthy
>
> Upon deployment of an EJB 2 entity bean that has <audit> tags specified in the jbosscmp-jdbc.xml file you will get this exception:
> Caused by: java.lang.RuntimeException: JBAS010732: Couldn't create entity command
> 	at org.jboss.as.cmp.jdbc.JDBCCommandFactory.createCreateEntityCommand(JDBCCommandFactory.java:132)
> 	at org.jboss.as.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:215)
> 	at org.jboss.as.cmp.jdbc.JdbcStoreManagerStartService.start(JdbcStoreManagerStartService.java:44)
> 	... 5 more
> Caused by: java.lang.RuntimeException: JBAS010726: No security-domain configured but created-by specified
> 	at org.jboss.as.cmp.jdbc.JDBCAbstractCreateCommand.initGeneratedFields(JDBCAbstractCreateCommand.java:148)
> 	at org.jboss.as.cmp.jdbc.JDBCAbstractCreateCommand.init(JDBCAbstractCreateCommand.java:87)
> 	at org.jboss.as.cmp.jdbc.JDBCInsertPKCreateCommand.init(JDBCInsertPKCreateCommand.java:43)
> 	at org.jboss.as.cmp.jdbc.JDBCCommandFactory.createCreateEntityCommand(JDBCCommandFactory.java:130)
> 	... 7 more
> In looking at the source code where the error occurs in org.jboss.as.cmp.jdbc.JDBCAbstractCreateCommand, the securityManager is not being initialized in the init() method as it is in other version of JBoss.  This causes an exception to be thrown from the initGeneratedFields() method.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list