NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Unable to get my nb platform module suite to bootsrtrap to glassfish's jndi
Goto page Previous  1, 2
 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
Jay Smathers



Joined: 24 Oct 2008
Posts: 8

PostPosted: Mon Oct 27, 2008 2:16 pm    Post subject: Unable to get my nb platform module suite to bootsrtrap to glassfish's jndi Reply with quote

Antonio & Sergio,

I followed your advice I have done this and now IT DOES WORK. Hopefully the
netbeans will remedy this, or make available some better approach.

FYI- A recap to anyone else trying to get a nb platform module suite to
connect to your ejb's on a glassfish server:

1) As the the instructions on the glassfish ejb faq page indicate, "If you
do copy appserv-rt.jar, you'll need to copy additional .jars such as
appserv-deployment-client.jar and appserv-ext.jar" -and all other jars in
the appser-rt manifest classpath. So make ONE netbeans library wrapper
module that specifies all these glassfish jars (there are about a dozen in
the gf2 appserv-rt manifest classpath).

2) Add to this same wrapper module all jars needed to cover the ejb's which
you lookUp() and use in the client code.

3) Make all you other nb modules that try inititalContext.lookup() or that
use your ejb remote methods depend on this ONE wrapper module.

Note: Because of the way netbeans creates its wrapper module, for me to get
all the jars into one module I needed to first copy all these jars to one
folder.

After doing this (using nb6.1 & gfv2) the initialContext.lookup(myEJBremote)
worked as advertised.

Much thanks to Antonio and Sergio for figuring this out.

-js

--
View this message in context: http://www.nabble.com/Unable-to-get-my-nb-platform-module-suite-to-bootsrtrap-to-glassfish%27s-jndi-tp20154866p20188614.html
Sent from the Netbeans RCP/Platform Users (Open API) mailing list archive at Nabble.com.
Back to top
Florian Brunner
Posted via mailing list.





PostPosted: Mon Oct 27, 2008 2:36 pm    Post subject: Unable to get my nb platform module suite to bootsrtrap to glassfish's jndi Reply with quote

Hi,

I've filed an issue that there should be a NetBeans Platform tutorial
using EJBs. I've added a reference to your tip as a comment. Please vote
for this issue (and maybe also add a comment) if you think, too, that
there should be such a tutorial.

http://www.netbeans.org/issues/show_bug.cgi?id=146402

-Florian

jbsmathers schrieb:
Quote:
Antonio & Sergio,

I followed your advice I have done this and now IT DOES WORK. Hopefully the
netbeans will remedy this, or make available some better approach.

FYI- A recap to anyone else trying to get a nb platform module suite to
connect to your ejb's on a glassfish server:

1) As the the instructions on the glassfish ejb faq page indicate, "If you
do copy appserv-rt.jar, you'll need to copy additional .jars such as
appserv-deployment-client.jar and appserv-ext.jar" -and all other jars in
the appser-rt manifest classpath. So make ONE netbeans library wrapper
module that specifies all these glassfish jars (there are about a dozen in
the gf2 appserv-rt manifest classpath).

2) Add to this same wrapper module all jars needed to cover the ejb's which
you lookUp() and use in the client code.

3) Make all you other nb modules that try inititalContext.lookup() or that
use your ejb remote methods depend on this ONE wrapper module.

Note: Because of the way netbeans creates its wrapper module, for me to get
all the jars into one module I needed to first copy all these jars to one
folder.

After doing this (using nb6.1 & gfv2) the initialContext.lookup(myEJBremote)
worked as advertised.

Much thanks to Antonio and Sergio for figuring this out.

-js

Back to top
Florian Brunner
Posted via mailing list.





PostPosted: Mon Oct 27, 2008 3:07 pm    Post subject: Unable to get my nb platform module suite to bootsrtrap to glassfish's jndi Reply with quote

I had similar troubles with Java DB and TopLink integration.

Maybe we should start a repository for 3rd party library wrapper modules
and make that repository available via the Update Center for easy
integration. What do you think?

-Florian

Jay Smathers schrieb:
Quote:
Thanks so much to you both for the help.



I have been able to call my ejbs from a nb platform app by placing copies of my ejbs along side copies of the glassfish rmi jars and wrapping all these jars in one single nb library module.



i never would have tried that without your passing the information that it works, so thanks.



since this is not a good long term way to do things, how can I keep track of weather any progress is made to remedy this requirement by the netbeans developers?



-jay




Back to top
Wade Chandler
Posted via mailing list.





PostPosted: Mon Oct 27, 2008 3:09 pm    Post subject: Unable to get my nb platform module suite to bootsrtrap to glassfish's jndi Reply with quote

See:
http://wiki.netbeans.org/CommunityDocs

Community contributions are really needed, so if you have the knowledge to implement the tutorial it would be a big help. Many of us contribute now, and we are very busy. We need more users who are contributors Very Happy. Call to action.

I am working on this:
http://wiki.netbeans.org/NBDTRCPAndJEEBestPractices

which should be an example of using different EE tech with NB RCP. Maybe this is what you are looking for, and I'm working on it with any extra time I have as I need some things which this is serving as prototyping.

Wade

==================
Wade Chandler, CCE
Software Engineer and Developer, Certified Forensic Computer Examiner, NetBeans Dream Team Member, and NetBeans Board Member
http://www.certified-computer-examiner.com
http://wiki.netbeans.org/wiki/view/NetBeansDreamTeam
http://www.netbeans.org



----- Original Message ----
Quote:
From: Florian Brunner <address-removed>
To: address-removed
Sent: Monday, October 27, 2008 9:36:07 AM
Subject: Re: [openide-dev] Unable to get my nb platform module suite to bootsrtrap to glassfish's jndi

Hi,

I've filed an issue that there should be a NetBeans Platform tutorial
using EJBs. I've added a reference to your tip as a comment. Please vote
for this issue (and maybe also add a comment) if you think, too, that
there should be such a tutorial.

http://www.netbeans.org/issues/show_bug.cgi?id=146402

-Florian

jbsmathers schrieb:
Quote:
Antonio & Sergio,

I followed your advice I have done this and now IT DOES WORK. Hopefully the
netbeans will remedy this, or make available some better approach.

FYI- A recap to anyone else trying to get a nb platform module suite to
connect to your ejb's on a glassfish server:

1) As the the instructions on the glassfish ejb faq page indicate, "If you
do copy appserv-rt.jar, you'll need to copy additional .jars such as
appserv-deployment-client.jar and appserv-ext.jar" -and all other jars in
the appser-rt manifest classpath. So make ONE netbeans library wrapper
module that specifies all these glassfish jars (there are about a dozen in
the gf2 appserv-rt manifest classpath).

2) Add to this same wrapper module all jars needed to cover the ejb's which
you lookUp() and use in the client code.

3) Make all you other nb modules that try inititalContext.lookup() or that
use your ejb remote methods depend on this ONE wrapper module.

Note: Because of the way netbeans creates its wrapper module, for me to get
all the jars into one module I needed to first copy all these jars to one
folder.

After doing this (using nb6.1 & gfv2) the initialContext.lookup(myEJBremote)
worked as advertised.

Much thanks to Antonio and Sergio for figuring this out.

-js

Back to top
Antonio
Posted via mailing list.





PostPosted: Mon Oct 27, 2008 3:17 pm    Post subject: Unable to get my nb platform module suite to bootsrtrap to glassfish's jndi Reply with quote

Jay Smathers wrote:
Quote:
[...]

since this is not a good long term way to do things, how can I keep track of weather any progress is made to remedy this requirement by the netbeans developers?


Add yourself as CC at

http://www.netbeans.org/issues/show_bug.cgi?id=151368

Or, even better: vote for the issue to be resolved!

Cheers,
Antonio
Back to top
Antonio
Posted via mailing list.





PostPosted: Mon Oct 27, 2008 4:52 pm    Post subject: Unable to get my nb platform module suite to bootsrtrap to glassfish's jndi Reply with quote

jbsmathers wrote:
Quote:
Antonio & Sergio,

I followed your advice I have done this and now IT DOES WORK. Hopefully the
netbeans will remedy this, or make available some better approach.


Good to know. Anyway I think this has something to do with the Glassfish
team, and not with the NetBeans team.

It seems glassfish is generating stubs and skeletons "on the fly" using
what they call "dynamic rmi-iiop" (see [1]). I think they're using the
BCEL library for that. Maybe they forgot to use an appropriate
classloader while doing that! :-(

I'm glad things worked finally. Thanks for the summary.

Cheers,
Antonio


[1] - https://glassfish-corba.dev.java.net/design/dynamic_rmi_iiop.htm
Back to top
Antonio
Posted via mailing list.





PostPosted: Mon Oct 27, 2008 5:01 pm    Post subject: Unable to get my nb platform module suite to bootsrtrap to glassfish's jndi Reply with quote

Antonio wrote:
Quote:

Good to know. Anyway I think this has something to do with the Glassfish
team, and not with the NetBeans team.


I've submitted an issue to glassfish too:
https://glassfish-corba.dev.java.net/issues/show_bug.cgi?id=3
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo