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

2007-03-29 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 __ BU

Problems with clientAuth

2007-03-29 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

doubt in testin a sample jsp using the tomcat server

2007-03-29 Thread Sabitha Divakaran
Hi all, I 've install the tomcat 5.5 and jdk 1.5 but I would lie to test the sample jsp whch I create. I don't know how that jsp is deployed using the tomcat server. Inside the weapps I create a folder and copy the jsp which I create. Then what all things I need to do forwoking this jsp. Pl

YAWS connect to Tomcat

2007-03-29 Thread Josh Joy
Hi, Is it possible to have yaws serve as the http frontend for Tomcat? Similar to how can have apache http serve as the frontend for tomcat using AJP Thanks, Josh - To start a new topic, e-mail: users@tomcat.apache.org To

Number of Servlets Tomcat Container Creates

2007-03-29 Thread Evan J
Hi, I am new to servlets and web container. From what I have read so far, I've gotten an impression that the web containers, in this case Tomcat, create only _one_ instance of each particular servlet upon start/[re]deployment of a web application. Any request to such servlet would cause a contain

Re: Basic Auth without web.xml not working

2007-03-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Berglas, Anthony wrote: >> If you really want to hack around with authentication and >> authorization, check out securityfilter >> (http://securityfilter.sourrceforge.net). The code is portable >> across servlet containers, and especially across

RE: Basic Auth without web.xml not working

2007-03-29 Thread Berglas, Anthony
Thanks for your replies, I think that the matter is settled. > > The underlying issue is that when Role R is required for Page P then > > *TWO* things need to happen depending on whether the user is in role R. > > These are > > > > 1. Allow or block access to page P. > > 2. Grey out or not grey ou

SPAMMED: Additional JARs have been added

2007-03-29 Thread Dwight Farris
Hello Everyone, I am running TOMCAT 5.0.28 on a Mac OS X; JVM 1.5.0_06-112 platform; over a period of a week I have made some code changes to ensure the service will automatically restart if it stops. The following are some of the changes that I have made: TOMCAT now starts via launchd sc

Re: Session Problems Apache httpd -> tomcat

2007-03-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nelson, Nelson D. guerrero wrote: > On Thu, 2007-03-29 at 12:20 -0400, Christopher Schultz wrote: >> Honestly, you should never have to do anything with cookies >> yourself... >> Tomcat should handle any required cookie manipulations. I think it >> wi

Re: Tomcat 5.5 and secure="true"

2007-03-29 Thread Filip Hanik - Dev Lists
With tomcat 6, you could do this: 1. For non SSL traffic Just ProxyPass to tomcat like always (set ProxyPreserveHost On) 2. For SSL traffic Proxy pass to another connector setup like this SSLEnabled=false, means it is http, not https, but request.getScheme - will return https request.isSec

Re: Tomcat HTTPS Help needed

2007-03-29 Thread Filip Hanik - Dev Lists
Martin Gainty wrote: just so Im clear..this would not work with keystore files but will work with APR connector and the Binaries must be compiled to JNI spec? exactly, to use APR and OpenSSL, you can use Apache style certificates, enableLookups="true" disableUploadTimeout="true"

Re: request hangs

2007-03-29 Thread Filip Hanik - Dev Lists
if you are on TC 6, you can always use the NIO connector as an alternative. There is a mem leak in 6.0.10, but fixed in SVN, new release around the corner take a look at http://tomcat.apache.org/tomcat-6.0-doc/config/http.html the "protocol" attribute tells you how to configure the different c

Re: classnotfoundexception with tomcat 6.0

2007-03-29 Thread Rashmi Rubdi
Thanks, I tried Connection Pooling recently with MySQL 5.x with those instructions, and I was able to successfully make a connection per the example shown there for MySQL. I only had to place mysql-connector-java-5.0.5-bin.jar under ...\apache-tomcat-6.0.10\lib\ And configure the Context , and t

Re: mod_jk/1.2.21, jkstatus does not display runtime state of load balanced threads, only N/A

2007-03-29 Thread Rainer Jung
Please open a bugzilla issue and attach the relevant parts of your mod_jk config (jk directives from httpd.conf and workers.propertiers and uriworkermap.orperties, if applicable). Erik Melkersson schrieb: > Thanks for the info but unfortunately I don't think that is is case for > me. I surfed to a

Re: Tomcat manager console not appearing

2007-03-29 Thread Fabian Arocena
You are telling me there's a chance that the manager role definition is not included in the default realms? I checked the page that you told me and apparently the realm is defined in the server.xml file ... I noticed that the server.xml file in the server that deosn;t work is much more smaller th

Re: classnotfoundexception with tomcat 6.0

2007-03-29 Thread Martin Gainty
Matt/Rashmi make sure you have a non-empty password specified for username supplied to DB (The Tomcat 6 Configuration for MySQL is available here) http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html Bon Chance! Martin- --

Re: Tomcat manager console not appearing

2007-03-29 Thread Martin Gainty
Fabian I think this link http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html#What%20is%20a%20Realm? *may help* Manager Application If you wish to use the Manager Application to deploy and undeploy applications in a running Tomcat 5 installation, you MUST add the "manager" ro

Re: Session Problems Apache httpd -> tomcat

2007-03-29 Thread Nelson D. guerrero
On Thu, 2007-03-29 at 12:20 -0400, Christopher Schultz wrote: > Honestly, you should never have to do anything with cookies > yourself... > Tomcat should handle any required cookie manipulations. I think it > will > just clutter your code and confuse anyone reading it. It's working without any co

Re: classnotfoundexception with tomcat 6.0

2007-03-29 Thread Rashmi Rubdi
Are there additional error messages in the logs? Sometimes the logs have more error information that will help you solve this problem. Check if you have properly nested the Context tag under the Host tag either in server.xml or if a separate Context xml file is used then it should be associated

Virtual Memory or Mem usage monitoring

2007-03-29 Thread Jayson Enriquez
Hi all, (another memory question) I am currently running Tomcat 5.5 on Windows server 2003 (2gb). Tomcat memory resources are monitored in Windows Task Manager. Should I be more concerned with Mem Usage or VM usage? Is Virtual Memory the actual memory usage? Will gc release memory after it hits

Re: Tomcat 5.5: Jre or Jdk?

2007-03-29 Thread Tremal Naik
2007/3/29, Caldarale, Charles R <[EMAIL PROTECTED]>: I just tried it with 5.5.23, and JRE_HOME without JAVA_HOME works properly on both JRE 5 and 6. ok, thanks, I'll upgrade our clients tomcat. In the meanwhile, a small fix to the windows batches was sufficient. -- TREMALNAIK

Re: Browsing Tomcat from an MC4j console (jmx)

2007-03-29 Thread Nicholas Sushkin
Jean-Louis, Basically, you specify the port number when you enable JMX access during tomcat startup. Google for "tomcat enable jmx". Here's a good article: http://www.javaworld.com/javaworld/jw-08-2005/jw-0801-jmx.html It looks like if you started Tomcat using set JAVA_OPTS=%JAVA_OPTS% -Dco

Re: Session Problems Apache httpd -> tomcat

2007-03-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nelson, Nelson D. guerrero wrote: >> Your URLs will then look something like: >>/path/to.jsp;jsessionid=?query=goes+here > > This and the addCookie worked perfectly. The developers are working on a > fix right now. Honestly, you should

Re: Tomcat manager console not appearing

2007-03-29 Thread Fabian Arocena
why? The "standard" role is well defined ... It doesn't even prompt me for a user id & password (that happens even if you don't add the manager, admin and standard roles...), it just displays that message. I have enabled this console in 2 other boxes, with the same tomcat version and this didn't h

classnotfoundexception with tomcat 6.0

2007-03-29 Thread matt . beau
I have a webapp running under tomcat 5.5 with no problem. When I try to run my webapp with tomcat 6.0, I have an classnotfound error for the mysql driver. Of course, i have try to put the mysql driver jar file in /tomcat 6/lib folder, in my webapp web-inf/lib folder, in both folders... I always h

Re: Tomcat 5.5 and secure="true"

2007-03-29 Thread Mladen Turk
Andrew Miehs wrote: After reading all the comments regarding mod_proxy_ajp, I am currently looking at migrating to mod_proxy_http. The application uses "isSecure" to check whether the request is an HTTPS connection or not. But you obviously didn't read all the comments. You will need to

RE: Tomcat 5.5: Jre or Jdk?

2007-03-29 Thread Caldarale, Charles R
> From: Tremal Naik [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat 5.5: Jre or Jdk? > > Not only the documents, but it looks that a bug that has been marked > as resolved in version 5.5.9 has not really been resolved or > reintroduced in 5.5.16 I just tried it with 5.5.23, and JRE_HOME without

Re: Session Problems Apache httpd -> tomcat

2007-03-29 Thread Nelson D. guerrero
On Thu, 2007-03-29 at 09:43 +0100, Pid wrote: > > They don't go through it automatically, as the links are in the page > output, and tomcat doesn't hunt through output streams for URLs to encode. > > All URLs need to be manually encoded, in your JSPs or Servlet outputs. > Check with your develop

Re: How do I get the response status code?

2007-03-29 Thread Brantley Hobbs
Martin, I'm afraid I don't understand. Would the request length be the same as the response? I'm totally not following. Brantley Martin Gainty wrote: Brantley- as the ServletResponse.getOutputStream() returning a javax.servlet.ServletOutputStream is not RLE (RunLengthEncoded) unless of c

Re: Tomcat 5.5: Jre or Jdk?

2007-03-29 Thread Tremal Naik
2007/3/29, Tremal Naik <[EMAIL PROTECTED]>: It really looks that the guys there at Apache don't care of us, ignorant windows users ;) I quote from the bug report: "I'm leaving the bug open for Windows, but I really don't care about the problem" All my windows clients (who are not developers),

Re: Tomcat 5.5: Jre or Jdk?

2007-03-29 Thread Tremal Naik
2007/3/29, Caldarale, Charles R <[EMAIL PROTECTED]>: was clearly aware of. Unfortunately, it often takes quite a while for the doc to catch up to reality. Not only the documents, but it looks that a bug that has been marked as resolved in version 5.5.9 has not really been resolved or reintrodu

Re: How do I get the response status code?

2007-03-29 Thread Martin Gainty
Brantley- as the ServletResponse.getOutputStream() returning a javax.servlet.ServletOutputStream is not RLE (RunLengthEncoded) unless of course you implement some form of Tokenizer such as http://forum.java.sun.com/thread.jspa?threadID=734167&tstart=420 Quickest would be to call HttpServletReque

Re: How do I get the response status code?

2007-03-29 Thread Brantley Hobbs
Yeah. I think that's what I ran across (I wrote that code more than a year ago). I think that's why I ended up initializing that internal variable to 200 so I'd be guaranteed to get something. It looks as if the AccessLog valve does something like this: import org.apache.catalina.connector.R

Re: Tomcat and Axis Logging delay

2007-03-29 Thread Andy Kayley
Hi all, Apologies if this email has come through already... We're very confused. We have a webservice that is using Axis1.4 and running under Apache tomcat-5.0.27. We have an apache2 modjk connector in it that's forwarding requests to the tomcat. We use java.util.logging in our code, and a

Re: Tomcat 5.5: Jre or Jdk?

2007-03-29 Thread Tremal Naik
2007/3/29, Martin Gainty <[EMAIL PROTECTED]>: Tomcat officially requires the full JDK, because it needs javac in order to compile JSPs. If you pre-compile all your JSPs, you can get away with running tomcat on a JRE only, but you do so at your own risk. From http://tomcat.apache.org/tomcat-5

RE: Tomcat 5.5: Jre or Jdk?

2007-03-29 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat 5.5: Jre or Jdk? > > http://tomcat.apache.org/faq/misc.html#fullJdk > Can I run tomcat with the JRE, or do I need the full JDK? > Tomcat officially requires the full JDK, because it needs > javac in order to compile JSPs. Th

Tomcat 5.5 and secure="true"

2007-03-29 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear List, After reading all the comments regarding mod_proxy_ajp, I am currently looking at migrating to mod_proxy_http. The application uses "isSecure" to check whether the request is an HTTPS connection or not. Therefore, I have created 2

Re: How do I get the response status code?

2007-03-29 Thread Yair Zohar
Well, it does, partially. I sometimes get a non zero status code, but it's not zero only when there is an error (status code s: 404, 304). Yair. Brantley Hobbs wrote: Ahh.please ignore my last. I see that you're doing the same thing I mentioned (setting a private variable and returning

Re: Tomcat 5.5: Jre or Jdk?

2007-03-29 Thread Martin Gainty
http://tomcat.apache.org/faq/misc.html#fullJdk Can I run tomcat with the JRE, or do I need the full JDK? Tomcat officially requires the full JDK, because it needs javac in order to compile JSPs. If you pre-compile all your JSPs, you can get away with running tomcat on a JRE only, but you do so a

RE: Tomcat 5.5: Jre or Jdk?

2007-03-29 Thread Caldarale, Charles R
> From: Tremal Naik [mailto:[EMAIL PROTECTED] > Subject: Tomcat 5.5: Jre or Jdk? > > it complains that JAVA_HOME should point to a JDK, not a JRE. Use JRE_HOME, not JAVA_HOME, when you have only a JRE installed. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY

Re: How do I get the response status code?

2007-03-29 Thread Brantley Hobbs
Ahh.please ignore my last. I see that you're doing the same thing I mentioned (setting a private variable and returning that as the status). Is this not working for you? Brantley Yair Zohar wrote: Hi Brantley, Thanks for replying. I've tried to pass a wrapper to the filter's chain, here

Re: How do I get the response status code?

2007-03-29 Thread Brantley Hobbs
No, the byte count doesn't actually have anything to do with the status code. I simply added that statement as another reason for using the wrapper. Sorry for the confusion. I agree with your earlier statement that sometimes the response code doesn't get set (or at least it gets set at some

Re: Tomcat manager console not appearing

2007-03-29 Thread Martin Gainty
suggest changing the manager to roles="admin,manager" M-- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that

Tomcat 5.5: Jre or Jdk?

2007-03-29 Thread Tremal Naik
Hello, excuse me for the very simple question, but I'm not able to find a reference for it. I'm trying to use Tomcat 5.5.16 with JRE 1.5 installed. When I start it complains that JAVA_HOME environment variable is required, when I set this variable as my JRE root, it complains that JAVA_HOME shou

Browsing Tomcat from an MC4j console (jmx)

2007-03-29 Thread jean-louis . mateo
Tomcat : 5.5.20 Java : 1.5.0_09-b03 Hello My tomcat 5..5.20 is well running and i want to administrate it from an MC4J console but I don't know which url I have to invoke it The URL is formed like this: service:jmx:rmi://localhost/jndi/rmi://localhost:/connector_ Which , and do I have to c

Re: How do I get the response status code?

2007-03-29 Thread Yair Zohar
Hi Brantley, Thanks for replying. I've tried to pass a wrapper to the filter's chain, here is the wrapper's code: import java.io.IOException; import javax.servlet.http.*; public class TestResponse extends HttpServletResponseWrapper { private int statusCode; public TestResponse(HttpServle

Re: How do I get the response status code?

2007-03-29 Thread Brantley Hobbs
Yair, I too would be interested in this. I wrote a logging filter that does what you describe, but the best that I could come up with was a response wrapper that was passed along the filter chain. In the wrapper, I could set a status, thus guaranteeing that I would end up with a status at th

Re: Session Problems Apache httpd -> tomcat

2007-03-29 Thread Nicholas Sushkin
On Wednesday 28 March 2007 18:17, Christopher Schultz wrote: > > Do they go through request.encodeURL automatically or do I have to do > > something? If you use JSTL Core library c:url, then they do. If you are using "", then they do not and you have to use link. It's safer and cleaner to use

How do I get the response status code?

2007-03-29 Thread Yair Zohar
Hello, I'm trying to create a filter that will do the access logging for my web application (I would like to write the information directly to the database not to a file). I have a problem to get the status code of the response. The filter receives a ServletResponse object that do not have a g

Re: Tomcat HTTPS Help needed

2007-03-29 Thread Martin Gainty
just so Im clear..this would not work with keystore files but will work with APR connector and the Binaries must be compiled to JNI spec? M-- --- This e-mail message (including attachments, if any) is intended for the use of

Réf. : Re: A second administration port

2007-03-29 Thread jean-louis . mateo
Hello everybody, I was not clear about my problem. I would like to have an access to servlets-examples (or another web application) in precising another port than 8080 so I did the following configuration. Creating a new service within server.xml this way: ... ...

Re: Tomcat manager console not appearing

2007-03-29 Thread Fabian Arocena
Thank you for your answer, Martin. This is how my tomcat-users.xml looks like (I have it the same way in another Solaris box, same version and same tomcat version) I don;t know why it doesn;t work in this box ... Thanks, Fabian On 3/28/07, Martin Gainty <[EMAIL PROTECTED]

Re: Tomcat HTTPS Help needed

2007-03-29 Thread Mladen Turk
Martin Cavanagh wrote: Removing the tcnative-1.dll library worked! But doesn't that have the disadvantage of decreased performance for Tomcat? Yes, APR connector with OpenSSL is 4 times faster then with Java JSSE Is there a way to install OpenSSL without compiling it? Tcnative-1.dll for

Re: Virtual Host Configuration problem, Help needed!!!

2007-03-29 Thread Mark Thomas
jit.mehta wrote: > Hi! I want to configure Virtual Host on my Tomcat 5 standalone server but I'm > unable to run it. http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html HTH, Mark - To start a new topic, e-mail: u

Re: using https for login

2007-03-29 Thread Mark Thomas
John Pedersen wrote: > I have been able to get all the admin pages running on https, but I > want just the login page on https, and the actual admin pages using > http. > > Can anyone suggest how to do this. Here is what I have in my web.xml ( > this setup doesn't use https at all ): Without modi

Re: Tomcat HTTPS Help needed

2007-03-29 Thread Martin Cavanagh
Removing the tcnative-1.dll library worked! But doesn't that have the disadvantage of decreased performance for Tomcat? Is there a way to install OpenSSL without compiling it? Thanks Martin Mladen Turk wrote: Martin Cavanagh wrote: Hi everyone. I'm quite embarrassed - but inspite following

Tomcat and Axis Logging delay

2007-03-29 Thread Andy Kayley
Hi all, We're very confused. We have a webservice that is using Axis1.4 and running under Apache tomcat-5.0.27. We have an apache2 modjk connector in it that's forwarding requests to the tomcat. We use java.util.logging in our code, and are using Java 5. Now we have a webapp that has some serv

Tomcat and Axis Logging delay

2007-03-29 Thread Andy Kayley
Hi all, We're very confused. We have a webservice that is using Axis1.4 and running under Apache tomcat-5.0.27. We have an apache2 modjk connector in it that's forwarding requests to the tomcat. We use java.util.logging in our code, and are using Java 5. Now we have a webapp that has some serv

Virtual Host Configuration problem, Help needed!!!

2007-03-29 Thread jit.mehta
Hi! I want to configure Virtual Host on my Tomcat 5 standalone server but I'm unable to run it. Still no clue! this is how I did it. Conf/server.xml entries after the local host entries- I added a configuration file ROOT.xml in conf/catalina/buzz for the host I also created directo

Re: Session Problems Apache httpd -> tomcat

2007-03-29 Thread Pid
Nelson D. guerrero wrote: On Wed, 2007-03-28 at 17:00 -0400, Christopher Schultz wrote: Assuming that Tomcat is managing your sessions (there aren't too many good reasons to manage your own sessions), then Tomcat uses either cookies or URL rewriting to maintain sessions between requests. I'm

Re: Is it possible to have more than one submit button in a JSP file?

2007-03-29 Thread org
Something like this In Form In servlet String sValueStart = request.getParameter("start"); //The one clicked will have a value String sValueStop = request.getParameter("stop"); //The one clicked will have a value Write reponse to Text Area etc... - Original Message - From: "T