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 <JDK_HOME>/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
>>> [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 <goals> -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
>>
>
>
>
> --
>
> *Niranjan Karunanandham*
> Senior Software Engineer - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>



-- 
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

Reply via email to