Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploy simple Java Web Application on Appfog

I started using appfog ( http://www.appfog.com/ ) and I haven't found any resources explaining how to deploy a simple Java Web application. I tried extracting a .war file I have and then updating the app but I got no luck.

Cheers

like image 366
Yiannis Gkoufas Avatar asked Sep 05 '12 14:09

Yiannis Gkoufas


People also ask

How do I deploy a Java Web application in WildFly?

Deploy an application But if you are running a standalone WildFly service, a simple way to deploy your application is to copy your application archive ( war/ear/jar ) into the $JBOSS_HOME/standalone/deployments directory in the server installation. The deployment-scanner subsystem detects the archive and deploys it.

What is the deployment format for a Java Web application?

Java web applications use a deployment descriptor file to determine how URLs map to servlets, which URLs require authentication, and other information. This file is named web. xml , and resides in the app's WAR under the WEB-INF/ directory. web.


1 Answers

Deploying Java Web Application on AppFog is pretty easy once you see an example. Here is some documentation: https://docs.appfog.com/languages/java

Step 1) Build a war file and cd into the directory with the war file in it (usually cd target)

Step 2) af push

You do not want to extract the war file, you just need to be in the same directory as the war file.

Hope this helps! Best of luck! There is a great and vibrant community of AppFog Java users in the google group as well: https://groups.google.com/forum/#!forum/appfog-users

like image 72
cardmagic Avatar answered Oct 02 '22 15:10

cardmagic