Solved

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

Posted on 2011-09-09
6
347 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

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