The process of deploying a web application to URL - java

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.

Related

Deploy Java restful web service to live server

I have just learned to create java rest API using jersey and Oracle database.
I'm developing in eclipse and using weblogic server to run and test web service on localhost.
My question is what are the options of live servers to deploy this service so that I can access this API in my android application or any web application???
You can do that. But you have to make sure that all the dependent jars are packaged with the your WAR project(eg; Oracle db related things).
Some blog entries which give you an idea about what are all these servers and which one to pick for open development and common standards - http://blogs.forrester.com/mike_gualtieri/11-07-15-stop_wasting_money_on_weblogic_websphere_and_jboss_application_servers,
and this one http://zeroturnaround.com/rebellabs/the-great-java-application-server-debate-with-tomcat-jboss-glassfish-jetty-and-liberty-profile/
This will give pretty good idea about what is all these servers :)

Moving Web Application To Web Hosting/Web Server

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.

How to publish the web service which is created in Java using Eclipse?

I have created one web service in Java using Eclipse, now I need to publish that web service. How to achieve this?
you can deploy your ws that is developed in java on tomcat server and to do that you can follow instuctions on How to manually deploy a web service on Tomcat 6?
now TomCat7 is availabale and you must check this PDF which helps you to deploy Webservices on Tomcat from eclipse. It is self explained Pictorial representation and is exactly what you want.
Export the war and deploy it to an application server.

Unable to publish web service which is created in java using eclipse

i am newbie to java/eclipse and also to creating web services.Now i am trying to host the web service which is created in java using eclipse.
http://www.softwareagility.gr/index.php?q=node/29
i am following the above link for my reference.
My problem is,i got struggle on after creating a web service.I have created a web service and run it through the tomcat server and its showing like the below image
this is the link of wsdl of my web service i got
"http://localhost:8080/ResourceA/services/Myservice?wsdl"
Now i need to know,what steps i want to do after these steps, to publish and run my web service through my cloud server?
Thanks in advance!..
Export the project as a Web Archive (.war file) and deploy that on the server.

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.

Categories

Resources