Solved

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

Posted on 2011-09-09
6
308 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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

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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

770 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