Solved

Deploy Java Web App Basics

Posted on 2010-08-20
3
542 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
Comment Utility
Do i need to deploy tomcat on my host?
0
 
LVL 2

Accepted Solution

by:
arch-itect earned 500 total points
Comment Utility
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
Comment Utility
Thank you :)
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
mapBully challenge 6 88
topping1 challenge 7 48
eclipse compiler vs Installed JREs option 3 38
change time in cron 4 38
Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
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.

744 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

17 Experts available now in Live!

Get 1:1 Help Now