Hi,
>>From the looks of it, your session bean on the weblogic server cannot
>>locate the stub class for the BWrmi service that is registered in the
>>registry on its local classpath
Couldn't understand what you meant by "registered in the registry on its
local classpath" ?
I did provide the codebase for the objects registered on the rmiregistry.
==snapshot of the screen where I start the rmi server ===
>>C:\Downloads\build\newRMI>java -Djava.rmi.codebase=file:///c:/downloads/build/newRMI
>> -Djava.security.policy=policy.all BWrmiImpl
>>
>>WebGain Java! JustInTime Compiler Version 4.00.002(x) for JDK 1.2
>>Copyright (C) 2000 WebGain, Inc.
>>BWrmiServer bound to the registry
======
Still I get the ClassNotFound exception in the SessionBean when I do
Naming.lookup("rmi://localhost/DWrmiServer");
Mohit
Nitya Narasimhan <[EMAIL PROTECTED]> on 08/10/2000 03:04:39 PM
Please respond to Nitya Narasimhan <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc:
Subject: Re: [EJB-INT] URGENT: Lookup for a RMI object from SessionBean in
WebLogic
Hi,
>From the looks of it, your session bean on the weblogic server cannot
locate the stub class for the BWrmi service that is registered in the
registry on its local classpath. The best solution would be to make sure
that the service (that bound itself to the registry) specifies its
codebase (using -Djava.rmi.server.codebase) at runtime .. this will allow
any client of that service to dynamically download any classes it needs
(including this stub class) at runtime.
There is lots more about this on
http://java.sun.com/products/jdk/1.2/docs/guide/rmi/codebase.html
A quick-and-dirty solution is to make sure that the client somehow finds
the stub class on its local classpath i.e physically copy the stub over
into some location on the classpath searched by your component. This is a
short-term fix and is not a good idea when deploying the system finally.
-Nitya
>X-MIMETrack: Serialize by Router on Notes-Hub01/CCC(Release 5.0.3 |March
21, 2000) at 08/10/2000
02:41:42 PM
>MIME-Version: 1.0
>Date: Thu, 10 Aug 2000 14:40:49 -0500
>From: Mohit Jain <[EMAIL PROTECTED]>
>Subject: [EJB-INT] URGENT: Lookup for a RMI object from SessionBean in
WebLogic
>Comments: To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>
>Hi Gurus,
>
>I have a existing RMI registry with a couple of objects belonging to a
>third party registered on it. This rmiregistry is running separately not
>in the application server (WebLogic 5.1) .
>
>I require to request services from the objects registered on the
>rmiregistry.
>
>Using a Stateless SessionBean deployed on WebLogic 5.1, can I do a lookup
>for the RMI objects on the rmiregistry.
>
>I get the following error:
>Error: java.rmi.UnmarshalException: error unmarshalling return; nested
exception is:
> java.lang.ClassNotFoundException: BWrmiImpl_Stub
>
>Am I doing something wrong??
>
>Has someone been able to bind the objects registered on a rmiregistry to
the JNDI tree in Weblogic???
>
>Thanks in advance
>Mohit
>
>
===========================================================================
>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".
>
_____________________________________________________________________
���������������������������������������������������������������������
���������������������������������������������������������������������
^ /) _/_ Nitya Narasimhan, Graduate Student Researcher
/ \ / . / _ _ Computer Networks & Distributed Systems Lab
(/ v _/_/_ /_/(_/_ University of California, Santa Barbara.
___/
( Email: [EMAIL PROTECTED]
URL : http://alpha.ece.ucsb.edu/~nitya
_____________________________________________________________________
���������������������������������������������������������������������
���������������������������������������������������������������������
===========================================================================
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".