You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Samit Paul <sp...@ipcelerate.com> on 2005/09/23 16:11:44 UTC
Tomcat working directory
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
RE: Tomcat working directory
Posted by Samit Paul <sp...@ipcelerate.com>.
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:news@sea.gmane.org] 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" <sp...@ipcelerate.com> wrote in message
news:200509231019807.SM02120@PAULSK1...
> 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Tomcat working directory
Posted by Bill Barker <wb...@wilshire.com>.
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" <sp...@ipcelerate.com> wrote in message
news:200509231019807.SM02120@PAULSK1...
> 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org