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 176742 - AppClient execution from IDE does not work
Summary: AppClient execution from IDE does not work
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: PC Linux
: P1 normal (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-12 20:30 UTC by David Konecny
Modified: 2009-11-18 08:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception (2.50 KB, text/plain)
2009-11-12 20:30 UTC, David Konecny
Details
test project (806.72 KB, application/x-gzip)
2009-11-12 20:36 UTC, David Konecny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Konecny 2009-11-12 20:30:00 UTC
Created attachment 90962 [details]
exception

Note: make sure you have NB building containing 90a104a53e7d as I tweaked there how appclient manifest looks like (issue 174708).

Vince, could you have a look please at attached project and tell me why I cannot deploy it from the IDE? If I take ear file and deploy it via GF admin console (glassfish-v3-b73-11_12 - make sure you have a build in which https://glassfish.dev.java.net/nonav/issues/show_bug.cgi?id=10458 is fixed) and then start AppClient via Java WebStart (javaws http://localhost:8080/LotteryAnnotation/LotteryAnnotation-app-client) everything runs OK. But if I try to run it from NB I get java.lang.NoClassDefFoundError error (see attachment). I tried to create simpler test case of EAR with EJB and AppClient where AppClient calls makes an EJB call and it was failing constantly for about hour and then suddenly it started to work even from NB. But attached LoterryAnnotation fails still constantly.

  Product Version         = NetBeans IDE Dev (Build 091113-4db9d29c0b2c) (#4db9d29c0b2c)
  Operating System        = Linux version 2.6.24-24-generic running on i386
  Java; VM; Vendor        = 1.6.0_16; Java HotSpot(TM) Client VM 14.2-b01; Sun Microsystems Inc.
  Runtime                 = Java(TM) SE Runtime Environment 1.6.0_16-b01
  Java Home               = /usr/lib/jvm/java-6-sun-1.6.0.16/jre
  System Locale; Encoding = en_NZ (nb); UTF-8
  Home Directory          = /home/david
Comment 1 David Konecny 2009-11-12 20:36:46 UTC
Created attachment 90963 [details]
test project
Comment 2 David Konecny 2009-11-12 20:38:34 UTC
I noticed just then that AppClient's manifest says:

Class-Path: JavaLibrary11.jar lib/JavaLibrary11.jar EjbInterface.jar lib/EjbInterface.jar 


instead of just 

Class-Path: lib/JavaLibrary11.jar lib/EjbInterface.jar 


But that should not prevent deployment.
Comment 3 Vince Kraemer 2009-11-12 21:59:31 UTC
I will look at it with tonight's gf v3 nightly.
Comment 4 Vince Kraemer 2009-11-12 22:06:11 UTC
The deployment is fine... it looks like you are running into https://glassfish.dev.java.net/issues/show_bug.cgi?id=10947.
Comment 5 Vince Kraemer 2009-11-12 22:10:06 UTC
corrected the summary
Comment 6 Vince Kraemer 2009-11-13 22:35:09 UTC
Tim Q checked in a fix for the server side of this issue...  will check the next nightly to see if we are all clear on this.
Comment 7 Vince Kraemer 2009-11-14 07:54:15 UTC
the next official nightly isn't likely to be before Monday... power shutdown at Sun campus
Comment 8 David Konecny 2009-11-15 12:36:35 UTC
Thanks Vince, the GF issue looks like what I was experiencing.
Comment 9 Vince Kraemer 2009-11-16 13:31:55 UTC
the gf issue was reopened, so it may be a bit longer before we 'know' if this is resolved by just the server change.
Comment 10 Vince Kraemer 2009-11-16 18:18:09 UTC
I just built the GF v3 trunk and was able to reproduce the issue... so we are not out of the woods yet.  I was not able to reproduce the GF issue, though... so it looks like we still have issues in the IDE that need to get resolved.
Comment 11 David Konecny 2009-11-17 13:43:38 UTC
AppClient deployment from IDE does not work - P1.
Comment 12 Vince Kraemer 2009-11-17 16:16:22 UTC
http://hg.netbeans.org/web-main/rev/7dbb9b4c6b81
Comment 13 David Konecny 2009-11-17 18:07:53 UTC
I reviewed and verified the fix.
Comment 14 Quality Engineering 2009-11-18 08:30:58 UTC
Integrated into 'main-golden', will be available in build *200911180645* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/7dbb9b4c6b81
User: vince kraemer <vkraemer@netbeans.org>
Log: #176742: client stub directory missing some jars that are not server generated