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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Deploy a Servlet" Watch "Deploy a Servlet" New topic

Deploy a Servlet

priya rishi
Ranch Hand

Joined: Oct 26, 2008
Posts: 119
I am studying HFSJ
and i am in pg 31,trying to deploy my application.

my directory tree is exactly the same way in book:


but when i am using this command:

i get this error ---
windows cannot find '-Djava.endorse.dirs='. make sure you typed the name correctly, and then try again.

please help.
i really want to display my servlet in tomcat server, i did it in BEA weblogic its working.
but i want to use tomcat server , as the book is using this server.

Thanks Priya.

Ravi Gupta
Ranch Hand

Joined: Jul 15, 2006
Posts: 38
If you are using the Windows platform, then:
1. First navigate to the directory where Tomcat is installed. For e.g. I have installed Tomcat in C: drive, so my command prompt should read C:/Tomcat/bin> before i issue the start-up command.
2. Once you have managed to get the correct directory path onto your command prompt, just type 'startup' (without quotes) and press enter.

Follow the above steps and if you still face issues, please feel free to send me a PM.

help your PC help you best
I agree. Here's the link:
subject: Deploy a Servlet
It's not a secret anymore!