score:-1

we just had the same problem and apparently the answer today is just wait it out.. this is for anyone experiencing this problem in modern 2020.03 versions of eclipse.. its a problem from eclipse's servers that are sometimes not reachable.. just wait an hour or so and try again later.. it should work as long as it has worked before of course..

score:1

i have the same problem and it occurs when you download eclipse standard 4.3.1 . you have to download eclipse ide for java ee developers.

score:1

uninstall current version of java. go to www.java.com, download recommended version of java. after successful install. verify java installed (located on home page - www.java.com). should work then... mine did.

score:1

add below args :

-djava.net.preferipv4stack=true

to the end of the eclipse.ini file and it should work.

score:1

if you are in an organisation try to ask your colleague developer that have an active marketplace for there casert.cer file and replace it in your jdk

score:1

yes, i did face the same issue. here is the fix

problem:

eclipse.buildid=4.21.0.i20210906-0500
    java.version=16.0.2
    java.vendor=oracle corporation
    bootloader constants: os=win32, arch=x86_64, ws=win32, nl=en_us
    command-line arguments: -os win32 -ws win32 -arch x86_64 -product 
    org.eclipse.epp.package.jee.product
    org.eclipse.epp.mpc.core
**error**
thu sep 16 13:07:14 ist 2021
cannot complete request to https://marketplace.eclipse.org/api/p?client=org.eclipse.epp.mpc.core&os=win32&platform.version=4.21: pkix path building failed: sun.security.provider.certpath.suncertpathbuilderexception: unable to find valid certification path to requested target
org.eclipse.core.runtime.coreexception: pkix path building failed: sun.security.provider.certpath.suncertpathbuilderexception: unable to find valid certification path to requested target
at org.eclipse.epp.internal.mpc.core.transport.httpclient.httpclienttransport.stream(httpclienttransport.java:117)

solution:

in order to resolve this issue, i copied my security/cacert file from my jre (java-se-8u41/jre/lib/security/cacert) to my eclipse (/eclipse/../jre/lib/security/cacert) e.g. /eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_16.0.2.v20210721-1149/jre/lib/security/cacert

reference: for more detail and step by step guide along with screen-shots, you may refer the following url : https://thebasictechinfo.com/java-8/pkixunable-to-find-valid-certification-path-to-requested-target-fix/

enjoy ๐Ÿ™‚

score:3

verify you can reach that url by command line or so.
if you are connected with vpn, disconnect vpn and try again. it works for me.

score:3

the only way i could fix this was by importing the certificate into "cacerts"

here are the steps to follow:

  • copy the link that eclipse is having problem to access, by using details button, then paste it to google chrome browser and press enter.

in my case link was: https://marketplace.eclipse.org/api/p?client=org.eclipse.epp.mpc.core&os=win32&platform.version=4.21

  • just beside the link in your browser there is lock icon, hover over it, should show "view site information"

  • click on the lock icon -> click on "connection is secure" -> click on "certificate is valid" and a dialog called "certificate" should pop up.

  • go to the tab "details" and click on the button "copy to file..."

  • follow the export wizard steps to export certificate file (.cer) export the file on format "der encoded binary x.509 (.cer)"

  • save the file to desktop with name "marketplacecert.cer"

  • now copy this certificate file to the folder where the jre is located in your eclipse folder installation

    in my case: c:\eclipse-cpp-2021-09-r-win32-x86_64\eclipse\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_16.0.2.v20210721-1149\jre\lib\security

    in this folder you should find a file called "cacerts", where we gonna import the certificate through "keytool.exe"

  • now open cmd prompt and go to the folder: cd c:\eclipse-cpp-2021-09-r-win32-x86_64\eclipse\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_16.0.2.v20210721-1149\jre\lib\security

  • we gonna have to use a tool called "keytool.exe" to import the certificate file, which is located at: "c:\eclipse-cpp-2021-09-r-win32-x86_64\eclipse\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_16.0.2.v20210721-1149\jre\bin" two folders up from our current location, to execute it we gonna use the relative path ....\bin\keytool.exe

    run the following command on cmd prompt: ....\bin\keytool.exe -import -alias alias -keystore cacerts -file marketplacecert.cer

    keytool.exe will ask for a password, which is "changeit"

    keytool.exe will ask to trust the certificate, type "yes" and press enter.

    done. now restart eclipse and marketplace should be working.

    refer to this link for more details: https://thebasictechinfo.com/java-8/pkixunable-to-find-valid-certification-path-to-requested-target-fix/

score:12

i had the same problem the sulotion was to copy my ...security/cacert from my jre and then paste it in my eclipse .....\eclipse\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre\lib\security (replace cacert of the eclipse by cacert of jre)

score:27

you can solve u r problem like this, in eclipse ide go to windows --> preference --> general --> network connection --> select active provider to direct --> apply --> ok.


Related Query

More Query from same tag