Re: Scripting variable is not generated

2005-09-14 Thread Mark Thomas
Have a look at http://issues.apache.org/bugzilla/show_bug.cgi?id=21390 and http://issues.apache.org/bugzilla/show_bug.cgi?id=23425 Mark Wei Zhao wrote: I am migrating some code from tomcat 4.* to 5.5. However, I got some compilation error regarding the scripting variable from taglib. This is

basic authentication problem 5.5.9

2005-09-14 Thread Jilles van Gurp
Hi I suspect I am running into this bug in tomcat 5.5.9 which has been solved in tomcat 5.5.11 and I was wondering if there is a workaround: http://issues.apache.org/bugzilla/show_bug.cgi?id=22617 Let me first explain my situation. I have a webapplication which we use in production on

Cannot connect to database using DataSource

2005-09-14 Thread Michael Lai
I have a MySQL database in which I created a database named, javatest, and I am using Tomcat 5.5.9. I have unable to connect my database using Java's DataSource method. Here is my ROOT.xml setup for my application context: Context path= docBase=/home/tomcat/applications/ debug=0

large content directory out of the webapp

2005-09-14 Thread Eickvonder Bjoern
Hello, my webapplication consists of a rather small set of classes, jsps and so on but has got a rather large content directory (some GB). My problem is now if I want to update only the application itself but not the content by uploading a new war-file I nevertheless have to upload the content

How to serve just JSP (was: Re: JSP on RHEL4 with Apache httpd RPM?

2005-09-14 Thread Peter Flynn
[Sorry for the repost but I still don't have an answer to this one] On Fri, 2005-09-09 at 15:50, Steve Dodge wrote: 1. VirtualHostis an apache http server directive. Right, but it was put there by Tomcat's auto-config. What I was trying to find out was, by localhost did Tomcat mean my

Re: Cannot connect to database using DataSource

2005-09-14 Thread Sonja Löhr
Hi! For TC 5.5.x, put the name-value-pairs of all parameter elements inside the Resource start tag as attributes. Good luck! Am Mittwoch, den 14.09.2005, 16:30 +0800 schrieb Michael Lai: I have a MySQL database in which I created a database named, javatest, and I am using Tomcat 5.5.9. I

Re: How to serve just JSP (was: Re: JSP on RHEL4 with Apache httpd RPM?

2005-09-14 Thread Michael Lai
Peter Flynn wrote: If you have a tomcat webapp that serves jsp's such as http://localhost:8080/mywebapp, then you can map jsp requests to that webapp using JkMount /mywebapp/*.jsp Ah...this exposes the gap in my understanding. Where do I get a tomcat webapp that serves jsp's? This is

Re: Storing a request

2005-09-14 Thread Ajay Arjandas Daryanani
Hi Peter, Peter Crowther wrote: There was a similar thread a couple of months back. The conclusion of that thread was that you cannot clone the original or create a new request, and that there are sound architectural reasons for this. Instead, you'll have to do it the proper way - store

Unable to loggin

2005-09-14 Thread V.K.M.RAJA
Hello , I am new to Tomcat and i am finding some difficulty handling Tomcat. I am not able to login into the manager or the administrator link. I have username= cdac and password =cdac and with manager roles in the tomcat-users.xml file . Kindly help

Re: Unable to loggin

2005-09-14 Thread pacea
On Wednesday 14 September 2005 06:19, V.K.M.RAJA wrote: did you restart tc? Hello , I am new to Tomcat and i am finding some difficulty handling Tomcat. I am not able to login into the manager or the administrator link. I have username= cdac and password =cdac and with manager

Re: Unable to loggin

2005-09-14 Thread V.K.M.RAJA
Hello, Thanks for your prompt reply. Yes i did restarted the server. Actually i am using tomcat which is comming bundled with Netbean4.1. Even after resarting i am not able to access these links. - Yahoo! for Good Click here

Re: How to serve just JSP (was: Re: JSP on RHEL4 with Apache httpd RPM?

2005-09-14 Thread Peter Flynn
On Wed, 2005-09-14 at 10:17, Michael Lai wrote: Peter Flynn wrote: If Tomcat doesn't have any such webapp, where do I get one? I certainly can't write one, as I'm not a Java programmer. I am limited in my knowledge of tomcat but from my understanding, tomcat can be ran either as a

Multiple Remote Debugging of TOMCAT

2005-09-14 Thread rahul
hi all, We are three people working on three different application which are deployed on a single remote machine We all want to remotely debug our application. Is it possible with one instance of tomcat? (I think no) If not, then there is only one solution which is running multiple instance

RE: Multiple Remote Debugging of TOMCAT

2005-09-14 Thread Peter Crowther
From: rahul [mailto:[EMAIL PROTECTED] We are three people working on three different application which are deployed on a single remote machine We all want to remotely debug our application. Is it possible with one instance of tomcat? (I think no) At the same time? Not to my knowledge -

SSI Servlet Character Encoding Problem

2005-09-14 Thread KEREM ERKAN
Hi people, I use Tomcat 5.5.9 with Apache 2.0.54 and jk 1.2.10 to serve my websites. I want to set custom error pages to be served when an error like 404, 500 etc. occurs. The website uses the iso-8859-9 character set on every page, and the error pages are encoded with iso-8859-9 too. Only

AW: cross context info

2005-09-14 Thread Bernhard Slominski
Hi Alain, First of all the session is ALWAYS on application scope, this is not an Tomcat specific behaviour but a requirement of the Specification: SRV.7.3 Session Scope HttpSession objects must be scoped at the application (or servlet context) level. The underlying mechanism, such as the cookie

RE: How to serve just JSP (was: Re: JSP on RHEL4 with Apache http d RPM?

2005-09-14 Thread KEREM ERKAN
Unfortunately I have to keep the main port 80 httpd, as it's serving 20Gb of other material (the entire campus web site). All I need is the trick to make Apache httpd hand off any .jsp files to Tomcat. As I am newly subscribed to this list, I don't know if you have got a satisfactory

Re: cross context info

2005-09-14 Thread Edmund Urbani
Alain Gaeremynck wrote: I have 2 webapps living on the same server and they are linked to the same user experiance.. Now both apps require login but i don't want my users to have to login on both apps. Also while they are browsing in one context i don't want the session to expire for the

Re: Unable to loggin

2005-09-14 Thread Sonja Löhr
Did you make sure that the manager Context is defined somewhere? Take a look into server.xml, perhaps you find a outcommented declaration there. Am Mittwoch, den 14.09.2005, 03:50 -0700 schrieb V.K.M.RAJA: Hello, Thanks for your prompt reply. Yes i did restarted the server.

RE: How to serve just JSP (was: Re: JSP on RHEL4 with Apache http d RPM?

2005-09-14 Thread Peter Flynn
On Wed, 2005-09-14 at 12:19, KEREM ERKAN wrote: Unfortunately I have to keep the main port 80 httpd, as it's serving 20Gb of other material (the entire campus web site). All I need is the trick to make Apache httpd hand off any .jsp files to Tomcat. As I am newly subscribed to

mod_jk performance

2005-09-14 Thread marc ratun
Hi, I just read an article about webapp benchmarks [1] and they mentioned that apache+mod_jk+tomcat is about 30% slower than pure tomcat. This is sad. Until now I believed that the performance decrease with apache/mod_jk would be marginal. Putting apache/mod_jk before tomcat is very nice. I

RE: mod_jk performance

2005-09-14 Thread KEREM ERKAN
Well I tried both, and as my websites do not have a very high traffic (I have approximately a total of 50 GB per month) the speed is not primarily a concern to me, I am looking to the security side of the problem and Apache+mod_jk does its job better than only Tomcat concerning security. I have

Re: mod_jk performance

2005-09-14 Thread Bruno Georges
Marc If the performance of your app is not acceptable using mod_jk , you could try other alternatives and still keep apache in front to serve static content and use other modules. You can use apache mod_proxy to forward request on 8080 [or whatever your run tomcat on] to tomcat without going

RE: mod_jk performance

2005-09-14 Thread KEREM ERKAN
AFAIK mod_proxy performs worse than mod_jk. Just my 2 cents. Kerem -Original Message- From: Bruno Georges [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 14, 2005 2:58 PM To: Tomcat Users List Cc: tomcat-user@jakarta.apache.org Subject: Re: mod_jk performance Marc If

Re: mod_jk performance

2005-09-14 Thread Mladen Turk
marc ratun wrote: Hi, I just read an article about webapp benchmarks [1] and they mentioned that apache+mod_jk+tomcat is about 30% slower than pure tomcat. This is sad. Until now I believed that the performance decrease with apache/mod_jk would be marginal. Why would that be sad? 30%

Re: mod_jk performance

2005-09-14 Thread Hassan Schroeder
KEREM ERKAN wrote: ... I am looking to the security side of the problem and Apache+mod_jk does its job better than only Tomcat concerning security. How so? -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com

RE: mod_jk performance

2005-09-14 Thread Bruno Georges
Kerem, You are probably right, I personnaly never faced any issues with any of them. However, Tom can you be more specific about the type of traffic your app has to serve and what are performance/response time requirements. Hardware and network, server and JVM configuration can also be either a

RE: mod_jk performance

2005-09-14 Thread KEREM ERKAN
Apache has better directory/file restricting and handling than Tomcat, it is more customizable and it is much user/admin friendly to configure :-) (at least for me) I configure all security related stuff on Apache and have my Tomcat listen only on AJP connector with 127.0.0.1:8009. Tomcat is

Re: large content directory out of the webapp

2005-09-14 Thread Paul Singleton
Eickvonder Bjoern wrote: Hello, my webapplication consists of a rather small set of classes, jsps and so on but has got a rather large content directory (some GB). My problem is now if I want to update only the application itself but not the content by uploading a new war-file I nevertheless

RE: How to serve just JSP (was: Re: JSP on RHEL4 with Apache http d RPM?

2005-09-14 Thread KEREM ERKAN
-Original Message- From: Peter Flynn [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 14, 2005 2:40 PM To: Tomcat Users List Subject: RE: How to serve just JSP (was: Re: JSP on RHEL4 with Apache http d RPM? On Wed, 2005-09-14 at 12:19, KEREM ERKAN wrote:

Re: mod_jk performance

2005-09-14 Thread Andrew Miehs
Apache is easier to configure, but at a 50% performance hit for pure JSP pages Andrew On Sep 14, 2005, at 2:18 PM, KEREM ERKAN wrote: Apache has better directory/file restricting and handling than Tomcat, it is more customizable and it is much user/admin friendly to configure :-)

Re: mod_jk performance

2005-09-14 Thread Hassan Schroeder
KEREM ERKAN wrote: Apache has better directory/file restricting and handling than Tomcat better in what way? What actual *security* issue are we talking about -- in other words, what exploit is Tomcat susceptible to that Apache is not? -- Hassan Schroeder - [EMAIL

RE: mod_jk performance

2005-09-14 Thread KEREM ERKAN
-Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 14, 2005 3:30 PM To: Tomcat Users List Subject: Re: mod_jk performance KEREM ERKAN wrote: Apache has better directory/file restricting and handling than Tomcat better in what

Re: mod_jk performance

2005-09-14 Thread Lionel Farbos
I use Apache/mod_jk/Tomcat for a long time on production servers with load balancing/failover (and with high traffic sites) and I'm sure it's not 30% slower than a pure Tomcat. I use Apache to deliver static files, manage SSL and other apache specifics modules. Then, Tomcat only manage

Re: mod_jk performance

2005-09-14 Thread Andrew Miehs
We did some comparisons between running Tomcat 5.0 standalone, or TC 5.0 and Apache 2.0 If you are ONLY delivering JSPs, we found that we could only deal with 50% of the requests when running combined Apache TC and mod_jk Andrew On Sep 14, 2005, at 2:45 PM, Lionel Farbos wrote: I use

Re: mod_jk performance

2005-09-14 Thread Lionel Farbos
On Wed, 14 Sep 2005 14:55:08 +0300 KEREM ERKAN [EMAIL PROTECTED] wrote: Mod_jk 1.2.10 had some performance problems but I did not thoroughly test why. Is is proved ? Where do you find this ? I tested mod_jk 1.2.14 (but not stressed it) and it seems to be a good version... What sort of

Re: mod_jk performance

2005-09-14 Thread Lionel Farbos
But, in a web site, there is never only JSPs : there is a lot of static files (images, css, js, ...) So, if you don't have a apache in the frontend to deliver theses static files, there is an overload for the TC server... So, your tests stressed only light JSPs or a real site ? and what is your

Re: How to serve just JSP (was: Re: JSP on RHEL4 with Apache httpd RPM?

2005-09-14 Thread Michael Lai
KEREM ERKAN wrote: OK, start with downloading and installing a binary version of Tomcat for your OS and also download the 1.2.10 version of mod_jk. I think we should handle the rest off list not to bother the list anymore. Just to give you another option if you like. I don't even use

Re: mod_jk performance

2005-09-14 Thread Andrew Miehs
We run F5 BigIPs as our loadbalancers, and have seperated images, etc onto another server IE: i.domain.com for images, and www.domain.com for dynamic content. F5 provides a feature call iRules to do the splitting between hosts for you, but I would NOT use this on a high traffic site.

RE: mod_jk performance

2005-09-14 Thread KEREM ERKAN
Well, mod_jk 1.2.10 seems slower than 1.2.10 when stress tested. The tests completed in more time. I do not have the actual test results, because we have been using 1.2.10 for several months, maybe I can send them when I test 1.2.14. By the way mod_jk site mentions 1.2.13 as its testing version.

RE: SSL mutual communication problem with Tomcat5 --- Remote host closed connection during handshake

2005-09-14 Thread Xia, Hong
Hi, Mark, I have the both server and client .cer imported to cacerts but the problem persists commands to generate the server and client key: Keytool -genkey -alias server -keyalg RSA -keystore serverstore.jks Keytool -genkey -alias client -keyalg RSA -keystore clientstore.jks commands to

Re: Storing a request

2005-09-14 Thread Ajay Arjandas Daryanani
Hi Mark, Take a look at how form authenticator does it. See http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/authenticator/FormAuthenticator.java?rev=1.24view=markup and the SavedRequest class in the same package. Note that the way this

Re: mod_jk performance

2005-09-14 Thread Lionel Farbos
On Wed, 14 Sep 2005 16:16:59 +0300 KEREM ERKAN [EMAIL PROTECTED] wrote: Well, mod_jk 1.2.10 seems slower than 1.2.10 when stress tested. The tests completed in more time. I do not have the actual test results, because we have been using 1.2.10 for several months, maybe I can send them when I

RE: SSL mutual communication problem with Tomcat5 --- Remote host closed connection during handshake

2005-09-14 Thread Xia, Hong
Hi, Mark, I forgot to mention that if set 'clientAuth=false' in the Connector, https works with server certificate. The problem happens only with 'clientAuth=true'. What key type is IE6 requires for installing certificate as Personal? Thanks again. Hong -Original Message- From: Mark

Re: mod_jk performance

2005-09-14 Thread Lionel Farbos
So, I think your solution with F5 BigIPs-Tomcat is equivalent to the solution with Apache/mod_jk-Tomcat But the last is free and I don't know the difference in performances between the 2 solutions. On Wed, 14 Sep 2005 15:14:01 +0200 Andrew Miehs [EMAIL PROTECTED] wrote: We run F5 BigIPs as our

RE: mod_jk performance

2005-09-14 Thread KEREM ERKAN
Well, mod_jk 1.2.10 seems slower than 1.2.10 when stress tested. The tests completed in more time. I do not have the actual test results, because we have been using 1.2.10 for several months, maybe I can send them when I test 1.2.14. I'm interested in such tests (or a link

Re: mod_jk performance

2005-09-14 Thread Lionel Farbos
On Wed, 14 Sep 2005 17:27:29 +0300 KEREM ERKAN [EMAIL PROTECTED] wrote: Well, mod_jk 1.2.10 seems slower than 1.2.10 when stress tested. The tests completed in more time. I do not have the actual test results, because we have been using 1.2.10 for several months, maybe I

RE: mod_jk performance

2005-09-14 Thread KEREM ERKAN
-Original Message- From: Lionel Farbos [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 14, 2005 5:49 PM To: Tomcat Users List Cc: KEREM ERKAN Subject: Re: mod_jk performance On Wed, 14 Sep 2005 17:27:29 +0300 KEREM ERKAN [EMAIL PROTECTED] wrote: Well, mod_jk

Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver'

2005-09-14 Thread luc_boudreau
Hi fellas, I'm working on Tomcat 5.5.7 on a webapp compiled by Ant using shared and common libraries in their respective tomcat folders. My mysql driver (mysql-connector-java-3.1.10-bin.jar) is in the $CATALINA_HOME/common/lib/ folder and I still get the following message : Cannot load JDBC

Re: Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver'

2005-09-14 Thread David Delbecq
Just my 2 cents: Have you tried putting it under shared/lib? Also, are you sure it's a .jar and not a .zip extension for you file? Am using here an oracle connector in various webapp. The driver is under common/lib of tomcat 5.5.7 and i have no problems, so i bet this is the right location

How to define contexts?

2005-09-14 Thread Vsevolod (Simon) Ilyushchenko
Hassan, Well, maybe I misunderstood the original question :-) No, it's just me unfamiliar with the idea of contexts. So far I've figured out that there is a file context.xml that can define extra parameters for an application, but I'm not sure about: 1) Whether it's possible to direct two

Session timeout issues

2005-09-14 Thread James Shaw
I have two issues relating to sessions: 1) Sessions seem to be expired too soon. This happens very infrequently for me (perhaps 1 in 1000 requests). I'm adding some HttpSessionListeners and HttpSessionAttributeListeners to attempt to locate this problem, but have little to go on at the moment.

RE: Can't change servlet path

2005-09-14 Thread David Thielen
Hi; I'm not understanding something here I think. On (1) you say (I think) that I must put Context in server.xml for the path attribute. But in (2) you tell me (I think) to not put Context in server.xml? What am I not getting here? Thanks - dave -Original Message- From: Caldarale,

Two Service elements problems

2005-09-14 Thread Barnett, Brian W.
I have two Service elements defined like this in my server.xml file, each one listening to a different IP address and serving requests for different web sites. (Using 5.0.28) Service name=MyService1 Connector port=80 maxThreads=150 minSpareThreads=25 maxSpareThreads=75

RE: Problem making my servlet the default servlet (instead of ROOT)

2005-09-14 Thread David Thielen
Hi; We have some ASP stuff too so we have to have IIS. I think I'll just put my servlet in root and stop trying to change what root is (yuck). Thanks - dave -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 10:45 PM To:

RE: Can't change servlet path

2005-09-14 Thread Caldarale, Charles R
From: David Thielen [mailto:[EMAIL PROTECTED] Subject: RE: Can't change servlet path I'm not understanding something here I think. On (1) you say (I think) that I must put Context in server.xml for the path attribute. But in (2) you tell me (I think) to not put Context in server.xml?

Re: Issue with the admin webapp

2005-09-14 Thread Mark Thomas
Sastry Malladi wrote: I filed a bug for this (http://issues.apache.org/bugzilla/show_bug.cgi?id=35835) and it seems this is fixed in 5.5.10. But I don't see a 5.5.10 download and wanted clarification on whether 5.5.11-alpha contains the fix as well. I'm going to check it out anyways when I get

Re: SSL mutual communication problem with Tomcat5 --- Remote host closed connection during handshake

2005-09-14 Thread Mark Thomas
Xia, Hong wrote: Hi, Mark, I have the both server and client .cer imported to cacerts but the problem persists commands to generate the server and client key: Keytool -genkey -alias server -keyalg RSA -keystore serverstore.jks Keytool -genkey -alias client -keyalg RSA -keystore

Re: mod_jk performance

2005-09-14 Thread Mark Thomas
KEREM ERKAN wrote: Tomcat is harder to configure and -sadly- it has a far worse documentation than Apache (for now). I look forward to seeing your documentation patches in Bugzilla ;) Mark - To unsubscribe, e-mail: [EMAIL

Re: Two Service elements problems

2005-09-14 Thread Steve Dodge
If you do a netstat -ln (cygwin) do you see two network sockets listening on port 80? 166.70.163.138:80 166.70.163.140:80 If not, the problem is at a lower level than tomcat. Steve Barnett, Brian W. wrote: I have two Service elements defined like this in my server.xml file, each one

RE: Two Service elements problems

2005-09-14 Thread Barnett, Brian W.
netstat -an results (snippet) Proto Local Address Foreign AddressState TCP166.70.163.138:80 0.0.0.0:0 LISTENING TCP166.70.163.138:139 0.0.0.0:0 LISTENING TCP166.70.163.138:2109166.70.163.131:2433ESTABLISHED TCP

RE: SSL mutual communication problem with Tomcat5 --- Remote host closed connection during handshake

2005-09-14 Thread Xia, Hong
Both client and server certificates are self certified by: keytool -selfcert -alias server -keystore serverstore.jks keytool -selfcert -alias client -keystore serverstore.jks The problem still exists. When install the self certified client certificate in IE6, put certificate in Personal Store,

How to get user name after login

2005-09-14 Thread 梁炳場
After implementation of JDBCRealm, how to retrieve the username in Servlet after login? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to get user name after login

2005-09-14 Thread Mark Thomas
梁炳場 wrote: After implementation of JDBCRealm, how to retrieve the username in Servlet after login? getRemoteUser() - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: mod_jk performance

2005-09-14 Thread Xuekun Hu
Well since I don't understand German, I don't konw how he tested. However in my stress testing which lots of static and JSPs, I found Apache + mod_jk performance is a littlle higher than TOMCAT only. I configured Apache with mod_cache. So I think only handling JSPs, TC only could be better than

tomcat4 does not close database connections on reload context

2005-09-14 Thread armin walland
hi list! this is my first post to this list :) i have searched this list's archives but could not find a lot about that topic so i am posting it. i am not sure if this is really a tomcat issue; if it is not i hope someone may point me the right direction. i develop JSP applications (tomcat4,