I figured this out, my DD for persistence.xml was not named correctly.
I'm having this same problem. Can you elaborate on your solution? What do you mean by DD? Data Dictionary?
I am also experiencing this exact problem and have been searching for two days straight with no resolve. Please help!
I have troubles with Persistence unit too:
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- ObjectName: jboss.jca:service=DataSourceBinding,name=DefaultDS State: NOTYETINSTALLED Depends On Me: jboss.ejb:service=EJBTimerService,persistencePolicy=database jboss.mq:service=StateManager jboss.mq:service=PersistenceManager ObjectName: persistence.units:jar=ru.srpu.jtest.dao.jar,unitName=jtests State: FAILED Reason: org.hibernate.MappingException: Unable to find column with logical name: id in org.hibernate.mapping.Table(Test) and its related supertables and secondary tables I Depend On: jboss.jca:service=ManagedConnectionFactory,name=MySqlDS Depends On Me: jboss.j2ee:jar=ru.srpu.jtest.dao.jar,name=UserBean,service=EJB3
I had a similar problem. Make sure your datasource.xml file that defines your connection is in the server/default/deploy directory.
I found that if in my persistence.xml I had the jta-data-source set as java:/xyz then then in the datasource.xml the jndi-name needed to be just xyz on its own
When we apply tow injection on the same class in One web application like
1) EJB injection by @stateless
2) and Hibernet injection by @PersistenceContext
Its ok and working fine
but like this way if you have two project in jboss (C:\jboss-4.2.3.GA\server\default\deploy) and both the project have the Object have the above things
It gives message
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
Depends On Me:
My single web application is working but as soon I deploy the second web application it show me the error.
I think that when a global PersistCtx will also load both object (web app1 and web app2) now when web app2 is loaded EJB injection can't be apply and wail for release of MBEANS from hibernet.
My web app2 is a copy of we app1 but I seperate the context, database, hibernet perstence context name, mssqlApp1-ds.xml and mssqlApp2-ds.xml
I found no issue with the Object have only @PersistenceContext but not @stateless
or @stateless but not @PersistenceContext
Anyhow this is unsolved issue for me.