Re: Migration 4.1.27 to 4.1.30 - Servlet-Configuration won't work

2004-06-23 Thread Veniamin Fichin
;, getPathInfo() would return /and/this/fake/path, I guess. In your case it's null. - Jens -- Veniamin Fichin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: AW: Migration 4.1.27 to 4.1.30 - Servlet-Configuration won't wor k

2004-06-23 Thread Veniamin Fichin
there? -- Veniamin Fichin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Caused by: java.lang.IllegalStateException: Context path is already in use

2004-06-17 Thread Veniamin Fichin
Arsen A. Gutsal wrote: Getting subj during deploying into root () context. Who may help me? May be there really is another context at this path? Check all path attributes of Context element(s) in your server.xml . -- Veniamin Fichin

Re: How to know if platform is Windows or Linux from jsp?

2004-06-02 Thread Veniamin Fichin
Francisco José Arnau Vives wrote: How to know if platform is Windows or Linux from a jsp file in order to define variables to access to the file system? java.lang.System#getProperty(os.name) - To unsubscribe, e-mail: [EMAIL

Re: stopping-restarting Tomcat

2004-06-02 Thread Veniamin Fichin
[EMAIL PROTECTED] wrote: Does one need to stop-restart Tomcat server every time when a servlet is changed/compiled ? The restart takes lots of time during the development and testing of web application. Is there any way to expedite this. reloadable=true attribute of Context tag will do what

Re: stopping-restarting Tomcat

2004-06-02 Thread Veniamin Fichin
reloadable attribute is enough, but yes, when you add a new one, you should edit web.xml and restarting Tomcat or redeploy entire webapp. mfg Michael Nitschke -Original Message- From: Veniamin Fichin [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 02, 2004 12:53 PM To: Tomcat Users List

Re: default for reloadable setting

2004-06-02 Thread Veniamin Fichin
Ronald Klop wrote: The docs on http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html do not mention the default setting of reloadable. Does anybody know what it is? Just try it! :-) IMHO reasonable default setting is false.

Re: maxPostSize and file upload

2004-06-02 Thread Veniamin Fichin
Ronald Klop wrote: Does the maxPostSize setting for the Connector in server.xml affect the max. size of a file upload? Since file upload occurs with POST method, yes it restricts upload file size. - To unsubscribe, e-mail:

Re: maxPostSize and file upload

2004-06-02 Thread Veniamin Fichin
Ronald Klop wrote: Is it possible that this does not work? The docs (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/ajp.html) say that the default is 2MB, but I can download much larger files. Is this a bug or a feature? Don't know, I never used it. Additionally, I have no ajp.html

Re: Session Timeout and Direct Reference to login page

2004-05-27 Thread Veniamin Fichin
Jonathan Eric Miller wrote: The strange thing is that this page seems to only intermittently be displayed. i.e. it is catching the case where the session expires, but, in some cases since I'm using container based security, it is going back to the login page. Sometimes it goes to this page first,

Re: How does Tomcat manage sesssions ?

2004-05-26 Thread Veniamin Fichin
Xavier MOGHRABI wrote: Hi, I've read the documentation but I don't understand clearly where can I configure TOmcat to use *PersistentManager* instead of *StandardManager*. Do you know it ? Shortly: Context docBase=app.war path=/app !-- ... -- Manager

Re: Session Timeout and Direct Reference to login page

2004-05-21 Thread Veniamin Fichin
Jonathan Eric Miller wrote: Yeah, that seems like it would work. I'm wondering if I could maybe use a filter by itself though and not use the listener and do something like the following. 1. Intercept all requests with a filter. 2. Get the HttpSession out of the request. Get the session ID by

Re: Session Timeout and Direct Reference to login page

2004-05-20 Thread Veniamin Fichin
Jonathan Eric Miller wrote: Thanks. I think option #1 is what I'm looking for. What I don't understand is what I need to do with the session listener though? I don't understand how to determine whether the new session is truly new, or if it's a new session because a previous session timed out.

Re: error sset

2004-05-12 Thread Veniamin Fichin
agarlita,dan wrote: I have some questions about error customisation. I want to change the look of 500 Error. (that is org.apache.jasper.JasperException) so, I want to redirect all strings to the new page. so, for example the 404 error is simple becouse we know that is Page Not Found but, the 500

Re: Applet to Servlet session fails

2004-04-23 Thread Veniamin Fichin
[EMAIL PROTECTED] wrote: I have a JSP page that has an applet embeded in it. The Applet talks to a Servlet. I have a session within the JSP when I try to access the session within my Servlet, I get NullPointerException as there is no session object. How do I get the session object in my Servlet

Session browsing/modifying

2004-04-23 Thread Veniamin Fichin
Hello all! Can anybody tell me how can I archive subj? I need to view all sessions rotating in a server and have an ability to modify their content, mainly for testing/debugging purposes. I'm able to walk through Tomcat containers hierarchy ServerFactory.getServer() server.findServices()

Re: setting cookies in servlet and read inside the JSP

2004-04-20 Thread Veniamin Fichin
Emerson Cargnin wrote: How do I read a cookie (inside a JSP) that I created inside a servlet. It looks that it has different path properties and so when I'm inside the JSP it can't read the cookie... There is javax.servlet.http.Cookie.setPath(String) which obviously works as it named. :-)

Re: SESSION PROBLEM in UNIX

2004-04-20 Thread Veniamin Fichin
MUKUND Premchander wrote: I am using tomcat 3.2 not tomcat 4.0 hence as per your suggestion I did try and implement HttpSessionBindingListener and put the object into the session in the same jsp , the valueBound was called but when the session access threw null pointer exception valueUnbound

Re: Deploy a directory on Tomcat 5.0

2004-04-20 Thread Veniamin Fichin
[EMAIL PROTECTED] wrote: I have a directory that contains servlets. This directory, named testdir, sits on the server, but not in Tomcat 5.0 ( or webapps/WEB-INF/classes). How do I deploy this directory? I went to Tomcat Manager, and tried to enter the values in the following fields, but it

Re: shared/lib again...

2004-04-19 Thread Veniamin Fichin
Julio César Aguilar wrote: I've done several tests in Windows and this is what I found. To remember my settings No CATALINA_BASE defined. Tests done with CATALINA_HOME/shared/lib. 1. As being told, I can find jars put in CATALINA_HOME/common/lib. 2. What exactly the moment when CNFE is

Re: pageEncoing and contentType

2004-04-19 Thread Veniamin Fichin
Hello Seiji. What it means character is not encoded correctly? If PDF content is unreadable, then that's PDF file problem, not Tomcat. Is this PDF opens correctly by itself, i.e. when you open it through Adobe Reader? Anyway, just do response.setContentType(application/pdf) and let

Re: pageEncoing and contentType

2004-04-19 Thread Veniamin Fichin
seiji takegata wrote: Hi Veniamin, Thank you for your reply. What it means character is not encoded correctly? If PDF content is unreadable, then that's PDF file problem, not Tomcat. Is this PDF opens correctly by itself, i.e. when you open it through Adobe Reader? Anyway, just do

Re: pageEncoing and contentType

2004-04-19 Thread Veniamin Fichin
seiji takegata wrote: Try this: %@ page contentType=application/pdf; charset=ISO-8859-1 pageEncoding=Shift_JIS % I tried. This time jasper generates: response.setContentType(application/pdf; charset=ISO-8859-1); OK, and with that you still can't get PDF right? Maybe you should

Re: shared/lib again...

2004-04-16 Thread Veniamin Fichin
Julio César Aguilar wrote: If you use multiple instance Tomcat's feature, this may be the case. In Windows I'm using a single instance of tomcat, there's no CATALINA_BASE so it should be the same as CATALINA_HOME if I understand correctly. Then I don't know... My installation is that:

Re: SESSION PROBLEM in UNIX

2004-04-15 Thread Veniamin Fichin
MUKUND Premchander wrote: Thank you for your reply . I use IE 6 as my browser in windows and tomcat on HP unix. I meant that ,all I did was open a browser window load my application, goto a particular page Set page to refresh for every 10 secs( application had a combo box to set interval of

Re: shared/lib again...

2004-04-15 Thread Veniamin Fichin
Julio Cesar Aguilar wrote: I've read the ClassLoading part of Tomcat documentation and searched this list but I've still found no clue to my recent problem: Tomcat 5.0.19 JDK 1.4.2_03 Windows XP I have several applications running with a common jar of my own in each WEB-INF/lib and everthing

Re: jsessionid parameter not being accepted

2004-04-15 Thread Veniamin Fichin
Malcolm Warren wrote: I wish it was as easy as you say... I know that I don't have to implement my own url re-writing, but I did, and it was a long time ago! Right now I don't really want to re-write everything - sending the jsessionid as an ordinary parameter worked in Jrun, can't it work in

Re: directory structure and porting issues

2004-04-12 Thread Veniamin Fichin
QM wrote: : - Finally, is it the best practice to hard-code the 'context' prefix in : your application? JSTL. I forget the exact tag names, but any JSTL reference will have them listed. There's a tag for creating context-relative links, and (I believe) one for creating context-relative image

Re: SESSION VARIABLE BECOMES NULL AFTER SOME REFRESH

2004-04-12 Thread Veniamin Fichin
Peter Guyatt wrote: Hi There, The NPE is coming from the { if (session == null || session.isNew()) } since even if session is null then you are still trying to call a method of session. According to Java language specification, 15.24 Conditional-Or Operator ||, it's not so. That says

Re: Servlet on Tomcat + Oracle +ISU 8859-8 (Hebrew CharSet) - encodin g problem

2004-04-02 Thread Veniamin Fichin
Hi there. May be this bug report http://issues.apache.org/bugzilla/show_bug.cgi?id=23929 will enlighten you, me and others who have issues with i18n. Very professional explanation of the problem, thanks to Remy. [EMAIL PROTECTED] wrote: The problem: I am using Oracle 8.1.7 DB , in a

Re: JSP Include and URL encoding

2004-04-02 Thread Veniamin Fichin
Dennis Thrysøe wrote: Hi, I'm having problems including a JSP page from another JSP page using parameters with special characters. I looked through the archives, but couldn't find anything about this issue. Try this URL: http://issues.apache.org/bugzilla/show_bug.cgi?id=23929 . Connector

Re: Servlet on Tomcat + Oracle +ISU 8859-8 (Hebrew CharSet) - encodin g problem

2004-03-31 Thread Veniamin Fichin
This is my problem also, and sadly it's so since long time I use Tomcat. I've attach a simple little test case .war file to reproduce the problem. There are four HTML forms there, two of them submits to JSP page (GET and POST methods), others go to servlet (same methods). On top of it is

[Fwd: Re: Servlet on Tomcat + Oracle +ISU 8859-8 (Hebrew CharSet) - encodin g problem]

2004-03-31 Thread Veniamin Fichin
Some fixes to WAR file posted recently. Now POST methods all work fine, but none of GET. Original Message Subject: Re: Servlet on Tomcat + Oracle +ISU 8859-8 (Hebrew CharSet) - encodin g problem Date: Wed, 31 Mar 2004 14:34:27 +0400 From: Veniamin Fichin [EMAIL PROTECTED

Re: [Fwd: Re: Servlet on Tomcat + Oracle +ISU 8859-8 (Hebrew Char Set)- encodin g problem]

2004-03-31 Thread Veniamin Fichin
[EMAIL PROTECTED] wrote: Thanks Veniamin Fichin, Can you copy paste your code that solves the problem? The output encoding of view.jsp page was hard-coded utf-8 value. I changed it to be more flexible by lookling into session attribute which was set previously. Code snipped follows

JNDI DBCP resources, another problem.

2003-02-03 Thread Veniamin Fichin
the scene to not ask such a stupid questions again. Thanks a lot. -- Veniamin Fichin [EMAIL PROTECTED] Programmer athttp://www.rbcsoft.ru/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: JNDI DBCP resources, another problem.

2003-02-03 Thread Veniamin Fichin
Veniamin Fichin wrote: Hello list. I fought with that for about two weeks recently and had done it, so my JNDIRealm works. But! Now servlet that just gets a connection from JNDI resource and tries to query database is broken! Situation is that: Correction: not JNDIRealm

Re: DataSourceRealm -- solved

2003-01-24 Thread Veniamin Fichin
and want to use this resource in one of them only. Will ResourceLink's existance in one Context be the guarantee that only this Context will have an access to Resource, but not the others? --= [ cut ] =-- -- Veniamin Fichin [EMAIL PROTECTED] Programmer athttp://www.rbcsoft.ru/ -- To unsubscribe

DataSourceRealm -- solved

2003-01-23 Thread Veniamin Fichin
existance in one Context be the guarantee that only this Context will have an access to Resource, but not the others? -- Veniamin Fichin [EMAIL PROTECTED] Programmer athttp://www.rbcsoft.ru/ ?xml version=1.0 encoding=UTF-8 ? Server port=8005 shutdown=SHUTDOWN debug=0 GlobalNamingResources

Re: Jasper and big html files

2003-01-20 Thread Veniamin Fichin
be it's a default value of buffer size of a JSP file? Look at %@ page buffer=... % directive, its default is 8kb. -- Veniamin Fichin [EMAIL PROTECTED] Programmer athttp://www.rbcsoft.ru/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL

javax.naming.NameNotFoundException: Name java: is not bound in thisContext

2003-01-16 Thread Veniamin Fichin
configured, I want to use it. I tested it in a servlet, and it works. -- Veniamin Fichin [EMAIL PROTECTED] Programmer athttp://www.rbcsoft.ru/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: javax.naming.NameNotFoundException: Name java: is not bound inthis Context

2003-01-16 Thread Veniamin Fichin
Thanks for your reply! See below... Roberts, Eric wrote: Hi, Try this: First define your DataSource resource e.g. Resource name=jdbc/esljsp auth=Container scope=Shareable type=javax.sql.DataSource/ and add the necessary ResourceParams name=jdbc/esljsp and the parameters. then define your

Re: javax.naming.NameNotFoundException: Name java: is not bound inthis Context

2003-01-16 Thread Veniamin Fichin
Roberts, Eric wrote: Yes, but the resource name is jdbc/esljsp - java:comp/env/jdbc/esljsp would be used in a servlet using JNDI such as: ctx = new InitialContext(); Context envCtx = (Context) ctx.lookup(java:/comp/env/); DataSource ds = (DataSource) envCtx.lookup(/jdbc/esljsp);

Re: javax.naming.NameNotFoundException: Name java: is not bound inthis Context

2003-01-16 Thread Veniamin Fichin
)DataSourceName only. And I see that tomcat docs is wrong in DataSourceRealm description, because attribute list there is not reflect real things in code. Now I'm trying to look into the sources, but I'm not so hacky... -Original Message- From: Veniamin Fichin [mailto:[EMAIL PROTECTED

Re: javax.naming.NameNotFoundException: Name java: is not bound inthis Context

2003-01-16 Thread Veniamin Fichin
Roberts, Eric wrote: Just some other things which may help: I define my Realm datasource in the GlobalNamingResource element of server.xml and this is where the parameters are also defined. Any Context requiring authentication is defined with privileged=true. My Realm is defined within the

DataSourceRealm -- unbounded context name

2003-01-15 Thread Veniamin Fichin
Hello list! Currently I'm trying to protect some area at my site with FORM based authentication. Following Servlet 2.3 specification, I wrote this configutation: --= [ server.xml ] =-- Resource name=jdbc/esljsp type=javax.sql.DataSource auth=Container

DataSourceRealm does not exists?

2003-01-14 Thread Veniamin Fichin
Hi list! I've faces the strange problem that I don't understand. I need to configure some authentication at some part of our site, so I chose FORM based authentication through DataSourceRealm described in Realm Configuration HOW-TO. First, I've mentioned that explanation about DataSourceRealm

Re: DataSourceRealm does not exists?

2003-01-14 Thread Veniamin Fichin
=text name=j_username value=br input type=text name=j_password value=br input type=submit /form --= [ / cut ] =-- Veniamin Fichin wrote: Hi list! I've faces the strange problem that I don't understand. --= [ cut ] =-- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional

Re: Why included pages fills with '????????' ?

2003-01-14 Thread Veniamin Fichin
Andrew Guts wrote: When I include templates using %@ include % i see a lot of '?' instead of text. When using jsp:include all seems as expected. Why so? Maybe you should use %@ page pageEncoding=... % ? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail:

Re: Cannot load JDBC driver class 'null'

2002-12-20 Thread Veniamin Fichin
Hello list! Chandolu, Yuva wrote: Hi, I get the error org.apache.jasper.JasperException: Cannot load JDBC driver class 'null'. What is this and how can I proceed from here? I have Tomcat 4.1.12, JDK1.4.1 installed and have DBCP 1.0, Pool 1.0, Collections 2.0, and Oracle's jdbc driver

Re: ClassCastException when using BasicDataSource

2002-12-20 Thread Veniamin Fichin
Tuncay Baskan wrote: I'm trying to use a JNDI name for a JDBC resource. Configuration is as follows: Tomcat 4.0.3 DBCP 1.0 In the server.xml, I have the following DefaultContext entry. (It must be DefaultContext because there are 3 other webapps that use the same database) --= cut =--

DBCP test

2002-12-19 Thread Veniamin Fichin
Hello list! May be I've made a mistake in my previous post with the same subject, when I asked a question after thanking people for helping me and providing many lines of my (now) working configuration. I guess nobody just saw it. The question is: what is the way to check if DBCP is really

DBCP test

2002-12-18 Thread Veniamin Fichin
Hello list! Thanks to Robert Sowders, John and Craig, I've finally set DBCP up. For those who still trying to do the same, here is my configuration. If anybody have issues about it, please respond. --= [ server.xml snippet ]=-- Resource name=jdbc/esljsp

Re: DBCP question

2002-12-06 Thread Veniamin Fichin
Roberts, Eric wrote: Try this way instead - it works for me! Thanks, I'll try it. I just thought that I cat use Oracle dbcp implementation only, without BasicDataSourceFactory Tomcat alternative. Server.xml: Resource description=Oracle database resource for esljsp project

Re: How to set Multiple instances for tomcat?

2002-12-04 Thread Veniamin Fichin
Tushar Kulkarni wrote: Hi I want to set multiple instances for tomcat4. How do I do that? Thanks In the Tomcat documentation there are some explanation about it. Mainly you have to set CATALINA_HOME to point to your Tomcat installation, and CATALINA_BASE pointing to directory where you want

Re: Apache Index page jsp and sessionid with JKMount *.jsp

2002-11-14 Thread Veniamin Fichin
Turner, John wrote: That's pretty much the solution...this has come up before. By the time JK gets involved, Apache is just about done with the URL...it doesn't perform any rewriting, etc. it's just looking for a match. But in my understanding first of all when Apache is requested to process

Re: mod_jk build problems

2002-11-01 Thread Veniamin Fichin
Madere, Colin wrote: The docs at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html dont' quite seem to cover everything (you know what I mean). I build with the --enable-jni since it is suggested for Apache 2.0 and I get a jk_jnicb.so but I don't get a mod_jk.so as the

Re: multiple servlet instances?

2002-10-24 Thread Veniamin Fichin
Craig R. McClanahan wrote: A have to implement some functionality that related to multiple instances. I need a servlet which accepts common http requests from client-side applets. When a next request arrives, servlet must register a client somehow (for example, store its name and, possibly,

Re: Security RISK !

2002-10-24 Thread Veniamin Fichin
Tim Funk wrote: You'll want to protect your WEB-INF directory as well as any properties files. You can do that by using by the following in your httpd.conf: (This should be the syntax) Files ~ \.properties$ Order allow,deny Deny from all Satisfy All /Files Directory ~ /WEB-INF/

Re: multiple servlet instances?

2002-10-23 Thread Veniamin Fichin
Craig R. McClanahan wrote: May be my question is not too close to this topic, but it may be related. It is below... I was reading in a book today that JSP implementations are still permitted to create multiple instances of the ... servlet in order to provide improved performance. Does

Re: [ANNOUNCEMENT] JK2 Released as 2.0.1

2002-10-09 Thread Veniamin Fichin
Mladen Turk wrote: The Jakarta-Tomcat-Connector team is pleased to announce the availability of JK2 2.0.1. Binaries and source versions of the release are available and can be downloaded from : http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.1/ May be a

JSP source code exposure in Tomcat 4.x

2002-09-24 Thread Veniamin Fichin
Rossen Raykov wrote: Tomcat 4.x JSP source exposure security advisory 1. Summary Tomcat 4.0.4 and 4.1.10 (probably all other earlier versions also) are vulnerable to source code exposure by using the default servlet org.apache.catalina.servlets.DefaultServlet. --= [ cut ] =-- 3.