How to getting started with AppScale? - java

The Appscale VM is running and I can deploy the sample guestbook app. Trying to deploy a simple GAE based hello-world-servlet works but gives me a 403 as soon as I try to access it. Since I just started with Appscale and GAE I have ho idea how to solve this error. Is there a simple hello-world sample app for Appscale ?

Here's a collection of sample applications that will work on AppScale. Google's Hello World sample will also work just fine after compilation.
It is unusual to get a 403 while deploying the application. Have you tried running that same application with Google's SDK? Are you deploying the app via the AppScale dashboard web page, or are you using the CLI tools?

Related

How to deploy Java application on a web server

For 3-4 days I am trying to deploy a java application on web server but every time getting different type of error.So far I have tried to host my application on openshift,heroku but everytime getting different type of error.Can someone tell me a good free hosting website where I can host my java application.My application size is 1.5 gb.
Thank You in advance.
you can use cloud service for this. My preference is Google Cloud. Maybe try Azure or AWS.
Java on Google Cloud https://cloud.google.com/java/

Spring Boot on Android?

Is it possible to run Spring Boot on an Android device?
Right now I am successfully running a web service on localhost using Spring Boot which I've got building in IntelliJ IDEA. I need to get the same web service code running on an Android device. Is it possible to build the web service app into a JAR file that I can get running on an Android phone? I have a Google Nexus 6P running Android Nougat. I've done some limited research, and have found an application called JBED. So far I haven't been able to get this working.
I've started from scratch and built the example JAR:
gs-spring-boot-0.1.0.jar
and hopefully I can find a way to run this JAR. I'm guessing it probably won't work so if anyone has a better idea that would be great!
You can use i-jetty to host servlet based apps in android. or embed i-jetty (replacing tomcat or netty) in your spring boot app
Short answer is you're not gonna be able to directly run your spring boot application on your android phone. Spring boot is meant as a wrapper to quickly bootstrap Spring applications and is going to best serve you when building web based applications. As I see it you have two options.
Deploy your jar on the cloud somewhere(ec2,digitalocean, heroku, cloud foundry, etc.) and just access your Spring MVC app from the android browser. If you have some really complex logic in your boot app that you don't think you can port to android, you can still deploy your boot app in the cloud, and create a really "dumb" front end android application that consumes all of it's data from the spring boot app running externally.
Port you current spring boot application to a true Spring for Android project. http://projects.spring.io/spring-android/. The tools are out there to help you port it over all you have to do is put the work in.
There's an AnLinux app in play store that helps install a Linux distro inside termux.
I was able to install open jdk, spring cli and then run an spring boot project in that.
Here's a video I recorded demoing the same - https://m.youtube.com/watch?v=n9CY2wZPWJ0&t=1s

Deploy a .net web service to Jboss server

I am trying to figure out how to deploy my WebService project to my running Jboss server. This seems to be a lot harder than it sounds. I can not find any tutorials or guides on how to do this.
I have tried to deploy the whole Web Service Application project as a .rar file via the administrator console but it gives an "unknown error". I am able to run the WebService on the developer webserver.
Is there any best practice or other lean way to deploy my webservice directly in Visual Studio?
I've also tried to publish the project through Visual Studio but the wizard says that localhost:8080 which is where my Jboss application server is running on, but it says that it doesnt exists.
Any suggestions on how to do this?
JBoss can only run applications that are compiled to JVM bytecode. A .NET application is using the CLR runtime, not the JVM.

how configure jwebsockets with my existing application running on tomcat server

I am trying to use Jwebsockets with my existing project. I have done the configuration with my Tomcat Apache server and able to run all the demo application using
http://localhost:8080/jWebSocketAppSrvDemo-1.0/
Its working fine Jwebsocket server is running fine on my machine.
Now I don't know what to do to integrate it with my exiting application how I can send the messages to jwebsockets server and receive messages from server. I am new to this kind of technology. I tried the tutorial mentioned on website but I am not able do that like in first jWebSocket "Hello World" tutorial I don't know where I set the IURL,gUsername,IPassword. Same with the next tutorial I don't know where I can get WebSocketTokenListener interface. I have added jWebSocketServer-Bundle-1.0.jar file to my lib folder. I feel that tutorial is not step by step tutorial.
Can anyone suggest how I can integrate it with my application if I want to post and reply some message on my website.
Is this right to use jWebsockets with the java application? I am using spring and springMVC framework with Apache Tomcate on Ubuntu

How do I migrate a Java webapp to Heroku

I have an app that uses Spring and is run with Jetty. I was hosting it on an Amazon EC2 instance but now I want to put it on Heroku. If found the following link but I don't know if it covers everything and since I'm new to Heroku and, to a lesser extent GIT, it seems overwhelming:
http://blog.neo4j.org/2012/01/spring-onto-heroku.html
Does anyone have experience doing this and if so what is the first step? I do have a test Java app running on Heroku.
The Heroku Dev Center should answer most of your questions:
http://devcenter.heroku.com/categories/java
In particular, the Spring MVC example article should help you get started:
http://devcenter.heroku.com/articles/spring-mvc-hibernate

Categories

Resources