On Wed, Dec 12, 2012 at 6:57 PM, Senaka Fernando <sen...@wso2.com> wrote:
> Hi Ratha, > > Great. Thanks for promptly looking into this. > > Thanks, > Senaka. > > > On Wed, Dec 12, 2012 at 6:45 PM, Vijayaratha Vijayasingam <rat...@wso2.com > > wrote: > >> Hi senaka; >> Default H2 database creation for APIM happens when we build the product >> like our carbon registry/um DB. But when we point another DBs, APIM DB >> creation happens in the particular module you mentioned. So, when you start >> with -Dsetup, this error occurs. Fix is done as per this jira[1]..Will >> commit soon. >> > Hi, Any updates on this ? This is a real blocker for G-Reg to run integration tests against a mounted env at the moment. [1]https://wso2.org/jira/browse/APIMANAGER-875 >> >> tahnks. >> >> >> On 12 December 2012 17:53, Senaka Fernando <sen...@wso2.com> wrote: >> >>> Hi Ratha, >>> >>> I think That's exactly the point here. We don't need the AM DB, and this >>> common component of AM (i.e >>> org.wso2.carbon.apimgt.impl.internal.APIManagerComponent.activate) should >>> not be place which creates the DB, IMHO. >>> >>> Thanks, >>> Senaka. >>> >>> >>> On Wed, Dec 12, 2012 at 5:50 PM, Vijayaratha Vijayasingam < >>> rat...@wso2.com> wrote: >>> >>>> Why do you need APIM db scripts? >>>> >>>> >>>> On 12 December 2012 15:16, Senaka Fernando <sen...@wso2.com> wrote: >>>> >>>>> Hi Sumedha, >>>>> >>>>> What's the plan on fixing this? This is a L1 for G-Reg. >>>>> >>>>> Thanks, >>>>> Senaka. >>>>> >>>>> On Wed, Dec 12, 2012 at 2:39 PM, Chandana Napagoda >>>>> <chand...@wso2.com>wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> When starting latest Greg pack with mysql database following >>>>>> exception is thrown. Please fix this as soon as possible. >>>>>> >>>>>> Thanks, >>>>>> Chandana >>>>>> >>>>>> >>>>>> [2012-12-12 14:19:12,592] ERROR >>>>>> {org.wso2.carbon.utils.dbcreator.DatabaseCreator} - Error occurred while >>>>>> executing SQL script for creating registry database >>>>>> java.io.FileNotFoundException: /home/chandana/Documents/g-reg/Latest >>>>>> Pack/wso2greg-4.5.3/dbscripts/apimgt/h2.sql (No such file or directory) >>>>>> at java.io.FileInputStream.open(Native Method) >>>>>> at java.io.FileInputStream.<init>(FileInputStream.java:120) >>>>>> at java.io.FileInputStream.<init>(FileInputStream.java:79) >>>>>> at >>>>>> org.wso2.carbon.utils.dbcreator.DatabaseCreator.executeSQLScript(DatabaseCreator.java:294) >>>>>> at >>>>>> org.wso2.carbon.utils.dbcreator.DatabaseCreator.createRegistryDatabase(DatabaseCreator.java:61) >>>>>> at >>>>>> org.wso2.carbon.apimgt.impl.utils.APIMgtDBUtil.setupAPIManagerDatabase(APIMgtDBUtil.java:115) >>>>>> at >>>>>> org.wso2.carbon.apimgt.impl.utils.APIMgtDBUtil.initialize(APIMgtDBUtil.java:99) >>>>>> at >>>>>> org.wso2.carbon.apimgt.impl.internal.APIManagerComponent.activate(APIManagerComponent.java:119) >>>>>> 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.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451) >>>>>> at >>>>>> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.registerServices(DataSourceServiceComponent.java:100) >>>>>> at >>>>>> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.initSuperTenantUserDataSources(DataSourceServiceComponent.java:195) >>>>>> at >>>>>> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.checkInitTenantUserDataSources(DataSourceServiceComponent.java:180) >>>>>> at >>>>>> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.setRegistryService(DataSourceServiceComponent.java:131) >>>>>> 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.ComponentReference.bind(ComponentReference.java:367) >>>>>> at >>>>>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(ServiceComponentProp.java:430) >>>>>> at >>>>>> org.eclipse.equinox.internal.ds.InstanceProcess.dynamicBind(InstanceProcess.java:415) >>>>>> at >>>>>> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:319) >>>>>> 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.registry.core.internal.RegistryCoreServiceComponent.activate(RegistryCoreServiceComponent.java:123) >>>>>> 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) >>>>>> [2012-12-12 14:19:12,712] WARN >>>>>> {org.wso2.carbon.apimgt.impl.observers.APIStatusObserverList} - Attempt >>>>>> to >>>>>> reinitialize APIStatusObserverList - Skipping >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Dev mailing list >>>>>> Dev@wso2.org >>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> * <http://wso2con.com/> >>>>> * >>>>> * >>>>> >>>>> Senaka Fernando* >>>>> Member - Integration Technologies Management Committee; >>>>> Technical Lead; WSO2 Inc.; http://wso2.com* >>>>> Member; Apache Software Foundation; http://apache.org >>>>> >>>>> E-mail: senaka AT wso2.com >>>>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 >>>>> Linked-In: http://linkedin.com/in/senakafernando >>>>> >>>>> *Lean . Enterprise . Middleware >>>>> >>>>> >>>>> _______________________________________________ >>>>> Dev mailing list >>>>> Dev@wso2.org >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>> >>> >>> -- >>> * <http://wso2con.com/> >>> * >>> * >>> >>> Senaka Fernando* >>> Member - Integration Technologies Management Committee; >>> Technical Lead; WSO2 Inc.; http://wso2.com* >>> Member; Apache Software Foundation; http://apache.org >>> >>> E-mail: senaka AT wso2.com >>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 >>> Linked-In: http://linkedin.com/in/senakafernando >>> >>> *Lean . Enterprise . Middleware >>> >>> >> > > > -- > * <http://wso2con.com/> > * > * > > Senaka Fernando* > Member - Integration Technologies Management Committee; > Technical Lead; WSO2 Inc.; http://wso2.com* > Member; Apache Software Foundation; http://apache.org > > E-mail: senaka AT wso2.com > **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 > Linked-In: http://linkedin.com/in/senakafernando > > *Lean . Enterprise . Middleware > > > _______________________________________________ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Subash Chaturanga Software Engineer WSO2 Inc. http://wso2.com email - sub...@wso2.com phone - 077 2225922
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev