RE: Default Directory

2004-05-14 Thread Andi Reinbrech
s. Problem is, when Tomcat runs as a service, the log files get put in \WINDOWS\System32 - not the nicest place for clutter :-) -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 13 May 2004 15:08 PM To: Tomcat Users List Subject: RE: Default Directory Hi, >With Tom

RE: Default Directory

2004-05-13 Thread Shapira, Yoav
Hi, >With Tomcat 5.0.24 running as a service, where would the "current >directory" >be? 5.0.18 allowed you to specify --WorkingPath "%CATALINA_HOME%\bin" in >service.bat, but this setting is ignored now in 5.0.24. > >I need to open some config files from the current directory at startup. > >BTW

RE: default directory for files in tomcat

2004-01-22 Thread Shapira, Yoav
Howdy, >In the Servlet init() method you can call a method called getRealPath() > >This will return the name of the directory where your webapp is deployed. >You may need to store this is a system property or a static classs for >future use as it's only availalble on startup. This is one of thos

RE: default directory for files in tomcat

2004-01-22 Thread Donie Kelly
In the Servlet init() method you can call a method called getRealPath() This will return the name of the directory where your webapp is deployed. You may need to store this is a system property or a static classs for future use as it's only availalble on startup. Donie -Original Message

RE: default directory for files in tomcat

2004-01-22 Thread Shapira, Yoav
Howdy, >An alternative is for the webapp to read the file from "somewhere on the >classpath". I have not tried it and don't know the exact technique, but >you should be able to find how to do it. Then you could put your file in >web-inf/classes in your .war file. The technique is simple: place

RE: default directory for files in tomcat

2004-01-22 Thread Bruno.Melloni
classes in your .war file. -Original Message- From: ext Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 7:52 AM To: Tomcat Users List Subject: RE: default directory for files in tomcat Howdy, The "default" location for files is the "current w

RE: default directory for files in tomcat

2004-01-22 Thread Shapira, Yoav
Howdy, The "default" location for files is the "current working directory" which is the directory from which the startup script is launched. Needless to say, relying on this is fragile at best. So you want to write your applet such that the location of the .ini file is a parameter, and pass your

Re: default directory for files in tomcat

2004-01-22 Thread Jacob Kjome
I don't see how an "applet" would have anything to do with where Tomcat starts up as they aren't even in the same JVM's. Did you mean "servlet"? Are you counting on being able to read files in a servlet via File IO? Bad, bad, bad, bad, etc Never, ever, use File IO in a servlet applicat

RE: "Default " directory

2001-11-27 Thread Larry Isaacs
It is typically up to Tomcat to create the "work" directories. If it is not be created, then there may be something wrong with your configuration. I would check the log output to see if any errors are occurring. I would also recommend upgrading to Tomcat 3.3 final. Cheers, Larry > -Origin