Re: org.omg.CosNaming.NamingCntextPackage.NotFound

2005-10-07 Thread David Jencks
I now have both a no-sec and an ssl version working. no-security: maven -o clean startServer maven -o deployAppNoSec startAppNoSec maven -o runClientNoSec ssl UP maven -o clean startServer maven -o deployAppSSL startAppSSL maven -o runClientSSL Be sure to update geronimo and openejb, there was

Re: org.omg.CosNaming.NamingCntextPackage.NotFound

2005-10-05 Thread David Jencks
I got a no-security version working and made a lot of progress on a SSL UP version, but there is still more to do on the latter. I think you can try the no-sec version by copying src/plan/magicgball-corba-nosec-plan.xml over src/plan/magicgball-corba-plan.xml and then running: maven -o

Re: org.omg.CosNaming.NamingCntextPackage.NotFound

2005-09-30 Thread David Jencks
I spent some time working on this and committed my results in head. I got to the point where I can look up the home and narrow it. However I get a corba error when I try to create the ejb object. in applications/magicGbean maven -o startServer maven -o deployApp java -jar target/geronimo-1

Re: org.omg.CosNaming.NamingCntextPackage.NotFound

2005-09-28 Thread Ted Kirby
The failure is Caused by: java.lang.ClassCastException at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemo teObject.java:293) at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134) at org.acme.MagicGBallClient.ask(MagicGBallClient.java:47) at org.acm

Re: org.omg.CosNaming.NamingCntextPackage.NotFound

2005-09-28 Thread lin sun
I also added a few debug statement on the client to print out the objref & its superclasses: 22:25:02,254 INFO [CommandLine] Server startup completed User nameNameCallback returning system. PasswordPasswordCallback returning [EMAIL PROTECTED] in MagicGBallClient.ask(Hi): java.lang.Throwable

Re: org.omg.CosNaming.NamingCntextPackage.NotFound

2005-09-27 Thread lin sun
While I was waiting for help, I added some debug tracing into the client.log. Here's what I got in my client.log: 21:40:50,873 DEBUG [CORBAProxyReference] Obtaining home from corbaloc::localhost:1050/NameService, MagicGBall, geronimo.client:J2EEApplication=null,J2EEModule=org/apache/geronimo/Cl

Re: org.omg.CosNaming.NamingCntextPackage.NotFound

2005-09-26 Thread lin sun
--- lin sun <[EMAIL PROTECTED]> wrote: > --- David Jencks <[EMAIL PROTECTED]> wrote: > > Having 2 geronimo servers communicating by corba is definitely possible > > and you will be able to configure all the necessary parts using gbeans. > > This would be the easiest to set up in my opinion.

Re: org.omg.CosNaming.NamingCntextPackage.NotFound

2005-09-26 Thread lin sun
--- David Jencks <[EMAIL PROTECTED]> wrote: > Having 2 geronimo servers communicating by corba is definitely possible > and you will be able to configure all the necessary parts using gbeans. > This would be the easiest to set up in my opinion. In particular you > should be able to do this n

Re: org.omg.CosNaming.NamingCntextPackage.NotFound

2005-09-23 Thread Ted Kirby
You are about to get the the point where the missing security gbeans on the app client will block progress. I have been hoping for several days to put a plan for these together but have not had time yet. Perhaps today will be the day. thanks david jencks I took a crack at this, and got it to w

Re: org.omg.CosNaming.NamingCntextPackage.NotFound

2005-09-23 Thread lin sun
I decided not to try the no security approach and wait a bit. I will try my best to watch the fix from the other lists, but if you could kindly tell me when the missing security beans are in the HEAD I'd highly appreciate it! Thanks again, Lin --- David Jencks <[EMAIL PROTECTED]> wrote: > >

Re: org.omg.CosNaming.NamingCntextPackage.NotFound

2005-09-23 Thread David Jencks
On Sep 23, 2005, at 12:00 PM, lin sun wrote: Made more progress!! And Thanks so much AGAIN for your help! The code below works very well, except that I had to use "private final char[] password = { 'm', 'a', 'n', 'a', 'g', 'e', 'r' };" instead to pass the compiler error. Now got the follo

Re: org.omg.CosNaming.NamingCntextPackage.NotFound

2005-09-23 Thread lin sun
Made more progress!! And Thanks so much AGAIN for your help! The code below works very well, except that I had to use "private final char[] password = { 'm', 'a', 'n', 'a', 'g', 'e', 'r' };" instead to pass the compiler error. Now got the following error. Am I getting the point where the miss

Re: org.omg.CosNaming.NamingCntextPackage.NotFound

2005-09-23 Thread David Jencks
On Sep 23, 2005, at 10:55 AM, lin sun wrote: Thanks so much for your help!! I made some progress!!:-) The geronimo application plan below is extremely helpful and I was able to deploy the new plan with only one change (org/apache/geronimo/ClientCORBA -> org/apache/geronimo/ClientCorba). I

Re: org.omg.CosNaming.NamingCntextPackage.NotFound

2005-09-23 Thread Aaron Mulder
On 9/22/05, lin sun <[EMAIL PROTECTED]> wrote: > I read Aaron's book on J2EE client application, and I didn't see anywhere > mentions > openejb-jar.xml, so I assume you mean geronimo-client.xml here? The client chapter is still a work in progress. I'm following this thread to figure out what COR

Re: org.omg.CosNaming.NamingCntextPackage.NotFound

2005-09-23 Thread lin sun
Thanks so much for your help!! I made some progress!!:-) The geronimo application plan below is extremely helpful and I was able to deploy the new plan with only one change (org/apache/geronimo/ClientCORBA -> org/apache/geronimo/ClientCorba). I got the following error when I tried to start the

Re: org.omg.CosNaming.NamingCntextPackage.NotFound

2005-09-22 Thread David Jencks
On Sep 22, 2005, at 10:39 PM, lin sun wrote: Thanks again for the quick response and it is very helpful! Hope I can get it working any day soon!:-) So I decided to redesign my test scenario based on your recommendations: 1) Find a J2EE client and EJB sample that would work in geronimo

Re: org.omg.CosNaming.NamingCntextPackage.NotFound

2005-09-22 Thread lin sun
Thanks again for the quick response and it is very helpful! Hope I can get it working any day soon!:-) So I decided to redesign my test scenario based on your recommendations: 1) Find a J2EE client and EJB sample that would work in geronimo environment. Luckily, I was able to get the MagicGb

Re: org.omg.CosNaming.NamingCntextPackage.NotFound

2005-09-21 Thread David Jencks
On Sep 21, 2005, at 11:03 PM, lin sun wrote: --- David Jencks <[EMAIL PROTECTED]> wrote: Not exactly. AFAIK no one has used an ejb in geronimo from a non-j2ee client through CORBA. We have, in the tck work, used ejbs in geronimo (and the sun ri) from a j2ee app client using CORBA. I though

Re: org.omg.CosNaming.NamingCntextPackage.NotFound

2005-09-21 Thread lin sun
--- David Jencks <[EMAIL PROTECTED]> wrote: > Not exactly. AFAIK no one has used an ejb in geronimo from a non-j2ee > client through CORBA. We have, in the tck work, used ejbs in geronimo > (and the sun ri) from a j2ee app client using CORBA. I thought it > would be simpler to start with

Re: org.omg.CosNaming.NamingCntextPackage.NotFound

2005-09-21 Thread David Blevins
On Sep 21, 2005, at 1:19 PM, David Jencks wrote: I'm not sure what you will need to add to your classpath: certainly openejb-core and geronimo-spec-corba-2.3-rc4.jar, but I don't know what else. Last I knew, you needed these jars: openejb-core-2.0-SNAPSHOT.jar cglib-full-2.0.2.jar geronim

Re: org.omg.CosNaming.NamingCntextPackage.NotFound

2005-09-21 Thread David Jencks
On Sep 21, 2005, at 3:52 PM, lin sun wrote: Thanks for your note! Still trying to digest it. Do you mean after I create a J2EE app client and deploy it to geronimo, I can build some non-j2ee app client to communicate to the J2ee app client via IIOP? Not exactly. AFAIK no one has used an ejb

Re: org.omg.CosNaming.NamingCntextPackage.NotFound

2005-09-21 Thread lin sun
Thanks for your note! Still trying to digest it. Do you mean after I create a J2EE app client and deploy it to geronimo, I can build some non-j2ee app client to communicate to the J2ee app client via IIOP? Can I use J2SE as the non-J2EE app client? Also, is it possible to run the client-server

Re: org.omg.CosNaming.NamingCntextPackage.NotFound

2005-09-21 Thread David Jencks
IIUC 1050 is correct. There's quite a bit to set up to get this to work. IMO it is considerably easier to start with a j2ee app-client and configure the stuff using a gbean plan. Unfortunately this will currently only run on a machine with all of geronimo installed. Also we haven't publi

Re: org.omg.CosNaming.NamingCntextPackage.NotFound

2005-09-20 Thread lin sun
I forgot to mention that I am using a build checked out from HEAD last week. Actually I was able to get further using 1050. If I use iiop://localhost:1099, I would get an exception when instantiate the new InitialContext ctx: javax.naming.CommunicationException: Cannot connect to ORB [Root ex

Re: org.omg.CosNaming.NamingCntextPackage.NotFound

2005-09-19 Thread Ken Perl
I guess the client is providing the wrong URL, try to use 1099 instead of iiop://localhost:1050. On 9/20/05, lin sun <[EMAIL PROTECTED]> wrote: > Hello there, > > I am having problems in communicating to a simple EJB > from a Java RMI client via IIOP. I was able to > deploy the EJB jar to geron

org.omg.CosNaming.NamingCntextPackage.NotFound

2005-09-19 Thread lin sun
Hello there, I am having problems in communicating to a simple EJB from a Java RMI client via IIOP. I was able to deploy the EJB jar to geronimo, but I kept getting the following exception when I ran the Client: javax.naming.NameNotFoundException [Root exception is org.omg.CosNaming.NamingConte