Solved

How do I deploy a Java application (on Tomcat?) to a Linux Apache server

Posted on 2011-09-09
6
284 Views
Last Modified: 2012-05-12
I had my web hosting company install Tomcat so that we could deploy a Jasper report application.  However the hosting company does not offer help with deploying the application and we are kind of stuck about how to proceed.

Any tutorials, instructions, or help would be most sincerely appreciated.

Lynn
0
Comment
Question by:lthames
6 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 36512047
0
 

Author Comment

by:lthames
ID: 36512087
Thank you so much for the information.  I read it over quickly and it looks like it might help.  I don't know anything about java so I forwarded the link to the programmer who wrote the app.

In case he doesn't understand this or can't deploy them, do you (or do you know of someone) who can do this as freelance work?

The application is for Jasper reports and should be very simple (from what I understand)
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 36512178
For that sort of question, you need to get in touch with us via our profiles
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 13

Expert Comment

by:LinuxGuru
ID: 36512906
Hi,

Most hosting companies provide Tomcat as Private Tomcat or Shared Tomcat. In Private Tomcat you have full control over the tomcat installation along with configuration files. You can also restart Tomcat at any time. But in Shared Tomcat you are restricted to access the config file and the restart time period.

To deploy an application in both cases (either Private or Shared tomcat), normally you need to upload the war file of your java application to the main root directory (Sometimes it may be the /var/www/html or /home/username/public_html or /home/username/tomcat/webapps directory and restart the tomcat and it will deploy automatically. Also you need to set mapping for java application in the vhost file. If you are not sure about this, just ask your hosting provider for more details becoz the location may vary.

Cheers !!!
0
 
LVL 11

Expert Comment

by:mcnute
ID: 36515846
if the file is written with java classes you must compile the classes before deploying your application, too. Or you deploy it first, compile the classes and then restart the tomcat. You also need to tell tomcat how the URL pattern should look like, so you can access your application via your browser address. In most cases it looks like this: someIP:8080/yourapplacation.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 36717610
:)
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Join & Write a Comment

Suggested Solutions

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now