Deploying Jersey REST Webservice on Apache Web Server - apache2

I am a dot net developer but yesterday I was asked to develop a Restful Web service using Java, I googled a lot and finally I am able to develop, run a "hello world" example using Eclipse+Jersey+Tomcat.
But I wonder how can I be able to deploy it on Apache Webserver,
Please send me a step by step guide considering me a newbie. Thanks

An Apache webserver does not support the execution of servlets (as e.g. Tomcat does). What you can do is run a Tomcat server and connect it to Apache by using a JK connector.

Related

Uploading ASP.net & Angular application on Tomcat server

I have just finished the local development of my Web API (ASP.net) and the User interface (AngularJs) and I would like to put it in a Tomcat server. I really need help getting this done.
I really have no ideas
Apache Tomcat is for Java-based applications and will not work. If you are on Linux you would use something like nginx or apache. If you are on windows, you would setup your ASP.NET Core site in IIS or as a windows service. If you have the option, I recommend hosting on a cloud provider such as Azure.

Deploy Angularjs 1.5.X on JBoss App server

Can Angularjs 1.5.X App directly deployed onto application server like JBoss 6.x. I have deployed Angularjs apps on Nginx, but I was wondering if AngularJS can be deployed to listen on different port on Same App server that also host the Rest API's developed using RestEasy on JBoss.
Does JBoss has ability to run Webapps?
JBoss Application Server (AS) was a product developed by RedHat, currently replaced by Wildfly, which, being a certified implementation of the Java Enterprise Edition specification, allowed the building, deploying, and hosting of highly-transactional Java applications and services.
Therefore, the answer to your question is yes. JBoss AS, as it name states, has the ability to serve web applications.
To deploy your AngularJS application on JBoss, I'd suggest you to create a web project and have it builded and packaged as a ready-to-deploy WAR archive using a build manager such as Maven.
As an example, you can follow the kitchensink-angularjs quickstart provided by JBoss.
Finally, regarding your AngularJS deployed on a different port question, you can find an answer to it in How to run different apps on single JBoss AS 6 instance behind different ports?.

How to deploy gin gonic(golang) app with aerospike on Google app engine?

I was able to deploy a simple hello.go written in golang(without extra libs).
Can anyone help me how to deploy the webapplication I have developed locally using gin-gonic framework and aerospike(aerospike-client-go).
Particularly I am unable to understand whether I should install aerospike on some other vps and provide its url here in code to connect remotely. I am not getting the best way/correct/working way to use appengine.

Please anyone helps me how to run java code in resteasy automatically when deploy in jboss?

I'm new here and new in resteasy. I have resteasy web application running on Jboss. I want to run specific code in my application once when JBoss starts or when this application is deployed. How can I do it? Thanks
Use a ServletContextListener.
Here is a simple tutorial:
http://www.mkyong.com/servlet/what-is-listener-servletcontextlistener-example/

Deploy Java Web Application and MySQL database in the cloud

my issue is that I've been developing a Java Web app in Netbeans 7.2, which I've used Hibernate and JSF Facelets to communicate and show the data from a MySQL database deployed in my local server (localhost).
But now, I want to deploy both (my java web app and mysql database) in the cloud in a web server, or something but I don't know even how to start this. I've seen something about Google App Engine, but I didn't get the idea, and many others...
I just need to deploy my app to give access to other people to use my web app.
Google Appengine is a Framework.
its not webserver where you can deploy your app as on your local machine.
what you are looking for is
Amazon EC2
Google ComputeEngine
OpenShift
and others...... (to many to list them all)
most of them are not free.
some like openshift are if you dont need much resources.
there you can install the server you need, (its just like a remote server)
and deploy your app to.

Resources