RE: Tomcat working directory

2005-09-26 Thread Samit Paul
Bill,

Thanks for the insight. But it still didn't work. Also the gui interface
comes with  Startup/Working Path disabled.
I could change the path through command line //US//Tomcat5 --StartPath
working_dir. Once I do this the GUI interface shows me the Working Path
set to the new one, but the edit box is still disabled. I am actually
upgrading from tomcat 3 to 5.0.28. I could do this in tomcat 3 using
TOMCAT_HOME under wrapper.properties. So I do not know what is the
equivalent for tomcat5. ( I tried setting CATALINE_HOME under environment
variables, but no luck ).

Let me be clear here, All I want to do is when a jsp page is accessed the
following code should show me my working(.) directory as CATALINA_HOME
instead of C:\Windows\System32.

Somefile.jsp
-
%

System.out.println(Current Dir: + new File(.).getAbsolutePath());

%
Thanks again,
~Samit Paul

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker
Sent: Saturday, September 24, 2005 9:43 PM
To: tomcat-user@jakarta.apache.org
Subject: Re: Tomcat working directory

The easiest way to to open up the nice GUI (If it isn't in the System-Tray 
or the Start menu, then it's usually at $CATALINA_HOME\bin\tomcat5w.exe), 
open the Startup tab, fill-in the Working Path box, and click 'OK'. 
Then restart the service.

It's also possible to do this from the command line, but I'll leave that as 
an exercise for people that have actually read the commons-daemon FM.

Samit Paul [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hi,
 How do I set tomcat-5's working directory to something other than
 C:\Windows\System32 when it is run as windows (XP) service .
 Even if I set CATALINA_HOME to point to the tomcat installation directory 
 it
 doesn't take it.
 Everything works great if I run tomcat from the command line using 
 tomcat's
 startup.bat file.
 Any help would be appreciated.
 ~Samit Paul









 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED] 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat working directory

2005-09-24 Thread Bill Barker
The easiest way to to open up the nice GUI (If it isn't in the System-Tray 
or the Start menu, then it's usually at $CATALINA_HOME\bin\tomcat5w.exe), 
open the Startup tab, fill-in the Working Path box, and click 'OK'. 
Then restart the service.

It's also possible to do this from the command line, but I'll leave that as 
an exercise for people that have actually read the commons-daemon FM.

Samit Paul [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hi,
 How do I set tomcat-5's working directory to something other than
 C:\Windows\System32 when it is run as windows (XP) service .
 Even if I set CATALINA_HOME to point to the tomcat installation directory 
 it
 doesn't take it.
 Everything works great if I run tomcat from the command line using 
 tomcat's
 startup.bat file.
 Any help would be appreciated.
 ~Samit Paul








 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED] 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat working directory

2005-09-23 Thread Samit Paul
Hi,
How do I set tomcat-5's working directory to something other than
C:\Windows\System32 when it is run as windows (XP) service .
Even if I set CATALINA_HOME to point to the tomcat installation directory it
doesn't take it.
Everything works great if I run tomcat from the command line using tomcat's
startup.bat file. 
Any help would be appreciated.
~Samit Paul


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]