Re: [Dev] [Greg] Error when starting the server in wso2greg-5.0.0-SNAPSHOT
Hi Bhathiya, Harsha, Yes, you are right in saying that the file is already installed with the feature to proper location of carbon. I think when copying via the bin.xml, we are selectively picking up configuration files and including which leads to omission of any newly introduced errors. I was under the impression that inside the bin.xml we were copying the repository/conf/etc/ directory completely and excluding any files not needed (if any). I wonder why we are using the exclude all/include selectively approach for the bin.xml conf files rather than the converse approach. If we are not copying all the files installed by p2-profile-gen phase, the feature developer would have the responsibility to go and update the product bin.xml files in all the products where the feature is used. I guess there are pros/cons for both approaches. Any idea why the current exclude-all/include-selectively approach is used over the other? Thanks, Lasantha On 24 September 2014 23:58, Harsha Kumara hars...@wso2.com wrote: On Wed, Sep 24, 2014 at 10:59 PM, Bhathiya Jayasekara bhath...@wso2.com wrote: Hi Lasantha/Harsha, On Wed, Sep 24, 2014 at 10:31 PM, Harsha Kumara hars...@wso2.com wrote: On Wed, Sep 24, 2014 at 10:15 PM, Lasantha Fernando lasan...@wso2.com wrote: On 24 September 2014 22:05, Harsha Kumara hars...@wso2.com wrote: Hi Prassanna, Cassandra environments are introduce as a new feature of Storage Server recently which was done by Bhathiya. So cassandra-enviornments.xml xml needs to be added to the product distribution. Can't we add this file when installing the feature itself, rather than copying it through product bin.xml? You can find a similar example in [3]. In general, it is better practice to add the related configuration files with the feature, unless there is a particular reason that this approach cannot be followed. +1 for this approach. I think there are no product specific configurations. Will add this to the feature itself. Thanks Lasantha for pointing out this. We already do this. When the product distribution is being built, and features being installed, this config is copied to proper location of carbon. But product (greg in this case) has the responsibility to copy the config from carbon to product. AFAIK, that's the standard practice. Please correct me if I'm wrong. @Bhathiya, as Lasantha mentioned, if we can copy the configuration at feature installation without copy it from the bin file from a product, wouldn't it be good? If one needs to install a feature separately, wouldn't that needs to be there unless there is product specific configuration modification. I'm not exactly sure about copying configuration on feature installing. Thanks, Bhathiya If you copy the [2] to repository/conf/etc folder this error should disappear.But this needs to be added to the product distribution. @Bhathiya Can you confirm this? I'm adding Pulasthi to notify about this configuration. [1] - https://github.com/wso2-dev/product-ss/blob/master/modules/distribution/src/main/assembly/bin.xml (product-ss bin file with the configuration) Thanks, Harsha [3] https://github.com/wso2-dev/carbon-event-processing/blob/master/features/event-processor/org.wso2.carbon.event.processor.server.feature/resources/p2.inf Thanks, Lasantha On Wed, Sep 24, 2014 at 9:20 PM, Shiva Balachandran sh...@wso2.com wrote: Hi Prasanna, Please check if the file cassandra-enviornments.xml exists in the given directory path. (Users/prasanna/workspace/ wso2/greg/git/prasanna/product-greg/modules/ distribution/target/wso2greg-5.0.0-SNAPSHOT/repository/conf/etc). The error is made cause of an missing file which is used to initialize the environment. Try obtaining a fresh pack. Thank you, Regards Shiva Balachandran On Wed, Sep 24, 2014 at 6:52 PM, Prasanna Dangalla prasa...@wso2.com wrote: Hi, Following error occurs when running the wso2server.sh. ERROR {org.wso2.carbon.cassandra.mgt.environment.EnvironmentManager} - Exception Occurred while initializing Cassandra environments org.wso2.carbon.cassandra.mgt.CassandraServerManagementException: Error occurred while parsing file, while converting to a org.w3c.dom.Document : /Users/prasanna/workspace/wso2/greg/git/prasanna/product-greg/modules/distribution/target/wso2greg-5.0.0-SNAPSHOT/repository/conf/etc/cassandra-environments.xml (No such file or directory) at org.wso2.carbon.cassandra.mgt.util.CassandraManagementUtils.convertToDocument(CassandraManagementUtils.java:164) at org.wso2.carbon.cassandra.mgt.environment.EnvironmentManager.initEnvironments(EnvironmentManager.java:74) at org.wso2.carbon.cassandra.mgt.internal.CassandraAdminDSComponent.activate(CassandraAdminDSComponent.java:54) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at
Re: [Dev] [Greg] Error when starting the server in wso2greg-5.0.0-SNAPSHOT
Hi Lasantha, I don't see any issues with the other approach. IMO, that's the proper way to do this. Thanks, Bhathiya On Fri, Sep 26, 2014 at 1:17 AM, Lasantha Fernando lasan...@wso2.com wrote: Hi Bhathiya, Harsha, Yes, you are right in saying that the file is already installed with the feature to proper location of carbon. I think when copying via the bin.xml, we are selectively picking up configuration files and including which leads to omission of any newly introduced errors. I was under the impression that inside the bin.xml we were copying the repository/conf/etc/ directory completely and excluding any files not needed (if any). I wonder why we are using the exclude all/include selectively approach for the bin.xml conf files rather than the converse approach. If we are not copying all the files installed by p2-profile-gen phase, the feature developer would have the responsibility to go and update the product bin.xml files in all the products where the feature is used. I guess there are pros/cons for both approaches. Any idea why the current exclude-all/include-selectively approach is used over the other? Thanks, Lasantha On 24 September 2014 23:58, Harsha Kumara hars...@wso2.com wrote: On Wed, Sep 24, 2014 at 10:59 PM, Bhathiya Jayasekara bhath...@wso2.com wrote: Hi Lasantha/Harsha, On Wed, Sep 24, 2014 at 10:31 PM, Harsha Kumara hars...@wso2.com wrote: On Wed, Sep 24, 2014 at 10:15 PM, Lasantha Fernando lasan...@wso2.com wrote: On 24 September 2014 22:05, Harsha Kumara hars...@wso2.com wrote: Hi Prassanna, Cassandra environments are introduce as a new feature of Storage Server recently which was done by Bhathiya. So cassandra-enviornments.xml xml needs to be added to the product distribution. Can't we add this file when installing the feature itself, rather than copying it through product bin.xml? You can find a similar example in [3]. In general, it is better practice to add the related configuration files with the feature, unless there is a particular reason that this approach cannot be followed. +1 for this approach. I think there are no product specific configurations. Will add this to the feature itself. Thanks Lasantha for pointing out this. We already do this. When the product distribution is being built, and features being installed, this config is copied to proper location of carbon. But product (greg in this case) has the responsibility to copy the config from carbon to product. AFAIK, that's the standard practice. Please correct me if I'm wrong. @Bhathiya, as Lasantha mentioned, if we can copy the configuration at feature installation without copy it from the bin file from a product, wouldn't it be good? If one needs to install a feature separately, wouldn't that needs to be there unless there is product specific configuration modification. I'm not exactly sure about copying configuration on feature installing. Thanks, Bhathiya If you copy the [2] to repository/conf/etc folder this error should disappear.But this needs to be added to the product distribution. @Bhathiya Can you confirm this? I'm adding Pulasthi to notify about this configuration. [1] - https://github.com/wso2-dev/product-ss/blob/master/modules/distribution/src/main/assembly/bin.xml (product-ss bin file with the configuration) Thanks, Harsha [3] https://github.com/wso2-dev/carbon-event-processing/blob/master/features/event-processor/org.wso2.carbon.event.processor.server.feature/resources/p2.inf Thanks, Lasantha On Wed, Sep 24, 2014 at 9:20 PM, Shiva Balachandran sh...@wso2.com wrote: Hi Prasanna, Please check if the file cassandra-enviornments.xml exists in the given directory path. (Users/prasanna/workspace/ wso2/greg/git/prasanna/product-greg/modules/ distribution/target/wso2greg-5.0.0-SNAPSHOT/repository/conf/etc). The error is made cause of an missing file which is used to initialize the environment. Try obtaining a fresh pack. Thank you, Regards Shiva Balachandran On Wed, Sep 24, 2014 at 6:52 PM, Prasanna Dangalla prasa...@wso2.com wrote: Hi, Following error occurs when running the wso2server.sh. ERROR {org.wso2.carbon.cassandra.mgt.environment.EnvironmentManager} - Exception Occurred while initializing Cassandra environments org.wso2.carbon.cassandra.mgt.CassandraServerManagementException: Error occurred while parsing file, while converting to a org.w3c.dom.Document : /Users/prasanna/workspace/wso2/greg/git/prasanna/product-greg/modules/distribution/target/wso2greg-5.0.0-SNAPSHOT/repository/conf/etc/cassandra-environments.xml (No such file or directory) at org.wso2.carbon.cassandra.mgt.util.CassandraManagementUtils.convertToDocument(CassandraManagementUtils.java:164) at org.wso2.carbon.cassandra.mgt.environment.EnvironmentManager.initEnvironments(EnvironmentManager.java:74) at
[Dev] [Greg] Error when starting the server in wso2greg-5.0.0-SNAPSHOT
Hi, Following error occurs when running the wso2server.sh. ERROR {org.wso2.carbon.cassandra.mgt.environment.EnvironmentManager} - Exception Occurred while initializing Cassandra environments org.wso2.carbon.cassandra.mgt.CassandraServerManagementException: Error occurred while parsing file, while converting to a org.w3c.dom.Document : /Users/prasanna/workspace/wso2/greg/git/prasanna/product-greg/modules/distribution/target/wso2greg-5.0.0-SNAPSHOT/repository/conf/etc/cassandra-environments.xml (No such file or directory) at org.wso2.carbon.cassandra.mgt.util.CassandraManagementUtils.convertToDocument(CassandraManagementUtils.java:164) at org.wso2.carbon.cassandra.mgt.environment.EnvironmentManager.initEnvironments(EnvironmentManager.java:74) at org.wso2.carbon.cassandra.mgt.internal.CassandraAdminDSComponent.activate(CassandraAdminDSComponent.java:54) 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:260) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) at org.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) at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) 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.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:517) at org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219) at org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.java:81) 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:260) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) at org.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) at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) 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
Re: [Dev] [Greg] Error when starting the server in wso2greg-5.0.0-SNAPSHOT
Hi Prasanna, Please check if the file cassandra-enviornments.xml exists in the given directory path. (Users/prasanna/workspace/wso2/greg/git/prasanna/ product-greg/modules/distribution/target/wso2greg-5.0.0-SNAPSHOT/repository/ conf/etc). The error is made cause of an missing file which is used to initialize the environment. Try obtaining a fresh pack. Thank you, Regards Shiva Balachandran On Wed, Sep 24, 2014 at 6:52 PM, Prasanna Dangalla prasa...@wso2.com wrote: Hi, Following error occurs when running the wso2server.sh. ERROR {org.wso2.carbon.cassandra.mgt.environment.EnvironmentManager} - Exception Occurred while initializing Cassandra environments org.wso2.carbon.cassandra.mgt.CassandraServerManagementException: Error occurred while parsing file, while converting to a org.w3c.dom.Document : /Users/prasanna/workspace/wso2/greg/git/prasanna/product-greg/modules/distribution/target/wso2greg-5.0.0-SNAPSHOT/repository/conf/etc/cassandra-environments.xml (No such file or directory) at org.wso2.carbon.cassandra.mgt.util.CassandraManagementUtils.convertToDocument(CassandraManagementUtils.java:164) at org.wso2.carbon.cassandra.mgt.environment.EnvironmentManager.initEnvironments(EnvironmentManager.java:74) at org.wso2.carbon.cassandra.mgt.internal.CassandraAdminDSComponent.activate(CassandraAdminDSComponent.java:54) 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:260) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) at org.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) at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) 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.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:517) at org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219) at org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.java:81) 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:260) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) at org.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) at
Re: [Dev] [Greg] Error when starting the server in wso2greg-5.0.0-SNAPSHOT
Hi Prassanna, Cassandra environments are introduce as a new feature of Storage Server recently which was done by Bhathiya. So cassandra-enviornments.xml xml needs to be added to the product distribution. If you copy the [2] to repository/conf/etc folder this error should disappear.But this needs to be added to the product distribution. @Bhathiya Can you confirm this? I'm adding Pulasthi to notify about this configuration. [1] - https://github.com/wso2-dev/product-ss/blob/master/modules/distribution/src/main/assembly/bin.xml (product-ss bin file with the configuration) Thanks, Harsha On Wed, Sep 24, 2014 at 9:20 PM, Shiva Balachandran sh...@wso2.com wrote: Hi Prasanna, Please check if the file cassandra-enviornments.xml exists in the given directory path. (Users/prasanna/workspace/wso2/greg/git/prasanna/ product-greg/modules/distribution/target/wso2greg- 5.0.0-SNAPSHOT/repository/conf/etc). The error is made cause of an missing file which is used to initialize the environment. Try obtaining a fresh pack. Thank you, Regards Shiva Balachandran On Wed, Sep 24, 2014 at 6:52 PM, Prasanna Dangalla prasa...@wso2.com wrote: Hi, Following error occurs when running the wso2server.sh. ERROR {org.wso2.carbon.cassandra.mgt.environment.EnvironmentManager} - Exception Occurred while initializing Cassandra environments org.wso2.carbon.cassandra.mgt.CassandraServerManagementException: Error occurred while parsing file, while converting to a org.w3c.dom.Document : /Users/prasanna/workspace/wso2/greg/git/prasanna/product-greg/modules/distribution/target/wso2greg-5.0.0-SNAPSHOT/repository/conf/etc/cassandra-environments.xml (No such file or directory) at org.wso2.carbon.cassandra.mgt.util.CassandraManagementUtils.convertToDocument(CassandraManagementUtils.java:164) at org.wso2.carbon.cassandra.mgt.environment.EnvironmentManager.initEnvironments(EnvironmentManager.java:74) at org.wso2.carbon.cassandra.mgt.internal.CassandraAdminDSComponent.activate(CassandraAdminDSComponent.java:54) 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:260) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) at org.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) at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) 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.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:517) at org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219) at org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.java:81) 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:260)
Re: [Dev] [Greg] Error when starting the server in wso2greg-5.0.0-SNAPSHOT
On 24 September 2014 22:05, Harsha Kumara hars...@wso2.com wrote: Hi Prassanna, Cassandra environments are introduce as a new feature of Storage Server recently which was done by Bhathiya. So cassandra-enviornments.xml xml needs to be added to the product distribution. Can't we add this file when installing the feature itself, rather than copying it through product bin.xml? You can find a similar example in [3]. In general, it is better practice to add the related configuration files with the feature, unless there is a particular reason that this approach cannot be followed. If you copy the [2] to repository/conf/etc folder this error should disappear.But this needs to be added to the product distribution. @Bhathiya Can you confirm this? I'm adding Pulasthi to notify about this configuration. [1] - https://github.com/wso2-dev/product-ss/blob/master/modules/distribution/src/main/assembly/bin.xml (product-ss bin file with the configuration) Thanks, Harsha [3] https://github.com/wso2-dev/carbon-event-processing/blob/master/features/event-processor/org.wso2.carbon.event.processor.server.feature/resources/p2.inf Thanks, Lasantha On Wed, Sep 24, 2014 at 9:20 PM, Shiva Balachandran sh...@wso2.com wrote: Hi Prasanna, Please check if the file cassandra-enviornments.xml exists in the given directory path. (Users/prasanna/workspace/wso2/greg/git/prasanna/ product-greg/modules/distribution/target/wso2greg- 5.0.0-SNAPSHOT/repository/conf/etc). The error is made cause of an missing file which is used to initialize the environment. Try obtaining a fresh pack. Thank you, Regards Shiva Balachandran On Wed, Sep 24, 2014 at 6:52 PM, Prasanna Dangalla prasa...@wso2.com wrote: Hi, Following error occurs when running the wso2server.sh. ERROR {org.wso2.carbon.cassandra.mgt.environment.EnvironmentManager} - Exception Occurred while initializing Cassandra environments org.wso2.carbon.cassandra.mgt.CassandraServerManagementException: Error occurred while parsing file, while converting to a org.w3c.dom.Document : /Users/prasanna/workspace/wso2/greg/git/prasanna/product-greg/modules/distribution/target/wso2greg-5.0.0-SNAPSHOT/repository/conf/etc/cassandra-environments.xml (No such file or directory) at org.wso2.carbon.cassandra.mgt.util.CassandraManagementUtils.convertToDocument(CassandraManagementUtils.java:164) at org.wso2.carbon.cassandra.mgt.environment.EnvironmentManager.initEnvironments(EnvironmentManager.java:74) at org.wso2.carbon.cassandra.mgt.internal.CassandraAdminDSComponent.activate(CassandraAdminDSComponent.java:54) 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:260) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) at org.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) at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) 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.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:517) at
Re: [Dev] [Greg] Error when starting the server in wso2greg-5.0.0-SNAPSHOT
On Wed, Sep 24, 2014 at 10:15 PM, Lasantha Fernando lasan...@wso2.com wrote: On 24 September 2014 22:05, Harsha Kumara hars...@wso2.com wrote: Hi Prassanna, Cassandra environments are introduce as a new feature of Storage Server recently which was done by Bhathiya. So cassandra-enviornments.xml xml needs to be added to the product distribution. Can't we add this file when installing the feature itself, rather than copying it through product bin.xml? You can find a similar example in [3]. In general, it is better practice to add the related configuration files with the feature, unless there is a particular reason that this approach cannot be followed. +1 for this approach. I think there are no product specific configurations. Will add this to the feature itself. Thanks Lasantha for pointing out this. If you copy the [2] to repository/conf/etc folder this error should disappear.But this needs to be added to the product distribution. @Bhathiya Can you confirm this? I'm adding Pulasthi to notify about this configuration. [1] - https://github.com/wso2-dev/product-ss/blob/master/modules/distribution/src/main/assembly/bin.xml (product-ss bin file with the configuration) Thanks, Harsha [3] https://github.com/wso2-dev/carbon-event-processing/blob/master/features/event-processor/org.wso2.carbon.event.processor.server.feature/resources/p2.inf Thanks, Lasantha On Wed, Sep 24, 2014 at 9:20 PM, Shiva Balachandran sh...@wso2.com wrote: Hi Prasanna, Please check if the file cassandra-enviornments.xml exists in the given directory path. (Users/prasanna/workspace/wso2/greg/git/prasanna/ product-greg/modules/distribution/target/wso2greg- 5.0.0-SNAPSHOT/repository/conf/etc). The error is made cause of an missing file which is used to initialize the environment. Try obtaining a fresh pack. Thank you, Regards Shiva Balachandran On Wed, Sep 24, 2014 at 6:52 PM, Prasanna Dangalla prasa...@wso2.com wrote: Hi, Following error occurs when running the wso2server.sh. ERROR {org.wso2.carbon.cassandra.mgt.environment.EnvironmentManager} - Exception Occurred while initializing Cassandra environments org.wso2.carbon.cassandra.mgt.CassandraServerManagementException: Error occurred while parsing file, while converting to a org.w3c.dom.Document : /Users/prasanna/workspace/wso2/greg/git/prasanna/product-greg/modules/distribution/target/wso2greg-5.0.0-SNAPSHOT/repository/conf/etc/cassandra-environments.xml (No such file or directory) at org.wso2.carbon.cassandra.mgt.util.CassandraManagementUtils.convertToDocument(CassandraManagementUtils.java:164) at org.wso2.carbon.cassandra.mgt.environment.EnvironmentManager.initEnvironments(EnvironmentManager.java:74) at org.wso2.carbon.cassandra.mgt.internal.CassandraAdminDSComponent.activate(CassandraAdminDSComponent.java:54) 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:260) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) at org.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) at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) 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
Re: [Dev] [Greg] Error when starting the server in wso2greg-5.0.0-SNAPSHOT
Hi Lasantha/Harsha, On Wed, Sep 24, 2014 at 10:31 PM, Harsha Kumara hars...@wso2.com wrote: On Wed, Sep 24, 2014 at 10:15 PM, Lasantha Fernando lasan...@wso2.com wrote: On 24 September 2014 22:05, Harsha Kumara hars...@wso2.com wrote: Hi Prassanna, Cassandra environments are introduce as a new feature of Storage Server recently which was done by Bhathiya. So cassandra-enviornments.xml xml needs to be added to the product distribution. Can't we add this file when installing the feature itself, rather than copying it through product bin.xml? You can find a similar example in [3]. In general, it is better practice to add the related configuration files with the feature, unless there is a particular reason that this approach cannot be followed. +1 for this approach. I think there are no product specific configurations. Will add this to the feature itself. Thanks Lasantha for pointing out this. We already do this. When the product distribution is being built, and features being installed, this config is copied to proper location of carbon. But product (greg in this case) has the responsibility to copy the config from carbon to product. AFAIK, that's the standard practice. Please correct me if I'm wrong. Thanks, Bhathiya If you copy the [2] to repository/conf/etc folder this error should disappear.But this needs to be added to the product distribution. @Bhathiya Can you confirm this? I'm adding Pulasthi to notify about this configuration. [1] - https://github.com/wso2-dev/product-ss/blob/master/modules/distribution/src/main/assembly/bin.xml (product-ss bin file with the configuration) Thanks, Harsha [3] https://github.com/wso2-dev/carbon-event-processing/blob/master/features/event-processor/org.wso2.carbon.event.processor.server.feature/resources/p2.inf Thanks, Lasantha On Wed, Sep 24, 2014 at 9:20 PM, Shiva Balachandran sh...@wso2.com wrote: Hi Prasanna, Please check if the file cassandra-enviornments.xml exists in the given directory path. (Users/prasanna/workspace/wso2/greg/git/prasanna/ product-greg/modules/distribution/target/wso2greg- 5.0.0-SNAPSHOT/repository/conf/etc). The error is made cause of an missing file which is used to initialize the environment. Try obtaining a fresh pack. Thank you, Regards Shiva Balachandran On Wed, Sep 24, 2014 at 6:52 PM, Prasanna Dangalla prasa...@wso2.com wrote: Hi, Following error occurs when running the wso2server.sh. ERROR {org.wso2.carbon.cassandra.mgt.environment.EnvironmentManager} - Exception Occurred while initializing Cassandra environments org.wso2.carbon.cassandra.mgt.CassandraServerManagementException: Error occurred while parsing file, while converting to a org.w3c.dom.Document : /Users/prasanna/workspace/wso2/greg/git/prasanna/product-greg/modules/distribution/target/wso2greg-5.0.0-SNAPSHOT/repository/conf/etc/cassandra-environments.xml (No such file or directory) at org.wso2.carbon.cassandra.mgt.util.CassandraManagementUtils.convertToDocument(CassandraManagementUtils.java:164) at org.wso2.carbon.cassandra.mgt.environment.EnvironmentManager.initEnvironments(EnvironmentManager.java:74) at org.wso2.carbon.cassandra.mgt.internal.CassandraAdminDSComponent.activate(CassandraAdminDSComponent.java:54) 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:260) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) at org.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) at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) 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
Re: [Dev] [Greg] Error when starting the server in wso2greg-5.0.0-SNAPSHOT
On Wed, Sep 24, 2014 at 10:59 PM, Bhathiya Jayasekara bhath...@wso2.com wrote: Hi Lasantha/Harsha, On Wed, Sep 24, 2014 at 10:31 PM, Harsha Kumara hars...@wso2.com wrote: On Wed, Sep 24, 2014 at 10:15 PM, Lasantha Fernando lasan...@wso2.com wrote: On 24 September 2014 22:05, Harsha Kumara hars...@wso2.com wrote: Hi Prassanna, Cassandra environments are introduce as a new feature of Storage Server recently which was done by Bhathiya. So cassandra-enviornments.xml xml needs to be added to the product distribution. Can't we add this file when installing the feature itself, rather than copying it through product bin.xml? You can find a similar example in [3]. In general, it is better practice to add the related configuration files with the feature, unless there is a particular reason that this approach cannot be followed. +1 for this approach. I think there are no product specific configurations. Will add this to the feature itself. Thanks Lasantha for pointing out this. We already do this. When the product distribution is being built, and features being installed, this config is copied to proper location of carbon. But product (greg in this case) has the responsibility to copy the config from carbon to product. AFAIK, that's the standard practice. Please correct me if I'm wrong. @Bhathiya, as Lasantha mentioned, if we can copy the configuration at feature installation without copy it from the bin file from a product, wouldn't it be good? If one needs to install a feature separately, wouldn't that needs to be there unless there is product specific configuration modification. I'm not exactly sure about copying configuration on feature installing. Thanks, Bhathiya If you copy the [2] to repository/conf/etc folder this error should disappear.But this needs to be added to the product distribution. @Bhathiya Can you confirm this? I'm adding Pulasthi to notify about this configuration. [1] - https://github.com/wso2-dev/product-ss/blob/master/modules/distribution/src/main/assembly/bin.xml (product-ss bin file with the configuration) Thanks, Harsha [3] https://github.com/wso2-dev/carbon-event-processing/blob/master/features/event-processor/org.wso2.carbon.event.processor.server.feature/resources/p2.inf Thanks, Lasantha On Wed, Sep 24, 2014 at 9:20 PM, Shiva Balachandran sh...@wso2.com wrote: Hi Prasanna, Please check if the file cassandra-enviornments.xml exists in the given directory path. (Users/prasanna/workspace/ wso2/greg/git/prasanna/product-greg/modules/ distribution/target/wso2greg-5.0.0-SNAPSHOT/repository/conf/etc). The error is made cause of an missing file which is used to initialize the environment. Try obtaining a fresh pack. Thank you, Regards Shiva Balachandran On Wed, Sep 24, 2014 at 6:52 PM, Prasanna Dangalla prasa...@wso2.com wrote: Hi, Following error occurs when running the wso2server.sh. ERROR {org.wso2.carbon.cassandra.mgt.environment.EnvironmentManager} - Exception Occurred while initializing Cassandra environments org.wso2.carbon.cassandra.mgt.CassandraServerManagementException: Error occurred while parsing file, while converting to a org.w3c.dom.Document : /Users/prasanna/workspace/wso2/greg/git/prasanna/product-greg/modules/distribution/target/wso2greg-5.0.0-SNAPSHOT/repository/conf/etc/cassandra-environments.xml (No such file or directory) at org.wso2.carbon.cassandra.mgt.util.CassandraManagementUtils.convertToDocument(CassandraManagementUtils.java:164) at org.wso2.carbon.cassandra.mgt.environment.EnvironmentManager.initEnvironments(EnvironmentManager.java:74) at org.wso2.carbon.cassandra.mgt.internal.CassandraAdminDSComponent.activate(CassandraAdminDSComponent.java:54) 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:260) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) at org.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) at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) at
Re: [Dev] [Greg] Error when starting the server in wso2greg-5.0.0-SNAPSHOT
Hi Prasanna, You need to use new ndatasource configuration files. Please refer [1] for more information. Please Replace humantask.xml and add bps-datasources.xml Product_HOME/repository/conf/datasources directory given files in [1]. These files should be copied when you build the product. Please check your build configurations too. [1]https://wso2.org/jira/browse/BPS-185 Thanks, Waruna On Wed, Sep 17, 2014 at 6:30 PM, Prasanna Dangalla prasa...@wso2.com wrote: Hi Denuwanthi, Thanks for the reply. First[1] error was fixed from that. but the second one[2] remains. [1] ERROR {org.apache.cassandra.cql3. QueryProcessor} - Unable to initialize MemoryMeter (jamm not specified as javaagent). This means Cassandra will be unable to measure object sizes accurately and may consequently OOM. [2] ERROR {org.wso2.carbon.attachment. mgt.core.datasource.impl.BasicDataSourceManager} - Could not initialize the DataSource:bpsds On Wed, Sep 17, 2014 at 5:27 PM, Denuwanthi De Silva denuwan...@wso2.com wrote: Hi, The jira[1] mentions the steps to resolve the above issue. steps: 1. add org.github.jamm,\ in $CARBON_PRODUCT/repository/conf/etc/launch.ini 2. add following javaagent command in server startup script (wso2server.sh) -javaagent:$CARBON_HOME/repository/components/plugins/jamm_0.2.5.wso2v2.jar \ [1]https://wso2.org/jira/browse/REGISTRY-2224 Thanks. On Wed, Sep 17, 2014 at 5:05 PM, Prasanna Dangalla prasa...@wso2.com wrote: Hi all, I build the wso2greg-5.0.0-SNAPSHOT using source in git. ( https://github.com/wso2-dev/product-greg). Build was successful. But the following error occurs when running the wso2server.sh. I added the this ( -javaagent:$CARBON_HOME/repository/components/plugins/jamm_0.2.5.wso2v2.jar \ ) line to wso2server.sh too, but the error still remains. [2014-09-17 13:51:50,679] ERROR {org.apache.cassandra.cql3.QueryProcessor} - Unable to initialize MemoryMeter (jamm not specified as javaagent). This means Cassandra will be unable to measure object sizes accurately and may consequently OOM. [2014-09-17 13:51:50,689] ERROR {org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager} - Could not initialize the DataSource:bpsds javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused] at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101) at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:107) at javax.naming.InitialContext.lookup(InitialContext.java:392) at org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.lookupInJNDI(BasicDataSourceManager.java:134) at org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.initExternalDb(BasicDataSourceManager.java:112) at org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.initDataSource(BasicDataSourceManager.java:107) at org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.startDataSource(BasicDataSourceManager.java:100) at org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.start(BasicDataSourceManager.java:67) at org.wso2.carbon.attachment.mgt.server.AttachmentServer.initDataSourceManager(AttachmentServer.java:90) at org.wso2.carbon.attachment.mgt.server.AttachmentServer.init(AttachmentServer.java:59) at org.wso2.carbon.attachment.mgt.server.internal.AttachmentServiceComponent.initAttachmentServer(AttachmentServiceComponent.java:90) at org.wso2.carbon.attachment.mgt.server.internal.AttachmentServiceComponent.activate(AttachmentServiceComponent.java:71) 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:260) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) at org.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) at
[Dev] [Greg] Error when starting the server in wso2greg-5.0.0-SNAPSHOT
Hi all, I build the wso2greg-5.0.0-SNAPSHOT using source in git. ( https://github.com/wso2-dev/product-greg). Build was successful. But the following error occurs when running the wso2server.sh. I added the this ( -javaagent:$CARBON_HOME/repository/components/plugins/jamm_0.2.5.wso2v2.jar \ ) line to wso2server.sh too, but the error still remains. [2014-09-17 13:51:50,679] ERROR {org.apache.cassandra.cql3.QueryProcessor} - Unable to initialize MemoryMeter (jamm not specified as javaagent). This means Cassandra will be unable to measure object sizes accurately and may consequently OOM. [2014-09-17 13:51:50,689] ERROR {org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager} - Could not initialize the DataSource:bpsds javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused] at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101) at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:107) at javax.naming.InitialContext.lookup(InitialContext.java:392) at org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.lookupInJNDI(BasicDataSourceManager.java:134) at org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.initExternalDb(BasicDataSourceManager.java:112) at org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.initDataSource(BasicDataSourceManager.java:107) at org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.startDataSource(BasicDataSourceManager.java:100) at org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.start(BasicDataSourceManager.java:67) at org.wso2.carbon.attachment.mgt.server.AttachmentServer.initDataSourceManager(AttachmentServer.java:90) at org.wso2.carbon.attachment.mgt.server.AttachmentServer.init(AttachmentServer.java:59) at org.wso2.carbon.attachment.mgt.server.internal.AttachmentServiceComponent.initAttachmentServer(AttachmentServiceComponent.java:90) at org.wso2.carbon.attachment.mgt.server.internal.AttachmentServiceComponent.activate(AttachmentServiceComponent.java:71) 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:260) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) at org.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) at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) 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:125) at org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.initSuperTenantUserDataSources(DataSourceServiceComponent.java:220) at org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.checkInitTenantUserDataSources(DataSourceServiceComponent.java:205) at
Re: [Dev] [Greg] Error when starting the server in wso2greg-5.0.0-SNAPSHOT
Hi, The jira[1] mentions the steps to resolve the above issue. steps: 1. add org.github.jamm,\ in $CARBON_PRODUCT/repository/conf/etc/launch.ini 2. add following javaagent command in server startup script (wso2server.sh) -javaagent:$CARBON_HOME/repository/components/plugins/jamm_0.2.5.wso2v2.jar \ [1]https://wso2.org/jira/browse/REGISTRY-2224 Thanks. On Wed, Sep 17, 2014 at 5:05 PM, Prasanna Dangalla prasa...@wso2.com wrote: Hi all, I build the wso2greg-5.0.0-SNAPSHOT using source in git. ( https://github.com/wso2-dev/product-greg). Build was successful. But the following error occurs when running the wso2server.sh. I added the this ( -javaagent:$CARBON_HOME/repository/components/plugins/jamm_0.2.5.wso2v2.jar \ ) line to wso2server.sh too, but the error still remains. [2014-09-17 13:51:50,679] ERROR {org.apache.cassandra.cql3.QueryProcessor} - Unable to initialize MemoryMeter (jamm not specified as javaagent). This means Cassandra will be unable to measure object sizes accurately and may consequently OOM. [2014-09-17 13:51:50,689] ERROR {org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager} - Could not initialize the DataSource:bpsds javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused] at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101) at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:107) at javax.naming.InitialContext.lookup(InitialContext.java:392) at org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.lookupInJNDI(BasicDataSourceManager.java:134) at org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.initExternalDb(BasicDataSourceManager.java:112) at org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.initDataSource(BasicDataSourceManager.java:107) at org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.startDataSource(BasicDataSourceManager.java:100) at org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.start(BasicDataSourceManager.java:67) at org.wso2.carbon.attachment.mgt.server.AttachmentServer.initDataSourceManager(AttachmentServer.java:90) at org.wso2.carbon.attachment.mgt.server.AttachmentServer.init(AttachmentServer.java:59) at org.wso2.carbon.attachment.mgt.server.internal.AttachmentServiceComponent.initAttachmentServer(AttachmentServiceComponent.java:90) at org.wso2.carbon.attachment.mgt.server.internal.AttachmentServiceComponent.activate(AttachmentServiceComponent.java:71) 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:260) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) at org.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) at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) 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
Re: [Dev] [Greg] Error when starting the server in wso2greg-5.0.0-SNAPSHOT
Hi Denuwanthi, Thanks for the reply. First[1] error was fixed from that. but the second one[2] remains. [1] ERROR {org.apache.cassandra.cql3. QueryProcessor} - Unable to initialize MemoryMeter (jamm not specified as javaagent). This means Cassandra will be unable to measure object sizes accurately and may consequently OOM. [2] ERROR {org.wso2.carbon.attachment. mgt.core.datasource.impl.BasicDataSourceManager} - Could not initialize the DataSource:bpsds On Wed, Sep 17, 2014 at 5:27 PM, Denuwanthi De Silva denuwan...@wso2.com wrote: Hi, The jira[1] mentions the steps to resolve the above issue. steps: 1. add org.github.jamm,\ in $CARBON_PRODUCT/repository/conf/etc/launch.ini 2. add following javaagent command in server startup script (wso2server.sh) -javaagent:$CARBON_HOME/repository/components/plugins/jamm_0.2.5.wso2v2.jar \ [1]https://wso2.org/jira/browse/REGISTRY-2224 Thanks. On Wed, Sep 17, 2014 at 5:05 PM, Prasanna Dangalla prasa...@wso2.com wrote: Hi all, I build the wso2greg-5.0.0-SNAPSHOT using source in git. ( https://github.com/wso2-dev/product-greg). Build was successful. But the following error occurs when running the wso2server.sh. I added the this ( -javaagent:$CARBON_HOME/repository/components/plugins/jamm_0.2.5.wso2v2.jar \ ) line to wso2server.sh too, but the error still remains. [2014-09-17 13:51:50,679] ERROR {org.apache.cassandra.cql3.QueryProcessor} - Unable to initialize MemoryMeter (jamm not specified as javaagent). This means Cassandra will be unable to measure object sizes accurately and may consequently OOM. [2014-09-17 13:51:50,689] ERROR {org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager} - Could not initialize the DataSource:bpsds javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused] at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101) at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:107) at javax.naming.InitialContext.lookup(InitialContext.java:392) at org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.lookupInJNDI(BasicDataSourceManager.java:134) at org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.initExternalDb(BasicDataSourceManager.java:112) at org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.initDataSource(BasicDataSourceManager.java:107) at org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.startDataSource(BasicDataSourceManager.java:100) at org.wso2.carbon.attachment.mgt.core.datasource.impl.BasicDataSourceManager.start(BasicDataSourceManager.java:67) at org.wso2.carbon.attachment.mgt.server.AttachmentServer.initDataSourceManager(AttachmentServer.java:90) at org.wso2.carbon.attachment.mgt.server.AttachmentServer.init(AttachmentServer.java:59) at org.wso2.carbon.attachment.mgt.server.internal.AttachmentServiceComponent.initAttachmentServer(AttachmentServiceComponent.java:90) at org.wso2.carbon.attachment.mgt.server.internal.AttachmentServiceComponent.activate(AttachmentServiceComponent.java:71) 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:260) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) at org.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) at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) 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