Moving Web Application To Web Hosting/Web Server - java

Let's imagine that I have finished web application made with JavaEE. This web application contains login system but in the end its very basic web application. I used GlassFish 3.1.2.2.
I would like to know that once finished web application I would like to move/deploy this web application to my web hosting/web server, let's say to Bluehost. What measures I need to make, how they are done and what requirements there are?
I have been searching around the internet but not found any single page that could answer to my question.

You will need to package as WAR file and deploy on the server.
The best and free to use is openshift. It comes with TOMCAT which you can use. Remember tomcat doesn't support EJBs.

You're in demand of a provider that supports Java Servlet and JavaServer Pages. Package your application as a war file and upload it to a tomcat instance, or any other servlet container.

Related

The process of deploying a web application to URL

I have developed my first web application in Java (Spring, Struts2, Jetty server). I am a trainee Developer and I would like some clarification on what do I need to do to get my app running on URL.
My project is saved as a .WAR file. What would be my next step to get my app working? Assume I have a domain.
Deploy it on web server like tomcat/jetty etc and start your server..
Follow this doc if you are planning to use tomcat for further details.

Can any Java program be deployed to Geronimo

I'm working in a lab where they typically deploy apps to Geronimo. I have an existing stand-alone server based app written in Java. Can any Java application be hosted in Geronimo? If so, is there a good reference to take an existing app and host it in Geronimo? Is there a benefit to hosting something in Geronimo or are there times when something is best left as a stand-alone app?
When you work on an Application Server, there is specific way a program should be written for it to be qualified for deployment on app server. A program can be a Servlet, EJB, JSP etc. If your existing stand-alone server based app is any of these, then it can surely be deployed on Geronimo.

Deploying play framework on weblogic

How can I deploy a play 2.1 web application to oracle weblogic 10.3?
Weblogic is running on windows server 2008 r2.
My application has web socket and I undersand that there are problems with them on deployment.
Edit:
I understand that servlet 3.0 does not support web sockets. If so, what does Play run on its own server?
Play isn't a Java EE framework. It doesn't use servlets and doesn't natively deploy to an application server. Instead, it brings its own full stack. You just run your application standalone, without any external application server. (It's quite common to put your Play application behind a load balancing webserver, but that's not the point right now.)
While there exists a plugin that lets you bundle up your Play application into a war, I'm not sure it'll do much good in your case. It's not tested on WebLogic. Also, and that's the more fundamental problem: if I'm not mistaken, WebLogic 10.3 only supports servlet specification 2.5, while Websockets are only available starting with servlet 3.1. So what you're planning won't work, regardless of Play.
Edit:
Regarding your edit: There still seems to be a misconception here. Play is not a Java EE framework. It does not use servlets. It does not package its application up as wars, and it does not need an application server for deployment. Play comes with its own webserver, which is based on Netty. This built-in webserver supports Websockets and all of Plays features.
And I checked the source of the play2-war-plugin, and it looks like Servlet 3.1 is not (yet) supported. Same goes for Websockets.
To summarize: No, at this moment, it is not possible to write a Play 2 application that uses Websockets and deploy it to a servlet 3.1 container.
In play1.x, we can package the project to a war, by using play warhowever Play 2.x doesn't allow that. You could use external plugins https://github.com/dlecan/play2-war-plugin to package your apps into standard WAR packages from Play framework 2.

How would I/can I post a java web project from Netbeans to Sharepoint?

I have a java web application that I am developing in Netbeans (and running through Tomcat). Is there any way to put this application on Sharepoint?
This is my first time doing this. I've read that to post the application to a tomcat server you just have to copy the .war file over, but I haven't been able to find an easy solution for Sharepoint.
Sharepoint isn't a Java Application Server. You'll have to use Tomcat (or another Java Application Server) to host your application. If you need to interact with Sharepoint from your application, you'll have to use web services, a shared database or something else to communicate.
That's not possible out of the box. SharePoint only runs ASP.NET applications, not java projects.
You can deploy the solution to a Tomcat server and then use the Page Viewer Web Part to show external content.

What tech needed to run JSP and Servlets?

If I want to build a site with PHP, all I have to do is install the PHP package and make sure mod_php is enabled in my apache web server. Voila! a PHP environment.
Now, if I want to build a site with equivalent Java tech, i.e. JSP and Servlets, What do I have to install?
You need a servlet container, such as Tomcat or Jetty. They are both easy to configure, and there are lots of tutorials available online.
You only have to install Java (usually already done) and a servlet container like Tomcat.
Netbeans locally includes all startconfig and sample projects needed and you can deploy to gae or eatj. It's complicated and worth the effort. You can go with gae or custom your own with jetty, tomcat, jboss, websphere or glassfish. 512 RAM was minimal after trying with 256 which permgened. You might try with 256. I recommend avoid EJB and custom tags and keep web archives instead of enterprise archives for small to medium projects.
You will need a Java Web Container (Tomcat is a good starting point) plus needing to tell your Apache frontend how to reach the web container from the outside.
Note, most modern Java Web Containers can perform well enough to not need a frontend Apache server.
You need to install the Java Environment, where a web server, The code which does the appropriate functions.
You will be using the jsp for the view part
Servlets for the Basic modal part, where you will write the business logic
and Web.xml, is the deployment descriptor where you will tell the server aabout the servlets and jsp and how the control of the flow will be defined

Categories

Resources