Hi,
I'm running Tomcat 5.0.28 on Win2K and I'm trying to set the default
directory that Tomcat uses when creating/reading files.
I have some dll files that need to be loaded by my webapp and need to
be present in the default directory. I created a jsp page to figure
out what the dir
Hi everyone.
I am back to where I was 5 months ago - files *have* to be in the default
directory, classpath doesn't help. I copy them to bin and start tomcat
manually, then all works fine. I then install as a service and it doesn't
work anymore.
Tomcat 5.0.18 had ImagePath and Work
Thanks for the answer, I found a cool implementation of Resource.java which
does a few nifty things and error reporting etc. It's small but works well.
Another question, my web app logs to the "default directory" because I don't
know at run time where to put my log file
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
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 how do
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
ssage-
From: Allan Bruce [mailto:[EMAIL PROTECTED]
Sent: 22 January 2004 13:08
To: [EMAIL PROTECTED]
Subject: default directory for files in tomcat
I have an applet which requires a .ini file to be loaded up. This file is
only found if I am in the directory containing it when I startup tomcat
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
8:08 AM
>To: [EMAIL PROTECTED]
>Subject: default directory for files in tomcat
>
>I have an applet which requires a .ini file to be loaded up. This file
is
>only found if I am in the directory containing it when I startup
tomcat.
>Is
>there a default location for files, or is th
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
I have an applet which requires a .ini file to be loaded up. This file is
only found if I am in the directory containing it when I startup tomcat. Is
there a default location for files, or is there a config for this? I tried
placing them in a few places but none worked unless I started tomcat fr
e.
You can do it like this -
listings
false
Thanks
-Manoj.
-Original Message-
From: Mona Wong-Barnum [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 03, 2003 6:13 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: tomcat 4.1.18: disab
Cc: <[EMAIL PROTECTED]>
Sent: Monday, February 03, 2003 5:12 PM
Subject: tomcat 4.1.18: disable default directory listing
> Hi:
> I'm sure this has been asked many times before but I've searched all
> over the mail archives as well as google and did not find the an
Hi:
I'm sure this has been asked many times before but I've searched all
over the mail archives as well as google and did not find the answer I
need...
How do I disable directory listing? I'm using tomcat 4.1.18 and I do
not want to count on index.html or index.jsp. Is there a way to do
> From: "Turner, John" <[EMAIL PROTECTED]>
> Sent: Thursday, January 30, 2003 1:33 PM
> Subject: RE: Tomcat default directory for servlets
> Actually, the examples use the Invoker servlet, which is not the
recommended
> configuration.
Granted, but it's al
Actually, the examples use the Invoker servlet, which is not the recommended
configuration.
John
> -Original Message-
> From: Filip Hanik [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 30, 2003 4:29 PM
> To: Tomcat Users List
> Subject: RE: Tomcat default directo
30, 2003 2:18 PM
>To: [EMAIL PROTECTED]
>Subject: Tomcat default directory for servlets
>
>Dear Tomcat developers,
>
>
>I am using Tomcat 4.1.18 and two books of which the latter tell me that
the
>default path for Java servlets is
>
> %TOMCAT%/webapps/ROOT/W
2003 2:18 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat default directory for servlets
>
>
> Dear Tomcat developers,
>
>
> I am using Tomcat 4.1.18 and two books of which the latter
> tell me that the
> default path for Java servlets is
>
> %TOMCAT%/we
tian Rolfs [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 11:18 AM
To: [EMAIL PROTECTED]
Subject: Tomcat default directory for servlets
Dear Tomcat developers,
I am using Tomcat 4.1.18 and two books of which the latter tell me that the
default path for Java servlets is
Dear Tomcat developers,
I am using Tomcat 4.1.18 and two books of which the latter tell me that the
default path for Java servlets is
%TOMCAT%/webapps/ROOT/WEB_INF/classes
where %TOMCAT% denotes the Tomcat installation directory. For instance, if I
put a servlet called "TestServlet" in
ers,
Larry
> -Original Message-
> From: Catalin [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 27, 2001 7:10 PM
> To: [EMAIL PROTECTED]
> Subject: "Default " directory
>
>
> hi 2 All,
>
> i have a pb :
> I use a "jakarta-tomcat-3.3-m4" tomc
hi 2 All,
i have a pb :
I use a "jakarta-tomcat-3.3-m4" tomcat version and I have an
web application with jsp.
I erased "\jakarta-tomcat-3.3-m4\work\DEFAULT" directory and the
server do not regenerate it.
Where do I need to look so tomcat regenerate itself this directory?
I am running Jakarta Tomcat 3.2.1 on Windows 2000. I have created a
directory that contains some JPGs. Some of them have spaces in the name,
some of them do not. I point my browser at the directory:
http://192.1.1.1/testdirectory/
and let Tomcat build the directory page. I see the list of fi
Hi,
I'm trying to access JSP files in the document root for Virtual Host
(http://hostame/*.jsp) and have
decided that the jserv-servlet handler wants to map .jsp file to the same
real directory regardless of
Virtual Hosts when accessing the root directory. Any fix.
Tomcat 3.1
JDK 1.3
25 matches
Mail list logo