Bump: Loss of Subject/AccessControlContext in JSTL

2005-09-13 Thread Michiel Toneman
Hi All, Is the below issue completely and utterly uninteresting and boring, or should I just go ahead and file a bugreport? Regards, Michiel We've been tracking a nasty issue in our web application when using Tomcat 5.0.28 and

Where to put context.xml?

2005-09-13 Thread Michael Lai
This is probably an obvious question to most but I am new with tomcat 5.5 so I am still trying to figure things out. I want to create a web project with the document base in /home/tomcat/applications as opposed to the normal webapps folder. This is what I have in my server.xml: Server

RE: Where to put context.xml?

2005-09-13 Thread Allistair Crossley
Nearly. Rename your file ROOT.xml and a path of /ROOT and you're away. The other alternative is create in your web application folder META-INF/context.xml Allistair -Original Message- From: Michael Lai [mailto:[EMAIL PROTECTED] Sent: 13 September 2005 10:07 To:

Re: Where to put context.xml?

2005-09-13 Thread Michael Lai
Allistair Crossley wrote: Nearly. Rename your file ROOT.xml and a path of /ROOT and you're away. The other alternative is create in your web application folder META-INF/context.xml Allistair Thank you for your prompt replay, Allistair. I choosed the second option and created the META

Tomcat - JAAS - getting users ip address

2005-09-13 Thread Franck Borel
Hi all, to authentify a client I am using tomcat 5, j_security and JAAS. Is it possible to get the IP address of an acutally client within the JAAS module (like getRemoteAddress in jsp)? If not: Is it possible to extend j_security, in sort that my_j_security set a *callback* with the client

RE: Where to put context.xml?

2005-09-13 Thread Allistair Crossley
Hi, The docBase is just the folder where your web applications are located. You need to have a folder in applications for your web application. For the empty path application this is /ROOT. Thus Context path=/ROOT docBase=/home/tomcat/applications/ debug=0 reloadable=true /Context

NPE in RealmBase.findSecurityConstraints

2005-09-13 Thread Ittay Dror
Hi, I'm using tomcat 5.5.9, my weapp is in the root context (under webapps/ROOT) and configured to use jaas via META-INF/context.xml Sometimes (not always, don't know how to reproduce this), when I try to log in, it fails, and the following exception appears: 2005-09-13 09:55:12,989 ERROR

The process tomcat {pid 1488.0000 } is leaking handles

2005-09-13 Thread matthew . proud
We have a server running Peregrine Get Answers which use TOMCAT as part of its installation We are seeing (via task manager) a slow build up of handles for the tomcat app.. Has anyone come across this before? This e-mail and any attachments are confidential and intended solely for the

tomcat/jvm shutdown very slow after enabling JMX remote management...

2005-09-13 Thread Joe R. Lindsay
If found an old post mentioning the same issue, but no resolution or others. My config is pretty vanilly except for setting the JMX options as part of the normal Tomcat startup (CATALINA_OPTS)... export CATALINA_OPTS=$CATALINA_OPTS -Dcom.sun.management.jmxremote.port= export

Storing a request

2005-09-13 Thread Ajay Arjandas Daryanani
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone, this is my first mail to this list, forgive me for any mistake I may make... I'm developing a authorization filter for Tomcat 5; in some cases, if the user credentials are invalid, I have to save the original request, redirect the user

RE: Storing a request

2005-09-13 Thread Peter Crowther
From: Ajay Arjandas Daryanani [mailto:[EMAIL PROTECTED] I'm developing a authorization filter for Tomcat 5; in some cases, if the user credentials are invalid, I have to save the original request, redirect the user to an external authentication engine, handle the response and then proceed

Re: tomcat/jvm shutdown very slow after enabling JMX remote management...

2005-09-13 Thread Christoph Kutzinski
You should only set the JMX JAVA_OPTS for startup. If you use the same JAVA_OPTS for shutdown, the shutdown-VM will unsuccessfully try to start a JMX server on port . That's what taking so long. Joe R. Lindsay wrote: If found an old post mentioning the same issue, but no resolution or

Re: The process tomcat {pid 1488.0000 } is leaking handles

2005-09-13 Thread Christoph Kutzinski
This Peregrine Get Answers application is probably leaking file handles. Ask their support. [EMAIL PROTECTED] wrote: We have a server running Peregrine Get Answers which use TOMCAT as part of its installation We are seeing (via task manager) a slow build up of handles for the tomcat app..

RE: tomcat/jvm shutdown very slow after enabling JMX remote management...

2005-09-13 Thread Joe R. Lindsay
Thanks, actually setting the JMX OPTS during shutdown ends up creating a port in use error. I managed to figure that one out.I tried setting jmxremote to false and that was a noop as expected... I still get the long shutdown with the jmx OPTS excluded. -Original Message- From:

RE: The process tomcat {pid 1488.0000 } is leaking handles

2005-09-13 Thread matthew . proud
I have and they put it down to being the Tomcat application - not much use at all! On task manager it does indicate that tomcat is at fault.. -Original Message- From: Christoph Kutzinski [mailto:[EMAIL PROTECTED] Sent: 13 September 2005 11:40 To: Tomcat Users List Subject: Re: The

Re: The process tomcat {pid 1488.0000 } is leaking handles

2005-09-13 Thread Christoph Kutzinski
I think, I'm not quite getting it: You (your organisation) bought Get Answers and Tomcat is used as a part of it. I.e. Tomcat can be considered as part of Get Answers. Right? Then Peregrine has the responsibility to fix any errors which occur in this combination. [EMAIL PROTECTED] wrote: I

[SOLVED] :) user authetication on MySql db issue need some help!

2005-09-13 Thread yel
hello everyone, i found out what was the problem:) okay the problem is that my jdbc driver was to old and could not comunicate with my mysql and after finding that out using a java based mysql administartion tool (dbvisualzer) i could not login and i was wondering the whole tiome what could

Tomcat autoDeploy problem on Unix

2005-09-13 Thread Olena Mitovska
Hi, We have Tomcat 5.5.7 installed on Solaris 9 and the autoDeploy option doesn't work. We have to restart the server every time we redeploy the application so that changes will be seen, and it is unacceptable for us since it is a production server. Here is the excerpt from our server.xml

RE: The process tomcat {pid 1488.0000 } is leaking handles

2005-09-13 Thread matthew . proud
You are quite getting it. Im pushing it back onto Peregrine as they should be looking into it but in the mean time i thought id pose the question on this forum...speaking to my server support area - they have seen the same problem on other servers running tomcat -Original Message- From:

RE: problem with tomcat manager's deploy command

2005-09-13 Thread rahul
Thanks Charles, Now I am defining my application context in a separate file under META-INF But still I am not been able to undeploy my application (using tomcat manager) Tomcat Manager's undeploy command, which I run from ant is not cleaning some of the jar files in my application's lib folder

Re: The process tomcat {pid 1488.0000 } is leaking handles

2005-09-13 Thread Christoph Kutzinski
I could think of quite a number of reasons, why handle are leaked. Without further knowing the application I could only guess. Since Tomcat is widely used and I haven't heard of handles leaked by tomcat (itself) here on the list, I would strongly suspect the Get Answers application as the

RE: Where to put context.xml?

2005-09-13 Thread Caldarale, Charles R
From: Allistair Crossley [mailto:[EMAIL PROTECTED] Subject: RE: Where to put context.xml? Context path=/ROOT docBase=/home/tomcat/applications/ debug=0 reloadable=true /Context To again quote from the Tomcat doc for the path attribute of the Context element: The value of this

RE: problem with tomcat manager's deploy command

2005-09-13 Thread Allistair Crossley
Hi, I had the same trouble with undeploy, residual JARs in WEB-INF/lib which then totally screwed up any chance of redeploying. So another stop Tomcat, delete manually, deploy. I'd be interested to learn if there is anything that can be done too ... Allistair. -Original Message-

Re: Tomcat autoDeploy problem on Unix

2005-09-13 Thread Stas Ostapenko
Hi ! I'm using tomcat-specific ant tasks and very happy :) It's allows you to restart web app without restarting tomcat. Take a look at manager web app came with distribution. http://jakarta.apache.org/tomcat/tomcat-5.5-doc/manager-howto.html#Executing%20Manager%20Commands%20With%20Ant On

Re: problems setting up tomcat on debian sarge

2005-09-13 Thread Sébastien GALLET
Hello, I used tomcat4 with Sun and blackdown JVM in the past. And they work fine. On sarge, you can use the java-package package to build a .deb with sun jdk. If you want to use tomcat5, you can test my packages (only tested with 1.4 jvm):

RE: Where to put context.xml?

2005-09-13 Thread Allistair Crossley
Hi, Thanks. I am pretty sure that earlier 5.5 implementations needed /ROOT specified for the older 5.0 empty path. Looks like it's either changed back to 5.0's method or I read something incorrectly, Thanks in either case, Allistair. -Original Message- From: Caldarale, Charles R

RE: The process tomcat {pid 1488.0000 } is leaking handles

2005-09-13 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: RE: The process tomcat {pid 1488. } is leaking handles I have and they put it down to being the Tomcat application - not much use at all! Since this has not been reported by anyone else, it is highly likely to be the

Re: Tomcat autoDeploy problem on Unix

2005-09-13 Thread Christoph Kutzinski
Do you create the WAR file on Windows and deploy to Solaris? Have you checked that the system clocks are in sync? Have you checked that the file attributes are ok on Solaris? Have you tried to touch the war file? Olena Mitovska wrote: Hi, We have Tomcat 5.5.7 installed on Solaris 9 and the

Re: Tomcat autoDeploy problem on Unix

2005-09-13 Thread Eugeny N Dzhurinsky
On Tue, Sep 13, 2005 at 03:31:37PM +0200, Christoph Kutzinski wrote: Do you create the WAR file on Windows and deploy to Solaris? Have you checked that the system clocks are in sync? Have you checked that the file attributes are ok on Solaris? Have you tried to touch the war file? I could

Re: problems setting up tomcat on debian sarge

2005-09-13 Thread Martin Wood
I struggled with running tomcat5 on sarge for a while and found that the blackdown jvm was the only one that seemed to work properly. I had great problems using the Sun JVM (there was a thread on here about 6 weeks ago) whereby tomcat would just stop responding, and refuse to shutdown unless

Re: Where to put context.xml?

2005-09-13 Thread Michael Lai
Allistair Crossley wrote: Hi, The docBase is just the folder where your web applications are located. You need to have a folder in applications for your web application. For the empty path application this is /ROOT. Thus Context path=/ROOT docBase=/home/tomcat/applications/ debug=0

RE: problem with tomcat manager's deploy command

2005-09-13 Thread Caldarale, Charles R
From: rahul [mailto:[EMAIL PROTECTED] Subject: RE: problem with tomcat manager's deploy command Tomcat Manager's undeploy command, which I run from ant is not cleaning some of the jar files in my application's lib folder However no error shown on ant prompt. What happens if you try

Re: problems setting up tomcat on debian sarge

2005-09-13 Thread Andrew Miehs
Hi Martin, I have tomcat 5.0.25 - 30 running on Sarge without a problem. Sun JVM 1.42r5 and greater. The orginal poster seems to have a problem with his application as manager applets etc work. I would however recommend running a 2.6 kernel Andrew On Sep 13, 2005, at 3:37 PM, Martin

Re: problems setting up tomcat on debian sarge

2005-09-13 Thread Martin Wood
maybe it was just the combinations i tried :) and i should have read what his actual problem is... sorry for the noise. Andrew Miehs wrote: Hi Martin, I have tomcat 5.0.25 - 30 running on Sarge without a problem. Sun JVM 1.42r5 and greater. The orginal poster seems to have a problem with

Re: Where to put context.xml?

2005-09-13 Thread Michael Lai
Caldarale, Charles R wrote: To again quote from the Tomcat doc for the path attribute of the Context element: The value of this field must not be set except when statically defining a Context in server.xml, as it will be infered [sic] from the filenames used for either the .xml context file or

Re: Tomcat autoDeploy problem on Unix

2005-09-13 Thread Ritchie Gillam
1)I have created the WAR file on Windows and deployed to Solaris but I also tried using the Tomcat Manager GUI without any luck. It is interesting to note that when I FTP the WAR file over from the Windows box, both the app directory and the new WAR file disappear. If I FTP the WAR a second

RE: The process tomcat {pid 1488.0000 } is leaking handles

2005-09-13 Thread George Sexton
I have a web application that I host for our customers. Right now we are running about 60 virtual hosts with tens of thousands of hits per day. I've also run stress tests using Jmeter where literally millions of requests are generated. I have never observed a resource leak. This is a common topic

Struts, JSP 2.0 and Jasper2 compiler/code generation error

2005-09-13 Thread Clark Wright
I am running into a class hierarchy mismatch with taglibs and jasper2 out of tomcat 5.5 and precompiling jsp pages built with the struts taglibs. I have: Jboss AS 4.0.2 Tomcat 5.5 (bundled) Struts 1.2.4 The error I am getting at compile time is: [javac]

Getting this error when trying to generate a graphic

2005-09-13 Thread Ritchie Gillam
javax.servlet.ServletException: /data0/apps/java/jdk1.5.0_02/jre/lib/sparc/libawt.so: ld.so.1: /data0/apps/java/jdk1.5.0_02/bin/java: fatal: libmlib_image.so: open failed: No such file or directory

RE: problem with tomcat manager's deploy command

2005-09-13 Thread rahul
I have not tried that because I am deploying on a remote machine, and I dont know how to do it from manager's web page (is it possible anyway? ) - RahulJoshi -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 7:13 PM To: Tomcat

Re: Tomcat autoDeploy problem on Unix

2005-09-13 Thread Sergey Pariev
Hi. Try something like this in your context.xml Context path=/webapp docBase=webapp debug=99 reloadable=true antiJARLocking=true antiResourceLocking=false I've had similar problems with Tomcat 5.5.x on Linux but the above line works. HTH, Sergey. Ritchie Gillam пишет: 1)I have created

URL embedded filename suggestion not working inTomcat

2005-09-13 Thread Ron Cozad
This url is not working in Tomcat, but it works with Apache http server. http://my.company.com/cgi-bin/program1.cgi/filename.txt?parameter1=123 Next url does work with tomcat but of course the browser proposes program1.cgi as the name instead of filename.txt, as desired in the first url.

Re: Getting this error when trying to generate a graphic

2005-09-13 Thread Sonja Löhr
Hi! Althogh my error sounded a bit different, I think I had the same problem. You already specified headless=true as sysprop or java option in catalina.sh? Unfortunately this is not enough under linux/unix. On my linux at home, there are a lot of .so-files under /usr/X11R6/lib, especially

RE: The process tomcat {pid 1488.0000 } is leaking handles

2005-09-13 Thread Wade Chandler
--- [EMAIL PROTECTED] wrote: I have and they put it down to being the Tomcat application - not much use at all! On task manager it does indicate that tomcat is at fault.. -Original Message- From: Christoph Kutzinski [mailto:[EMAIL PROTECTED] Sent: 13 September 2005 11:40

Re: The process tomcat {pid 1488.0000 } is leaking handles

2005-09-13 Thread Jason Bainbridge
On 9/13/05, Wade Chandler [EMAIL PROTECTED] wrote: --- [EMAIL PROTECTED] wrote: I have and they put it down to being the Tomcat application - not much use at all! On task manager it does indicate that tomcat is at fault.. I'm assuming by the reference to task manager that this is

Re: The process tomcat {pid 1488.0000 } is leaking handles

2005-09-13 Thread David Haynes
Wade Chandler wrote: --- [EMAIL PROTECTED] wrote: I have and they put it down to being the Tomcat application - not much use at all! On task manager it does indicate that tomcat is at fault.. Another suggestion. Grab a copy of JBoss or Sun App Serv (or whatever you have handy)

Why are tag files always compiled to class files?

2005-09-13 Thread ping xu
Hi, I hope someone could shed some light on this: I'm trying to pre-compile JSPs using Jasper (Jasper2 Ant task from the document). My Tomcat version is 5.0.28. In my webapp, there are a few custom tags in tag file format. When I set the jasper2 comiple attribute to false, I expect only java

Case-insensitive URLs for serving HTML

2005-09-13 Thread midnightjava
I have a webb app in Tomcat that serves only HTML, and I'd like to make the path component of the URL case-insensitive. So if the client navigates to http://domain.host/Pics or http://domain.host/pics or http://domain.host/PIcs they'll get the same resource. I guess I'd like to match the URL

Re: Case-insensitive URLs for serving HTML

2005-09-13 Thread Hassan Schroeder
[EMAIL PROTECTED] wrote: I have a webb app in Tomcat that serves only HTML, and I'd like to make the path component of the URL case-insensitive. ... I guess I'd like to match the URL pattern to a regular expression. One quick, easy approach: UrlRewriteFilter

How to configure Tomcat for multiple IPs

2005-09-13 Thread Barnett, Brian W.
I have one NIC with 2 external IPs bound to it on a Windows XP box. The goal is to have Tomcat service two web sites, each web site having it's own IP address. www.website1.com -- xxx.xxx.xxx.xxx www.website2.com -- yyy.yyy.yyy.yyy I have tried defining two Service's with Connector's that have

Different JDBC sources?

2005-09-13 Thread Vsevolod (Simon) Ilyushchenko
Hi, As a relative Tomcat newbie, I can't find anything about how to use two different JDBC sources with the same codebase. I'd like to have two different URLs that use the same classes and JSP pages, but reference two different databases (test and production). Is there a standard way of

RE: Different JDBC sources?

2005-09-13 Thread Allistair Crossley
The standard way is 2 servers running their own Tomcat. Each Tomcat is then configured with the datasource with differing connection strings. Allistair. -Original Message- From: Vsevolod (Simon) Ilyushchenko [mailto:[EMAIL PROTECTED] Sent: 13 September 2005 16:36 To: Tomcat Users

Redeploy a war host without reboot

2005-09-13 Thread Andrea Bondi
Hi to all, I've set up Tomcat v. 5.5.9 as the server for the domain www.univaperta.it This is a virtual host, not the only site in this server. Configuration is the following: Host appBase=webapps/univaperta name=www.univaperta.it Context docBase=

Re: Different JDBC sources?

2005-09-13 Thread Vsevolod (Simon) Ilyushchenko
Allistair Crossley wrote on 09/13/2005 11:49 AM: The standard way is 2 servers running their own Tomcat. Each Tomcat is then configured with the datasource with differing connection strings. Allistair, And then I would publish my code into two places? (Or alternatively I can have two

Re: How to configure Tomcat for multiple IPs

2005-09-13 Thread Hassan Schroeder
Barnett, Brian W. wrote: I have tried one Service with multiple Connector's, one Connector for xxx.xxx.xxx.xxx and one Connector for yyy.yyy.yyy.yyy. I also had two Host elements in this scenario, but got no indication that anything was running on yyy.yyy.yyy.yyy. What indication were you

Re: Redeploy a war host without reboot

2005-09-13 Thread t.n.a.
Andrea Bondi wrote: Hi to all, I've set up Tomcat v. 5.5.9 as the server for the domain www.univaperta.it This is a virtual host, not the only site in this server. Configuration is the following: Host appBase=webapps/univaperta name=www.univaperta.it Context

Re: Different JDBC sources?

2005-09-13 Thread Stephen Caine
Simon, As a relative Tomcat newbie, I can't find anything about how to use two different JDBC sources with the same codebase. I'd like to have two different URLs that use the same classes and JSP pages, but reference two different databases (test and production). Is there a standard way

Re: Redeploy a war host without reboot

2005-09-13 Thread David Delbecq
Hello The easiest way is to have each virtual host with it's own webapp directory (like webapps/ for default host, webapps-univaperta for the univaperta host). In each virtualhost, copy the manager webapp (this can be downloaded from tomcat webpage). You should have something like

RE: Different JDBC sources?

2005-09-13 Thread Allistair Crossley
Hi, Yes it's called source control and build management. The same, as you call it, code is the managed master code (cvs/vss etc.) and when you want that pushed to different servers you do so with automated build scripts like Ant, or deployment using application server deploy tools. The point

Re: Why are tag files always compiled to class files?

2005-09-13 Thread Tim Funk
Yeah, I ran into this too. It would require a refactoring of jasper to allow this. The last time I looked into this - at first glance, it appeared the tag file need compiled so that all of its properties can be looked up for pages which used that tag file. -Tim ping xu wrote: Hi, I hope

Re: URL embedded filename suggestion not working inTomcat

2005-09-13 Thread Tim Funk
You could use the Content-Disposition header to send the filename back to the user. -Tim Ron Cozad wrote: This url is not working in Tomcat, but it works with Apache http server. http://my.company.com/cgi-bin/program1.cgi/filename.txt?parameter1=123 Next url does work with tomcat but

Re: Different JDBC sources?

2005-09-13 Thread Hassan Schroeder
Vsevolod (Simon) Ilyushchenko wrote: As a relative Tomcat newbie, I can't find anything about how to use two different JDBC sources with the same codebase. I'd like to have two different URLs that use the same classes and JSP pages, but reference two different databases (test and production).

RE: How to configure Tomcat for multiple IPs

2005-09-13 Thread Barnett, Brian W.
What indication were you looking for? :-) Tried browsing to the IP and got nothing. Also didn't see any log file information for it. BTW, did you run nmap or telnet or something to check if anything was listening on the specified IPs in that configuration? To test listening on the specified

Re: How to configure Tomcat for multiple IPs

2005-09-13 Thread Hassan Schroeder
Barnett, Brian W. wrote: BTW, did you run nmap or telnet or something to check if anything was listening on the specified IPs in that configuration? To test listening on the specified IPs, I just pinged them both and that was successful. Well, yeah, that says the interface is alive, but

Re: Storing a request

2005-09-13 Thread Mark Thomas
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 restores the

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

2005-09-13 Thread Xia, Hong
Hello, I am trying to set up Tomcat5 ( as standalone web server ) with https mutal authentication. There is the connector config Connector port=443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=true

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

2005-09-13 Thread Mark Thomas
Xia, Hong wrote: Hello, I am trying to set up Tomcat5 ( as standalone web server ) with https mutal authentication. There is the connector config Connector port=443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=true

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

2005-09-13 Thread Xia, Hong
Thanks for your help Mark. When I imported the client cert, I pick the 'Automatically select the certificate store ...' option and the certificate appeared under the Trusted Root. I tried to place the certificate under Personal and Other People but the certificate did not appear after the

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

2005-09-13 Thread Mark Thomas
Xia, Hong wrote: Thanks for your help Mark. When I imported the client cert, I pick the 'Automatically select the certificate store ...' option and the certificate appeared under the Trusted Root. I tried to place the certificate under Personal and Other People but the certificate did not

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

2005-09-13 Thread Hector Adolfo Alonso
Hi Xia: I think you cannot use an self-signed certificate (as keytool generates) for mutual authentication. User certificate's certificate authority signer shoul be the same that signs the server certificate. In this case, the server certificate is self-signed. On the othe hand, who signs

DBCP problems with Hibernate

2005-09-13 Thread Darryl L. Miles
Jason Bell wrote (under Re: Source code for naming-factory-dbcp.jar ?): naming-factory-dbcp.jar Have a look at Commons DBCP. http://jakarta.apache.org/commons/dbcp/ Hope this helps. Yes thanks. I've a problem, that with Hibernate 3.0.5 and TC 5.5.9 using DBCP I am quickly seeing

Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1

2005-09-13 Thread Seva Popov
Hi, I need to use the JSP 2.0 runtime expressions in the attribute values of JSTL 1.1 tags but I am getting the exception when I try to use them. My jsp page: jsp:root xmlns:jsp=http://java.sun.com/JSP/Page; xmlns:c=http://java.sun.com/jsp/jstl/core;

Re: Different JDBC sources?

2005-09-13 Thread Vsevolod (Simon) Ilyushchenko
Hassan Schroeder wrote on 09/13/2005 12:33 PM: Vsevolod (Simon) Ilyushchenko wrote: As a relative Tomcat newbie, I can't find anything about how to use two different JDBC sources with the same codebase. I'd like to have two different URLs that use the same classes and JSP pages, but

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

2005-09-13 Thread Mark Thomas
Hector Adolfo Alonso wrote: Hi Xia: I think you cannot use an self-signed certificate (as keytool generates) for mutual authentication. User certificate's certificate authority signer shoul be the same that signs the server certificate. In this case, the server certificate is self-signed.

Re: Different JDBC sources?

2005-09-13 Thread Hassan Schroeder
Vsevolod (Simon) Ilyushchenko wrote: Presumably these are two different Contexts; put the appropriate Resource in each ${context}.xml file... Thanks! How will different contexts be invoked depending on the URL? Well, maybe I misunderstood the original question :-) My presumption was that

Can't change servlet path

2005-09-13 Thread David Thielen
Hi; I have tried the following in context.xml (in webapps/store/WEB-INF and META-INF): Context path=/abc docBase=store debug=5 reloadable=true crossContext=true Resource name=jdbc/storeDB auth=Container type=javax.sql.DataSource username=sa password=*

RE: Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1

2005-09-13 Thread Seva Popov
BTW, I understand that I can use a different syntax with the runtime expressions. So, if I change my jsp (not use the xml syntax) it's working fine: %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; % %@ taglib prefix=fmt uri=http://java.sun.com/jsp/jstl/fmt; % %@ taglib prefix=fn

RE: Can't change servlet path

2005-09-13 Thread Caldarale, Charles R
From: David Thielen [mailto:[EMAIL PROTECTED] Subject: Can't change servlet path I have tried the following in context.xml (in webapps/store/WEB-INF and META-INF): Please read the very explicit doc: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html (Since you didn't

Re: Case-insensitive URLs for serving HTML

2005-09-13 Thread Mark Leone
That looks like just what I needed. Thanks. -Mark Hassan Schroeder wrote: [EMAIL PROTECTED] wrote: I have a webb app in Tomcat that serves only HTML, and I'd like to make the path component of the URL case-insensitive. ... I guess I'd like to match the URL pattern to a regular

RE: Can't change servlet path

2005-09-13 Thread Barnett, Brian W.
You may want to consider using the jTDS (http://jtds.sourceforge.net/) SQL Server driver also. It is faster and more reliable. Sample ResourceParams entries: parameter namedriverClassName/name valuenet.sourceforge.jtds.jdbc.Driver/value /parameter

Scripting variable is not generated

2005-09-13 Thread Wei Zhao
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 the definition of the scripting variable in TEI file: VariableInfo vSystemName = new VariableInfo( SystemName, String,

cluster exception - please explain

2005-09-13 Thread John MccLain
Exception in thread Cluster-MembershipReceiver java.lang.OutOfMemoryError: Jav a heap space I am getting the above error. Can someone tell me why?? I am running tomcat5.5 with a jsdk1.5.0_04 on windows xp How can I fix this? John McClain Senior Software Engineer TCS Healthcare [EMAIL

Tomcat5.5 and startup.bat

2005-09-13 Thread John MccLain
I would prefer to run Tomcat5.5 from a script. Can this be done? The scripts are not in the download anymore John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Skepticism is the first step toward truth

RE: Tomcat5.5 and startup.bat

2005-09-13 Thread Caldarale, Charles R
From: John MccLain [mailto:[EMAIL PROTECTED] Subject: Tomcat5.5 and startup.bat I would prefer to run Tomcat5.5 from a script. Can this be done? The scripts are not in the download anymore They're in the .zip and .tar.gz downloads, but not in the .exe one. - Chuck THIS COMMUNICATION

RE: Can't change servlet path

2005-09-13 Thread David Thielen
Hello; I am using Tomcat 5.5 (which is really nice). 1) I have no Context nodes in server.xml 2) Tomcat 5.5\conf\context.xml is: Context WatchedResourceWEB-INF/web.xml/WatchedResource /Context 3) Tomcat 5.5\webapps\store\META-INF\context.xml is: Context

RE: Can't change servlet path

2005-09-13 Thread Caldarale, Charles R
From: David Thielen [mailto:[EMAIL PROTECTED] Subject: RE: Can't change servlet path 3) Tomcat 5.5\webapps\store\META-INF\context.xml is: Context path=/abc docBase=store debug=5 reloadable=true crossContext=true /Context What am I missing To repeat (3rd time today):

Tomcat does not honor acceptCount configuration variable

2005-09-13 Thread Wei Zhao
I’ve just migrated to Tomcat 5.5 and found that the configuration variable “acceptCount” under “Connector” takes no effect. For example, if I set acceptCount to 1000 but leave maxThreads to 75, it cannot handle 500 concurrent requests. I have to increase the maxThreads to around 1000,

cross context info

2005-09-13 Thread Alain Gaeremynck
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 other context. so the

RE: Can't change servlet path

2005-09-13 Thread David Thielen
Hi; I'm sorry - I saw all the notes about don't put anything in server.xml and so skipped over that part. Out of curiosity, three questions: 1) Why is this forced in server.xml when otherwise we are supposed to put everything in our META-INF? 2) In this case, is the context.xml in my META-INF

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

2005-09-13 Thread David Thielen
Hi; If I do Context path=/ docBase=store., then http://localhost:8080/cart.faces returns an error 404. I figured it should be / and not ? If I do Context path= docBase=store., then it works. But. http://localhost:8080/store/cart.faces works http://localhost/store/cart.faces works

Re: Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1

2005-09-13 Thread Rahul Akolkar
On 9/13/05, Seva Popov [EMAIL PROTECTED] wrote: BTW, I understand that I can use a different syntax with the runtime expressions. So, if I change my jsp (not use the xml syntax) it's working fine: %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; % %@ taglib prefix=fmt

RE: Can't change servlet path

2005-09-13 Thread Caldarale, Charles R
From: David Thielen [mailto:[EMAIL PROTECTED] Subject: RE: Can't change servlet path 1) Why is this forced in server.xml when otherwise we are supposed to put everything in our META-INF? You should consider the use of Context in server.xml as merely a migration mechanism from older Tomcat

RE: Tomcat does not honor acceptCount configuration variable

2005-09-13 Thread Caldarale, Charles R
From: Wei Zhao [mailto:[EMAIL PROTECTED] Subject: Tomcat does not honor acceptCount configuration variable I’ve just migrated to Tomcat 5.5 and found that the configuration variable “acceptCount” under “Connector” takes no effect. Can you show us your complete Connector/ tag

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

2005-09-13 Thread Parsons Technical Services
If I do Context path=/ docBase=store., then http://localhost:8080/cart.faces returns an error 404. Yep. It will. Since you are using the path attribute I assume this is in the server.xml and to set it as the root you would use . If you specify a context path of an empty string (), you are

RE: Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1

2005-09-13 Thread Seva Popov
It is funny. Once I talked with you a while ago I found in the spec that I indeed should use %= exp % in a JSP documents (i.e. with xml syntax) instead of %= exp % in a JSP page. I tried it then and it did not work for me. So I've decided that it's implemented differently in Tomcat. I've

Re: Issue with the admin webapp

2005-09-13 Thread Sastry Malladi
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 a chance. Sastry