简体   繁体   中英

Deploy Grails to AWS error 404

I have a grails application. I don't have the War file. I only have the folders and the files. I am trying to install it and I am facing problems. The steps I am using are:

  • I am creating a zip file that contains the application(files and folders)

  • I am going to Elastic Beanstalk wizard and I am creating new environment using TomaCat 7. I am using all the default configurations.

  • I upload the zip that contains the application when the wizard ask for that. Finally the wizard informs me that the application installed correctly, but when I am trying to View running version I am taking the error HTTP Status 404. //Edit // The error:

Error Compilation error: startup failed: General error during semantic analysis: unable to locate the java compiler com.sun.tools.javac.Main, please change your classloader settings java.lang.ClassNotFoundException: unable to locate the java compiler com.sun.tools.javac.Main, please change your classloader settings at org.codehaus.groovy.tools.javac.JavacJavaCompiler.findJavac(JavacJavaCompiler.java:190)

You can create a war file out of the grails project by running grails war .

This will pack your application in a nicely deployable war file (with all the dependencies).

After that you'll be able to deploy it to AWS.

To run the command you need to open up the Grails Command prompt. Right click on the project -> Grails Tools -> Grails Command Prompt.

Type war in the opened pop-up window and you'll get a packaged war file.

I've attached the screen shot as well

如何打开grails命令提示符

If a normal VPS is an alternative for you, I could help post instructions for you on how to set it up. It should be easy.

  • install tomcat
  • install mysql
  • setup database
  • upload war or upload sources and build inside server

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM