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 109246 - Problem with calling ejb
Summary: Problem with calling ejb
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P2 blocker (vote)
Assignee: _ pcw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-10 15:00 UTC by Michal Mocnak
Modified: 2007-09-04 15:01 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
server log (7.59 KB, text/plain)
2007-07-10 15:00 UTC, Michal Mocnak
Details
the resulting ear file (13.63 KB, application/octet-stream)
2007-07-12 19:18 UTC, Vince Kraemer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Mocnak 2007-07-10 15:00:19 UTC
Found in nb60 dev 20070710 in glassfish v2 b54

Create an ear (java ee 1.4) with ejb and web modules. Create a remote session bean. Create a servlet. Call remote
session bean from servlet. Deploy it and run.

Session bean cannot be found. Server log is attached.
Comment 1 Michal Mocnak 2007-07-10 15:00:37 UTC
Created attachment 44883 [details]
server log
Comment 2 Vince Kraemer 2007-07-12 19:16:22 UTC
The sun-ejb-jar.xml file doesn't have an entry for the jndi name...
Comment 3 Vince Kraemer 2007-07-12 19:18:13 UTC
Created attachment 45035 [details]
the resulting ear file
Comment 4 _ pcw 2007-07-18 00:08:51 UTC
Need to assign default JNDI names for ejb's in J2EE 1.4.  Hadn't been implemented yet (was on my list though).  We also
need same for some other fields, to be enumerated here when I fix this.
Comment 5 _ pcw 2007-08-19 20:35:27 UTC
I have the fix for this specific problem.  I am cleaning it up some and testing against the other required fields.
Comment 6 _ pcw 2007-08-25 05:36:43 UTC
Fixed.

New remote session or remote entity beans in J2EE 1.4 should get the default JNDI name "ejb/[ejbname]".

Note: Existing broken projects will not be "automatically fixed".  But future adjustments to the standard descriptor
(such as deleting or adding remote interface support or new beans) should resolve correctly.
Comment 7 Radim Roska 2007-09-04 15:01:12 UTC
VERIFIED