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 183488 - Sniffers with type [ejb] and type [appclient] should not claim the archive at the same time.
Summary: Sniffers with type [ejb] and type [appclient] should not claim the archive at...
Status: RESOLVED INVALID
Alias: None
Product: javaee
Classification: Unclassified
Component: EAR (show other bugs)
Version: 6.x
Hardware: PC Windows 7 x64
: P1 normal with 1 vote (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-05 14:20 UTC by northar
Modified: 2014-09-24 20:48 UTC (History)
1 user (show)

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 northar 2010-04-05 14:20:30 UTC
When following the guide for creating an application client in 6.8 latest patches
http://netbeans.org/kb/docs/javaee/entappclient.html

The part from "Calling the EJB from the Application Client"
won't work. Theres an error message."Sniffers with type [ejb] and type [appclient] should not claim the archive at the same time"

Could it be due to the issues described here , http://waltparkman.wikidot.com/jee6-cpt-6  IE Glassfish 3 gets confused. Verified on 2 pc's.

Let me know if you can't reproduce and i'll send over a testproject.
Comment 1 David Konecny 2010-04-07 02:03:22 UTC
Unfortunately the tutorial you are following targets GlassFish v2 (see tutorial abstract) and as you experienced yourself it does not run on GF v3.

In order to create EJB and call it from AppClient in GFv3 I would do roughly following (I assume these will be Java EE 6 projects):

1. create empty Java Classes Project AAA and add 'Java EE 6' library to its compilation classpath
2. create EAR project BBB with EJB project CCC
3. create an EJB in CCC project with remote interface
4. add AAA to the compilation classpath of CCC project
5. use Move refactoring to move remote interface class from CCC to AAA

6. create EAR project ZZZ with AppClient YYY
7. add AAA to the compilation classpath of CCC project
8. add "@EJB Bean30Remote bean;" to Main.java in YYY and call its methods as needed

Deploy BBB and run ZZZ.
Comment 2 David Konecny 2010-06-20 19:35:48 UTC
correction:
7. add AAA to the compilation classpath of YYY project
Comment 3 thufir 2014-09-23 23:27:42 UTC
the current requirements are:

Software or Resource	Version Required
NetBeans IDE	7.2, 7.3, 7.4, 8.0, Java EE version
Java Development Kit (JDK)	version 7 or 8
GlassFish Server Open Source Edition	3.x, 4.x


there seem to be multiple bugs, possibly, with this tutorial.  Does it target 2.x GF, or, as implied above, 3.x+?
Comment 4 David Konecny 2014-09-24 20:48:15 UTC
"Unfortunately the tutorial you are following targets GlassFish v2"

thufir, please do not reopen issues which were filed and closed several years ago for older releases of netbeans. File a new issue instead. Thanks.