Re: [Dev] Error while running APIM profiles

2016-05-22 Thread Dushan Abeyruwan
Hi
Issue was resolved, thanks Chamila !

Cheers,
Dushan

On Sun, May 22, 2016 at 7:44 PM, Dushan Abeyruwan  wrote:

> I'm sorry which file [1] you mean?
> in documentation it does not say which file i need to do these changes and
>  common.yaml has this AFAIU
>
> For instance gateway-worker only has
>
> # Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
> #
> # Licensed under the Apache License, Version 2.0 (the "License");
> # you may not use this file except in compliance with the License.
> # You may obtain a copy of the License at
> #
> # http://www.apache.org/licenses/LICENSE-2.0
> #
> # Unless required by applicable law or agreed to in writing, software
> # distributed under the License is distributed on an "AS IS" BASIS,
> # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> # See the License for the specific language governing permissions and
> # limitations under the License.
>
> ---
> wso2::mgt_hostname: mgt.gw.dev.wso2.org
> wso2::hostname: gw.dev.wso2.org
>
> wso2::clustering:
>   enabled: true
>   domain: gw.am.wso2.domain
>   sub_domain: worker
>   local_member_host: "%{::ipaddress}"
>   local_member_port: 4000
>   membership_scheme: wka
>   wka:
> members:
>   -
> hostname: 192.168.100.5
> port: 4000
>   -
> hostname: 192.168.100.6
> port: 4000
>
> wso2::dep_sync:
>   enabled: true
>   auto_checkout: true
>   auto_commit: false
>   repository_type: svn
>   svn:
> url: http://svn.gw.am.dev.wso2.org/gateway-artifacts
> user: svnuser
> password: password
> append_tenant_id: true
>
> wso2::registry_mounts:
>  wso2_config_db:
>path: /_system/config
>target_path: /_system/config/apim-gw
>read_only: true
>registry_root: /
>enable_cache: true
>
>  wso2_gov_db:
>path: /_system/governance
>target_path: /_system/governance
>read_only: true
>registry_root: /
>enable_cache: true
>
> [1] https://github.com/wso2/puppet-modules/tree/master/modules/wso2am
>
> On Sun, May 22, 2016 at 6:23 PM, Chamila De Alwis 
> wrote:
>
>> Hi Dushan,
>>
>> It seems you have not enabled the data sources needed to configure the
>> registry mounting. Please refer the module README. It lists which entries
>> should be uncommented and changed in order to configure distributed
>> profiles.
>>
>> [1] - https://github.com/wso2/puppet-modules/tree/master/modules/wso2am
>>
>>
>> Regards,
>> Chamila de Alwis
>> Committer and PMC Member - Apache Stratos
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>> On Mon, May 23, 2016 at 2:11 AM, Dushan Abeyruwan 
>> wrote:
>>
>>> compelete error log
>>>
>>> root@dushan-b:/opt# ./setup.sh
>>> #
>>>Starting cleanup
>>> #
>>> #
>>>Setting up environment
>>> #
>>> reading
>>> product_name=wso2am product_version=1.10.0 product_profile=gateway-worker
>>> reading end
>>> #
>>> Installing
>>> #
>>> Info: Retrieving plugin
>>> Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
>>> Info: Loading facts in /var/lib/puppet/lib/facter/service_provider.rb
>>> Info: Loading facts in /var/lib/puppet/lib/facter/package_provider.rb
>>> Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
>>> Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
>>> Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
>>> Error: Could not retrieve catalog from remote server: Error 400 on
>>> SERVER: Failed to parse template
>>> wso2am/1.10.0/repository/conf/registry.xml.erb:
>>>   Filepath:
>>> /etc/puppet/modules/wso2am/templates/1.10.0/repository/conf/registry.xml.erb
>>>   Line: 37
>>>   Detail: undefined method `[]' for nil:NilClass
>>>  at /etc/puppet/modules/wso2base/manifests/push_templates.pp:23 on node
>>> dushan-b.openstacklocal
>>> Warning: Not using cache on failed catalog
>>> Error: Could not retrieve catalog; skipping run
>>> root@dushan-b:/opt# exit
>>> exit
>>> ubuntu@dushan-b:~$ exit
>>>
>>> On Sun, May 22, 2016 at 12:49 PM, Dushan Abeyruwan 
>>> wrote:
>>>
 Hi Devs,
   Getting following error while running profiles other than the
 default, what could be the reason here?

 I'm using following script [1], as I mentioned default profile seems
 working fine.

 *Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb*






 *Error: Could not retrieve catalog from remote server: Error 400 on
 SERVER: Failed to parse template
 wso2am/1.10.0/repository/conf/registry.xml.erb: 

Re: [Dev] Which feature has org.wso2.carbon.jaxws.webapp.mgt jar?

2016-05-22 Thread Bhathiya Jayasekara
Can you please comment on this too?

org.wso2.carbon.xfer:${carbon.kernel.version}


Thanks,
Bhathiya

On Mon, May 23, 2016 at 8:10 AM, Bhathiya Jayasekara 
wrote:

> Thanks Kasun.
>
> On Mon, May 23, 2016 at 7:52 AM, KasunG Gajasinghe 
> wrote:
>
>>
>> This component is no longer used since the functionality is merged to
>> org.wso2.carbon.webapp.mgt.
>>
>> On Mon, May 23, 2016 at 12:02 AM, Bhathiya Jayasekara 
>> wrote:
>>
>>> Hi Carbon team,
>>>
>>> Could you please tell me the $subject [1]?
>>>
>>> [1]
>>> https://github.com/wso2/carbon-deployment/tree/4.6.x/components/webapp-mgt/org.wso2.carbon.jaxws.webapp.mgt
>>>
>>>
>>> Thanks,
>>>
>>> --
>>> *Bhathiya Jayasekara*
>>> *Senior Software Engineer,*
>>> *WSO2 inc., http://wso2.com *
>>>
>>> *Phone: +94715478185 <%2B94715478185>*
>>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>>> *
>>> *Twitter: https://twitter.com/bhathiyax *
>>> *Blog: http://movingaheadblog.blogspot.com
>>> *
>>>
>>
>>
>>
>> --
>>
>> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
>> email: kasung AT spamfree wso2.com
>> linked-in: http://lk.linkedin.com/in/gajasinghe
>> blog: http://kasunbg.org
>>
>>
>>
>
>
>
> --
> *Bhathiya Jayasekara*
> *Senior Software Engineer,*
> *WSO2 inc., http://wso2.com *
>
> *Phone: +94715478185 <%2B94715478185>*
> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
> *
> *Twitter: https://twitter.com/bhathiyax *
> *Blog: http://movingaheadblog.blogspot.com
> *
>



-- 
*Bhathiya Jayasekara*
*Senior Software Engineer,*
*WSO2 inc., http://wso2.com *

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
*
*Twitter: https://twitter.com/bhathiyax *
*Blog: http://movingaheadblog.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [BPS] [UUF] Developing BPMN Explorer UI using UUF for BPS

2016-05-22 Thread Hasitha Aravinda
Hi Sanjiva,


On Sat, May 21, 2016 at 7:19 AM, Sanjiva Weerawarana 
wrote:

> How does the webapp manage sessions and security credentials for the
> remote HTTP API right now?
>

​Both webapps in BPS use jaggery to invoke backend services or rest APIs. ​
​
HumanTask-explorer uses JSession to authenticate HumanTask admin services.

In BPMN-explorer, we maintain a server side session containing security
credentials. From Jaggery, we invoke BPMN Rest API and use above session
details to authenticate BPMN rest API using basic auth.

Thanks,
Hasitha.
​


>
> We know we need to do something for this for UUF .. we delayed it as a
> temporary measure. IIRC also we've had issues previously with session
> timeout mismatches and with security creds being not carefully handled so
> we need to make sure this is done right (or at least better) this time.
>
> So, what do you guys do right now for these two aspects of making a remote
> call from the server?
>
> Sanjiva.
>
> On Fri, May 20, 2016 at 11:28 AM, Nandika Jayawardana 
> wrote:
>
>> In case of BPS, what we develop is similar to a web application which
>> should be independent of the BPS backend. Idea is that this component has
>> to be packaged into PC ( process center ) as well as BPS. Hence, native
>> OSGi call's is not sufficient for our requirement.
>>
>> Regards
>> Nandika
>>
>> On Fri, May 20, 2016 at 11:17 AM, Rasika Perera  wrote:
>>
>>> Hi,
>>>
>>> We have came up with this best practise. There are basically two
>>> scenarios;
>>>
>>> 1. When the back-end is belongs to your product(eg. calling BPS runtime).
>>>
>>> We assume that you have written your JAX-RS based on an OSGi service.
>>> JAX-RS will *not* hold any business logic and act as API interface(Facade
>>> Pattern). In this case making a network call(AJAX) from UI to your own VM
>>> is discouraged. You should use callOsgiService() function on the server
>>> side Js.
>>>
>>> 2. When the back-end is external(eg. calling Twitter API).
>>>
>>> Here we don't provide any server side feature for handling HTTP calls
>>> because this will again abuse and use to call own VM back-ends. You can
>>> simply write AJAX calls from UI using $.ajax() in jquery or XMLHttpRequest
>>> in client-side Js.
>>>
>>> * In the edge cases that you really need to make HTTP calls from the
>>> server side Js, you can initiate; apache commons 'HttpClient' or
>>> java.net 'URLConnection' through Nashorn.
>>>
>>> * Also you might still need to write JAX-RS APIs for your OSGi services
>>> for customers.
>>>
>>> Thanks,
>>> Rasika
>>>
>>> On Fri, May 20, 2016 at 10:42 AM, Chathura Ekanayake 
>>> wrote:
>>>
 So there is not separation between UI back-end and the actual server
 (e.g. BPS runtime)? i.e. both always run in the same jvm?

 On Thu, May 19, 2016 at 11:47 PM, Manuranga Perera 
 wrote:

> Yes, you will be able to call OSGi services.
>
> On Thu, May 19, 2016 at 12:53 PM, Hemika Kodikara 
> wrote:
>
>> Hi All,
>>
>> For clarification, does this mean we will be able to invoke a service
>> side function(through nashorn) upon client request ? As in when a user
>> clicks a button, we can call a server side function ?
>>
>> Regards,
>> Hemika
>>
>> Hemika Kodikara
>> Software Engineer
>> WSO2 Inc.
>> lean . enterprise . middleware
>> http://wso2.com
>>
>> Mobile : +9477762
>>
>> On Thu, May 19, 2016 at 3:43 PM, SajithAR Ariyarathna <
>> sajit...@wso2.com> wrote:
>>
>>> Hi Sudharma,
>>>
>>> In the browser (client-side), you can do AJAX calls to the necessary
>>> REST APIs. However, doing HTTP requests from UI backend (which runs on 
>>> the
>>> server-side) to REST APIs (which also runs on the server-side) is not
>>> recommended. Instead of that you should call OSGi services. Calling OSGI
>>> services from server-side JS will be available in the next milestone of 
>>> UUF.
>>>
>>> Thanks.
>>>
>>> On Thu, May 19, 2016 at 2:21 PM, Sudharma Subasinghe <
>>> sudhar...@wso2.com> wrote:
>>>
 Hi all,

 I am working on developing BPMN explorer ui using Unified UI
 Framework.

 The existing BPMN explorer ui is for BPS which has built on C4 and
 it is used Jaggery. So, I am working on BPMN explorer ui for BPS which 
 is
 to be released on C5.

 We need to implement business logics in backend. For example, I
 need to send request to backend from browser, and from backend to BPS. 
 Is
 there functionality to achieve it in UUF?

 Any idea on this is appreciated.

 Thanks
 Sudharma

 --
 Sudharma Subasinghe,
 Software Engineer,
 WSO2 Inc.
 Email: 

Re: [Dev] APIM 2.0.0-SNAPSHOT Nightly build - 22/05/2016

2016-05-22 Thread Bhathiya Jayasekara
Made a good progress. Hope I can complete it within the week.

Thanks,
Bhathiya

On Mon, May 23, 2016 at 10:20 AM, Ushani Balasooriya 
wrote:

> Hi Bhathiya,
>
> Any luck with P2 repo?
>
> Regards,
> Ushani
>
> On Sun, May 22, 2016 at 11:34 PM, Bhathiya Jayasekara 
> wrote:
>
>> Hi all,
>>
>> Please find APIM 2.0.0 SNAPSHOT nightly build here[1].
>>
>> [1]
>> https://svn.wso2.org/repos/wso2/scratch/2016/apim-2.0.0/wso2am-2.0.0-SNAPSHOT-22-05-2016.zip
>>
>> Thanks,
>>
>>
>> --
>> *Bhathiya Jayasekara*
>> *Senior Software Engineer,*
>> *WSO2 inc., http://wso2.com *
>>
>> *Phone: +94715478185 <%2B94715478185>*
>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>> *
>> *Twitter: https://twitter.com/bhathiyax *
>> *Blog: http://movingaheadblog.blogspot.com
>> *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Ushani Balasooriya*
> Senior Software Engineer - QA;
> WSO2 Inc; http://www.wso2.com/.
> Mobile; +94772636796
>
>


-- 
*Bhathiya Jayasekara*
*Senior Software Engineer,*
*WSO2 inc., http://wso2.com *

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
*
*Twitter: https://twitter.com/bhathiyax *
*Blog: http://movingaheadblog.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM 2.0.0-SNAPSHOT Nightly build - 22/05/2016

2016-05-22 Thread Ushani Balasooriya
Hi Bhathiya,

Any luck with P2 repo?

Regards,
Ushani

On Sun, May 22, 2016 at 11:34 PM, Bhathiya Jayasekara 
wrote:

> Hi all,
>
> Please find APIM 2.0.0 SNAPSHOT nightly build here[1].
>
> [1]
> https://svn.wso2.org/repos/wso2/scratch/2016/apim-2.0.0/wso2am-2.0.0-SNAPSHOT-22-05-2016.zip
>
> Thanks,
>
>
> --
> *Bhathiya Jayasekara*
> *Senior Software Engineer,*
> *WSO2 inc., http://wso2.com *
>
> *Phone: +94715478185 <%2B94715478185>*
> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
> *
> *Twitter: https://twitter.com/bhathiyax *
> *Blog: http://movingaheadblog.blogspot.com
> *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Ushani Balasooriya*
Senior Software Engineer - QA;
WSO2 Inc; http://www.wso2.com/.
Mobile; +94772636796
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [C5] StartOrderResolverException in carbon deployment engine

2016-05-22 Thread Hasitha Aravinda
Thanks Kasun, will check it.



On Mon, May 23, 2016 at 9:31 AM, KasunG Gajasinghe  wrote:

> Hi Hasitha,
>
> This is now fixed in the latest snapshot.
>
> Thanks,
> KasunG
>
> On Fri, May 20, 2016 at 12:41 PM, Hasitha Aravinda 
> wrote:
>
>> Hi Kasun,
>>
>> We are getting following exception when starting the server. It seems
>> like Carbon deployment wasn't updated for latest
>> kernel startupresolver. Could you please check. ?
>>
>> osgi> [2016-05-20 12:36:19,676] ERROR {org.wso2.carbon.core} -
>> FrameworkEvent ERROR - org.wso2.carbon.core
>> org.wso2.carbon.kernel.internal.startupresolver.StartOrderResolverException:
>> componentName value is missing in the services registered with the key
>> org.wso2.carbon.kernel.startupresolver.RequiredCapabilityListener,
>> implementation class name is
>> org.wso2.carbon.deployment.engine.internal.DeploymentEngineListenerComponent
>> at
>> org.wso2.carbon.kernel.internal.startupresolver.OSGiServiceCapabilityTracker$CapabilityServiceTrackerCustomizer.addingService(OSGiServiceCapabilityTracker.java:142)
>> at
>> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
>> at
>> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)
>> at
>> org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
>> at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
>> at
>> org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901)
>> at
>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109)
>> at
>> org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:914)
>> 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:862)
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:801)
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:127)
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:225)
>> at
>> org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:464)
>> at
>> org.eclipse.equinox.internal.ds.InstanceProcess.registerService(InstanceProcess.java:536)
>> at
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:213)
>> at
>> org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:473)
>> at
>> org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:217)
>> at
>> org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:816)
>> at
>> org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:783)
>> at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89)
>> at
>> org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70)
>>
>> Thanks,
>> Hasitha.
>>
>> --
>> --
>> Hasitha Aravinda,
>> Senior Software Engineer,
>> WSO2 Inc.
>> Email: hasi...@wso2.com
>> Mobile : +94 718 210 200
>>
>
>
>
> --
>
> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
>
>
>



-- 
--
Hasitha Aravinda,
Senior Software Engineer,
WSO2 Inc.
Email: hasi...@wso2.com
Mobile : +94 718 210 200
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [C5] StartOrderResolverException in carbon deployment engine

2016-05-22 Thread KasunG Gajasinghe
Hi Hasitha,

This is now fixed in the latest snapshot.

Thanks,
KasunG

On Fri, May 20, 2016 at 12:41 PM, Hasitha Aravinda  wrote:

> Hi Kasun,
>
> We are getting following exception when starting the server. It seems like
> Carbon deployment wasn't updated for latest kernel startupresolver. Could
> you please check. ?
>
> osgi> [2016-05-20 12:36:19,676] ERROR {org.wso2.carbon.core} -
> FrameworkEvent ERROR - org.wso2.carbon.core
> org.wso2.carbon.kernel.internal.startupresolver.StartOrderResolverException:
> componentName value is missing in the services registered with the key
> org.wso2.carbon.kernel.startupresolver.RequiredCapabilityListener,
> implementation class name is
> org.wso2.carbon.deployment.engine.internal.DeploymentEngineListenerComponent
> at
> org.wso2.carbon.kernel.internal.startupresolver.OSGiServiceCapabilityTracker$CapabilityServiceTrackerCustomizer.addingService(OSGiServiceCapabilityTracker.java:142)
> at
> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
> at
> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)
> at
> org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
> at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
> at
> org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901)
> at
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109)
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:914)
> 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:862)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:801)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:127)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:225)
> at
> org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:464)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.registerService(InstanceProcess.java:536)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:213)
> at
> org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:473)
> at
> org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:217)
> at
> org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:816)
> at
> org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:783)
> at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89)
> at
> org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70)
>
> Thanks,
> Hasitha.
>
> --
> --
> Hasitha Aravinda,
> Senior Software Engineer,
> WSO2 Inc.
> Email: hasi...@wso2.com
> Mobile : +94 718 210 200
>



-- 

*Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Thanuja Uruththirakodeeswaran

2016-05-22 Thread Imesh Gunaratne
Hi Devs,

It's my pleasure to announce Thanuja Uruththirakodeeswaran as a WSO2
committer. Thanuja has contributed to Apache Stratos, WSO2 Private PaaS,
Puppet Modules, Dockerfiles & Kubernetes Artifacts. As a recognition of
her work, she has been voted as a WSO2 committer.

Thanuja, welcome aboard! Keep up the good work!

Thanks

-- 
*Imesh Gunaratne*
Senior Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.io TW: @imesh
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Adding secure-vault implementation to C5

2016-05-22 Thread Nipuni Perera
Hi all,

We are trying to add secure-vault implementation to C5. Please find the
architecture email with subject[1] to track the discussion. In the meantime
I have started evaluating the C4 cipher-tool and securevault implementation
and adding the secure-vault support to the C5.

Below are some of the issues that I need to get clarified:

   1. I am currently adding the cipher-tool implementation under
   carbon-tools [2]. This implementation will be maintained under
   carbon-kernel. As per the C4 implementation we have added cipher-tool
   support to use in non-wso2 environment where user need to provide a
   separate configuration file with name "
   cipher-standalone-config.properties". Is this still required with C5?
   2. With C5 we use yaml files to maintain server configuration. If we are
   to add keystore configuration (eg:alias, keystore-password,
   keystore-location etc) to carbon.yml, we have to update the
CarbonConfiguration.java
   [4] with keystore configuration. Also to access the carbon configuration
   via YAMLBasedConfigProvider [5] , we may add a carbon-core as a
   dependency to carbon-tool. In order to avoid this for the cipher-tool
   implementation, I can read carbon.yml to a Map and use only the keystore
   related configuration which is needed for running cipher-tool. But still
   adding new configuration to carbon.yaml will need to update
CarbonConfiguration.java
   [4]. Any thoughts on this?
   3. What is the location to add secure-vault implementation? Currently I
   have added this under carbon-core (changes are not committed yet). Shall we
   maintain in a separate repo?
   4. We refer a properties file with name "secret-manager.properties", in
   SecretManager.java[6] in secure-vault implementation. This is the first
   file to read the configuration when initializing the secret manager. We
   save the configuration details in a secret-conf.properties file after
   running the cipher-tool. But I could not find the above mentioned file in
   carbon products. Appreciate any help on this.


[1] "Introducing Secure-Vault support to C5"
[2] https://github.com/wso2/carbon-kernel/tree/master/tools
[3]
https://github.com/wso2/cipher-tool/blob/master/components/ciphertool/src/main/java/org/wso2/ciphertool/utils/Utils.java#L242
[4]
https://github.com/wso2/carbon-kernel/blob/master/core/src/main/java/org/wso2/carbon/kernel/config/model/CarbonConfiguration.java
[5]
https://github.com/wso2/carbon-kernel/blob/master/core/src/main/java/org/wso2/carbon/kernel/internal/config/YAMLBasedConfigProvider.java
[6]
http://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.0.0/dependencies/securevault/1.0.0-wso2v2/src/main/java/org/wso2/securevault/secret/SecretManager.java

Thanks,
Nipuni
-- 
Nipuni Perera
Software Engineer; WSO2 Inc.; http://wso2.com
Email: nip...@wso2.com
Git hub profile: https://github.com/nipuni
Blog : http://nipunipererablog.blogspot.com/
Mobile: +94 (71) 5626680

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while running APIM profiles

2016-05-22 Thread Dushan Abeyruwan
I'm sorry which file [1] you mean?
in documentation it does not say which file i need to do these changes and
 common.yaml has this AFAIU

For instance gateway-worker only has

# Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

---
wso2::mgt_hostname: mgt.gw.dev.wso2.org
wso2::hostname: gw.dev.wso2.org

wso2::clustering:
  enabled: true
  domain: gw.am.wso2.domain
  sub_domain: worker
  local_member_host: "%{::ipaddress}"
  local_member_port: 4000
  membership_scheme: wka
  wka:
members:
  -
hostname: 192.168.100.5
port: 4000
  -
hostname: 192.168.100.6
port: 4000

wso2::dep_sync:
  enabled: true
  auto_checkout: true
  auto_commit: false
  repository_type: svn
  svn:
url: http://svn.gw.am.dev.wso2.org/gateway-artifacts
user: svnuser
password: password
append_tenant_id: true

wso2::registry_mounts:
 wso2_config_db:
   path: /_system/config
   target_path: /_system/config/apim-gw
   read_only: true
   registry_root: /
   enable_cache: true

 wso2_gov_db:
   path: /_system/governance
   target_path: /_system/governance
   read_only: true
   registry_root: /
   enable_cache: true

[1] https://github.com/wso2/puppet-modules/tree/master/modules/wso2am

On Sun, May 22, 2016 at 6:23 PM, Chamila De Alwis  wrote:

> Hi Dushan,
>
> It seems you have not enabled the data sources needed to configure the
> registry mounting. Please refer the module README. It lists which entries
> should be uncommented and changed in order to configure distributed
> profiles.
>
> [1] - https://github.com/wso2/puppet-modules/tree/master/modules/wso2am
>
>
> Regards,
> Chamila de Alwis
> Committer and PMC Member - Apache Stratos
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> On Mon, May 23, 2016 at 2:11 AM, Dushan Abeyruwan  wrote:
>
>> compelete error log
>>
>> root@dushan-b:/opt# ./setup.sh
>> #
>>Starting cleanup
>> #
>> #
>>Setting up environment
>> #
>> reading
>> product_name=wso2am product_version=1.10.0 product_profile=gateway-worker
>> reading end
>> #
>> Installing
>> #
>> Info: Retrieving plugin
>> Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
>> Info: Loading facts in /var/lib/puppet/lib/facter/service_provider.rb
>> Info: Loading facts in /var/lib/puppet/lib/facter/package_provider.rb
>> Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
>> Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
>> Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
>> Error: Could not retrieve catalog from remote server: Error 400 on
>> SERVER: Failed to parse template
>> wso2am/1.10.0/repository/conf/registry.xml.erb:
>>   Filepath:
>> /etc/puppet/modules/wso2am/templates/1.10.0/repository/conf/registry.xml.erb
>>   Line: 37
>>   Detail: undefined method `[]' for nil:NilClass
>>  at /etc/puppet/modules/wso2base/manifests/push_templates.pp:23 on node
>> dushan-b.openstacklocal
>> Warning: Not using cache on failed catalog
>> Error: Could not retrieve catalog; skipping run
>> root@dushan-b:/opt# exit
>> exit
>> ubuntu@dushan-b:~$ exit
>>
>> On Sun, May 22, 2016 at 12:49 PM, Dushan Abeyruwan 
>> wrote:
>>
>>> Hi Devs,
>>>   Getting following error while running profiles other than the default,
>>> what could be the reason here?
>>>
>>> I'm using following script [1], as I mentioned default profile seems
>>> working fine.
>>>
>>> *Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb*
>>>
>>>
>>>
>>>
>>>
>>>
>>> *Error: Could not retrieve catalog from remote server: Error 400 on
>>> SERVER: Failed to parse template
>>> wso2am/1.10.0/repository/conf/registry.xml.erb: Filepath:
>>> /etc/puppet/modules/wso2am/templates/1.10.0/repository/conf/registry.xml.erb
>>>  Line:
>>> 37 Detail: undefined method `[]' for nil:NilClassat
>>> /etc/puppet/modules/wso2base/manifests/push_templates.pp:23 on node
>>> dushan-b.openstacklocalWarning: Not using cache on failed catalogError:
>>> Could not retrieve catalog; skipping run*

Re: [Dev] Which feature has org.wso2.carbon.jaxws.webapp.mgt jar?

2016-05-22 Thread Bhathiya Jayasekara
Thanks Kasun.

On Mon, May 23, 2016 at 7:52 AM, KasunG Gajasinghe  wrote:

>
> This component is no longer used since the functionality is merged to
> org.wso2.carbon.webapp.mgt.
>
> On Mon, May 23, 2016 at 12:02 AM, Bhathiya Jayasekara 
> wrote:
>
>> Hi Carbon team,
>>
>> Could you please tell me the $subject [1]?
>>
>> [1]
>> https://github.com/wso2/carbon-deployment/tree/4.6.x/components/webapp-mgt/org.wso2.carbon.jaxws.webapp.mgt
>>
>>
>> Thanks,
>>
>> --
>> *Bhathiya Jayasekara*
>> *Senior Software Engineer,*
>> *WSO2 inc., http://wso2.com *
>>
>> *Phone: +94715478185 <%2B94715478185>*
>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>> *
>> *Twitter: https://twitter.com/bhathiyax *
>> *Blog: http://movingaheadblog.blogspot.com
>> *
>>
>
>
>
> --
>
> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
>
>
>



-- 
*Bhathiya Jayasekara*
*Senior Software Engineer,*
*WSO2 inc., http://wso2.com *

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
*
*Twitter: https://twitter.com/bhathiyax *
*Blog: http://movingaheadblog.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Which feature has org.wso2.carbon.jaxws.webapp.mgt jar?

2016-05-22 Thread KasunG Gajasinghe
This component is no longer used since the functionality is merged to
org.wso2.carbon.webapp.mgt.

On Mon, May 23, 2016 at 12:02 AM, Bhathiya Jayasekara 
wrote:

> Hi Carbon team,
>
> Could you please tell me the $subject [1]?
>
> [1]
> https://github.com/wso2/carbon-deployment/tree/4.6.x/components/webapp-mgt/org.wso2.carbon.jaxws.webapp.mgt
>
>
> Thanks,
>
> --
> *Bhathiya Jayasekara*
> *Senior Software Engineer,*
> *WSO2 inc., http://wso2.com *
>
> *Phone: +94715478185 <%2B94715478185>*
> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
> *
> *Twitter: https://twitter.com/bhathiyax *
> *Blog: http://movingaheadblog.blogspot.com
> *
>



-- 

*Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while running APIM profiles

2016-05-22 Thread Chamila De Alwis
Hi Dushan,

It seems you have not enabled the data sources needed to configure the
registry mounting. Please refer the module README. It lists which entries
should be uncommented and changed in order to configure distributed
profiles.

[1] - https://github.com/wso2/puppet-modules/tree/master/modules/wso2am


Regards,
Chamila de Alwis
Committer and PMC Member - Apache Stratos
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com



On Mon, May 23, 2016 at 2:11 AM, Dushan Abeyruwan  wrote:

> compelete error log
>
> root@dushan-b:/opt# ./setup.sh
> #
>Starting cleanup
> #
> #
>Setting up environment
> #
> reading
> product_name=wso2am product_version=1.10.0 product_profile=gateway-worker
> reading end
> #
> Installing
> #
> Info: Retrieving plugin
> Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
> Info: Loading facts in /var/lib/puppet/lib/facter/service_provider.rb
> Info: Loading facts in /var/lib/puppet/lib/facter/package_provider.rb
> Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
> Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
> Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
> Error: Could not retrieve catalog from remote server: Error 400 on SERVER:
> Failed to parse template wso2am/1.10.0/repository/conf/registry.xml.erb:
>   Filepath:
> /etc/puppet/modules/wso2am/templates/1.10.0/repository/conf/registry.xml.erb
>   Line: 37
>   Detail: undefined method `[]' for nil:NilClass
>  at /etc/puppet/modules/wso2base/manifests/push_templates.pp:23 on node
> dushan-b.openstacklocal
> Warning: Not using cache on failed catalog
> Error: Could not retrieve catalog; skipping run
> root@dushan-b:/opt# exit
> exit
> ubuntu@dushan-b:~$ exit
>
> On Sun, May 22, 2016 at 12:49 PM, Dushan Abeyruwan 
> wrote:
>
>> Hi Devs,
>>   Getting following error while running profiles other than the default,
>> what could be the reason here?
>>
>> I'm using following script [1], as I mentioned default profile seems
>> working fine.
>>
>> *Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb*
>>
>>
>>
>>
>>
>>
>> *Error: Could not retrieve catalog from remote server: Error 400 on
>> SERVER: Failed to parse template
>> wso2am/1.10.0/repository/conf/registry.xml.erb: Filepath:
>> /etc/puppet/modules/wso2am/templates/1.10.0/repository/conf/registry.xml.erb 
>> Line:
>> 37 Detail: undefined method `[]' for nil:NilClassat
>> /etc/puppet/modules/wso2base/manifests/push_templates.pp:23 on node
>> dushan-b.openstacklocalWarning: Not using cache on failed catalogError:
>> Could not retrieve catalog; skipping run*
>>
>> [1]https://github.com/wso2/puppet-modules/releases/tag/v2.0.0-rc1
>> 
>>
>> --
>> Dushan Abeyruwan | Technical Lead
>>
>> PMC Member Apache Synpase
>> WSO2 Inc. http://wso2.com/
>> Blog:*http://www.dushantech.com/ *
>> LinkedIn:*https://www.linkedin.com/in/dushanabeyruwan
>> *
>> Mobile:(001)408-791-9312
>>
>>
>
>
> --
> Dushan Abeyruwan | Technical Lead
>
> PMC Member Apache Synpase
> WSO2 Inc. http://wso2.com/
> Blog:*http://www.dushantech.com/ *
> LinkedIn:*https://www.linkedin.com/in/dushanabeyruwan
> *
> Mobile:(001)408-791-9312
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while running APIM profiles

2016-05-22 Thread Dushan Abeyruwan
compelete error log

root@dushan-b:/opt# ./setup.sh
#
   Starting cleanup
#
#
   Setting up environment
#
reading
product_name=wso2am product_version=1.10.0 product_profile=gateway-worker
reading end
#
Installing
#
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/service_provider.rb
Info: Loading facts in /var/lib/puppet/lib/facter/package_provider.rb
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
Error: Could not retrieve catalog from remote server: Error 400 on SERVER:
Failed to parse template wso2am/1.10.0/repository/conf/registry.xml.erb:
  Filepath:
/etc/puppet/modules/wso2am/templates/1.10.0/repository/conf/registry.xml.erb
  Line: 37
  Detail: undefined method `[]' for nil:NilClass
 at /etc/puppet/modules/wso2base/manifests/push_templates.pp:23 on node
dushan-b.openstacklocal
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
root@dushan-b:/opt# exit
exit
ubuntu@dushan-b:~$ exit

On Sun, May 22, 2016 at 12:49 PM, Dushan Abeyruwan  wrote:

> Hi Devs,
>   Getting following error while running profiles other than the default,
> what could be the reason here?
>
> I'm using following script [1], as I mentioned default profile seems
> working fine.
>
> *Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb*
>
>
>
>
>
>
> *Error: Could not retrieve catalog from remote server: Error 400 on
> SERVER: Failed to parse template
> wso2am/1.10.0/repository/conf/registry.xml.erb: Filepath:
> /etc/puppet/modules/wso2am/templates/1.10.0/repository/conf/registry.xml.erb 
> Line:
> 37 Detail: undefined method `[]' for nil:NilClassat
> /etc/puppet/modules/wso2base/manifests/push_templates.pp:23 on node
> dushan-b.openstacklocalWarning: Not using cache on failed catalogError:
> Could not retrieve catalog; skipping run*
>
> [1]https://github.com/wso2/puppet-modules/releases/tag/v2.0.0-rc1
> 
>
> --
> Dushan Abeyruwan | Technical Lead
>
> PMC Member Apache Synpase
> WSO2 Inc. http://wso2.com/
> Blog:*http://www.dushantech.com/ *
> LinkedIn:*https://www.linkedin.com/in/dushanabeyruwan
> *
> Mobile:(001)408-791-9312
>
>


-- 
Dushan Abeyruwan | Technical Lead

PMC Member Apache Synpase
WSO2 Inc. http://wso2.com/
Blog:*http://www.dushantech.com/ *
LinkedIn:*https://www.linkedin.com/in/dushanabeyruwan
*
Mobile:(001)408-791-9312
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error while running APIM profiles

2016-05-22 Thread Dushan Abeyruwan
Hi Devs,
  Getting following error while running profiles other than the default,
what could be the reason here?

I'm using following script [1], as I mentioned default profile seems
working fine.

*Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb*






*Error: Could not retrieve catalog from remote server: Error 400 on SERVER:
Failed to parse template
wso2am/1.10.0/repository/conf/registry.xml.erb: Filepath:
/etc/puppet/modules/wso2am/templates/1.10.0/repository/conf/registry.xml.erb
Line:
37 Detail: undefined method `[]' for nil:NilClassat
/etc/puppet/modules/wso2base/manifests/push_templates.pp:23 on node
dushan-b.openstacklocalWarning: Not using cache on failed catalogError:
Could not retrieve catalog; skipping run*

[1]https://github.com/wso2/puppet-modules/releases/tag/v2.0.0-rc1


-- 
Dushan Abeyruwan | Technical Lead

PMC Member Apache Synpase
WSO2 Inc. http://wso2.com/
Blog:*http://www.dushantech.com/ *
LinkedIn:*https://www.linkedin.com/in/dushanabeyruwan
*
Mobile:(001)408-791-9312
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Which feature has org.wso2.carbon.jaxws.webapp.mgt jar?

2016-05-22 Thread Bhathiya Jayasekara
Hi Carbon team,

Could you please tell me the $subject [1]?

[1]
https://github.com/wso2/carbon-deployment/tree/4.6.x/components/webapp-mgt/org.wso2.carbon.jaxws.webapp.mgt


Thanks,

-- 
*Bhathiya Jayasekara*
*Senior Software Engineer,*
*WSO2 inc., http://wso2.com *

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
*
*Twitter: https://twitter.com/bhathiyax *
*Blog: http://movingaheadblog.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] APIM 2.0.0-SNAPSHOT Nightly build - 22/05/2016

2016-05-22 Thread Bhathiya Jayasekara
Hi all,

Please find APIM 2.0.0 SNAPSHOT nightly build here[1].

[1]
https://svn.wso2.org/repos/wso2/scratch/2016/apim-2.0.0/wso2am-2.0.0-SNAPSHOT-22-05-2016.zip

Thanks,


-- 
*Bhathiya Jayasekara*
*Senior Software Engineer,*
*WSO2 inc., http://wso2.com *

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
*
*Twitter: https://twitter.com/bhathiyax *
*Blog: http://movingaheadblog.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] WSO2 IoT Server 1.0.0-alpha Released

2016-05-22 Thread Ayyoob Hamza
Hi Dulitha,
It seems that hadoop.home.dir not set in windows. This error get triggered
when the spark context initialise. However It seems like hadoop is not
needed and has been crept into the pack with the installation of analytics
datasource feature. We can remove hbase feature from this, thanks for
pointing out, could you please raise a JIRA on this[1].

[1] https://wso2.org/jira/browse/IOTS

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [IOTS] Creating a New Device Type - device-deployer build failed

2016-05-22 Thread Ayyoob Hamza
Hi Yasith,
It seems that the feature that you have mentioned in the feature
installation pom does not match with your device type feature. Could you
please cross check the feature name and the version in your device type
feature and with the installation pom.

Thanks


*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Sun, May 22, 2016 at 12:05 PM, Yasith Lokuge 
wrote:

> Hi,
>
> I followed the documentation  [1]  for creating a new device type in IoT
> server 1.0.0-Alpha
> I received the following error when tried to execute
> mvn clean install -f device-deployer.xml
>
> [ERROR] Failed to execute goal
> org.wso2.maven:carbon-p2-plugin:1.5.3:p2-repo-gen (2-p2-repo-generation) on
> project devicetype-feature-installation: Error occured when processing the
> Feature Artifact:
> org.wso2.carbon:org.wso2.carbon.org.wso2.carbon.helloworld.feature:1.0.0-SNAPSHOT:
> ERROR: Failure to find
> org.wso2.carbon:org.wso2.carbon.org.wso2.carbon.helloworld.feature:zip:1.0.0-SNAPSHOT
> in http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in
> the local repository, resolution will not be reattempted until the update
> interval of wso2-nexus has elapsed or updates are forced
> [ERROR]
> [ERROR] Try downloading the file manually from the project website.
> [ERROR]
> [ERROR] Then, install it using the command:
> [ERROR] mvn install:install-file -DgroupId=org.wso2.carbon
> -DartifactId=org.wso2.carbon.org.wso2.carbon.helloworld.feature
> -Dversion=1.0.0-SNAPSHOT -Dpackaging=zip -Dfile=/path/to/file
> [ERROR]
> [ERROR] Alternatively, if you host your own repository you can deploy the
> file there:
> [ERROR] mvn deploy:deploy-file -DgroupId=org.wso2.carbon
> -DartifactId=org.wso2.carbon.org.wso2.carbon.helloworld.feature
> -Dversion=1.0.0-SNAPSHOT -Dpackaging=zip -Dfile=/path/to/file -Durl=[url]
> -DrepositoryId=[id]
> [ERROR]
> [ERROR]
> [ERROR]
> org.wso2.carbon:org.wso2.carbon.org.wso2.carbon.helloworld.feature:zip:1.0.0-SNAPSHOT
> [ERROR]
> [ERROR] from the specified remote repositories:
> [ERROR] wso2-nexus (
> http://maven.wso2.org/nexus/content/groups/wso2-public/, releases=true,
> snapshots=true),
> [ERROR] wso2.releases (
> http://maven.wso2.org/nexus/content/repositories/releases/,
> releases=true, snapshots=true),
> [ERROR] wso2.snapshots (
> http://maven.wso2.org/nexus/content/repositories/snapshots/,
> releases=false, snapshots=true),
> [ERROR] central (http://repo.maven.apache.org/maven2, releases=true,
> snapshots=false)
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn  -rf :devicetype-feature-installation
>
>
>
> [1] https://docs.wso2.com/display/IoTS100/Creating+a+New+Device+Type
>
>
> Regards,
>
> --
> Yasith Lokuge
>
> Software Engineer
> M: +94 7713 53682 | E: yas...@wso2telco.com
> W: www.yasith.me
>
> WSO2.Telco Inc.
> Level 4,
> 20, Palm Grove, Colombo 03
> Sri Lanka.
> www.wso2telco.com
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IOTS] Creating a New Device Type - device-deployer build failed

2016-05-22 Thread Yasith Lokuge
Hi,

I followed the documentation  [1]  for creating a new device type in IoT
server 1.0.0-Alpha
I received the following error when tried to execute
mvn clean install -f device-deployer.xml

[ERROR] Failed to execute goal
org.wso2.maven:carbon-p2-plugin:1.5.3:p2-repo-gen (2-p2-repo-generation) on
project devicetype-feature-installation: Error occured when processing the
Feature Artifact:
org.wso2.carbon:org.wso2.carbon.org.wso2.carbon.helloworld.feature:1.0.0-SNAPSHOT:
ERROR: Failure to find
org.wso2.carbon:org.wso2.carbon.org.wso2.carbon.helloworld.feature:zip:1.0.0-SNAPSHOT
in http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in
the local repository, resolution will not be reattempted until the update
interval of wso2-nexus has elapsed or updates are forced
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=org.wso2.carbon
-DartifactId=org.wso2.carbon.org.wso2.carbon.helloworld.feature
-Dversion=1.0.0-SNAPSHOT -Dpackaging=zip -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the
file there:
[ERROR] mvn deploy:deploy-file -DgroupId=org.wso2.carbon
-DartifactId=org.wso2.carbon.org.wso2.carbon.helloworld.feature
-Dversion=1.0.0-SNAPSHOT -Dpackaging=zip -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[id]
[ERROR]
[ERROR]
[ERROR]
org.wso2.carbon:org.wso2.carbon.org.wso2.carbon.helloworld.feature:zip:1.0.0-SNAPSHOT
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/,
releases=true, snapshots=true),
[ERROR] wso2.releases (
http://maven.wso2.org/nexus/content/repositories/releases/, releases=true,
snapshots=true),
[ERROR] wso2.snapshots (
http://maven.wso2.org/nexus/content/repositories/snapshots/,
releases=false, snapshots=true),
[ERROR] central (http://repo.maven.apache.org/maven2, releases=true,
snapshots=false)
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn  -rf :devicetype-feature-installation



[1] https://docs.wso2.com/display/IoTS100/Creating+a+New+Device+Type


Regards,

-- 
Yasith Lokuge

Software Engineer
M: +94 7713 53682 | E: yas...@wso2telco.com
W: www.yasith.me

WSO2.Telco Inc.
Level 4,
20, Palm Grove, Colombo 03
Sri Lanka.
www.wso2telco.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev