This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 159149

Summary: [WSphere] Websphere 6.1 entity bean deployment
Product: serverplugins Reporter: naso <naso>
Component: WebSphereAssignee: Petr Hejl <phejl>
Status: NEW ---    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: EJBModule project
DDL SQL Script

Description naso 2009-02-25 14:37:30 UTC
Error when trying do deploy an EJBModule containing Entity beans on a Wesphere 6.1 application server.

Error text is:
ADMA0014E: Validation failed. ADMA0004E: A Validation error occurred in task Specifying the default data source for EJB
1.x modules. The Java Naming and Directory Interface (JNDI) name is not specified for module EJBModule1 with URI
EJBModule1.jar,META-INF/ejb-jar.xml. The data source must be specified for each container-managed persistence (CMP) bean
that belongs to this module.
Comment 1 naso 2009-02-25 14:40:13 UTC
Created attachment 77360 [details]
EJBModule project
Comment 2 naso 2009-02-25 14:43:39 UTC
Created attachment 77361 [details]
DDL SQL Script
Comment 3 naso 2009-02-27 10:59:11 UTC
I found out what the problem was. The generated ejb-jar.xml does not specify cmp version. Websphere defaults to 1.x.
Each entity bean in the ejb-jar.xml must be marked with
<cmp-version>2.x</cmp-version>.