File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Need Guidance. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Need Guidance." Watch "Need Guidance." New topic

Need Guidance.

dinesh Venkatesan
Ranch Hand

Joined: Oct 12, 2006
Posts: 134
Hi All,

I have been developing small size applications using Servlets and Jsps. I am developing it by putting all these files in the pre-deployed examples folder of Tomcat 6.0.2.

Now, I want to deploy a web application. That is i want to invoke my jsp like "http://localhost:8080/MyApps/login.jsp"

Can anybody give me some guidance in the deployment procedures. I have tried several ad-hoc ways, such as renaming the examples folder to MyApps like that.

Thanks in advance!
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
Make a war (following appropriate directory structure) out of your application and name that as MyApps and use that for deployment.

Put the war in webapps folder of your Tomcat and restart the server.

Rahul Bhattacharjee
LinkedIn - Blog
dinesh Venkatesan
Ranch Hand

Joined: Oct 12, 2006
Posts: 134

Thanks! Could you please explain about the appropriate directory structure? and also please provide me the details about deployment descriptor authoring.

Thanks in advance!
Prabhu Venkatachalam
Ranch Hand

Joined: Nov 16, 2005
Posts: 502

Good Article about deploying a sample application in Tomcat and weblogic -- URL

Prabhu Venkatachalam<br />SCJP 1.4,SCWCD 1.4<br />
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

dinesh Venkatesan,
Welcome to JavaRanch!

In an effort to help you get the most from our forums, we've compiled a
list of tips for asking questions here. You can find the list in our
FAQ section here.
In particular please see:

Abbreviations such as "u" or "ur" in
place of "you" and "you are" or "you're" confound language translation software making
it hard for our non-English speaking members to read your posts.
"plz" is not a word in the English language.

Again, welcome to JavaRanch and good luck with your question.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
dinesh Venkatesan
Ranch Hand

Joined: Oct 12, 2006
Posts: 134
Thank you!
I agree. Here's the link:
subject: Need Guidance.
It's not a secret anymore!