Solved

Deploy Java Web App Basics

Posted on 2010-08-20
3
544 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
count7 challenge 12 101
sites similar to codingbat to improve coding hanson skills 3 40
Why is my Splunk Web URL not working? 2 50
print map entry 34 54
Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
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.

911 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

19 Experts available now in Live!

Get 1:1 Help Now