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 77249 - ejb-ref element makes app. client impossible to deploy
Summary: ejb-ref element makes app. client impossible to deploy
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ pcw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-01 18:21 UTC by _ gsporar
Modified: 2006-06-05 07:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gsporar 2006-06-01 18:21:14 UTC
NetBeans 5.5 beta with Enterprise Pack on JDK5u5/WinXP.

Create an EE 5 Enterprise Application.  Select the "Create EJB Module" and
"Create Application Client Module" checkboxes.  Un-check the web module option.

Create a stateless session bean with a remote interface in the EJB Module.  Then
create a simple "hello" method that takes a string as a parameter and returns a
string as the result.

In the Main.java file of the app. client module right-click and choose
Enterprise Resources > Call Enterprise Bean.  Select the stateless session bean
that you just created over in the EJB module.  The following gets put into the
sun-application-client.xml file:

<ejb-ref>
    <ejb-ref-name>helloWorldServiceBean</ejb-ref-name>
    <jndi-name>ejb/helloWorldServiceBean</jndi-name>
  </ejb-ref>
  

With that entry, the application will not run.  If I take it out, the
application runs just fine.
Comment 1 _ ludo 2006-06-01 23:51:06 UTC
Not sure, but maybe fixed post beta.. Will verify.
Can you move to nightly builds?
Comment 2 _ pcw 2006-06-05 07:43:48 UTC
This behavior probably exists in beta, but it was fixed in daily builds a while
ago by the following patch.

revision 1.1.16.4.2.4
date: 2006/05/09 00:47:14;  author: pcw;  state: Exp;  lines: +9 -1
Automatic JNDI names for ejb-ref and resource-ref elements are now optional for
JavaEE5

http://serverplugins.netbeans.org/source/browse/serverplugins/sun/sunddui/src/org/netbeans/modules/j2ee/sun/share/configbean/Base.java?r1=1.1.16.4.2.3&r2=1.1.16.4.2.4
Comment 3 _ pcw 2006-06-05 07:44:11 UTC
Closing as fixed.