Ребята есть проблема с которой не могу разобраться :
Есть бандл который регистрирует LocateRegistry :
| Код | public void start(BundleContext bundleContext) throws Exception { LocateRegistry.createRegistry(1200); registry = LocateRegistry.getRegistry(1200); bundleContext.registerService(IServer.class.getName(), new ServerImpl(), null); }
|
После чего стартую другой бандл который питается добавить :
| Код | public void start(BundleContext bundleContext) throws Exception { try { if (System.getSecurityManager() == null) { System.setSecurityManager(new RMISecurityManager()); }
ServiceReference[] refs = bundleContext.getServiceReferences(IServer.class.getName(), null); if (refs != null) { IServer iServer = (IServer) bundleContext.getService(refs[0]); registry = iServer.getRegistry(); registry.bind(IUserAccount.STUB_NAME, UnicastRemoteObject.exportObject(new UserAccountImpl(), 1200)); // - < ------- здесь получаю ошибку }
|
получаю ошибку что
java.lang.ClassNotFoundException: ua.com.а.gtserver.module.gtsuser.impl.UserAccountImpl_Stub
хотя данный класс в пакете с бандлом существует.
|