Re: ORBACUS CLIENT and EJB server

Darren Middleman <[email protected]>
Newsgroups gmane.comp.corba.orbacus
Organization IONA | Making Software Work Together TM
Message-ID <[email protected]>
Hi Anoop,

On Thu, Feb 10, 2005 at 10:16:52AM +0530, Anoop Ahamad wrote:
> Hi Darren,
>    Please find the CPP source code that I have pasted below.
> 
> [...]
>
> I am getting the error just before getting the referrence to the remote
> object..
> The ejb is beeing depolyed in  a weblogic8.1 server.
> We are using orbacus4.2.x on windows platform.
> After the clientside exe is created in the vc++ editor..
> I am invoking the server side code with the following command.
> 
> HelloOrbaClient.exe -ORBInitRef
> NameService=corbaloc:iiop:[email protected]:7001/NameService
> Is this one is correct or not?
> 
> Yes, the runtime error is coming at the client side.
> The error message I am getting is
> " This application has requested the Runtime to terminate it in an unusual
> way.Please contact the application's support team for more information."
> 
> Please tell me where I am going wrong.
> Thanks in advance.
> 
> Regards
> Anoop

I don't see anything wrong anything you have described.  In fact, I believe 
I have been able to obtain a copy of the demo you are trying (from
Javaworld?) and I was able to setup a situation which resembles what you
have described in your email.

The only time I was able to obtain any sort of failure was if I specified
the wrong name in the "context->resolve(name)" call.  In this case, I saw
the following error:

 > Accessing the naming service
 > Getting the naming context
 > Resolving the home interface
 > Exception: User exception `CosNaming::NamingContext::NotFound'

I'm not sure if this relates to what you are seeing but it was the only way
I was able to duplicate an error that somewhat resembles what you describe.

What I would recommmend is that you verify that you have your server up and
running correctly and that it has the name you expect (this is specified in
the weblogic-ejb-jar.xml file in the META-INF folder if you are using the
demo from Javaworld).

You could also try debugging your client application and try obtain a stack
trace of where the error occurs.  This might provide some clues as to what
is really going on.

Regards,
Darren

-- 
Darren Middleman, Software Engineer
Team Orbacus - Your CORBA Source
Email: mailto:[email protected]
WWW: http://www.orbacus.com/
_______________________________________________
OB-Users Mailing List - [email protected]
http://mail.ooc.nf.ca/mailman/listinfo/ob-users
Visit our support FAQ before you send a message.
http://www.orbacus.com/faq/support.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.