Let me understand if I understand: you have problems with java code running on AWS Elastic Beanstalk because it thinks your code is ok, like static index.html file, right?
In this case, there are two things to look for:
- Set the health check URL by pointing to one of your java endpoints. In particular, it is useful if you could diagnose every external dependency (other AWS services, databases).
- Enter the instance - make sure you can get all the records you can: Environment Variables, System Properties - this will be the beginning
Hope this helps
source share