File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes where does servlet run in tomcat 6  Server.? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "where does servlet run in tomcat 6  Server.?" Watch "where does servlet run in tomcat 6  Server.?" New topic

where does servlet run in tomcat 6 Server.?

Jack Doson

Joined: Oct 02, 2008
Posts: 9
Actually, I am running my own web application in tomcat.. in that application i placed those servlet in saperate package..!

Its deploying properly properly..! and while running "as far as my knowledge it will run in main application directory..!

I mean to say [webapps/omcabs} , here om cabs is my application name..!

In that application i used keman[package name.!].

where does these servlets placed in keman package will run..(i mean in which folder..?)

if any body post replay than thanks for help.!

Jack Dososn..!
Peter Johnson

Joined: May 14, 2008
Posts: 5852

Are you asking what the "current working directory" is for your web application? I think that when running in Tomcat, the current working directory for all web applications is tomcat_home/bin. Why? Because the current working directory is an operating system concept that relates to the process, which in this case is the JVM, and the JVM is started from tomcat_home/bin.

JBoss In Action
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

Please check your private messages for an important administrative matter.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: where does servlet run in tomcat 6 Server.?
It's not a secret anymore!