users@glassfish.java.net

[Bug] Re: Netbeans Platform 6.8 on top of GFv3 enterprise application client no way!

From: Xavier Callejas <xavier_at_wflogistics.com>
Date: Tue, 9 Feb 2010 10:27:43 -0600

Hi,

Can someone please advice about this.

Here are related bug reports:

Glassfish:
https://glassfish.dev.java.net/issues/show_bug.cgi?id=6655

Netbeans Platform:
https://netbeans.org/bugzilla/show_bug.cgi?id=125107
https://netbeans.org/bugzilla/show_bug.cgi?id=151368


This bug stops for using Netbeans Platform Applications as clients for a
Glassfish Enterprise Applications.

Thank you for your support.

rgds.
xavier

attached mail follows:



Hello,

Is there any kind of workaround for this problem ?
(Other than use the appclient way or any other techno like Rest, WS and so
on)

I've try to follow the hints given in the bug tracker to see if there is a
way to call EJB 3.1 on glassfish from the NB RCP 6.8 but with no success. I
always get the same exception :

WARNING [javax.enterprise.resource.corba.ee._CORBA_.util]: "IOP01211405:
(BAD_OPERATION) Exception in loadStub"
java.lang.ClassNotFoundException:
com.sun.ejb.codegen.GenericEJBHome_Generated


I have create a very simple test project with :
- An ear project with 1 ejb project
- a simple hello world stateless session bean
- a Netbeans platform App, with one module where i try to call the EJB

What I have try for the moment :
- Add parameters in the suite project properties
(things like run.args.extra=....)
- Add parameters in the module project properties
(things like cp.extra=...)
- Add parameters in the suite and in the module properties
For those parameters, i've try different variations, add gf-client or
javaee, add the ejb or not... always get the same error.

I was thinking that there was a way to make it working according to this
discussion, comments 13-17 :
http://netbeans.org/bugzilla/show_bug.cgi?id=125107

In the other bug report which seems related :
http://netbeans.org/bugzilla/show_bug.cgi?id=151368
and as Antonio says, it seems that there is some kind of patch existing for
this issue.
Does anybody knows if this patch can be applied to GFv3 ? If yes, how ?


Regards,
Yann