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 178759 - Default Enterprise Application Client will not run
Summary: Default Enterprise Application Client will not run
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: App Client (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal with 2 votes (vote)
Assignee: David Konecny
URL:
Keywords:
: 179845 183190 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-12-16 17:45 UTC by dbritton
Modified: 2014-09-25 21:18 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: DEFECT


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dbritton 2009-12-16 17:45:36 UTC
A default enterprise application with an enterprise application client fails to run the application client.

The default enterprise application will install on glassfish v3 and display the index page (Hello World!).  But if you try and run the app-client the following error is produced.

org.glassfish.appclient.client.acc.UserError: ACC007: The app client directory C:\u\WebSpun\src\java\netbeans\JWSv3\JWSv3-app-client does not contain a manifest; the app client container cannot process it.
Java Result: 1
Comment 1 dbritton 2009-12-17 06:16:27 UTC
I installed netbeans 6.8 on a laptop and I can run the app-client of an enterprise application from a fresh project.  I rebooted the server with the original problem, created additional "new" enterprise applications with an app-client and get the same error.
Comment 2 dbritton 2009-12-17 06:43:33 UTC
Okay, so MAYBE with sges v3 you cannot simply run an Enterprise Application Client without an ACC.  I tried to start up the app via Java Web Start.

I get the error, "Unable to launch application".  
The java console shows
### Java Web Start Error:
#### Unable to load resource: http://localhost:10050/__JWSappclient/__system/__dyn/__system.jnlp.
Comment 3 dbritton 2009-12-17 06:51:19 UTC
I created an Enterprise Application Client Project.  If I try and run the Main.java (left click run), I get the same error as reproted.  Note: under 
sges v2.1 that would work.  If I run the "Application Client Project", I do 
get the main to run.

Hmmmm.
Comment 4 David Konecny 2009-12-21 13:48:32 UTC
(In reply to comment #3)
> I created an Enterprise Application Client Project.  If I try and run the
> Main.java (left click run), I get the same error as reproted.  Note: under 
> sges v2.1 that would work.  If I run the "Application Client Project", I do 
> get the main to run.

Vince, appclient deployment changed for v3 and so my first guess is that running main class was not updated? Pass the issue back to me if it is not deployment problem. Thanks.

Lowering priority to P2 as there is workaround available.
Comment 5 Vince Kraemer 2010-02-04 12:00:33 UTC
This is coming back at you...

The thing that changed in app clients was how the client is executed.  It looks like 'run-single' has always been wrong and not due to the AS.

Here is the test that I did...

registered a v3 server.
create an app client project that targets that server.
run the project
   the server starts. the app appears to run..
undeploy the project.
stop the server
run the main file.
   the server does not start.  The project does not deploy. running the project fails.

One thing I noticed...
The run target does not look like it EVER used the carproject:java task... which is what is being used by 'run-single'.
Comment 6 David Konecny 2010-02-04 13:45:33 UTC
*** Bug 179845 has been marked as a duplicate of this bug. ***
Comment 7 David Konecny 2010-02-04 17:35:55 UTC
Vince,

Re. - "The thing that changed in app clients was how the client is executed" - and that's exactly what this problem is about no? In d30ed5212d39 and 19132b288e45 you fixed project execution and similarly need to be changed other actions. Right now Project Debug and Run Single File both fail with "org.glassfish.appclient.client.acc.UserError: ACC007". Debug Single File fails with yet different error - should be adjusted to match execution of Single File once that one was fixed. I have not tried Run Test or Debug Test but these should just run unit tests against tested class and should not require EE environment (is it true?).
Comment 8 Vince Kraemer 2010-02-04 18:13:41 UTC
Yes.  I did not make changes that would correct functionality which was broken before I came on the scene.
Comment 9 David Konecny 2010-03-30 18:40:10 UTC
*** Bug 183190 has been marked as a duplicate of this bug. ***
Comment 10 David Konecny 2010-05-06 21:37:44 UTC
The original problem reported by dbritton:
> A default enterprise application with an enterprise application client fails 
> to run the application client.
was fixed as issue 164776.

The problem reported by Vince:
> registered a v3 server.
> create an app client project that targets that server.
> run the project
>    the server starts. the app appears to run..
> undeploy the project.
> stop the server
> run the main file.
>    the server does not start.  The project does not deploy. running the project
> fails.
has never ever worked and I'm trying to figure out what to do about it.

Because main problem was resolved in issue 164776 I'm lowering priority of this issue.
Comment 11 David Konecny 2010-08-09 01:34:31 UTC
This should work in 6.10 Milestone1. Was fixed while implementing issue 171153.
Comment 12 David Konecny 2014-09-25 21:18:38 UTC
thufir, as I asked you in other issue: could you please stop reopening old issues? Just file a new one for current NB release with a description of what's wrong.