Search code examples
amazon-ec2tomcat7vaadinwarvaadin7

Deploy vaadin 7 war file in EC2


I'm trying to deploy a Vaadin 7 example.war file in tomcat 7, using an EC2 server. I upload the file to /var/lib/tomcat7/webapps but then when I go to myIp:8080/example it doesn't find the resource.

Any idea why?

Thanks!


Solution

  • Solved!...

    To install the manager:

    sudo yum install tomcat7-webapps tomcat7-docs-webapp tomcat7-admin-webapps
    

    To solve the Java Version mismatch, org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/prueba2]]:

    On Eclipse:

    Preferences >> Java >> Installed JREs

    On EC2 server:

    sudo yum remove java-1.7.0-openjdk
    sudo yum install java-1.8.0
    

    Then reinstall Tomcat7 and restart

    Thanks @BlunT for all the help!!