Re: [Dev] [AM] Adding a Custom Tier without the use of UI

2017-07-12 Thread Saad Sahibjan
Hi Yasima,

Thanks :D

Regards,
Saad

On Wed, Jul 12, 2017 at 1:58 PM, Yasima Dewmini <yas...@wso2.com> wrote:

> Hi Saad,
>
> Yes you are correct. For that you can first do a registry get to get the
> current tier.xml. Next append the new tire configuration you want and do
> the registry put.
>
> Regards,
> Yasima.
>
> On Wed, Jul 12, 2017 at 1:08 PM, Saad Sahibjan <saad.sahib...@gmail.com>
> wrote:
>
>> Hi Yasima,
>>
>> Thanks for the reply.
>>
>> I went through [1] and it looks like a file replacement. Correct me if
>> i'm wrong.
>>
>> I don't want to replace the whole file, I want to edit the existing file
>> to add the custom tier without any affect to the already existing tiers. In
>> case if someone else has updated the tiers.xml and if I do a full file
>> replacement there will be a loss. So to avoid it even after adding a custom
>> tier already existing tiers before adding the custom tier also should be
>> available along with the new tier. And this has to be done without the use
>> of UI.
>>
>> [1] https://github.com/malinthaprasan/registry-ws-client/
>>
>> Regards,
>> Saad
>>
>> On Wed, Jul 12, 2017 at 12:31 PM, Yasima Dewmini <yas...@wso2.com> wrote:
>>
>>> Hi Saad,
>>>
>>> You can write a SOAP based client for updating a registry resource -
>>> tiers.xml. Please find a sample in [1].
>>>
>>> If you like to do it using carbon console refer [2] which is same as in
>>> APIM 1.9.0.
>>>
>>> [1] https://github.com/malinthaprasan/registry-ws-client/
>>> [2] https://docs.wso2.com/display/AM190/Adding+new+Throttling+Tiers
>>>
>>> Regards
>>> Yasima.
>>>
>>> On Wed, Jul 12, 2017 at 11:29 AM, Saad Sahibjan <saad.sahib...@gmail.com
>>> > wrote:
>>>
>>>> Hi,
>>>>
>>>> I want to add a custom tier to API Manager 1.9.1 but not through UI. I
>>>> checked the API Manager 2.1.0, adding a custom tier could be done through
>>>> editing the 'default-tiers.xml' file in the 'wso2am-2.1.0\repository\resou
>>>> rces\default-tiers'
>>>>
>>>> Is there any way to add a custom tier in to AM 1.9.1 pack without the
>>>> use of UI?
>>>>
>>>> Regards,
>>>> Saad
>>>>
>>>> --
>>>> Regards
>>>> Saad Sahibjan
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> http://wso2.com/signatureYasima Dewmini
>>> Software Engineer, WSO2, Inc.
>>> Email: yas...@wso2.com
>>> Mobile: +94713117081 <+94%2071%20311%207081>
>>>
>>
>>
>>
>> --
>> Regards
>> Saad Sahibjan
>>
>
>
>
> --
> http://wso2.com/signatureYasima Dewmini
> Software Engineer, WSO2, Inc.
> Email: yas...@wso2.com
> Mobile: +94713117081 <+94%2071%20311%207081>
>



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


Re: [Dev] [AM] Adding a Custom Tier without the use of UI

2017-07-12 Thread Saad Sahibjan
Hi Yasima,

Thanks for the reply.

I went through [1] and it looks like a file replacement. Correct me if i'm
wrong.

I don't want to replace the whole file, I want to edit the existing file to
add the custom tier without any affect to the already existing tiers. In
case if someone else has updated the tiers.xml and if I do a full file
replacement there will be a loss. So to avoid it even after adding a custom
tier already existing tiers before adding the custom tier also should be
available along with the new tier. And this has to be done without the use
of UI.

[1] https://github.com/malinthaprasan/registry-ws-client/

Regards,
Saad

On Wed, Jul 12, 2017 at 12:31 PM, Yasima Dewmini <yas...@wso2.com> wrote:

> Hi Saad,
>
> You can write a SOAP based client for updating a registry resource -
> tiers.xml. Please find a sample in [1].
>
> If you like to do it using carbon console refer [2] which is same as in
> APIM 1.9.0.
>
> [1] https://github.com/malinthaprasan/registry-ws-client/
> [2] https://docs.wso2.com/display/AM190/Adding+new+Throttling+Tiers
>
> Regards
> Yasima.
>
> On Wed, Jul 12, 2017 at 11:29 AM, Saad Sahibjan <saad.sahib...@gmail.com>
> wrote:
>
>> Hi,
>>
>> I want to add a custom tier to API Manager 1.9.1 but not through UI. I
>> checked the API Manager 2.1.0, adding a custom tier could be done through
>> editing the 'default-tiers.xml' file in the 'wso2am-2.1.0\repository\resou
>> rces\default-tiers'
>>
>> Is there any way to add a custom tier in to AM 1.9.1 pack without the use
>> of UI?
>>
>> Regards,
>> Saad
>>
>> --
>> Regards
>> Saad Sahibjan
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> http://wso2.com/signatureYasima Dewmini
> Software Engineer, WSO2, Inc.
> Email: yas...@wso2.com
> Mobile: +94713117081 <+94%2071%20311%207081>
>



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


[Dev] [AM] Adding a Custom Tier without the use of UI

2017-07-11 Thread Saad Sahibjan
Hi,

I want to add a custom tier to API Manager 1.9.1 but not through UI. I
checked the API Manager 2.1.0, adding a custom tier could be done through
editing the 'default-tiers.xml' file in the
'wso2am-2.1.0\repository\resources\default-tiers'

Is there any way to add a custom tier in to AM 1.9.1 pack without the use
of UI?

Regards,
Saad

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


Re: [Dev] [EMM] Build failed due to one or more certificates rejected

2016-05-12 Thread Saad Sahibjan
Hi All,

I tried all the possible ways and nothing worked out.

Then i deleted all my cloned directories (also from trash), uninstalled
java and maven. Restarted my laptop and then i installed java, maven and
cloned the repositories into a fresh location and started building and was
all success.

Thanks for everyone trying to help me out.

Regards,
Saad

On Thu, May 12, 2016 at 9:12 AM, Niranjan Karunanandham <niran...@wso2.com>
wrote:

> Hi Saad,
>
> As mentioned in [1], this is because the JVM is not trusting the
> certificates. I also faced this issue when I tried to build Carbon 5 in
> openjdk. Changing the 2 policy jars will not have any effect since the
> trust certificate are at /jre/lib/security/cacerts [2]. I
> replaced the trust keystore of openjdk with the oracle jdk for which am
> able to build it successfully. If you want to analyse this more, you can
> view the trust certificates[3] in your cacerts with that of a working one.
> The keystore password for the cacerts is "changeit".
>
> In a separate note, what Kernel version are you using. If it is 4.4.x then
> the recommended maven version is 3.0.* as mentioned in [4]. If you are
> using Carbon 5, then the maven version is 3.3.* and JDK is 1.8.
>
> [1] - Mail Subject : "[Dev] One or more certificates rejected Issue on
> product Build"
> [2] - http://www.grim.se/guide/jre-cert
> [3] -
> http://bsnyderblog.blogspot.com/2013/01/how-to-list-all-certificates-in-jdk.html
> [4] - https://docs.wso2.com/display/Carbon440/Installation+Prerequisites
>
> Regards,
> Nira
>
> On Wed, May 11, 2016 at 10:45 PM, Saad Sahibjan <s...@wso2.com> wrote:
>
>> Hi,
>>
>> I tried solving the issue through downloading the JCE policy files from
>> [1] and replacing it with the existing policy files in the path <$JAVA_HOME>
>> /jre/lib/security
>>
>> Two policy files which were replaced are,
>> 1. local_policy.jar
>> 2. US_export_policy.jar
>>
>> But still was not able to solve the issue.
>>
>> Also i tried deleting .m2 directory and then building. Tried with java
>> version 1.8 too and still i get the same exception.
>>
>> [1]
>> http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html
>>
>>
>> Regards
>> Saad Sahibjan
>>
>> On Wed, May 11, 2016 at 10:12 PM, Saad Sahibjan <s...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> I;m trying to build product EMM. I have successfully built
>>> 'carbon-device-mgt' and 'carbon-device-mgt-plugins'. But when building
>>> 'product-emm', the build fails.
>>>
>>> Maven version - 3.3.9
>>> Java version - 1.7
>>>
>>> I get the below exception. Trying to sort it out from a few days. Any
>>> idea about the issue?
>>>
>>> Installation failed.
>>> One or more certificates rejected. Cannot proceed with installation.
>>> Application failed, log file location:
>>> /home/saad/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1462984508624.log
>>>
>>> [INFO]
>>> 
>>> [INFO] Reactor Summary:
>>> [INFO]
>>> [INFO] WSO2 MDM - Parent .. SUCCESS [
>>>  1.143 s]
>>> [INFO] WSO2 MDM - Mobile Device Management Admin Services . SUCCESS [
>>> 14.680 s]
>>> [INFO] wso2mdm-product-mobileservices . SUCCESS [
>>>  0.068 s]
>>> [INFO] JAX-RS Windows API . SUCCESS [
>>> 13.811 s]
>>> [INFO] JAX-RS Android API . SUCCESS [
>>>  4.468 s]
>>> [INFO] WSO2 EMM - Enterprise Mobility Manager End-user Web Application
>>> SUCCESS [ 12.116 s]
>>> [INFO] WSO2 EMM - Enterprise Mobility Manager Web Agent ... SUCCESS [
>>>  6.781 s]
>>> [INFO] WSO2 Mobile Device Manager (MDM) - UI styles ... SUCCESS [
>>>  1.091 s]
>>> [INFO] WSO2 Mobile Device Manager (MDM) Features .. SUCCESS [
>>>  0.040 s]
>>> [INFO] WSO2 Mobile Device Manager (MDM) Styles Feature  SUCCESS [
>>>  0.448 s]
>>> [INFO] WSO2 Mobile Device Manager (MDM) - P2 Profile Gen .. FAILURE [
>>> 44.821 s]
>>> [INFO] WSO2 Mobile Device Manager (MDM) - Distribution  SKIPPED
>>> [INFO] WSO2 MDM - Integration Tests ... SKIPPED
>>> [INFO] WSO2 MDM Integration Test Common ... SKIPPED
>>> [INFO] WSO2 MDM Integration Test Common ... SKIPPED
>&

Re: [Dev] [EMM] Build failed due to one or more certificates rejected

2016-05-11 Thread Saad Sahibjan
Hi,

I tried solving the issue through downloading the JCE policy files from [1]
and replacing it with the existing policy files in the path <$JAVA_HOME>
/jre/lib/security

Two policy files which were replaced are,
1. local_policy.jar
2. US_export_policy.jar

But still was not able to solve the issue.

Also i tried deleting .m2 directory and then building. Tried with java
version 1.8 too and still i get the same exception.

[1]
http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html


Regards
Saad Sahibjan

On Wed, May 11, 2016 at 10:12 PM, Saad Sahibjan <s...@wso2.com> wrote:

> Hi,
>
> I;m trying to build product EMM. I have successfully built
> 'carbon-device-mgt' and 'carbon-device-mgt-plugins'. But when building
> 'product-emm', the build fails.
>
> Maven version - 3.3.9
> Java version - 1.7
>
> I get the below exception. Trying to sort it out from a few days. Any idea
> about the issue?
>
> Installation failed.
> One or more certificates rejected. Cannot proceed with installation.
> Application failed, log file location:
> /home/saad/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1462984508624.log
>
> [INFO]
> 
> [INFO] Reactor Summary:
> [INFO]
> [INFO] WSO2 MDM - Parent .. SUCCESS [
>  1.143 s]
> [INFO] WSO2 MDM - Mobile Device Management Admin Services . SUCCESS [
> 14.680 s]
> [INFO] wso2mdm-product-mobileservices . SUCCESS [
>  0.068 s]
> [INFO] JAX-RS Windows API . SUCCESS [
> 13.811 s]
> [INFO] JAX-RS Android API . SUCCESS [
>  4.468 s]
> [INFO] WSO2 EMM - Enterprise Mobility Manager End-user Web Application
> SUCCESS [ 12.116 s]
> [INFO] WSO2 EMM - Enterprise Mobility Manager Web Agent ... SUCCESS [
>  6.781 s]
> [INFO] WSO2 Mobile Device Manager (MDM) - UI styles ... SUCCESS [
>  1.091 s]
> [INFO] WSO2 Mobile Device Manager (MDM) Features .. SUCCESS [
>  0.040 s]
> [INFO] WSO2 Mobile Device Manager (MDM) Styles Feature  SUCCESS [
>  0.448 s]
> [INFO] WSO2 Mobile Device Manager (MDM) - P2 Profile Gen .. FAILURE [
> 44.821 s]
> [INFO] WSO2 Mobile Device Manager (MDM) - Distribution  SKIPPED
> [INFO] WSO2 MDM - Integration Tests ... SKIPPED
> [INFO] WSO2 MDM Integration Test Common ... SKIPPED
> [INFO] WSO2 MDM Integration Test Common ... SKIPPED
> [INFO] WSO2 MDM - Integration Admin Clients ... SKIPPED
> [INFO] WSO2 MDM - Integration Test Utils .. SKIPPED
> [INFO] WSO2 MDM - Integration Test UI Pages ... SKIPPED
> [INFO] WSO2 MDM Backend Integration Tests . SKIPPED
> [INFO] WSO2 MDM - Integration Test UI Module .. SKIPPED
> [INFO] WSO2 MDM Platform Integration Tests  SKIPPED
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 01:40 min
> [INFO] Finished at: 2016-05-11T22:05:15+05:30
> [INFO] Final Memory: 169M/1498M
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.wso2.maven:carbon-p2-plugin:1.5.4:materialize-product
> (creating-worker-profile) on project wso2mdm-profile-gen: Cannot generate
> P2 metadata: P2 publisher return code was 13 -> [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 :wso2mdm-profile-gen
>
>
> Regards
> Saad
>
> --
> Saad Sahibjan
> *Software Engineer - Intern*
> E-mail : s...@wso2.com
> Mobile : +94779303127
>



-- 
Saad Sahibjan
*Software Engineer - Intern*
E-mail : s...@wso2.com
Mobile : +94779303127
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [EMM] Build failed due to one or more certificates rejected

2016-05-11 Thread Saad Sahibjan
Hi,

I;m trying to build product EMM. I have successfully built
'carbon-device-mgt' and 'carbon-device-mgt-plugins'. But when building
'product-emm', the build fails.

Maven version - 3.3.9
Java version - 1.7

I get the below exception. Trying to sort it out from a few days. Any idea
about the issue?

Installation failed.
One or more certificates rejected. Cannot proceed with installation.
Application failed, log file location:
/home/saad/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1462984508624.log

[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] WSO2 MDM - Parent .. SUCCESS [
 1.143 s]
[INFO] WSO2 MDM - Mobile Device Management Admin Services . SUCCESS [
14.680 s]
[INFO] wso2mdm-product-mobileservices . SUCCESS [
 0.068 s]
[INFO] JAX-RS Windows API . SUCCESS [
13.811 s]
[INFO] JAX-RS Android API . SUCCESS [
 4.468 s]
[INFO] WSO2 EMM - Enterprise Mobility Manager End-user Web Application
SUCCESS [ 12.116 s]
[INFO] WSO2 EMM - Enterprise Mobility Manager Web Agent ... SUCCESS [
 6.781 s]
[INFO] WSO2 Mobile Device Manager (MDM) - UI styles ... SUCCESS [
 1.091 s]
[INFO] WSO2 Mobile Device Manager (MDM) Features .. SUCCESS [
 0.040 s]
[INFO] WSO2 Mobile Device Manager (MDM) Styles Feature  SUCCESS [
 0.448 s]
[INFO] WSO2 Mobile Device Manager (MDM) - P2 Profile Gen .. FAILURE [
44.821 s]
[INFO] WSO2 Mobile Device Manager (MDM) - Distribution  SKIPPED
[INFO] WSO2 MDM - Integration Tests ... SKIPPED
[INFO] WSO2 MDM Integration Test Common ... SKIPPED
[INFO] WSO2 MDM Integration Test Common ... SKIPPED
[INFO] WSO2 MDM - Integration Admin Clients ... SKIPPED
[INFO] WSO2 MDM - Integration Test Utils .. SKIPPED
[INFO] WSO2 MDM - Integration Test UI Pages ... SKIPPED
[INFO] WSO2 MDM Backend Integration Tests . SKIPPED
[INFO] WSO2 MDM - Integration Test UI Module .. SKIPPED
[INFO] WSO2 MDM Platform Integration Tests  SKIPPED
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 01:40 min
[INFO] Finished at: 2016-05-11T22:05:15+05:30
[INFO] Final Memory: 169M/1498M
[INFO]

[ERROR] Failed to execute goal
org.wso2.maven:carbon-p2-plugin:1.5.4:materialize-product
(creating-worker-profile) on project wso2mdm-profile-gen: Cannot generate
P2 metadata: P2 publisher return code was 13 -> [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 :wso2mdm-profile-gen


Regards
Saad

-- 
Saad Sahibjan
*Software Engineer - Intern*
E-mail : s...@wso2.com
Mobile : +94779303127
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev