Hello all,
I would like to ask for help with the settings of lucee server. I installed lucee on EC2 on AWS. I put aws-java-sdk-1.11.1000.jar in the path - ‘/opt/lucee/tomcat/lucee-server/bundles’. When I log in the lucee server, the server shows the state of loaded instead of active. Please take a look of the image below.
I would like to practice the code that I found from github - GitHub - brianklaas/awsPlaybox: The sample app for my presentations about AWS + CFML.
When I request the page that shows the following error:
"
Lucee 5.3.7.47 Error (lucee.commons.lang.ClassException)
Message cannot load class through its string name, because no definition for the class with the specified name [com.amazonaws.auth.BasicAWSCredentials] could be found caused by (java.lang.ClassNotFoundException:com.amazonaws.auth.BasicAWSCredentials;java.lang.ClassNotFoundException:com.amazonaws.auth.BasicAWSCredentials not found by lucee.core [46]
Stacktrace The Error Occurred in
/var/www/html/awsPlaybox/model/awsServiceFactory.cfc: line 19
17: var credentialsConfig = CreateObject(‘component’,‘awsCredentials’).init();
18: // AWS Docs for Working with Credentials: Provide temporary credentials to the AWS SDK for Java - AWS SDK for Java 1.x
19: var awsCredentials = CreateObject(‘java’,‘com.amazonaws.auth.BasicAWSCredentials’).init(credentialsConfig.accessKey, credentialsConfig.secretKey);
20: variables.awsStaticCredentialsProvider = CreateObject(‘java’,‘com.amazonaws.auth.AWSStaticCredentialsProvider’).init(awsCredentials);
21: variables.awsRegion = “us-east-1”;
called from /var/www/html/awsPlaybox/application.cfc: line 8
"
How can I set it up correctly?
OS: AWS Linux(EC2)
Java Version: openjdk version “11.0.10” 2021-01-19 LTS
Tomcat Version: Apache Tomcat/9.0.35
Lucee Version: Lucee 5.3.7.47
Thank you in advance!
William