aspose file tools*
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
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Deploy a Servlet" Watch "Deploy a Servlet" New topic
Author

Deploy a Servlet

priya rishi
Ranch Hand

Joined: Oct 26, 2008
Posts: 119
Hello,
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:

ie.,
tomcat
|
webapps
|
ch1

but when i am using this command:
bin/startup.sh

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.


SCJP 5 , SCWCD 5
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
http://simplepccare.spaces.live.com
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Deploy a Servlet