- Newest
- Most votes
- Most comments
The error messages you're seeing in the logs when starting the carddemo application in M2 are related to database configuration issues, specifically with the primary datasource. These errors can indeed lead to batch job failures like the one you're experiencing with TRANBKP.
The main problem appears to be that the application is unable to find or connect to the primary datasource. This is evident from the JNDI lookup failure for 'jdbc/primary'.
To resolve this issue, you should:
-
Check your application.yml or application.properties file to ensure the datasource configurations are correct. Make sure the primary datasource is properly defined with the correct URL, username, and password.
-
Verify that all necessary database servers are started and running correctly.
-
Double-check the JNDI configuration if you're using JNDI for datasource lookup. Ensure that the JNDI name 'java:comp/env/jdbc/primary' is correctly set up in your application server configuration.
-
Review your database connection settings, including the database URL, port, and credentials.
-
Ensure that all required dependencies for database connectivity are present in your project's build file (pom.xml for Maven or build.gradle for Gradle).
-
If you're using AWS Secrets Manager for database credentials, verify that the ARN is correct and that your application has the necessary permissions to access the secrets.
If after checking these points the issue persists, you may need to review your application's datasource configuration more thoroughly. Sometimes, the problem can be as simple as a typo in a configuration file or a mismatch between the expected and actual datasource names.
The 'Unknown groovy script' error for the TRANBKP batch job is likely a consequence of these database connection issues. Once you resolve the primary datasource problem, the batch job should be able to run successfully.
Sources
AWS BluAge L3 workshop. Go-Live->Deploy->Start application. Application fails to start. | AWS re:Post
BluAGE L3 workshop issue with Go-Live Test batches and Online | AWS re:Post
Hi: Can you check changes indicated in this step: Go Live->Prepare->Package For class SpringBootLauncher.java
Relevant content
- asked a year ago
