0

I need to deploy my app in azure platform with eclipse; When I sign in, this error occurs: sign in error

Does anyone know how to solve this? Thank you.

Safae
  • 11
  • 4

2 Answers2

0

I think this is related to your certificate issue. Whenever Java attempts to connect to another application over SSL (e.g.: HTTPS, IMAPS, LDAPS), it will only be able to connect to that application if it can trust it. The way trust is handled in the Java world is that you have a keystore (typically $JAVA_HOME/lib/security/cacerts), also known as the truststore. This contains a list of all known Certificate Authority (CA) certificates, and Java will only trust certificates that are signed by one of those CAs or public certificates that exist within that keystore.

You could try below solutions:

1.Make sure you have imported the public certificate of the target instance into the truststore according to the Connecting to SSL Services instructions.

2.Make sure any certificates have been imported into the correct truststore.

3.Check to see that the correct truststore is in use. If -Djavax.net.ssl.trustStore has been configured, it will override the location of the default truststore, which will need to be checked.

In addition, you could refer to the related threads:

1.PKIX path building failed in Eclipse

2."PKIX path building failed" and "unable to find valid certification path to requested target"

Hope it helps you.


Just for summary, it's related to the build path in the eclipse. Please make sure it's JDK/JRE path, not JRE path.

Jay Gong
  • 23,163
  • 2
  • 27
  • 32
  • Thank you for your response, in fact the problem was in the build path : I was selecting the JRE. the solution was to replace it with JDK/JRE path ! But now I have a different problem, I get http error 404 when my app is published. It's a web service (RESTful). Any idea? – Safae Jun 11 '18 at 09:46
  • @Safae You're welcome,I summarized your solution in the answer.You could mark it for others' references on the forum,thank you ! – Jay Gong Jun 11 '18 at 09:53
  • Yes sure. please do you have any idea about error 404 ? i can't access the app ... – Safae Jun 11 '18 at 10:13
  • @Safae Any screenshot? Are you sure your access url is right. – Jay Gong Jun 12 '18 at 01:25
  • I can't add screenshots in comment. – Safae Jun 12 '18 at 09:53
  • @Safae You could update it in your question.However,I suggest you ending this case and creating a new question. – Jay Gong Jun 12 '18 at 15:05
0

when my app is published, it's a RESTful web service called "RESTfulExample2" when I access the default url I get this: error http 404

I don't know what's wrong here are the screenshots of the variables: environment variables

Safae
  • 11
  • 4
  • @JayGong here are the screenshots – Safae Jun 12 '18 at 09:57
  • Not sure the specific situation on your side.You could check log on the kudu. Kudu url is .scm.azurewebsites.com. Please provide more log info.Thank you. – Jay Gong Jun 13 '18 at 06:23
  • No not yet, I still can't sign in. I created all the project from the start, but now even with the solution i proposed I still can't access. I tried to get the certificate of the login page to azure portal and do as you said in your first comment ... but it didn't work – Safae Jun 20 '18 at 10:25