Problems with clientAuth

2007-03-30 Thread Luis Villa
Hello all, I' a newbie un the list, so first of all I'd like to say hello to everyone :) After this, I'd like to ask for help with a problem I have configuring Tomcat for digital certifications. I've followed all the steps in the Tomcat SSL HOWTO and my tomcat now has a secure connector in port

Réf. : Re: Browsing Tomcat from an MC4j console (jmx)

2007-03-30 Thread jean-louis . mateo
Many thanks Nicholas for your quick answer I'll read the article Best Regards Jean-Louis Matéo Bull, Architect of an Open World TM Bull SA - 53 r de l'Etang BP39 - 69578 LIMONEST tél - 08 20 08 20 00 fax - 04 72 52 51 24 __

Re: Virtual Memory or Mem usage monitoring

2007-03-30 Thread org
I also do this, if I have threads and opening and closing db connections etc nice way to watch the thing running. I find memory is not the thing to watch other than telling you in general that the machine doesnt have enough. Watch the HANDLES those things should be go up and come down

Need help with authentication

2007-03-30 Thread Kenneth Westelinck
Hi all, I have the following setup: - Tomcat 5.5 install on win32, webapps reside underneath webapps/ROOT. http://localhost/ shows me index.jsp - Next I have enabled JDBC realm authentication (webapps/ROOT/WEB-INF/web.xml). security-constraint web-resource-collection

migration from 4.x to 5.x and auto redirect

2007-03-30 Thread Trafny Grzegorz \(Centrala PZUSA\)
Hi, I'm trying to migrate application (let's call it App1) from Tomcat 4.x to Tomcat 5.x (tested 5.0.28 and 5.5.23) and ... have had a problem. Question: How to force Tomcat 5 to stop auto-redirecting context some_server/App1/ if I request connection on some_server/App1 (lack of last '/').

Regarding Apache Tomcat 6.0

2007-03-30 Thread surya penmetcha
Hi, I have Apache Tomact 6.0.2 installation.Unlike prior versions of Tomcat,all the common,shared,server jar files are moved to lib directory. I am using mx4j jars for remote monitoring using JMX.Where I nedd to place these jars so that they get loaded. What configuration changes need to be

Regarding Apache Tomcat 6.0

2007-03-30 Thread surya penmetcha
Hi, I have Apache Tomact 6.0.2 installation.Unlike prior versions of Tomcat,all the common,shared,server jar files are moved to lib directory. I am using mx4j jars for remote monitoring using JMX.Where I nedd to place these jars so that they get loaded. What configuration changes need to be

Re: Regarding Apache Tomcat 6.0

2007-03-30 Thread surya penmetcha
--- surya penmetcha [EMAIL PROTECTED] wrote: Hi, I have Apache Tomact 6.0.2 installation.Unlike prior versions of Tomcat,all the common,shared,server jar files are moved to lib directory. I am using mx4j jars for remote monitoring using JMX.Where I nedd to place these jars so that

Re: Need help with authentication

2007-03-30 Thread David Delbecq
En l'instant précis du 30/03/07 11:20, Kenneth Westelinck s'exprimait en ces termes: Hi all, I have the following setup: - Tomcat 5.5 install on win32, webapps reside underneath webapps/ROOT. http://localhost/ shows me index.jsp - Next I have enabled JDBC realm authentication

Re: Number of Servlets Tomcat Container Creates

2007-03-30 Thread David Smith
Quoting the spec here (SRV.2.1 of servlet spec 2.4): The handling of concurrent requests to a Web application generally requires that the Web Developer design servlets that can deal with muiltiple threads executing within the service method at a particular time. Generally the Web container

Re: Need help with authentication

2007-03-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Delbecq wrote: Workaround includes Another workaround would be to use additional security-constraints that will allow access to favicon.ico and any other include files such as CSS, JS, or images without needing to be logged-in. This

Re: Tomcat 5.5 and secure=true

2007-03-30 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear Filip, Thanks for the info! This was what I was planning on doing with Tomcat 5.5. I have now gone back to use mod_proxy_ajp. (I can not migrate to Tomcat 6.0 for political reasons)... Regards Andrew On 29/03/2007, at 9:54 PM, Filip Hanik

Client Authenification problem in Tomcat

2007-03-30 Thread Martin Cavanagh
So I have now setup my Tomcat 5.5 with HTTPS via APR (tcnative-1.dll)/OpenSSL. It works great. Now I want to require SSL authenification. Thats easy enough to do, I just enable SSLVerifyClient. Connector port=443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25

Tomcat 6.0.10 Comet question

2007-03-30 Thread Sebastiaan van Erk
Hi, I'm trying to use Comet in tomcat 6.0.10, and have the following test class: public class CometServlet extends HttpServlet implements CometProcessor { public void event(final CometEvent event) throws IOException, ServletException { final HttpServletRequest request =

Re: Problems with clientAuth

2007-03-30 Thread Martin Cavanagh
Hi Luis. I'm pretty sure I'm having exactly the same problem as you - maybe we can solve it together:) When I enable client authentification in my config clientAuth=true for you, since your using the Java KeyStore (I'm trying to use OpenSSL), I get exactly the same error in Firefox!

Re: Need help with authentication

2007-03-30 Thread Kenneth Westelinck
Ok, thanks all for your replies. Another problem is the following: - I logon to http://localhost/somewhere using X's credentials. Logon succeeds and I get redirected to http://localhost/somewhere/index.html - I logon to http://localhost/somewhere using Y's credentials. I get the login page again.

Re: Need help with authentication

2007-03-30 Thread Kenneth Westelinck
So, I upgraded to Tomcat 5.5.23 (I was running 5.5.15). Now at least the problem is consistent. For all users I get the login page again. If I refresh, I get redirected to http://localhost/somewhere/index.html. On 3/30/07, Kenneth Westelinck [EMAIL PROTECTED] wrote: Ok, thanks all for your

Re: Tomcat HTTPS Help needed

2007-03-30 Thread Martin Cavanagh
where would I find any sort of performance tests of OpenSSL vs Java JSSE? is it possible to implement client authenification in both OpenSSL and Java JSSE? Thanks Martin Mladen Turk wrote: Martin Cavanagh wrote: Removing the tcnative-1.dll library worked! But doesn't that have the

problem: accessing object created in servlet from jsp

2007-03-30 Thread Mark
Hi, I try to send an object from servlet to jsp using following: req.setAttribute(NP, target); ... getServletContext().getRequestDispatcher(/my.jsp).forward(req, res); in my.jsp I have: % String wa = (String)request.getParameter(NP); % %if (wa == null) wa = blank;% % out.print(wa); % But it

Re: problem: accessing object created in servlet from jsp

2007-03-30 Thread Hassan Schroeder
On 3/30/07, Mark [EMAIL PROTECTED] wrote: I try to send an object from servlet to jsp %if (wa == null) wa = blank;% But it doesn't work :( blank always get displayed, which means I'm not getting the object from request in jsp. Or the object really is null :-) Does it show up if you put

Static class across multiple tomcats?

2007-03-30 Thread James Sherwood
Hello, What I am trying to do is to have a thread running to check a database for something at a certian time. All is well but when we launch both tomcats, there are 2 threads running and I cannot figure out how to have only 1 thread running as it seams static classes are unique to each

Re: problem: accessing object created in servlet from jsp

2007-03-30 Thread Mikolaj Rydzewski
Mark wrote: req.setAttribute(NP, target); [...] % String wa = (String)request.getParameter(NP); % They simpy do not match ;-) Use request.getAttribute() instead. -- Mikolaj Rydzewski [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature

Re: Tomcat 6.0.10 Comet question

2007-03-30 Thread Rémy Maucherat
I have made some adjustments. An exception there should produce an error report, and a sendError should do the same. However, an event.close should simply end the processing of the request without any change of the response state (which will be whatever was set in the servlet). Note: the

Re: Number of Servlets Tomcat Container Creates

2007-03-30 Thread Evan J
On 3/30/07, David Smith [EMAIL PROTECTED] wrote: Quoting the spec here (SRV.2.1 of servlet spec 2.4): The handling of concurrent requests to a Web application generally requires that the Web Developer design servlets that can deal with muiltiple threads executing within the service method at a

Re: problem: accessing object created in servlet from jsp

2007-03-30 Thread Mark
Oh, what a typo! Thanks a lot! Mark --- Mikolaj Rydzewski [EMAIL PROTECTED] wrote: Mark wrote: req.setAttribute(NP, target); [...] % String wa = (String)request.getParameter(NP); % They simpy do not match ;-) Use request.getAttribute() instead. -- Mikolaj Rydzewski [EMAIL

Re: Static class across multiple tomcats?

2007-03-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James, James Sherwood wrote: All is well but when we launch both tomcats, there are 2 threads running and I cannot figure out how to have only 1 thread running as it seams static classes are unique to each tomcat. It sounds like you want

Memory Allocation

2007-03-30 Thread Jeremy Matthews
Using a Mac OS 10.4 system w/ Tomcat 5.5.23... Exactly where (what line location) do you use in the catalina.sh file to place memory arguments? (JAVA_OPTS=-Xmx12000m -Xms1m) Thanks, jeremy - To start a new topic, e-mail:

SSL certificate

2007-03-30 Thread Reis, Tom
If you have multiple signed certificates (Verisign) in your keystore how does Tomcat know which one to use?

RE: SSL certificate

2007-03-30 Thread Mirou, Antoine
keyAlias ? -Message d'origine- De : Reis, Tom [mailto:[EMAIL PROTECTED] Envoyé : vendredi 30 mars 2007 19:01 À : users@tomcat.apache.org Objet : SSL certificate If you have multiple signed certificates (Verisign) in your keystore how does Tomcat know which one to use? Afin

Re: Number of Servlets Tomcat Container Creates

2007-03-30 Thread David Smith
Evan J wrote: On 3/30/07, David Smith [EMAIL PROTECTED] wrote: Quoting the spec here (SRV.2.1 of servlet spec 2.4): The handling of concurrent requests to a Web application generally requires that the Web Developer design servlets that can deal with muiltiple threads executing within the

Re: Memory Allocation

2007-03-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeremy, Jeremy Matthews wrote: Using a Mac OS 10.4 system w/ Tomcat 5.5.23... Exactly where (what line location) do you use in the catalina.sh file to place memory arguments? (JAVA_OPTS=-Xmx12000m -Xms1m) catalina.sh is just a regular

Re: Number of Servlets Tomcat Container Creates

2007-03-30 Thread Evan J
I wouldn't get too hung up on the internals of tomcat here. You should remember servlet engines can be implement the spec in any way they see fit. They are only required to comply with the spec. Anything not spelled out there is subject to interpretation. Suffice it to say servlets in and of

mod_jk changes url?

2007-03-30 Thread Peter Coppens
Gentlepeople, I have a weird problem where I send a request from a browser to apache2 (running on Debian) to tomcat 6 (jdk 1.5) through mod_jk and where the requested url in tomcat seems different from the one that is sent to apache2. In my case the url contains an escaped single quote (%27)

logging ServletExceptions thrown during servlet init

2007-03-30 Thread Will Glass-Husain
Hi, I've got a question on logging under Windows (as a service). I'm running an almost-out-of-the-box install of Tomcat 5.5.20/JRE 1.5.10/Win XP. I just concluded a frustrating debugging session in which a servlet was throwing a ServletException in the init method. No error messages in any

Re: logging ServletExceptions thrown during servlet init

2007-03-30 Thread Rashmi Rubdi
On 3/30/07, Will Glass-Husain [EMAIL PROTECTED] wrote: Hi, I've got a question on logging under Windows (as a service). I'm running an almost-out-of-the-box install of Tomcat 5.5.20/JRE 1.5.10/Win XP. I hope the out-of-the-box install configures environment variables such as JRE_HOME ,

Re: mod_jk changes url?

2007-03-30 Thread Peter Coppens
Oh well, that was not too difficult. If I add JkOptions +ForwardURICompatUnparsed to the apache config, all is well again. Apologies for the noise, Peter Peter Coppens wrote: Gentlepeople, I have a weird problem where I send a request from a browser to apache2 (running on Debian)

question about valves reporting inet6 addresses

2007-03-30 Thread jpsla
Sorry for bothering the list with this, but the usual searches have turned up nothing. First, my profile: Mac OS X 10.4.9 Tomcat 6.0.10 running with APR 1.2.8 Java 1.5.0 OK, I configured a context with a RemoteHostValve to restrict access to a particular subnet. However, I could not get

Re: logging ServletExceptions thrown during servlet init

2007-03-30 Thread Will Glass-Husain
Just checked that. It's Jakarta Turbine, incidentally. No, the servlet catches then rethrows the exception. catch (Exception e) { // save the exception to complain loudly later :-) initFailure = e; log.fatal(Turbine: init()

wildcard certs in tomcat

2007-03-30 Thread Brian LaMere
Having problems with using a wildcard cert with Tomcat. Same cert/key/bundle trio works in apache in the way that I expect it, but any docs I've found for Tomcat don't yield me a working system. We lost a guy recently that was the web-min, so I'm a little out of my typical skillset in this

Re: logging ServletExceptions thrown during servlet init

2007-03-30 Thread Rashmi Rubdi
It appears that log.fatal is a method in Apache Commons Logging , according to the usage http://carbon.sourceforge.net/modules/core/docs/logging/Usage.html FATAL - Severe errors that cause premature termination. Expect these to be immediately visible on a status console. According to the above

Re: logging ServletExceptions thrown during servlet init

2007-03-30 Thread Will Glass-Husain
I'm using log4j, but it hasn't been configured at this point. (The servlet error occurs during configuration). Still, note that the ServletException is thrown immediately after. I'd expect Tomcat to pick up uncaught exceptions and stick them in a log. WILL On 3/30/07, Rashmi Rubdi [EMAIL

Re: Tips needed: restarting tomcat without risk of java.net.BindException

2007-03-30 Thread brycenesbitt
We've recently had a related problem. When tomcat can't bind to port 6135, it binds to the next port up, 6136. Unfortunately that's a totally different application. Is there a way to: 1) Have Tomcat not bump the port number up. 2) Have Tomcat retry a particular port until it's available.

Re: Tips needed: restarting tomcat without risk of java.net.BindException

2007-03-30 Thread Filip Hanik - Dev Lists
the problem you are having is because you didn't shutdown the java process. invoking shutdown.sh when your tomcat instance has suffered a memoryleak doesn't guarantee that it will stop, or how long it takes to stop it. you must ensure the process is killed properly Filip Bryce Nesbitt wrote:

Setting Connector's attribute and consuming SOAP request in embedded tomcat

2007-03-30 Thread Dipesh Khakhkhar
Hi, I am using embedded tomcat 5.5.16. I am trying to embed tomcat server in my java application. I tried to find how to set some attributes like maxThreads, acceptCount and so on but was not able to find a good way to do this in embedded tomcat application. Secondly I am trying to feed SOAP

Re: logging ServletExceptions thrown during servlet init

2007-03-30 Thread Rashmi Rubdi
On 3/30/07, Will Glass-Husain [EMAIL PROTECTED] wrote: I just concluded a frustrating debugging session in which a servlet was throwing a ServletException in the init method. How do you know that the Servlet was throwing an Exception in the init method ? No error messages in any log file.

Re: using https for login

2007-03-30 Thread John Pedersen
What a shame - I would have thought this a common requirement. I want to protect the admin password, but once logged in, there is a lot of data to process, and it isn't very sensitive, so it doesn't make sense to encrypt it. So I just have to scrap the declarative method, and do it