Hi Amila, You can't use the JDBC mounting if you are using H2 embedded database since it allow one connection at a time. You can simply use MySQL. Please use [1] to configure the mount correctly.
thanks Eranda [1]. http://ajithvblogs.blogspot.com/2012/09/create-jdbc-mount-to-wso2-governance.html On Tue, Dec 11, 2012 at 9:33 PM, Subash Chaturanga <[email protected]> wrote: > > > On Tue, Dec 11, 2012 at 9:06 PM, Amila De Silva <[email protected]> wrote: > >> Attached. > > > Are you trying to on a ws mount. I assume the attached registry.xml > belongs GReg (since you do not have any mount configs in the registry xml). > Either way you have H2 as the current DB config as per configuration files. > No mysql db config enabled in master DS ?? > > >> >> >> On Tue, Dec 11, 2012 at 3:55 PM, Eranda Sooriyabandara >> <[email protected]>wrote: >> >>> Hi Amila, >>> Can you please attach the masterdatasource.xml and registry.xml please. >>> >>> thanks >>> Eranda >>> >>> >>> On Tue, Dec 11, 2012 at 3:42 PM, Amila De Silva <[email protected]> wrote: >>> >>>> Hi, >>>> >>>> I tried mounting governance space in a recent API Manager pack, which >>>> depends on registry feature 4.0.5. When trying to start the instance after >>>> doing the necessary configuring, >>>> I get the following error: >>>> >>>> 2012-12-11 12:48:26,674] INFO - DefaultRealmService Database already >>>> exists. Not creating a new database. >>>> [2012-12-11 12:48:27,377] INFO - EmbeddedRegistryService Configured >>>> Registry in 53ms >>>> [2012-12-11 12:48:27,412] ERROR - RegistryCoreServiceComponent Failed >>>> to activate Registry Core bundle >>>> java.lang.NullPointerException >>>> at >>>> org.wso2.carbon.registry.core.jdbc.handlers.builtin.MountHandler.setConURL(MountHandler.java:1610) >>>> at >>>> org.wso2.carbon.registry.core.utils.RegistryUtils.registerHandlerForRemoteLinks(RegistryUtils.java:1426) >>>> at >>>> org.wso2.carbon.registry.core.utils.RegistryUtils.registerHandlerForRemoteLinks(RegistryUtils.java:1393) >>>> at >>>> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.createLink(EmbeddedRegistry.java:2801) >>>> at >>>> org.wso2.carbon.registry.core.caching.CacheBackedRegistry.createLink(CacheBackedRegistry.java:406) >>>> at >>>> org.wso2.carbon.registry.core.session.UserRegistry.createLink(UserRegistry.java:1520) >>>> at >>>> org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.setupMounts(RegistryCoreServiceComponent.java:337) >>>> at >>>> org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.buildRegistryService(RegistryCoreServiceComponent.java:572) >>>> at >>>> org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.activate(RegistryCoreServiceComponent.java:120) >>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>> at >>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>>> at >>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>>> at java.lang.reflect.Method.invoke(Method.java:597) >>>> at >>>> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:252) >>>> at >>>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) >>>> at >>>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:346) >>>> at >>>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:588) >>>> at >>>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:196) >>>> at >>>> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:328) >>>> at >>>> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:221) >>>> at >>>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104) >>>> at >>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861) >>>> at >>>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) >>>> at >>>> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) >>>> at >>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819) >>>> at >>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771) >>>> at >>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130) >>>> at >>>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214) >>>> at >>>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433) >>>> at >>>> org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:68) >>>> 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) >>>> at >>>> org.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:389) >>>> at >>>> org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1130) >>>> at >>>> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559) >>>> at >>>> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544) >>>> at >>>> org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457) >>>> at >>>> org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243) >>>> at >>>> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438) >>>> at >>>> org.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) >>>> >>>> MySQL database is used as the underlying DB, which is in the same >>>> machine. What would be the possible cause for this? >>>> >>>> Regards, >>>> AmilaD >>>> >>>> >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> [email protected] >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> *Eranda Sooriyabandara >>> *Software Engineer; >>> Integration Technologies Team; >>> WSO2 Inc.; http://wso2.com >>> >>> * >>> * >>> >>> >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > > Subash Chaturanga > Software Engineer > WSO2 Inc. http://wso2.com > > email - [email protected] > phone - 077 2225922 > > -- *Eranda Sooriyabandara *Software Engineer; Integration Technologies Team; WSO2 Inc.; http://wso2.com * *
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
