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 - [WSphere] Websphere 6.1 entity bean deployment
Summary: [WSphere] Websphere 6.1 entity bean deployment
Status: NEW
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WebSphere (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-25 14:37 UTC by naso
Modified: 2010-08-10 11:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
EJBModule project (56.51 KB, application/octet-stream)
2009-02-25 14:40 UTC, naso
Details
DDL SQL Script (1.11 KB, application/octet-stream)
2009-02-25 14:43 UTC, naso
Details

Note You need to log in before you can comment on or make changes to this bug.
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>.