Hi ..

I agree with Srini..just check out ur JNDI Name....

well..ashish...whats the tool u r using to create beans for Websphere..

how do u jar it..

Arul
----- Original Message -----
From: "SRINIVASAN Varadhan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 14, 2001 1:57 PM
Subject: Re: WebSphere3.5 Client Running Problem Extended


> Hi ashish,
>
> Are u sure that ur lookup name is correct?? Just check that out 'coz the
> Namingexception is thrown if there is some conflict in ur lookup name.
>
> Srini
>
> > ----------
> > From:         Ashish Patel[SMTP:[EMAIL PROTECTED]]
> > Reply To:     A mailing list for Enterprise JavaBeans development
> > Sent:         Wednesday, February 14, 2001 12:09 PM
> > To:   [EMAIL PROTECTED]
> > Subject:      Re: WebSphere3.5 Client Running Problem Extended
> >
> > Sorry arul & satyaki,
> >
> >    your solution didnt work.
> >     still i cannot be able to solve the problem of
> > NullExecption or Naming Exeception.
> >   can u have another alternative ??
> >
> >
> > --- Arul <[EMAIL PROTECTED]> wrote:
> > > hi Ashish..
> > >
> > > i guess ur bean is not visible to the client.So
> > > extract ur jar file to the
> > > websphere classes directory
> > >
> > > ie <WSHOME>\appserver\classes
> > >
> > > Say if ur package is com.sessionbean.hello ,after
> > > extracting the jar to ur
> > > classes directory u will find the home,remote and
> > > bean class in the
> > > <WSHome>/appserver/classes/com/sessionbean/hello
> > > directory
> > >
> > > and restart ur server
> > >
> > > now check out whther ur bean is started and then run
> > > the same client..
> > >
> > > Reply to me about whats happenning
> > >
> > > Arul
> > >
> > >
> > >
> > > ----- Original Message -----
> > > From: "Ashish Patel" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, February 14, 2001 11:09 AM
> > > Subject: WebSphere3.5 Client Running Problem
> > > Extended
> > >
> > >
> > > > Thanks arul.
> > > >
> > > > its right. its running but have a another problem.
> > > >
> > > > my code looks like..
> > > >
> > > > Properties p = new Properties();
> > > >
> > > >
> > >
> >
p.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"com.ibm.ejs.ns.jndi.CN
> > In
> > > itialContextFactory");
> > > >
> > > p.put(javax.naming.Context.PROVIDER_URL,
> > > > "iiop://localhost/");
> > > >
> > > System.out.println("Context not Created.");
> > > >                     InitialContext ctx = new
> > > > javax.naming.InitialContext(p);
> > > >                     System.out.println("Context
> > > > Created.");
> > > >
> > > >                     Object home =
> > > > ctx.lookup("HelloHome");
> > > >                         System.out.println("Lookup
> > > > Home Created.");
> > > >                         HelloWorldHome helloHome =
> > > (HelloWorldHome)
> > > > PortableRemoteObject.narrow(home,
> > > > HelloWorldHome.class);
> > > >
> > > System.out.println("HelloHome
> > > > Created.");
> > > >
> > > >
> > > > OUTPUT ::
> > > > Context not Created.
> > > > Context Created.
> > > > javax.naming.NamingException: Error during resolve
> > > > [Root exception is java.lang.NullPointerException]
> > > >
> > > >
> > > >  And the error traped at ... lookup("HelloHome");
> > > ..
> > > > Everything is there HelloHome EJB is running also.
> > > > CLASSPATH is also set.
> > > >
> > > >   Can anybody knows the problems of lookup....
> > > >
> > > > Thanks in advance
> > > >
> > > >
> > > > --- Arul <[EMAIL PROTECTED]> wrote:
> > > > > hey..
> > > > >
> > > > > just changing from InitailContext.narrow to
> > > > > PortableRemoteObject.narrow
> > > > > doesnt make much difference..As per RMI IIOp us
> > > > > should give only
> > > > > PortableRemoteObject.narrow.
> > > > >
> > > > > but the Initial Context parameter which u give
> > > for
> > > > > look up the bean differs
> > > > > from weblogic to websphere.In weblogic  u would
> > > use
> > > > > "weblogic.jndi.WLInitialContextFactory"
> > > > >
> > > > > The client look up in weblogic would look like
> > > this
> > > > >
> > > > >
> > > > >   Properties h = new Properties();
> > > > >
> > > > >
> > > >
> > >
> >
h.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFacto
> > ry
> > > > > ");
> > > > >   h.put(Context.PROVIDER_URL,
> > > > > "t3://localhost:7001");
> > > > >   InitialContext ic=new InitialContext(h);
> > > > >   Object objlkup=ic.lookup(Jndi);
> > > > >   BeanHome
> > > > >
> > > >
> > >
> > home=(BeanHome)PortableRemoteObject.narrow(objlkup,BeanHome.class);
> > > > >   Remote
> > > > >
> > > >
> > >
> > remote=(Remote)PortableRemoteObject.narrow(home.create(),Remote.class);
> > > > >   return remote;
> > > > >
> > > > >
> > > > > but the h.put value changes in websphere ..
> > > > >
> > > > > ex:
> > > > >
> > > > > Hashtable h = new Hashtable();
> > > > > h.put(Context.INITIAL_CONTEXT_FACTORY,
> > > > > "com.ibm.ejs.ns.jndi.CNInitialContextFactory");
> > > > > InitialContext ic = new InitialConext(h);
> > > > >
> > > > >
> > > > > Just try to work with this
> > > > >
> > > > > Arul
> > > > > ----- Original Message -----
> > > > > From: <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Sent: Tuesday, February 13, 2001 4:56 PM
> > > > > Subject: Re: WebSphere3.5 Client Running Problem
> > > > >
> > > > >
> > > > > > Hi buddy,
> > > > > >
> > > > > > u need to check how r u getting the
> > > InitialContext
> > > > > from the JNDI . I faced
> > > > > > a similar problem
> > > > > > coz i was using EJBHome
> > > > > home=initialcontext.narrow(".....");
> > > > > > instead use
> > > > > home=PortableRemoteObject.narrow("......");(boy
> > > > > check out the
> > > > > > exact syntax)
> > > > > >
> > > > > > check if thats the problem,
> > > > > >
> > > > > > pirbhu
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
==========================================================================
> > =
> > > > > > To unsubscribe, send email to
> > > > > [EMAIL PROTECTED] and include in the
> > > > > body
> > > > > > of the message "signoff EJB-INTEREST".  For
> > > > > general help, send email to
> > > > > > [EMAIL PROTECTED] and include in the body
> > > of
> > > > > the message "help".
> > > > >
> > > > >
> > > >
> > >
> >
==========================================================================
> > =
> > > > > To unsubscribe, send email to
> > > [EMAIL PROTECTED]
> > > > > and include in the body
> > > > > of the message "signoff EJB-INTEREST".  For
> > > general
> > > > > help, send email to
> > > > > [EMAIL PROTECTED] and include in the body of
> > > the
> > > > > message "help".
> > > > >
> > > >
> > > >
> > > > =====
> > > > Ashish Patel.
> > > > Baeurer Infotech Ltd.
> > > > India.
> > > >
> > > > __________________________________________________
> > > > Do You Yahoo!?
> > > > Get personalized email addresses from Yahoo! Mail
> > > - only $35
> > > > a year!  http://personal.mail.yahoo.com/
> > >
> > === message truncated ===
> >
> >
> > =====
> > Ashish Patel.
> > Baeurer Infotech Ltd.
> > India.
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail - only $35
> > a year!  http://personal.mail.yahoo.com/
> >
> >
==========================================================================
> > =
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> > body
> > of the message "signoff EJB-INTEREST".  For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
> >
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to