RE: Web App Classloader..How?

2003-01-29 Thread Shrotriya, Sumit
Hi Haytham, I am pretty new to Tomcat myself but I think this will help you. Modify your setclasspath.bat file in your %TOMCAT%\bin dir to have your files added to the CLASSPATH env variable. In this case as long as the sun.misc.Launcher$AppClassLoader class loader is called to load the files

RE: Web App Classloader..How?

2003-01-29 Thread Shrotriya, Sumit
Hi Haytham, I dont think Tomcat will allow you to load classes from any directory below the %TOMCAT% home dir. If it does then it would be a great security concern..by changing the classpath env variable it is the java classloader that is loading the files for you and not the apache

Tomcat4.1.x under JDK1.3 vs JDK1.4

2003-01-09 Thread Shrotriya, Sumit
Hi All, Are there any differences in using Tomcat4.1.x running under JDK1.3 and under JDK1.4. If any please do let me know. Thanks, ~Sumit -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: HTTPS to HTTP

2003-01-09 Thread Shrotriya, Sumit
Craig, I agree with you 100% but there can be a simple solution to the problem that you just raised..and that is that a new session id is created and mapped in some table when moving from https--http this way user B can not get access to the admin page. ~Sumit On Thu, 9 Jan 2003, John

RE: Log on Tomcat

2003-01-08 Thread Shrotriya, Sumit
Yes add these loggers Logger className=org.apache.catalina.logger.SystemErrLogger / Logger className=org.apache.catalina.logger.SystemOutLogger / ~Sumit -Original Message- From: Lindomar [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 11:44 AM To: Tomcat Users List Subject:

RE: new user: servlets dont run in new apps

2003-01-07 Thread Shrotriya, Sumit
Do you have a servlet-mapping in your web.xml Something like this might do for you(Change the MyClass value accordingly) ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2.2.dtd;

RE: Tomcat Still Doesn't Display Servlet!

2003-01-07 Thread Shrotriya, Sumit
its the web.xml that you edit...see my last post today for an example -Original Message- From: Steve R Burrus [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 5:45 PM To: [EMAIL PROTECTED] Subject: Tomcat Still Doesn't Display Servlet! Hello all, maybe I am beating a dead

Reading Property files...related to servlets

2003-01-06 Thread Shrotriya, Sumit
Hi All, My application is a servlet and it uses another application that tries to read a property file. Now the problem is that this application was never designed to work along with a servlet and does not read its property file using a method like

RE: Reading Property files...related to servlets

2003-01-06 Thread Shrotriya, Sumit
This is a good idead Wendy but I can't change their code.. Sumit wrote: Now the question that I have for you bright folks out there is how am I supposed to go about feeding this application its property file:) Will this do? ClassLoader cl = YourClassName.class.getClassLoader();

RE: Reading Property files...related to servlets

2003-01-06 Thread Shrotriya, Sumit
to find it. If the app isn't well documented, do you have its source code? Or do you have support for the app that can tell you this? Yoav Shapira Millennium ChemInformatics -Original Message- From: Shrotriya, Sumit [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 9:35 AM

RE: Reading Property files...related to servlets

2003-01-06 Thread Shrotriya, Sumit
Thanks Yoav. that helped...I was running after the wrong horse:) Regards, -Sumit -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 10:31 AM To: Shrotriya, Sumit Subject: RE: Reading Property files...related to servlets Hi, It looks like

RE: Console output in Tomcat

2002-12-31 Thread Shrotriya, Sumit
Vlad, Unfortunately no. The output from System.err doesnt get logged not with Tomcat4.1.12. I had run in the same problem a couple of days before and the only alternative was to install cygwin and redirect the output to a file. Sumit -Original Message- From: Vladimer Shioshvili

RE: Console output in Tomcat

2002-12-31 Thread Shrotriya, Sumit
Vlad, Yes you are right on that. When running as a service your output does get logged to those files but when trying to run Tomcat as an application it doesn't log the output. My comments in my previous mail were not to get into an argument of any sort. I take any words back if you felt

Reading property files from a package hierarchy in Tomcat4.1.12

2002-12-23 Thread Shrotriya, Sumit
Hi All, I am trying to read a property file from a package hierarchy. i.e. I have a service(that I don't have much control over) that reads a property file for a location such as com/sample/property/some.prop This worked fine when I was using Tomcat 3.3 but does not work with