Issues Deploying Functional WAR to Elastic Beanstalk with Tomcat7
        Posted  
        
            by 
                BFar
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by BFar
        
        
        
        Published on 2012-10-06T02:12:55Z
        Indexed on 
            2012/10/06
            3:39 UTC
        
        
        Read the original article
        Hit count: 316
        
amazon-beanstalk
I am currently deploying OpenTripPlanner (http://github.com/OpenPlans/OpenTripPlanner.git) to Elastic Beanstalk.
I'm able to successfully build and deploy opentripplanner with my own customized settings on an ec2. I have set it up so that the appropriate WAR file can be placed in the Tomcat/Webapps folder, and when Tomcat is started up, it will auto-deploy, and even download open trip planner's graph.obj from an S3. All of that works just fine, except when I try to deploy to Elastic Beanstalk.
When I upload to Elastic Beanstalk, the log shows that my WAR file is successfully unpacked & successfully downloads the graph.obj from my S3. The only difference is that then nothing happens and I can't load the site in my browser. The health is RED, and I can't figure out what is going on. I've tried looking into ports and dns issues, but I can't determine what's wrong.
Anyone have any ideas? Why would a WAR that works on tomcat7 outside of Beanstalk fail to be accessible?
© Server Fault or respective owner