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.
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.
Created attachment 77360 [details] EJBModule project
Created attachment 77361 [details] DDL SQL Script
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>.