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
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
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
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
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
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
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
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
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