Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Payara Tools plugin for Eclipse won't install(Eclipse marketplace plugin won't install due to repository path error)
Payara Tools plugin for Eclipse won't install [message #1799997] Tue, 18 December 2018 17:12 Go to next message
A Reed is currently offline A ReedFriend
Messages: 1
Registered: December 2018
Junior Member
I am using Eclipse 4.9.0 (Sept. 2018) and choosing the Payara Tools plugin in the Eclipse Marketplace. When I go to install, the following error message shows up:

Unable to read repository at https ://raw.githubusercontent.com/payara/Payara_PatchedProjects/eclipse/payaratools/oxygen/development/content.xml.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

It looks like either: A) my version of eclipse thinks I still have 'oxygen' installed, or B) the repository path is incorrect?

Can someone please give me a hand with this?

Cheers!
A.Reed
Re: Payara Tools plugin for Eclipse won't install [message #1800016 is a reply to message #1799997] Wed, 19 December 2018 05:17 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
I've run into problems exactly like this before. Such a problem is dependent on which version of Java is being used to run your IDE because it's caused by missing newer certificate roots in <java>/jre/lib/security/cacerts. It's hard to fix manually, i.e., it's hard to add certificates manually to Java's certificate store.

Installing a newer version of Java and making sure your IDE actually uses it (via a -vm option in your eclipse.ini) is likely to be easiest..

It's also possible that using a non-https URI would do the trick:

http://raw.githubusercontent.com/payara/Payara_PatchedProjects/eclipse/payaratools/oxygen/development

But I'm doubtful and can't test it because this site works for me with my quite old jdk1.8.0_121, though I ran into exactly this problem with source forge sites when using jdk1.8.0_72.

Note that you can test a browser that the site really exists because this file can be downloaded:

http://raw.githubusercontent.com/payara/Payara_PatchedProjects/eclipse/payaratools/oxygen/development/content.jar


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Payara Tools plugin for Eclipse won't install [message #1805861 is a reply to message #1799997] Thu, 25 April 2019 17:29 Go to previous messageGo to next message
Marc Segond is currently offline Marc SegondFriend
Messages: 4
Registered: April 2019
Junior Member
Hi.
I am running into the same problem using 2019-03.
I tried using http, but it does not help.
I was using Java 1.8.0_181. I updated to Java 1.8.0_212, it doesn't help either...
I have reinstalled completely Eclipse maybe 20 times. I don't know what more to do...
Re: Payara Tools plugin for Eclipse won't install [message #1805867 is a reply to message #1805861] Fri, 26 April 2019 03:37 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Are you sure your Eclipse installation is really using the new version of Java that you have installed? Does your installation's eclipse.ini have an explicit -vm argument?

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Payara Tools plugin for Eclipse won't install [message #1805941 is a reply to message #1805867] Mon, 29 April 2019 07:54 Go to previous messageGo to next message
Marc Segond is currently offline Marc SegondFriend
Messages: 4
Registered: April 2019
Junior Member
Yes, I even tried with OpenJDK11. Here is the Eclipse.ini:
-startup
plugins/org.eclipse.equinox.launcher_1.5.300.v20190213-1655.jar
--launcher.library
C:\Users\tw6318\.p2\pool\plugins\org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.1000.v20190125-2016
-product
org.eclipse.epp.package.jee.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
C:/Users/tw6318/jdk11/jdk-11/bin/javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=1.8
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms256m
-Xmx2048m
--add-modules=ALL-SYSTEM
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/


I know how to import a certificate to the cacert file, but I don't know which certificate...if this is the problem at all...

Thanks for your help!

[Updated on: Mon, 29 April 2019 07:55]

Report message to a moderator

Re: Payara Tools plugin for Eclipse won't install [message #1805943 is a reply to message #1805941] Mon, 29 April 2019 09:13 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
The stack trace is definitely suggests that it's a problem of the JRE not having the certificate used by the host in its certificate store. If you know how to import it, that would be the thing to try...

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Payara Tools plugin for Eclipse won't install [message #1805944 is a reply to message #1805943] Mon, 29 April 2019 09:19 Go to previous messageGo to next message
Marc Segond is currently offline Marc SegondFriend
Messages: 4
Registered: April 2019
Junior Member
Indeed, I just don't know where to download the correct certificate for the Payara plugin...
Re: Payara Tools plugin for Eclipse won't install [message #1805945 is a reply to message #1805944] Mon, 29 April 2019 09:29 Go to previous message
Marc Segond is currently offline Marc SegondFriend
Messages: 4
Registered: April 2019
Junior Member
Here is the complete error. I have came back to try with jdk 1.8.0_212:
Unable to read repository at https://raw.githubusercontent.com/payara/Payara_PatchedProjects/eclipse/payaratools/oxygen/development/content.xml.


javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
	at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
	at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1946)
	at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:316)
	at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:310)
	at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1639)
	at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:223)
	at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1037)
	at sun.security.ssl.Handshaker.process_record(Handshaker.java:965)
	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1064)
	at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1367)
	at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1395)
	at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1379)
	at org.apache.http.conn.ssl.SSLSocketFactory.createLayeredSocket(SSLSocketFactory.java:573)
	at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:557)
	at org.eclipse.ecf.provider.filetransfer.httpclient4.SNIAwareHttpClient$1.connectSocket(SNIAwareHttpClient.java:64)
	at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:414)
	at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
	at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:326)
	at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610)
	at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445)
	at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
	at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientFileSystemBrowser.runRequest(HttpClientFileSystemBrowser.java:263)
	at org.eclipse.ecf.provider.filetransfer.browse.AbstractFileSystemBrowser$DirectoryJob.run(AbstractFileSystemBrowser.java:69)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
	at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397)
	at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302)
	at sun.security.validator.Validator.validate(Validator.java:262)
	at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:330)
	at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:237)
	at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:132)
	at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1621)
	... 20 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
	at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
	at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
	at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
	at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392)
	... 26 more


And here is my eclipse.ini:
-startup
plugins/org.eclipse.equinox.launcher_1.5.300.v20190213-1655.jar
--launcher.library
C:\Users\tw6318\.p2\pool\plugins\org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.1000.v20190125-2016
-product
org.eclipse.epp.package.jee.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
C:\Program Files\Java\jdk1.8.0_212\jre\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-Djavax.net.ssl.trustStore=C:\Program Files\Java\jdk1.8.0_212\jre\lib\security\cacerts
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=1.8
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms256m
-Xmx2048m
--add-modules=ALL-SYSTEM
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/


Strange thing is that on another computer, it works...
Previous Topic:"Cannot be resolved to a type" error
Next Topic:Eclipse lunching problem
Goto Forum:
  


Current Time: Thu Apr 25 23:19:15 GMT 2024

Powered by FUDForum. Page generated in 0.08801 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top