"DeanoUK" wrote : Yeah I know it would but I can assure you it doesn't show
anything, I'll pm you a link to download it if u like.
|
| AuditSession bean injection:
| @PersistenceContext(unitName = "msp-par")
| private EntityManager entityManager;
|
|
This looks wrong. This EJB is in ejbcommon.jar where the persistence.xml (persistenceUnit)
lies in another jar. So this should look like
| @PersistenceContext(unitName = "ejbmsp.jar#msp-par")
| private EntityManager entityManager;
|
The logs that you uploaded too point the same:
anonymous wrote : [03 Apr 2008 16:26:08] INFO org.jboss.ejb3.JmxKernelAbstraction -
installing MBean:
jboss.j2ee:ear=eartricsi-1.0.ear,jar=ejbcommon-1.0-SNAPSHOT.jar,name=VehicleSession,service=EJB3
with dependencies:
| [03 Apr 2008 16:26:08] INFO org.jboss.ejb3.JmxKernelAbstraction -
persistence.units:unitName=msp-par
| [03 Apr 2008 16:26:08] INFO org.jboss.ejb3.EJB3Deployer - Deployed:
file:/C:/jboss-4.2.2.GA/server/default/tmp/deploy/tmp27049eartricsi-1.0.ear-contents/ejbcommon-1.0-SNAPSHOT.jar
| [03 Apr 2008 16:26:08] INFO org.jboss.ejb3.JmxKernelAbstraction - creating wrapper
delegate for: org.jboss.ejb3.entity.PersistenceUnitDeployment
| [03 Apr 2008 16:26:08] INFO org.jboss.ejb3.JmxKernelAbstraction - installing MBean:
persistence.units:ear=eartricsi-1.0.ear,jar=ejbtricsi-1.0-SNAPSHOT.jar,unitName=msp-par
with dependencies:
| [03 Apr 2008 16:26:08] INFO org.jboss.ejb3.JmxKernelAbstraction -
jboss.jca:name=maindatabase,service=DataSourceBinding
| [03 Apr 2008 16:26:08] INFO org.jboss.ejb3.entity.PersistenceUnitDeployment -
Starting persistence unit
persistence.units:ear=eartricsi-1.0.ear,jar=ejbtricsi-1.0-SNAPSHOT.jar,unitName=msp-par
|
As can be seen here, the persistence unit msp-par has been deployed successfully. The
reason why your beans are failing is because without the jar file name prefix, the
persistence unit will be searched for within the ejbcommon.jar.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141410#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...