Hi,
No publisher feature doesn't include data-bridge core feature and that
doesn't need this file. And for publishing events, only the publisher
feature is enough.
For the publisher feature only thrift-agent-config.xml is needed. You may
need to include the following in the bin.xml to include the
thrift-agent-config.xml,
<fileSet>
<directory>
../p2-profile-gen/target/wso2carbon-core-${wso2carbon.version}/repository/conf/data-bridge/
</directory>
<outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/data-bridge/</outputDirectory>
<includes>
<include>**/thrift-agent-config.xml</include>
</includes>
</fileSet>
Thanks,
Sinthuja.
On Thu, Oct 4, 2012 at 3:18 PM, Amila Maha Arachchi <[email protected]> wrote:
> We have databridge.publisher feature in Manager. Reason for that is we
> have added usage agent to Manager. But we are now considering whether
> usage.agent is required by the Manager (it doesn't host services, but it
> has registry browsing capabilities, so we might want to capture usage data
> related to registry).
>
> Is this file needed by the publisher feature also? or the publisher
> feature inclodes the core feature I guess.
>
>
> On Thu, Oct 4, 2012 at 3:02 PM, Sinthuja Ragendran <[email protected]>wrote:
>
>> Hi,
>>
>> This is coming from data-bridge core feature. You may need to add the
>> following in the bin.xml,
>> <file>
>>
>> <source>../p2-profile-gen/target/wso2carbon-core-${carbon.version}/repository/conf/data-bridge/data-bridge-config.xml</source>
>>
>> <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/data-bridge</outputDirectory>
>> <filtered>true</filtered>
>> <fileMode>644</fileMode>
>> </file>
>>
>> But why the data-bridge feature is included in manager?
>> It's used for data receiving in BAM and CEP, but I wonder the purpose of
>> data-bridge feature in manager!
>>
>> Thanks,
>> Sinthuja.
>>
>>
>> On Thu, Oct 4, 2012 at 2:42 PM, Muhammed Shariq <[email protected]> wrote:
>>
>>> I am getting the following error. From where / which feature is the
>>> config file coming ?!
>>>
>>> [2012-10-04 14:37:32,730] WARN
>>> {net.sf.ehcache.config.ConfigurationFactory} - No configuration found.
>>> Configuring ehcache from ehcache-failsafe.xml found in the classpath:
>>> bundleresource://35.fwk1742814727/ehcache-failsafe.xml
>>> [2012-10-04 14:37:33,571] ERROR
>>> {org.wso2.carbon.databridge.core.internal.utils.DataBridgeCoreBuilder} -
>>> data-bridge-config.xmlcannot be found in the path :
>>> /home/shariq/src/4.0.0-branch/platform/products/manager/2.0.0/modules/distribution/target/wso2stratos-manager-2.0.0/repository/conf/data-bridge/data-bridge-config.xml
>>> java.io.FileNotFoundException:
>>> /home/shariq/src/4.0.0-branch/platform/products/manager/2.0.0/modules/distribution/target/wso2stratos-manager-2.0.0/repository/conf/data-bridge/data-bridge-config.xml
>>> (No such file or directory)
>>> at java.io.FileInputStream.open(Native Method)
>>> at java.io.FileInputStream.<init>(FileInputStream.java:106)
>>> at
>>> org.wso2.carbon.databridge.core.internal.utils.DataBridgeCoreBuilder.loadConfigXML(DataBridgeCoreBuilder.java:57)
>>> at
>>> org.wso2.carbon.databridge.core.internal.DataBridgeDS.activate(DataBridgeDS.java:65)
>>> 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.identity.authentication.internal.AuthenticationServiceComponent.activate(AuthenticationServiceComponent.java:57)
>>> 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.user.core.internal.Activator.startDeploy(Activator.java:67)
>>> 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-10-04 14:37:33,578] ERROR
>>> {org.wso2.carbon.databridge.core.internal.DataBridgeDS} - The data Bridge
>>> config was not found. Falling back to defaults.
>>> [2012-10-04 14:37:33,579] WARN
>>> {org.wso2.carbon.databridge.core.internal.DataBridgeDS} - The default
>>> stream defintion store is loaded :
>>> org.wso2.carbon.databridge.core.definitionstore.InMemoryStreamDefinitionStore.
>>> Please configure a proper definition store.
>>>
>>>
>>> --
>>> Thanks,
>>> Shariq.
>>> Phone: +94 777 202 225
>>>
>>>
>>> _______________________________________________
>>> 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
>>
>>
>
>
> --
> *Amila Maharachchi*
> Technical Lead
> Member, Management Committee - Cloud & Platform TG
> WSO2, Inc.; http://wso2.com
>
> Blog: http://maharachchi.blogspot.com
> Mobile: +94719371446
>
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev