Solved

Deploy Java Web App Basics

Posted on 2010-08-20
3
547 Views
Last Modified: 2013-11-24
I want to deploy some web apps i built in java.  I'm currently using zymic.com as a free host and built them in eclipse and tested them locally running tomcat.

I'm 98% sure I have the directories correct (www/WEB-INF/classes/mypackage/myfiles.class) and the web.xml file in the right place but it is still not working.  

Anyone know what do I need to load onto the host so that the applications will run?  Ie JDK, etc
0
Comment
Question by:b_rad_wright
  • 2
3 Comments
 

Author Comment

by:b_rad_wright
ID: 33489644
Do i need to deploy tomcat on my host?
0
 
LVL 2

Accepted Solution

by:
arch-itect earned 500 total points
ID: 33491463
Yes you will need to have Tomcat on the host. Zymic doesn't cater for that though so you will need Java hosting.  

In eclipse you shouldn't have to create the deployment directories yourself.  After you have compiled the servlet you will end up with a ".war" file, not a .jar.  

Just like .jar you can rename a .war to zip and extract it to see the contents.

Go to the root of the tomcat server and log in as administrator.  Look for the place where you deploy servlets and upload the .war file.  Your servlet will now be running.

If your tomcat server is registered in eclipse then you will be able to publish straight to tomcat during the compile of your servlet.
0
 

Author Closing Comment

by:b_rad_wright
ID: 33513488
Thank you :)
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

831 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