Re: Tomcat 3.3, server.xml and a lot of fun

2001-12-04 Thread Vladimir Grishchenko
A collection of java designer's newsgroup posts can be found here: http://groups.google.com/groups?[EMAIL PROTECTED]hl=enlr=safe=off; btnG=Google+Searchsite=groups Looks like s/he can be nice to people when in good mood. Surprisingly, none of his posts is Java related. --V. - Original

Re: Tomcat 3.3, server.xml and a lot of fun

2001-12-04 Thread Vladimir Grishchenko
Unfortunately, you missed the point... - Original Message - From: java programmer [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 03, 2001 10:35 PM Subject: Re: Tomcat 3.3, server.xml and a lot of fun Vladimir Grishchenko [EMAIL PROTECTED], looked

Re: an alternative approach to the standard mvc

2001-12-03 Thread Vladimir Grishchenko
What's wrong with Element Construction Set (http://jakarta.apache.org/ecs/index.html) ? IMHO the whole point of MVC is to separate presentation logic from business logic. Your solution seems to only abstract html construction via java object manipulation. There's much more to MVC than just

Re: an alternative approach to the standard mvc

2001-12-03 Thread Vladimir Grishchenko
themselves. Though I haven't planned it, its possible that these objects at a latter stage will render something else instead of Html. Vladimir Grishchenko [EMAIL PROTECTED] on 04/12/2001 11:29:39 Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED

Re: Tomcat 3.3, server.xml and a lot of fun

2001-12-03 Thread Vladimir Grishchenko
I'm not usually practicing help to rude people but I'll make an exception and will give you a hint. I used almost every version of TC since 3.x to 4.0. Yes, I had problems starting it and moments of frustration, but all issues turned out to be my fault mostly due to my incompetence at that time.

Re: This would be cool in tomcat as well...

2001-11-17 Thread Vladimir Grishchenko
Tomcat is a _reference_ implementation. I doubt it will be polluted by non-portable extensions, even if they seem to be useful. --V. - Original Message - From: Geir Magnusson Jr. [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, November 17, 2001 9:43 AM

Re: Tomcat Spontaneously Restarting System

2001-09-20 Thread Vladimir Grishchenko
TC is pure Java. Java has no methods that can force system shutdown. The way to do it from Java is JNI. Search for native or loadLibrary in deployed web applications to see if someone is doing something funky. Another possible way to do it Is Runtime.exec(), so search for exec also. You should

Re: Tomcat 4.0 Session Timeout

2001-09-20 Thread Vladimir Grishchenko
Can you use HttpSession.setMaxInactiveInterval(int) method to set it at runtime? --V. - Original Message - From: Jim Urban [EMAIL PROTECTED] To: Tomcat-User [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 9:52 AM Subject: Tomcat 4.0 Session Timeout I've now asked this three

Re: Tomcat 4.0 Session Timeout

2001-09-20 Thread Vladimir Grishchenko
of configuring Tomcat to set it for me. Was this feature removed or just moved in 4.0? Jim -Original Message- From: Vladimir Grishchenko [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 20, 2001 12:27 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat 4.0 Session Timeout Can you

Re: Session expiring(?) on UNIX platform. Help!!!!...

2001-09-20 Thread Vladimir Grishchenko
Could it be that your browser is not set to accept cookies if you're using them for session tracking? --V. - Original Message - From: Bala Nemani [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 11:08 AM Subject: Session expiring(?) on UNIX platform.

Re: Object Sharing

2001-09-20 Thread Vladimir Grishchenko
ServletContext.setAttribute() ServletContext.getAttribute() right? --V. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 10:52 AM Subject: Object Sharing Hi I want to have single instance of x class to be referenced in all

Re: Object Sharing

2001-09-20 Thread Vladimir Grishchenko
: Vladimir Grishchenko [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 20, 2001 12:13 PM To: [EMAIL PROTECTED] Subject: Re: Object Sharing ServletContext.setAttribute() ServletContext.getAttribute() right? --V. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED

Re: Jars in WEB-INF/lib and RMI stubs in WEB-INF/classes not found

2001-09-20 Thread Vladimir Grishchenko
Sounds like a beaten to death topic. Search TC archives for class loading. --V. PS: sorry for not being too helpful, but this question has been answered way too many times. - Original Message - From: Joshua van Tonder [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September

Re: Jars in WEB-INF/lib and RMI stubs in WEB-INF/classes not found

2001-09-20 Thread Vladimir Grishchenko
Sounds like a beaten to death topic. Search TC archives for class loading. --V. PS: sorry for not being too helpful, but this question has been answered way too many times. - Original Message - From: Joshua van Tonder [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September

Re: JDBC Connection Pool Theory ??

2001-09-20 Thread Vladimir Grishchenko
Professional Java server programming from WROX had a chapter about it, as far as I remember. I can't call it a comprehensive study, but it had some meaningful explanations. What's wrong with poolman btw? IMHO it is as simple as it gets, your application doesn't even know it deals with pooled

off topic

2001-09-13 Thread Vladimir Grishchenko
Just wondering if someone on this list is familiar with WebSphere 4.0. I'm looking for any info on how to add extended status code messages to it. In TC I simply edited a properties file to associate status codes with messages and everything was fine. WebSphere throws a NullPointer whenever I try

Re: interesting fault on toshiba laptop

2001-08-30 Thread Vladimir Grishchenko
Sounds weird. I don't think that hw is the problem, because if it was then you'd get some sort of error in native code, but Tomcat not recognizing sessions Most likely the problem lies in different network configuration, like IP address, any http proxies you're using, etc. --V. -

Re: Memory used by java process

2001-08-26 Thread Vladimir Grishchenko
As long as the growing process stops at some point it's fine. Java is dynamic by nature, meaning the classes are loaded on demand, not proactively. Jsp pages are compiled into servlets and get loaded only as needed, that's why process size is growing with time. Try -verbose options to see how

Re: How do I make Tomcat include needed jars for my servlet?

2001-08-24 Thread Vladimir Grishchenko
PROTECTED] Sent: Friday, August 24, 2001 1:58 AM Subject: Re: How do I make Tomcat include needed jars for my servlet? First thank Vladimir Grishchenko and Rob S. for your help But in my case, since our product has its own framework and we just do some customization. So the directory structure

Re: How do I make Tomcat include needed jars for my servlet?

2001-08-24 Thread Vladimir Grishchenko
Yet another one: Place codebase dirs on system classpath, you'll have to restrat tomcat every time there's a change. --V. - Original Message - From: Vladimir Grishchenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 24, 2001 7:38 AM Subject: Re: How do I make Tomcat

Re: How do I make Tomcat include needed jars for my servlet?

2001-08-23 Thread Vladimir Grishchenko
My setup is as follows: d:\development\projectX\src - contains all source code d:\development\projectX\WEB-INF\classes - compiled classes get here (use javac -d ...) server.xml has this entry: Context path=/foo docBase=d:\development\projectX

multiple context paths pointing to the same doc base?

2001-08-22 Thread Vladimir Grishchenko
Hi there, May be somebody can give me a quick answer with regards to T3.2.2. I need to have multiple context paths to point to the same doc base, say my server.xml has the following entries: Context path=/somectx docBase=d:/foo/bar debug=0 reloadable=false

Re: multiple context paths pointing to the same doc base?

2001-08-22 Thread Vladimir Grishchenko
: Craig R. McClanahan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 22, 2001 9:41 AM Subject: Re: multiple context paths pointing to the same doc base? On Wed, 22 Aug 2001, Vladimir Grishchenko wrote: Hi there, May be somebody can give me a quick answer with regards

Re: multiple context paths pointing to the same doc base?

2001-08-22 Thread Vladimir Grishchenko
: Wednesday, August 22, 2001 9:41 AM Subject: Re: multiple context paths pointing to the same doc base? On Wed, 22 Aug 2001, Vladimir Grishchenko wrote: Hi there, May be somebody can give me a quick answer with regards to T3.2.2. I need to have multiple context paths

Re: multiple context paths pointing to the same doc base?

2001-08-22 Thread Vladimir Grishchenko
One option you have is to put the classes that actually cache things into a common directory ($TOMCAT_HOME/lib or $CATALINA_HOME/lib). Such classes are shared across web apps, so this should accomplish your goal of having a single cache. They are loaded from a (common) parent class loader

Re: ClassLoader Reloading issues

2001-08-19 Thread Vladimir Grishchenko
somewhat related issue I've found with T3.2.2. After class reloading the old class isn't GC'ed, is a reference to previous class that's kept around somewhere? Actually I noticed it because I had a cleanup thread running infinitely, and after the class reload I ended up having two threads running.

Re: ClassLoader

2001-08-14 Thread Vladimir Grishchenko
I don't fully understand your setup from the messages you sent but if you have a custom class loader then you should register webapp class loader to be the parent of your custom class loader. So, if your custom class loader lives in webapp directory its constructor should look like: public class

Re: Restarting Tomcat/Apache

2001-08-13 Thread Vladimir Grishchenko
Had the same problem, never figured out how to get rid of it. I used it stand alone. -V. - Original Message - From: Simon Hardingham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 10:27 AM Subject: Restarting Tomcat/Apache Hi, I am having problems restarting

RE: Dynamic Class Loading - Reflexion failure

2001-08-03 Thread Vladimir Grishchenko
-Original Message- From: Frank Bourdache [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 02, 2001 12:45 AM To: [EMAIL PROTECTED] Subject: Dynamic Class Loading - Reflexion failure Hi, I am facing problems while loading dynamically classes in my servlet. For my

RE: viewing application/msword using TOMCAT

2001-08-02 Thread Vladimir Grishchenko
if your question is how to launch WORD automatically when opening a doc file from web browser then the answer is to configure mime-types on TOMCAT side, was it web.xml where you do it? don't remember... --V -Original Message- From: jingi [mailto:[EMAIL PROTECTED]] Sent: Thursday,

RE: ServletContext.log() - where does it go?

2001-07-27 Thread Vladimir Grishchenko
change verbosity level/path in server.xml? --V. -Original Message- From: chris brown [mailto:[EMAIL PROTECTED]] Sent: Friday, July 27, 2001 3:15 AM To: tomcat-user Subject: ServletContext.log() - where does it go? I've tried some simple logging using the following code in some

how to check if a url maps to Tomcat space?

2001-07-27 Thread Vladimir Grishchenko
I'm trying to find the most effective way to determine (in servlet) if a particular url will be served by the same tomcat instance that the current servlet is running in. I could use java.net.InetAddress and check host names or ip addresses, but it seems to be an overkill plus I'm not sure how to

RE: Custom HTTP status code

2001-07-25 Thread Vladimir Grishchenko
extract org/apache/tomcat/core/LocalStrings.properties (or org/apache/tomcat/service/LocalStrings.properties ?? don't remember exactly which one did it for me..) from webserver.jar, add/edit status codes you want, put it back and restart Tomcat. You should be running fine now. This

RE: newbie (or a dummy?)

2001-07-25 Thread Vladimir Grishchenko
someone had a 'SHA-1 not avail' error, nobody replied. I don't know where to start. PLEASE HELP me 8( -Original Message- From: Vladimir Grishchenko [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 4:21 AM To: '[EMAIL PROTECTED]' Subject: RE: newbie (or a dummy?) Just a wild guess

RE: newbie (or a dummy?)

2001-07-24 Thread Vladimir Grishchenko
Just a wild guess: may be you are missing SHA-1 security provider? See if you can get it in a separate download from Sun. --V. -Original Message- From: Henderson, Kevin CECOM RDEC STCD [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 8:35 AM To: '[EMAIL PROTECTED]' Subject:

RE: Authentication with NT4.0 login and password

2001-07-23 Thread Vladimir Grishchenko
Take a look at JAAS, Sun has released NT auth. module under JAAS umbrella. --V. -Original Message-From: João Folha [mailto:[EMAIL PROTECTED]]Sent: Monday, July 23, 2001 7:51 PMTo: [EMAIL PROTECTED]Subject: Authentication with NT4.0 login and password Hi there, I

RE: java.lang.SecurityException: sealing violation?

2001-07-13 Thread Vladimir Grishchenko
as far as I know it means that you have a class name collision in two jars and one of them is sealed, I had a similar problem when using xml packages. Try to put jars foreign to tomcat in the begining of the classpath, or at the end... classpath reordering did it for me.. --V. -Original

RE: Tomcat 4.0b5 keeps shutting down

2001-07-11 Thread Vladimir Grishchenko
doesn't look like a tomcat problem. VM bug? -Original Message- From: Jakarta Jakarta [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 11, 2001 7:32 AM To: [EMAIL PROTECTED] Subject: Tomcat 4.0b5 keeps shutting down I am running Tomcat 4.0b5 in standalone mode on a Sun Solaris 8 system,

RE: getServletContext() throws NullPoinetException

2001-07-10 Thread Vladimir Grishchenko
Did you override init(ServletConfig config) method? YOu must call super(config) if you did... --V. -Original Message- From: Stefanos Karasavvidis [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 7:46 AM To: [EMAIL PROTECTED] Subject: getServletContext() throws NullPoinetException

RE: Reloading

2001-07-10 Thread Vladimir Grishchenko
Make sure the classes you're trying to reload are not on the system classpath --V. -Original Message- From: Hector Adolfo Alonso [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 7:44 AM To: [EMAIL PROTECTED] Subject: Reloading Hi servleters: I've making some tests trying to

RE: AccessControlException in Tomcat

2001-07-09 Thread Vladimir Grishchenko
Make sure you enable permissions for your application, in your case you should have something like this in your security file (default is conf/tomcat.security when using -security flag): grant codeBase file:${tomcat.home}/webapps/ip { permission java.io.FilePermission

webapp classloader ProtectionDomain (running secured tomcat)

2001-07-06 Thread Vladimir Grishchenko
Hi all, It seems that webapp classloader puts all classes loaded from a webapp directory into the same ProtectionDomain regardless of the location where the class was loaded from (like classes dir or a jar file). It means that any security grant entry granting permssions to a webapp codesource

digest authentication using servlets

2001-06-20 Thread Vladimir Grishchenko
Hi all, I need to implement digest authentication using servlets. Just wondering if anyone came across something that can be reused. Is there any support for it in Tomcat? how do i use it if so? I'm also not sure if JDK itself provides any support for it. I see there's a class

Re: Login Servlet

2001-03-23 Thread Vladimir Grishchenko
ps I'm surprised "boolean found = rs.next()" works if result set is empty. I'd kind of expect a null pointer exception. I always do if (rs != null rs.next()) { // assign something } if i'm expecting a single row. I guess there's a difference between an empty ResultSet and no ResultSet

Re: Tomcat startup problem

2001-03-23 Thread Vladimir Grishchenko
It might be that you don't set $TOMCAT_HOME. The following script works on Linux, set vars to your values: #!/bin/sh TOMCAT_HOME=/usr/local/tomcat export TOMCAT_HOME JAVA_HOME=/opt/IBMJava2-13 export JAVA_HOME case "$1" in start) echo -n "Starting Tomcat: "

JDBCRealm reconnect problems?

2001-03-16 Thread Vladimir Grishchenko
Has anyone experienced JDBCReconnect problems??? Looks like mysql db connection times out and JDBCRealm cannot reopen it for some reason. Actually it tries to reopen it and somehow is able to authenticate a user, but then dies completely... Any ideas what can be wrong? This is the

Re: ClassCastException :(

2001-03-15 Thread Vladimir Grishchenko
I don't see how this would work... It doesn't matter what stores, it matters what creates them... Probably, Context uses some sort of Hashtable internally to store all objects, which is a core class by itself, and it doesn't help the problem. So, I don't get it. May be you can give more details?

Re: ClassCastException :(

2001-03-15 Thread Vladimir Grishchenko
What you describe should work... Unless Tomcat web-app CL doesn't adhere to standard CL delegation rules. Where did you put your classes? I think $TOMCAT_HOME/classes is automatically appended to system classpath by startup script. I don't think _bootstrap_ CL is the one that's loading classes if

Re: ClassCastException :(

2001-03-15 Thread Vladimir Grishchenko
BX * is StatesBean.STATES_BEAN_NAME.hashCode() the same one BX before/after MyServlet reloading? before: hash code in state servlet=-24382515 hash code in name servlet=-24382515 hash code in city servlet=-24382515 after: hash code in state servlet=-24382515 hash code in name

Re: Form based auth. again...

2001-03-14 Thread Vladimir Grishchenko
Christian Rauh wrote: Vladimir Grishchenko wrote: "Craig R. McClanahan" wrote: * Have the link on your home page exactly has you describe, but have the link point at a "Welcome To My Application" page inside the protected area. The fact that th

Re: Form based auth. again...

2001-03-14 Thread Vladimir Grishchenko
Daniel Lopez wrote: Hi Vladimir, snipped for brevity I'm thinking along the same lines... You could also embed a tiny invisible image in protected area to your front page (named /welcome, for example) and define your login form as /welcome?mode=login, so whenever you're not

Re: ClassCastException :(

2001-03-14 Thread Vladimir Grishchenko
I think you're experiencing a standard Java class loader problem. Java treats classes loaded into different classloaders as different classes, even though they share the same full. qual. name. Your recompiled servlets are reloaded by a brand new class loader to make sure the old classes are

Re: Form based auth. again...

2001-03-14 Thread Vladimir Grishchenko
Christian Rauh wrote: Vladimir Grishchenko wrote: Christian Rauh wrote: Vladimir Grishchenko wrote: I am also facing the same problem and had an idea while reading your post. Maybe you can set a frame on your main page where you want the login to appear. That frame links

Re: javax.servlet.ServletException: sealing violation

2001-03-14 Thread Vladimir Grishchenko
Not sure if this is your case, but I had a similar problem when using JAXP 1.1. The problem is there's some sort of class name collision between jar files... I had to reorder the CLASSPATH for tomcat to get rid of this problem. Regards, VG. Mandar Joshi wrote: I just moved my server side

Re: ClassCastException :(

2001-03-14 Thread Vladimir Grishchenko
Bo Xu wrote: Andrey Myatlyuk wrote: Hello Vladimir, Thank you for your help. And I'm still have some questions. Why do we need to implement "some interface"? java.io.Serializable I think? But anyway I implemented this interface - it doesn't work. This approach works for

Re: Tomcat Security example and Admin Tool

2001-03-14 Thread Vladimir Grishchenko
Yep, for Context admin add a user with role admin to tomcat-users.xml Boon Yeo wrote: Has anyone successfully got the Tomcat JSP Security example running? What about Tomcat Context Admin Tools? -Boon

Re: xml reader

2001-03-13 Thread Vladimir Grishchenko
Download JBuilder 4 foundation. It has tree-like view of XML/HTML docs... JEdit might be good also... IE5 can show XML in tree-like form [EMAIL PROTECTED] wrote: can anyone suggest the best compatible xml reader. Currently I am using word but it is really slow and takes time to browse

Re: PLEASE HELP TO REMOVE ME FROM THE LIST

2001-03-12 Thread Vladimir Grishchenko
Did you try to fool it? It might not work if you use MS Exchange server or such, but for plain SMTP messaging you can (well, ising Netscape mail, MS mail clients should have similar options) go to Edit-Preferences-MailNewsgroups-Identity and change your e-mail address to whatever you want

Form based auth. again...

2001-03-11 Thread Vladimir Grishchenko
Hi, Just wondering if it's possible to get built-in form based authentication to work without the user actually trying to access a protected resource? I want to have a login box on the first page that users can use to authenticate themselves at my web-site. As you can guess simply specifying

Re: getPathInfo() returns null

2001-03-05 Thread Vladimir Grishchenko
02, 2001 6:45 PM To: [EMAIL PROTECTED] Subject: Re: getPathInfo() returns null "Craig R. McClanahan" wrote: Vladimir Grishchenko wrote: Hi, I'm new to Tomcat and servlets and need some help. Would somebody clarify why getPathInfo() ret

Re: QuickSorting Vectors

2001-03-05 Thread Vladimir Grishchenko
Ooops... Replace java.util.Arrays.sort(elementData, 0, elementCount - 1); with java.util.Arrays.sort(elementData, 0, elementCount); I claim this is faster (inspired by the Vector's source code, he-he): public class VladsVectorSort {

Re: QuickSorting Vectors

2001-03-05 Thread Vladimir Grishchenko
I missed that Array.sort() excludes last index from sorting Craig O'Brien wrote: Hey, Good job. Nice trick. I messed around with an ArrayList and Collections.sort which was faster then my original (the 15 minute job) but yours was still faster. I tried your trick only to find out

getPathInfo() returns null

2001-03-01 Thread Vladimir Grishchenko
Hi, I'm new to Tomcat and servlets and need some help. Would somebody clarify why getPathInfo() returns null when a servlet accessed via: http://server/context/servletalias/pathinfo and it returns "pathinfo" when the same servlet accesses via: