Hi All, Thanks for the responses. I'll try this by following the steps in the blog mentioned by Ajith
Regards, Sohani Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Wed, Mar 19, 2014 at 6:39 AM, Ajith Vitharana <[email protected]> wrote: > Hi All, > > > On Wed, Mar 19, 2014 at 6:06 AM, Chanaka Fernando <[email protected]>wrote: > >> Hi Sohani, >> >> You should have the configurations done as Shazni mentioned. If you could >> attach the master-datasources.xml, registry.xml and axis2.xml files of ESB >> and GREG, we could find the culprit. >> > > When you start the fresh WSO2 servers, the default database is " > *embedded mode H2*" . In this connection method, H2 allow for one > application to connect. > Therefore if want to share the registry space with external governance > registry server (H2) , that shared registry should have started with "*server > mode H2*". > > I wrote simple blog post about how to mount with H2[1]. > > Note: We don't recommend to use the H2 as the mount database for > production setup. However this method is useful for the users who don't > have rights to create the databases (MySQL , Oracle ..etc) in their > corporate database system but still want to demo/test the registry space > sharing/mounting. > > [1] > http://ajithvblogs.blogspot.com.ar/2014/03/mount-jdbc-wso2-esb-registry-to-wso2.html > > Thanks. > Ajith > > >> Thanks, >> Chanaka >> >> >> On Tue, Mar 18, 2014 at 11:18 PM, Shazni Nazeer <[email protected]> wrote: >> >>> Hi Sohani, >>> >>> You should be adding the mount configuration to mount governance and >>> config registries. local registries shouldn't be shared. Hence you should >>> have two datasource configuration elements in master-datasource.xml. >>> >>> In registry.xml you must have mount configuration for governance and >>> config. And a remoteConfiguration matching that. >>> >>> Shazni Nazeer >>> >>> Senior Software Engineer >>> >>> Mob : +94 715 440 607 >>> LinkedIn : http://lk.linkedin.com/in/shazninazeer >>> Blog : http://shazninazeer.blogspot.com >>> >>> >>> On Tue, Mar 18, 2014 at 10:12 PM, Sohani Weerasinghe <[email protected]>wrote: >>> >>>> Hi All, >>>> >>>> I tried to mount h2 (ESB) to Governance Registry by doing below >>>> mentioned changes >>>> >>>> 1. Created a new datasource in master-datasources.xml >>>> 2. Included cacheId with the full path of the created datasource >>>> 3. Updated axis.xml to enable clustering >>>> 4. Added mount configurations to registry.xml >>>> >>>> At the ESB server start-up I am getting the following exception >>>> >>>> [2014-03-18 21:43:54,790] ERROR - RegistryCoreServiceComponent Failed >>>> to activate Registry Core bundle >>>> org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to >>>> add the root collection to the coreRegistry. >>>> at >>>> org.wso2.carbon.registry.core.session.UserRegistry.addRootCollection(UserRegistry.java:399) >>>> at >>>> org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:299) >>>> at >>>> org.wso2.carbon.registry.core.session.UserRegistry.<init>(UserRegistry.java:226) >>>> at >>>> org.wso2.carbon.registry.core.session.UserRegistry.<init>(UserRegistry.java:205) >>>> >>>> atorg.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getUserRegistry(EmbeddedRegistryService.java:427) >>>> >>>> atorg.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getSystemRegistry(EmbeddedRegistryService.java:292) >>>> >>>> atorg.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getSystemRegistry(EmbeddedRegistryService.java:276) >>>> >>>> atorg.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getSystemRegistry(EmbeddedRegistryService.java:262) >>>> >>>> atorg.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.configure(EmbeddedRegistryService.java:219) >>>> at >>>> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.<init>(EmbeddedRegistryService.java:99) >>>> >>>> atorg.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.getEmbeddedRegistryService(RegistryCoreServiceComponent.java:630) >>>> >>>> atorg.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.buildRegistryService(RegistryCoreServiceComponent.java:563) >>>> >>>> atorg.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.activate(RegistryCoreServiceComponent.java:117) >>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>> at >>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >>>> at >>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >>>> at java.lang.reflect.Method.invoke(Method.java:601) >>>> at >>>> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260) >>>> >>>> atorg.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) >>>> >>>> atorg.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347) >>>> at >>>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620) >>>> at >>>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197) >>>> at >>>> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343) >>>> at >>>> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222) >>>> >>>> atorg.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) >>>> >>>> atorg.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861) >>>> at >>>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) >>>> >>>> atorg.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) >>>> >>>> atorg.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819) >>>> >>>> atorg.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771) >>>> >>>> atorg.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130) >>>> at >>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214) >>>> >>>> atorg.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433) >>>> at >>>> org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:71) >>>> at >>>> org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:61) >>>> at >>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711) >>>> at java.security.AccessController.doPrivileged(Native Method) >>>> >>>> atorg.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702) >>>> at >>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683) >>>> at >>>> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381) >>>> at >>>> org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390) >>>> at >>>> org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176) >>>> >>>> atorg.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559) >>>> >>>> atorg.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544) >>>> >>>> atorg.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457) >>>> >>>> atorg.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243) >>>> >>>> atorg.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438) >>>> >>>> atorg.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1) >>>> at >>>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) >>>> at >>>> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) >>>> >>>> >>>> Can someone provide a solution to this ? >>>> >>>> Thanks in advance, >>>> Sohani >>>> >>>> >>>> Sohani Weerasinghe >>>> Software Engineer >>>> WSO2, Inc: http://wso2.com >>>> >>>> Mobile : +94 716439774 >>>> Blog :http://christinetechtips.blogspot.com/ >>>> Twitter : >>>> https://twitter.com/sohanichristin<https://twitter.com/sohanichristine> >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> [email protected] >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> _______________________________________________ >>> Dev mailing list >>> [email protected] >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> -- >> Chanaka Fernando >> Technical Lead >> WSO2, Inc.; http://wso2.com >> lean.enterprise.middleware >> >> mobile: +94 773337238 >> Blog : http://soatutorials.blogspot.com >> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 >> Twitter:https://twitter.com/chanakaudaya >> Wordpress:http://chanakaudaya.wordpress.com >> >> >> >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Ajith Vitharana. > WSO2 Inc. - http://wso2.org > Email : [email protected] > Mobile : +94772217350 > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
