Tomcat 5.0: Configuring default directory property

2005-01-26 Thread Shailesh Kochhar
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

Default directory

2004-05-18 Thread Andi Reinbrech
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

RE: Default Directory

2004-05-14 Thread Andi Reinbrech
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

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

Default Directory

2004-05-13 Thread Andi Reinbrech
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

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

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

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

default directory for files in tomcat

2004-01-22 Thread Allan Bruce
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

RE: tomcat 4.1.18: disable default directory listing

2003-02-03 Thread Pooleery, Manoj
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

Re: tomcat 4.1.18: disable default directory listing

2003-02-03 Thread David Boyer
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

tomcat 4.1.18: disable default directory listing

2003-02-03 Thread Mona Wong-Barnum
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

Re: Tomcat default directory for servlets

2003-01-30 Thread Will Hartung
> 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

RE: Tomcat default directory for servlets

2003-01-30 Thread Turner, John
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

RE: Tomcat default directory for servlets

2003-01-30 Thread Shapira, Yoav
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

RE: Tomcat default directory for servlets

2003-01-30 Thread Turner, John
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

RE: Tomcat default directory for servlets

2003-01-30 Thread Filip Hanik
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

Tomcat default directory for servlets

2003-01-30 Thread Christian Rolfs
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

RE: "Default " directory

2001-11-27 Thread Larry Isaacs
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

"Default " directory

2001-11-27 Thread Catalin
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?

Images don't show using default directory

2001-05-18 Thread Eric Lubin
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

AddHandler default directory for .jsp

2000-11-03 Thread Brown, Lawrence M.
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