RE: FW: Os X

2004-04-12 Thread Carl Olivier
Erm, the .java file is incorrectly named: HttpSessionAttruteListener.java Should matcht he class declaration: HttpSessionAttributeListener.java (the missing i) Carl -Original Message- From: Andrew Robinson [mailto:[EMAIL PROTECTED] Sent: 11 April 2004 09:44 PM To: 'Tomcat Users

5.0 Documentation: missing link

2004-04-12 Thread Stephen Tredrea
The address http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/installation.html refers to Detailed instructions for downloading and installing Tomcat 5 are available here. where 'here' hyperlinks to http://jakarta.apache.org/tomcat/tomcat-5.0-doc/RUNNING.txt which appears to not be there.

Authentication in tomcat

2004-04-12 Thread [EMAIL PROTECTED]
Hello. I'm a bit confused. I'm trying tomcat's authentication with bad or no results. The documentation is very simple and I don't understand so well. I've a web application and I want to make authentication with a user role and a admin role. The admin can administrate permissions and roles. I

Exception processing JAR at resource path

2004-04-12 Thread Nishant Kumar
hi, i am using tomcat 4.1.30. when i start the server i get the error at the end of this mail. i get this only when i set docBase in my server.xml for this context. when i copy the files in the webapp dir everything works fine. there are no xml parsing jars in the WEB-INF/lib dir. the temp

RE: tomcat 4 vs 5 form based container auth filters

2004-04-12 Thread Martin Alley
Can anyone comment on this? Thanks Martin -Original Message- From: Martin Alley [mailto:[EMAIL PROTECTED] Sent: 09 April 2004 09:53 To: Tomcat Users List Subject: tomcat 4 vs 5 form based container auth filters Hi, Initial observation indicates that filters get executed when a form

Re: Authentication in tomcat

2004-04-12 Thread Adam Hardy
On 04/12/2004 10:31 AM [EMAIL PROTECTED] wrote: Hello. I'm a bit confused. I'm trying tomcat's authentication with bad or no results. The documentation is very simple and I don't understand so well. I've a web application and I want to make authentication with a user role and a admin role. The

SESSION VARIABLE BECOMES NULL AFTER SOME REFRESH

2004-04-12 Thread MUKUND Premchander
Hi, I have a jsp page which is refreshed atuomatically every 10 seconds.I get and put values in the session by using the implicit session variable . Everything works fine for say 2-3 mins after that the session becomes null and throws a null pointer exception. IN the try block I even have a

Re: tomcat 4 vs 5 form based container auth filters

2004-04-12 Thread Adam Hardy
Yes your observations are correct. It's my understanding that filters are not invoked until after authentication. i.e. after the form-based login. I have no experience of site-mesh, but it seems a bit weird anyway to put decorations on a page via a filter - surely you should be encapsulating

RE: SESSION VARIABLE BECOMES NULL AFTER SOME REFRESH

2004-04-12 Thread Peter Guyatt
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. a safer alternative would be if (session == null) { //error } else { if (session.isNew()) { }

RE: SESSION VARIABLE BECOMES NULL AFTER SOME REFRESH

2004-04-12 Thread MUKUND Premchander
Hi , Thank you for your reply . Guess I did not put my qn the right way . In the code block if (session == null || session.isNew() I do not access any session variables Actually I just redirect the page. I am unable to understand why the implicit session variable becomes null suddenly after

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

Using the request object and EL

2004-04-12 Thread John Trollinger
I have a jsp page that has the following code %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c % %@ taglib tagdir=/WEB-INF/tags prefix=tag % html head title${param.title}/title /head body pThis shows the usage of a tag file/p request as EL:

RE: tomcat 4 vs 5 form based container auth filters

2004-04-12 Thread Martin Alley
Hi Adam, Why do you think this behaviour changed from tomcat4 ? I haven't gone into the full architecture of sitemesh, as yet, but I know it includes a filter. Martin -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: 12 April 2004 11:26 To: Tomcat Users List Subject:

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

jk2 + apache vhosts + tomcat sessions

2004-04-12 Thread Jens Saade
Hi, I have multiple vhosts on an apache 1.3.x connected to a tomcat 5 via jk2. e.g.: [EMAIL PROTECTED] (apache http) -jk2--- v [EMAIL PROTECTED] (apache http) -jk2--- single tomcat instance [EMAIL PROTECTED] (apache http) -jk2---^ ... Is it possible for those vhosts to somehow share the same

Re: jk2 + apache vhosts + tomcat sessions

2004-04-12 Thread Jens Saade
oops, of course i ment vh1.foobar.com and so on ... =) Jens Saade wrote: Hi, I have multiple vhosts on an apache 1.3.x connected to a tomcat 5 via jk2. e.g.: [EMAIL PROTECTED] (apache http) -jk2--- v [EMAIL PROTECTED] (apache http) -jk2--- single tomcat instance [EMAIL PROTECTED] (apache

Re: tomcat 4 vs 5 form based container auth filters

2004-04-12 Thread Adam Hardy
AFAIK it has something to do with providing a clean seperation between the authentication (tomcat) and the application (your filter). I think there were probably several reasons though for it, which outweighed the reasons against, and I have heard a few of them. Adam On 04/12/2004 01:50 PM

Re: Global resource JDBC/JNDI

2004-04-12 Thread snpe
Should I do it for all applications ? I try this in META-INF/context.xml and it don't work - when I add jndi with tomcat admin it work, but add all parameters in conf/Catalina/host/app.xml Is it correct behavior ? Thanks Haris Peco On Sunday 11 April 2004 02:56 pm, D'Alessandro, Arthur wrote:

RE: Adding host and context information on the fly

2004-04-12 Thread Shapira, Yoav
Hi, You need to restart the server after adding hosts. You can add hosts manually in server.xml, via the Admin webapp that ships with tomcat, or with your own custom code programmatically, but in any case the server must be restarted. Yoav Shapira Millennium Research Informatics -Original

RE: tomcat 4 vs 5 form based container auth filters

2004-04-12 Thread Martin Alley
Except with form based auth, you want the look at feel to be part of the application? What reasons did you hear? :-) Whilst not knowing the full reasons, it would be nice if there was some config switch to control this, other wise it increases application maintainence overhead if you want to

RE: directory structure and porting issues

2004-04-12 Thread Shapira, Yoav
Hi, Your problems arise because of imperfect/relaxed implementations of the servlet spec by earlier containers. Tomcat is strict. I don't think there's a double-meaning to 'context' personally but that's a minor point anyways. In addition to the spec, see this for directory structures:

RE: starting out with tomcat and struts

2004-04-12 Thread Shapira, Yoav
Hi, there are distributions of tomcat that do not come bundled with the examples. Normally there is another more complete download, or you can get them separately...take a look in the binaries on jakarta.apache.org under tomcat, I know they are there :) What on earth are you talking about? I

RE: Tomcat and my application's performance ... time being lost?

2004-04-12 Thread Shapira, Yoav
Hi, Use a Profiler to show you exactly where time is spent. Yoav Shapira Millennium Research Informatics -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Sunday, April 11, 2004 3:51 PM To: [EMAIL PROTECTED] Subject: Tomcat and my application's performance ...

RE: Unexpected tomcat 4.1.27-30 shutdown problem

2004-04-12 Thread Shapira, Yoav
Hi, I am running tomcat 4.1.27/29/30 on a Solaris 5.7 or 5.8 and it shutsdown for no apparent reason. Sometimes it can go for hours without a problem, othetimes it stops much sooner. There is no obvious error, just a shutdown. The same code built on another Solaris box and/or HPUX runs

RE: Trying to start tomcat. Should be so simple

2004-04-12 Thread Shapira, Yoav
Hi, Don't make the jar a symlink. Yoav Shapira Millennium Research Informatics -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Saturday, April 10, 2004 3:26 PM To: 'Tomcat Users List' Subject: RE: Trying to start tomcat. Should be so simple Thanks of the help ls

Re: tomcat 4 vs 5 form based container auth filters

2004-04-12 Thread Adam Hardy
I can see Yoav is blitzing the mailing list right now. Perhaps you'll get a more authoritative answer from him or the other hardcore tomcat people. One of the problems of excluding filters from the authentication request is to do with character-encoding in the request - I remember someone

RE: Global resource JDBC/JNDI

2004-04-12 Thread Benjamin Armintor
If you want the resource available in all applications, make it a global environment entry and put the link in the default context for the host. Benjamin J. Armintor Systems Analyst ITS-Systems: Mainframe Group University of Texas - Austin tele: (512) 232-6562 email: [EMAIL PROTECTED]

RE: 5.0 Documentation: missing link

2004-04-12 Thread Shapira, Yoav
Hi, I've fixed this in CVS. Future distros and the next website update will show the fix. Thanks for pointing it out, Yoav Shapira Millennium Research Informatics -Original Message- From: Stephen Tredrea [mailto:[EMAIL PROTECTED] Sent: Monday, April 12, 2004 4:20 AM To: [EMAIL

RE: Can't access tomcat manager

2004-04-12 Thread Kal Govindu
If you had logged in to another application before you try Tomcat manager the authentication would not allow you to go through. You will have to close the browser and relaunch it again and go to Tomcat Manager first. Hope this helps. Kal -Original Message- From: Mario St-Gelais

Re: Global resource JDBC/JNDI

2004-04-12 Thread snpe
Why MET-INF/context.xml don't work ? Thanks On Monday 12 April 2004 12:53 pm, Benjamin Armintor wrote: If you want the resource available in all applications, make it a global environment entry and put the link in the default context for the host. Benjamin J. Armintor Systems Analyst

RE: Global resource JDBC/JNDI

2004-04-12 Thread D'Alessandro, Arthur
Is this TC4 or TC5? META-INF/context.xml only works with TC5 to my understanding. -Original Message- From: snpe [mailto:[EMAIL PROTECTED] Sent: Monday, April 12, 2004 11:09 AM To: [EMAIL PROTECTED] Subject: Re: Global resource JDBC/JNDI Why MET-INF/context.xml don't work ? Thanks On

RE: starting out with tomcat and struts

2004-04-12 Thread electroteque
From a clean binary distro of tomcat 5 this is all i have in there -rw--- 1 root root 673 Feb 14 21:26 admin.xml -rw--- 1 root root 321 Feb 14 21:26 balancer.xml -rw--- 1 root root 418 Feb 14 21:26 manager.xml and just to prove to you the

RE: IIS Tomcat 5.0.19 - using jk2

2004-04-12 Thread LILES, DAVID (CONTRACTOR)
Maybe this can help... www.dynamichostings.com/TomCat5IIS5.do -Original Message- From: Shlomi Levi [mailto:[EMAIL PROTECTED] Sent: Saturday, April 10, 2004 1:12 PM To: [EMAIL PROTECTED] Subject: IIS Tomcat 5.0.19 - using jk2 Hi, I downloaded the jk2.0.4 for win32 from the jakarta

RE: jdk1.4 tomcat5 log4j finds java.util.logging Logger not l og4j

2004-04-12 Thread Robert . Walker
my imports are import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; is that the problem? maybe when the author wrote these examples he was running jdk1.3 so it was not an issue, but running under 1.4 seems to find jdk1.4 logging thanks for any help, just tryin

Re: directory structure and porting issues

2004-04-12 Thread William Claxton
QM - Thanks very much for your detailed reply. I have Shawn Bayern's JSTL in Action, and you're right - the URL issue is covered. I have also reviewed relevant portions of the Servlet Spec 2.4, which sets out the general approach to directory structure in applications. It seems safest to

RE: starting out with tomcat and struts

2004-04-12 Thread Shapira, Yoav
Hi, What distro is this from? 5.0.22 has examples.xml, 5.0.19 has webapps/jsp-examples and webapps/servlets-examples, 4.x. has webapps/examples. Maybe you have a .tar.gz distro that you unpacked with a non-GNU tar? Yoav Shapira Millennium Research Informatics -Original Message- From:

Re: Using the request object and EL

2004-04-12 Thread QM
On Mon, Apr 12, 2004 at 07:14:19AM -0400, John Trollinger wrote: : : I have a jsp page that has the following code : [snip] : request as EL: ${request.contextPath} br/ : request using page context as EL: : ${pageContext.request.contextPath} br/ You're using JSTL EL, but you're not

JNDI and DataSource

2004-04-12 Thread Freddy Villalba Arias
Hi everybody, This is a fairly simple problem, however this is one of those days a huge truck could easily pass over you without you even noticing it... anyway, here it goes! The environment is: JBuilder X + Tomcat 4.1 + DBCP The problem: I want to obtain a DB connection through a

How two tomcats share share DocRoot

2004-04-12 Thread Randy Paries
Hello, I will try to be brief , but this will a little explanation of my config to under stand the question. I have two boxes. (rh9, tomcat 4.1.30, apache ) Box1 Host name=localhost debug=0 appBase=/home/unit unpackWARs=true Context path= docBase=/home/unit

RE: Tomcat and my application's performance ... time being lost?

2004-04-12 Thread Allistair Crossley
Hi Yoav, That's what I have been doing the past 3 weeks but does the profiler not show time spent relative to the code execution ... my timings show the code and page execution to be very fast under load and so I deduced the time was being spent somewhere else. If the time was between Tomcat

RE: JNDI and DataSource

2004-04-12 Thread Freddy Villalba Arias
I MEANT OVER ME!!! Sorry... as you can see, I'm a little burned-out here... Thankx. -Mensaje original- De: Freddy Villalba Arias Enviado el: lunes, 12 de abril de 2004 15:44 Para: [EMAIL PROTECTED] Asunto: JNDI and DataSource Hi everybody, This is a fairly simple problem, however

Managing Tomcat Connections - Newbie

2004-04-12 Thread David Langschied
Hi all! I am using Tomcat (4.1.24) through my app vendor. I want to be able to manage my connections from the command line. I have found some info on ant and being able to do things like start/stop/reload/etc. I have not seen how this can be applied to managing connections. Here is my problem

RE: Using the request object and EL

2004-04-12 Thread John Trollinger
QM, But the ${pageContext.request.contextPath} prints fine its only the ${request.contextPath} that does not display And if I do a c:if ${empty request} it returns true but a c:if ${empty pageContext.request} returns false. It is like I can get to the request through the page context just not

RE: Tomcat and my application's performance ... time being lost?

2004-04-12 Thread Shapira, Yoav
Hi, The profiler will show all time spent in java code, including for example the HTTP connector's read and write operations. It will not, as you surmise, show network transmission time, but since you said the behavior was the same using only your local machine (so nearly zero transmission

RE: Managing Tomcat Connections - Newbie

2004-04-12 Thread Shapira, Yoav
Hi, There's no way to manage connections from the command line, and you probably don't want to do it anyways. Consider: - Using shorter session timeouts (change from the default 30 minutes to 3 for example), - Redesigning your app so that a session doesn't have a one to one correlation with a

Re: Using the request object and EL

2004-04-12 Thread QM
On Mon, Apr 12, 2004 at 10:03:09AM -0400, John Trollinger wrote: : But the ${pageContext.request.contextPath} prints fine its only the : ${request.contextPath} that does not display Fair cup -- I can't tell you what you've seen; I can only tell you what (I thought) shouldn't work ;) You're using

write access to c:\winnt\system32

2004-04-12 Thread Chris Gunn
I searched the mailing list archives, and found that the jsp compiler needs write access to c:\winnt\system32. Is there a way to configure tomcat 4.1.24 so that write access to c:\winnt\system32 is not required? I'm working on an application that needs to be hosted in a secure environment. One

RE: Managing Tomcat Connections - Newbie

2004-04-12 Thread David Langschied
I can certainly shorten the session timeout. When a user connects to the application, this does not generate a any activity in Tomcat. When the user accesses a program, then the user is using a connection. This connection is part of a connection pool. What I find odd is that the connection

RE: write access to c:\winnt\system32

2004-04-12 Thread Shapira, Yoav
Hi, I searched the mailing list archives, and found that the jsp compiler needs write access to c:\winnt\system32. It doesn't. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or

RE: Managing Tomcat Connections - Newbie

2004-04-12 Thread Shapira, Yoav
Hi, What I find odd is that the connection used is not the oldest idle session Please clarify this, as a connection is not a session. If you're using a tomcat-managed connection pool, you're most likely using DBCP. The full docs for DBCP, which include significant tuning abilities regarding

¼Ú¬ü¡B¤é¥»¦P¨B¬y¦æ°ª¦w¥þ©Ê¤â®M

2004-04-12 Thread gogo
±zÁÙ¦bÀ¹¦Ñ´ڦ¡ªº¤â®M¶Ü? ±z»{¬°¤â®M¥u¯à¿m´H¨¾«B¶Ü? ¦ý±z©¿²¤¤F³Ì­«­nªº¬O.¦w¥þ©Ê? [EMAIL PROTECTED], [EMAIL PROTECTED], ¦¹´Ú¤â®M¥D­n±j½Õ¨ä¦w¥þ©Ê, ¾A¦X¦h¥\¯à¹B°Ê, ¯S®í§÷½èªº¶WÅÖ¥Ö, ¥[¤W¶W¼u©Êºô ¥¬, [EMAIL PROTECTED], [EMAIL PROTECTED],[EMAIL PROTECTED] ¦¹´Ú¤â®M¦P¨B¦b¼Ú¬ü

RE: Managing Tomcat Connections - Newbie

2004-04-12 Thread David Langschied
Since I am a newbie, I may not be getting the point across effectively by mixing terms. I have the ability to go to my connection manager and see a graphic representation of the current connections be they idle, busy, or initializing. Therefore, please disregard the term session. What I am

RE: Objects using thread on Start/Stop of Tomcat

2004-04-12 Thread Namasivayam, Sudhakar (Cognizant)
Thanks Yoav, sudhakar -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, April 08, 2004 6:24 PM To: Tomcat Users List Subject: RE: Objects using thread on Start/Stop of Tomcat Hi, It's funny that you wrote your own thread manager and have to ask this

RE: Clustering Application Scope Objects

2004-04-12 Thread Filip Hanik \(lists\)
and that is why we don't focus on implementing this, cause it not defined on how to resolve name/value pair conflicts if different servers set different values for the same name. If I were to implement this I would allow the user to have two ways of configure conflict resolution: 1. set-is-set,

RE: IIS Tomcat 5.0.19 - using jk2

2004-04-12 Thread Shlomi Levi
It worked, many thanks -Original Message- From: LILES, DAVID (CONTRACTOR) [mailto:[EMAIL PROTECTED] Sent: Monday, April 12, 2004 3:18 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: IIS Tomcat 5.0.19 - using jk2 Maybe this can help... www.dynamichostings.com/TomCat5IIS5.do

RE: coreservlets

2004-04-12 Thread Mike Curwen
The one thing I really dislike about this is that he recommends enabling the invoker servlet. This has caused more problems for beginners, than it has solved. All is opinion, though. -Original Message- From: electroteque [mailto:[EMAIL PROTECTED] Sent: Sunday, April 11, 2004 4:34 AM

tomcat 5, Tiles and encoding

2004-04-12 Thread Paulo Alvim
Hi! I've just moved my Struts+Tiles application from TC4 to TC5 and I'm now having encoding problems when trying to post data...(portuguese special characters aren't being recognized). I've read topics about Tomcat 5+encoding issues related to included JSPs (ex:

Urgent pls help ! Protection problems of using Realm

2004-04-12 Thread a a
Dear all, I know using Realm can protect certain resouces of a url. But I found it is not possibly to use it in my server. My case is that I can't store the username and password of the roles and users in my server. I need to send the authenication information in a format of xml file to

RE: write access to c:\winnt\system32

2004-04-12 Thread Chris Gunn
Ok, I guess I read this wrong, or this person was wrong too. http://www.mail-archive.com/[EMAIL PROTECTED]/msg93632.html Either way, something seems to require write access to the system32 directory because it works fine with full permissions, but fails when write access is denied. It's trying

Require a tomcat build with bug fix....

2004-04-12 Thread Philip Baruc
Hello, My company requires a stable build of tomcat 4.0 that contains a bug fix to the WebAppClassLoader. Specifically the bug is 10469 (deals with inconsisten encoding of urls). I was wondering 2 things. 1) How might i aquire a build of tomcat that currently has this bug fix (without building

RE: write access to c:\winnt\system32

2004-04-12 Thread Shapira, Yoav
Hi, Ok, I guess I read this wrong, or this person was wrong too. http://www.mail-archive.com/[EMAIL PROTECTED]/msg93632.htm l Either way, something seems to require write access to the system32 directory because it works fine with full permissions, but fails when write access is denied. It's

RE: Require a tomcat build with bug fix....

2004-04-12 Thread Shapira, Yoav
Hi, There have been stable releases since this was fixed: 4.1.30 on the tomcat 4.1 branch and 5.0.19 on the tomcat 5 branch. 4.0 is no longer actively developed. If you need this fix in a 4.0 build, you have to apply this patch and build it yourself. Yoav Shapira Millennium Research

Re: JNDI and DataSource

2004-04-12 Thread Sandy McArthur
You have a default context right after the wa context that doesn't specify a Resource . Is that what you meant? Sandy On Apr 12, 2004, at 9:44 AM, Freddy Villalba Arias wrote: [...] /ResourceParams /Context Context path= docBase=..\..\Testing debug=5

RE: JNDI and DataSource

2004-04-12 Thread Freddy Villalba Arias
Yes and no... :) I have only one web application to be deployed (wa). Then, I read in some places that it's mandatory to have a default context. I tried defining a DefaultContext but then Tomcat's initialization failed (I looked for something odd but couldn't find anything). So, I decided to

use own property file for db-connection

2004-04-12 Thread Amrun
Hi everyone, I'm working with Tomcat 5.0 and I'm trying to write a little webapplication. In this case I need to get the data from a database. Now I want to write my own property-file from which I can get the information about the driver, user and password. I've done this before, but I haven't

RE: write access to c:\winnt\system32

2004-04-12 Thread Chris Gunn
Yoav, Thanks for the help. I added the following registry key to change the working directory for the service and it now works. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat 4.1\Parameters\Current Directory=c:\Tomcat4.1\work Thanks, Chris Gunn Titan Corporation (804)

RE: coreservlets

2004-04-12 Thread Ken Blair
I'd definately recommend core and more servlets - incidentally they say The invoker servlet is extremely convenient when you are learning and even when you are doing your initial development. But, as discussed in the book, you do not want it on at deployment time Hope this helps Ken Ken

RE: tomcat 4 vs 5 form based container auth filters

2004-04-12 Thread Martin Alley
Thanks Adam It seems to me that the separation idea is not clear cut. There is certainly a down side. I wonder whether this will stick. Martin -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: 12 April 2004 13:48 To: Tomcat Users List Subject: Re: tomcat 4 vs 5

RE: use own property file for db-connection

2004-04-12 Thread Mike Curwen
Yes, it can work, and you'd want to put the properties file in the WEB-INF/classes directory. Then your connectionfactory.jar classes will need to look for the property file/s on the classpath. Perhaps something like: InputStream input = getContextClassLoader().getResourceAsStream(fileName);

RE: coreservlets

2004-04-12 Thread Mike Curwen
convenient when learning Not when you have to 'unlearn' it. And not for the special case when you 'forget' about the invoker, and just expect it to be around. sarcasmProviding a 8-line mapping is such a chore./sarcasm I'm all for helping beginners, but I think showing them the 'right' way is

Re: JNDI and DataSource

2004-04-12 Thread Sandy McArthur
This shouldn't be all that different, but this is the server.xml I'd use on my setup. ?xml version=1.0 encoding=UTF-8? Server debug=5 port=8081 shutdown=SHUTDOWN GlobalNamingResources Resource name=jdbc/cnid scope=Shareable type=javax.sql.DataSource cached=false/

RE: Require a tomcat build with bug fix....

2004-04-12 Thread Philip Baruc
When i look at the CVS repository and look at the WebAppClassLoader file, It doesn't appear that the bug was fixed in the 4.1.30 build. I've also downloaded the 4.1.30 source and noticed that the WebAppClassLoader is only at version 1.48 where as the bug fix is applied to a 1.50 version of the

RE: Using the request object and EL

2004-04-12 Thread John Trollinger
Problem solved. I was mixing up 2 parts of the spec and therefor made the wrong assumption. Thanks, John -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Monday, April 12, 2004 10:13 AM To: Tomcat Users List Subject: Re: Using the request object and EL On Mon, Apr 12,

RE: Urgent pls help ! Protection problems of using Realm

2004-04-12 Thread Mark Thomas
You need to write a custom realm. Mark My case is that I can't store the username and password of the roles and users in my server. I need to send the authenication information in a format of xml file to a foreign server and get back the login result from that server. So I can't use

RE: JNDI and DataSource

2004-04-12 Thread Freddy Villalba Arias
Hi Sandy, Thanks, it certainly looked better than mine. I appreciate it. However, the problem persists Any other suggestion? (Ill keep looking at it, too obviously) -Mensaje original- De: Sandy McArthur [mailto:[EMAIL PROTECTED] Enviado el: lunes, 12 de abril de

Re: Tomcat performance issue?

2004-04-12 Thread Daniel Gibby
I have this same problem. It creeped up without any configuration changes on 4.1.27 It doesn't always print this error message out, but the effect is the same. SEVERE: All threads (75) are currently busy, waiting. Increase maxThreads (75) or check the servlet status My apache config:

Re: Tomcat performance issue?

2004-04-12 Thread Daniel Gibby
I forgot to mention that I have All threads (255) are currently busy, not (75) which makes sense. Daniel Gibby wrote: I have this same problem. It creeped up without any configuration changes on 4.1.27 It doesn't always print this error message out, but the effect is the same. SEVERE: All

Redirection error Tomcat 3.2.3 IIS5

2004-04-12 Thread rtfrench1
All, New subscriber to this list and relative newbie to Tomcat. Have installed IIS5 w/Tomcat 3.2.3 on W2K. Am having problems with redirection using isapsi. I get the Error 501/505 when attempting http://myserver/examples/jsp/index. I have checked this archive list with the same error messages

RE: Tomcat performance issue?

2004-04-12 Thread Trieu, Jason T - CNF
It could be a bug in your servlet that hangs your connection or you might actually have a big enough load to max out your number of concurrent Tomcat threads (maxProcessors). If it is load, you should look into increasing your maxProcessors. Make sure though that you have enough JVM heap memory

RE: coreservlets

2004-04-12 Thread Subir Sengupta
I have the More Servlets book. It's excellent. Highly recommended. Subir -Original Message- From: Schalk [mailto:[EMAIL PROTECTED] Sent: Sunday, April 11, 2004 6:04 AM To: 'Tomcat Users List' Subject: RE: coreservlets Importance: High I have the first edition, it is pretty nice and

RE: Require a tomcat build with bug fix....

2004-04-12 Thread Shapira, Yoav
Hi, I've also downloaded the 4.1.30 source and noticed that the WebAppClassLoader is only at version 1.48 where as the bug fix is applied to a 1.50 version of the WebAppClassLoader. I'm not sure where you're getting your version numbers.

Re: JNDI and DataSource

2004-04-12 Thread Guy Pardon
Hi, The fact that you get 'No suitable driver' could also mean that the chosen properties are incompatible (as opposed to not set). Just a guess: did you try to specify the user and password as part of the URL? (jdbc:oracle:thin:user/[EMAIL PROTECTED]) That's the way I usually connect to

Re: Encrypted Mail

2004-04-12 Thread tomcat-user
Please read the attachment to get the message. ** ** WARNING: WinProxy has detected a virus in file attached to this e-mail message! The attachment has been automatically removed to

RE: JNDI and DataSource

2004-04-12 Thread Freddy Villalba Arias
Hi Guy, That's interesting. I hadn't thought about that possibility. I'll try it. However, let me state that I don't think that's the problem (hope I'm wrong, of course!) since the inspection (JBuilder inspector) on the java variable holding the reference to the DataSource object reveals that

Re: Tomcat performance issue?

2004-04-12 Thread Daniel Gibby
255 is as high as apache will go without recompiling. Therefore, it wouldn't make a difference if I go higher on the tomcat end either, right? Trieu, Jason T - CNF wrote: It could be a bug in your servlet that hangs your connection or you might actually have a big enough load to max out your

RE: JNDI and DataSource

2004-04-12 Thread Freddy Villalba Arias
Tested it. Same result... same problem. A side comment: the positive part of the other config file (the one I had originally) was that you could trace how Tomcat loaded the Resources. Then, you could see how the tags actually got processed (read) correctly. But then, something happens when the

Re: Tomcat performance issue?

2004-04-12 Thread David Rees
Daniel Gibby wrote: Tomcat config: Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=5 maxProcessors=255 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=6/ Hey, I

Re: Tomcat performance issue?

2004-04-12 Thread Peter Lin
From my own experience, this kind of behavior appears when a session isn't getting timed out for one reason or another. For example, say you get data from some remote site using your own Http client libraries that is multi-threaded. If that thread sits around and the socket it has isn't

RE: Require a tomcat build with bug fix....

2004-04-12 Thread Philip Baruc
Ok thanks. I will try this version.. philip --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, I've also downloaded the 4.1.30 source and noticed that the WebAppClassLoader is only at version 1.48 where as the bug fix is applied to a 1.50 version of the WebAppClassLoader. I'm not sure

Re: Tomcat performance issue?

2004-04-12 Thread Matt Woodings
I just read your post this morning (I am lurking today as I have a few issues of my own to clear up :-) ) and I think that is some really good advice you gave. I do have a question though. Once you have noticed you have a memory leak, how do you go about locating it? Matt - Original Message

RE: Tomcat performance issue?

2004-04-12 Thread Shapira, Yoav
Hi, Once you have noticed you have a memory leak, how do you go about locating it? You don't just notice it out of the blue: you typically notice it because a profiler shows it. The same profiler shows you where it is. Noticing and locating is typically one and the same for memory leaks. It's

Tomcat 5 and Context Descriptors

2004-04-12 Thread John H
Good afternoon, We are currently looking at upgrading our Tomcat 4.1.24 installation to 5.0.19. I've installed a test environment to see what sort of migration issues there will be, and so far I've only encountered one. Under 4.1.24, we have a Host entry in server.xml that looks like this: Host

RE: Tomcat 5 and Context Descriptors

2004-04-12 Thread Shapira, Yoav
Hi, If you use context .xml files, you can put them in $CATALINA_HOME/conf/[engine name]/[host name] or in the META-INF directory of the WAR file representing your webapp. If you're just deploying webapps without a context XML file, you can put them in the host's appBase. Then you don't need

IBM Java VS SUN Java

2004-04-12 Thread Nicholas Bernstein
Recently, we've been doing some load testing of apache (1.3.x) w/ tomcat 4.1.29 5.0.19 and were surprised at how slow it was responding on our redhat linux testbed system. We did some comparisons to a Win2k tomcat server, and the Win2k server *BLEW* it out of the water in terms of speed and load

Re: Tomcat performance issue?

2004-04-12 Thread Peter Lin
luckily I have a license of Borland OptimizeIt. What I do is I start tomcat using OptimizeIt. Then I create a test plan in JMeter. Once tomcat is running, I warm it up by sending it a couple hundred requests to make sure all the pages are compiled. before the test starts, use OptimizeIt to

RE: JNDI and DataSource

2004-04-12 Thread Daniel Huang
Where did you put your db driver jar file? You want to put it under $CATILINA/common/lib. Regards, Daniel -Original Message- From: Freddy Villalba Arias [mailto:[EMAIL PROTECTED] Sent: Monday, April 12, 2004 10:19 AM To: Tomcat Users List Subject: RE: JNDI and DataSource Tested it. Same

Re: Tomcat 5 and Context Descriptors

2004-04-12 Thread John H
Is this something new in TC5? Context XML's in appBase worked in 4.1.24. - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, April 12, 2004 2:42 PM Subject: RE: Tomcat 5 and Context Descriptors Hi, If you use context .xml

RE: Require a tomcat build with bug fix....

2004-04-12 Thread Philip Baruc
Is there a place where i can download a build of the 5.0.22-alpha version of tomcat, or does this require me pulling the 5.0.22 branch from cvs and building it? philip b --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, I've also downloaded the 4.1.30 source and noticed that the

RE: Tomcat 5 and Context Descriptors

2004-04-12 Thread Shapira, Yoav
Hi, Is this something new in TC5? Context XML's in appBase worked in 4.1.24. Yup, the move from appBase to conf/[engine name]/[host name] is a change in TC5. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is

RE: IBM Java VS SUN Java

2004-04-12 Thread Shapira, Yoav
Hi, Was the linux box hyper-threaded? Yoav Shapira Millennium Research Informatics -Original Message- From: Nicholas Bernstein [mailto:[EMAIL PROTECTED] Sent: Monday, April 12, 2004 2:50 PM To: Tomcat Users List Subject: IBM Java VS SUN Java Recently, we've been doing some load

  1   2   >