[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [equinox-dev] How to start a RMI service in a bundle of Equinox
- From: Niclas Hedhman <niclas@xxxxxxxxxxx>
- Date: Fri, 15 Dec 2006 10:57:41 +0800
- Delivered-to: firstname.lastname@example.org
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id:sender; b=BxKsLLVW9p+0rNAMZ0+bn7XCFACHRyeV6uWs3ToTgQDi6uqyhwf2OJ7PiYa+0V1eL6g+Bl1Qdl9dfBuIzPUhcyUDK7dDzy7mkvjPx+EQG+OoDlRsQCuF/pTqxZHi1vIEcfDX0JT4xvSWZ5mgnDGHfv3+znkGmgTDFpxNvhqfTo0=
- User-agent: KMail/1.9.5
On Tuesday 12 December 2006 10:20, jiang_jian wrote:
> I think the URL is specified at the client codeïbut my bundle just want to
> start the rmi service during OSGi invoke the bundle's Activator.start()
> method. Maybe I didn't understand what your meaning is.
The original stacktrace shows that you were trying to BIND a RemoteServer to
the Registry, and that the bundle activator doesn't have access to the
org.shuyaji.workflow.api.client.rmi.RMIEngineImpl_Stub class, which happens at
> Another point,when I start the RMI service by invoking the start method
> ofÂmy Activator classÂin its main function(not the caseÂin OSGi),there
> isn't any exception throws.
You need to provide information which classes sits in which bundles, to fully
answer that question.
My gut feeling guess is, RMIEngineImpl_Stub sits in a different bundleA than
WorkflowService in bundleB and that bundleA does not export package
org.shuyaji.workflow.api.client.rmi or bundleB doesn't import that package.
Could also be that the RMIEngineImpl_Stub class is not around at all.