Link to home
Start Free TrialLog in
Avatar of alexmac05
alexmac05Flag for United States of America

asked on

AWS and Java and Rest - newbie question (Is this an authentication issue)

I do not know AWS very well. I think this is an AWS REST Authentication issue.

Can someone confirm that for me who has more experience with AWS and REST?

When trying to make a basic Rest call on AWS

This is not the exact code but it is close.
Code.pdf
 

Is resulting in errors:
User generated image
I am thinking this issue is related to something like this http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html
OR
http://docs.aws.amazon.com/AmazonS3/latest/API/Welcome.html

Can someone confirm that I'm on the right track who knows AWS and rest
ASKER CERTIFIED SOLUTION
Avatar of Tomas Helgi Johannsson
Tomas Helgi Johannsson
Flag of Iceland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of alexmac05

ASKER

Question: Can one run Oracle java on AWS or does one have to run OpenJDK on AWS?
I wasn't sure if we could run Oracle 1.8 java on AWS. Can we choose between these during the setup?

We will definitely look into changing the versions. This is a great answer and helps a lot. thank you.



Good tips about the versions. The AWS server shows 1.8 openjdk and the errors are SSL related and the dev machine, it is working with oracle.

Server where it is broken:

AWS Java version[ec2-user@machineIP ~]$ java -versionopenjdk version "1.8.0_101"OpenJDK Runtime Environment (build 1.8.0_101-b13)OpenJDK 64-Bit Server VM (build 25.101-b13, mixed mode)
[ec2-user@machineIP ~]$ javac -versionjavac 1.8.0_101


Local Dev machine where it is working:

Local dev machine java versionC:\Users\thomas>java -versionjava version "1.8.0_102"Java(TM) SE Runtime Environment (build 1.8.0_102-b14)Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)
C:\Users\thomas>javac -versionjavac 1.8.0_102
Hi!

You could download and install the Oracle Java version on your AWS server.
Just follow this guide https://gist.github.com/rtfpessoa/17752cbf7156bdf32c59

Regards,
    Tomas Helgi
This was a hard question and I really appreciate this guidance.