Mantis - Resin
Viewing Issue Advanced Details
2282 minor always 01-02-08 10:24 01-02-08 10:33
nam  
ferg  
normal  
closed  
fixed  
none    
none 3.1.5  
0002282: compliance.bean.ComplianceEntityManager.em: 'compliance' is an unknown @PersistenceContext
(rep by A. Jackson)

I was testing a new snapshot [resin-pro-3.1.4a] and suddenly got an error while accessing an EJB3.0 app. I only got this error when I updated Resin.

WEB-INF/web.xml:16: r.compliance.bean.ComplianceEntityManager.em: 'compliance' is an unknown @PersistenceContext.

----WEB.XML--
<ejb-server jndi-local-prefix="java:comp/env/ejb" data-source="jdbc/compliance"> <!--This is line 16 -
    <bean type="r.compliance.bean.orderresponse.ORHelperBean"/>
    <bean type="r.compliance.bean.asn.ASNHelperBean"/>
    <bean type="r.compliance.bean.ocasn.OCASNHelperBean"/>
    <bean type="r.compliance.bean.ComplianceManagerBean"/>
    <bean type="r.compliance.bean.asnontime.ASNOnTimeHelperBean"/>
 </ejb-server>

----PERSISTENCE.XML
      <persistence-unit name="compliance">
      <jta-data-source>jdbc/compliance</jta-data-source>
      <class>r.compliance.core.orderresponse.ORCompliance</class>
      <class>r.compliance.core.orderresponse.ORDetails</class>
      <class>r.compliance.core.asn.ASNCompliance</class>
      <class>r.compliance.core.asn.ASNDetails</class>
      <class>r.compliance.core.ocasn.OCASNCompliance</class>
      <class>r.compliance.core.ocasn.OCASNDetails</class>
      <class>r.compliance.core.asnontime.ASNOnTimeDetails</class>
      <class>r.compliance.core.asnontime.ASNOnTimeCompliance</class>
      <class>rubbernetwork.compliance.core.ComplianceChange</class>
      <exclude-unlisted-classes/>
      </persistence-unit>

Notes
(0002608)
ferg   
01-02-08 10:33   
ejb/0j50