Re: JK Connector SYN packet for established connection
Antonio Fiol Bonnín wrote, On 3/11/2004 11:11 PM: Tomcat will detect the closed connection and return that JK thread back to the pool for later use. It won't. If the firewall has already dropped the connection, Tomcat will not notice it being closed. OK, so if the conn is dropped, TC won't know what to do with it as it will sit there and wait forever for input. I can't find any options in the JK connectors to change the behavior of the server... The easy solution should be to add an option to enable keep alive on the server side as well. And as I said (and sources seem to agree with me ;-), socket_timeout is only checked synchronously, i.e. at usage time. So, maybe socket_timeout=10, but you may have connections staying up for ... as long as a whole night of deep inactivity. Good point, I did not think of that. In the morning, if you netstat on both machines, you will see a different number of ESTABLISHED connections. You will have more of them in the Tomcat side. And that is not good. Add up some nights, and you will have to restart your tomcat server in a couple of days / a week / a couple of weeks, depending on your MaxSpareClients (or equivalent) in your web server and your maxProcessors / maxThreads in Tomcat. Yeah, that's not good. Although it's better than having the server get stuck after only a few minutes of idle time. ;-) -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: redirect and request´s attributes doubts
Hello dudes, i´m trying to set some attributes to a request in my servlet, that´s pretty easy as you know, but after i must use redirect to a JSP page and when i try to recall those attributes created before they doesn´t appear in JSP´s request object. Even thought i set a request´s attribute and use redirect i cannot get it again, can i? The attributes you add to the request are added on the server. There is a request object on the server that you add attributes to. If you use sendRedirect, the client (browser) receives a redirect response from the server (status code 3xx), with the location to redirect to. The client then creates a _new_ request for the new url and sends it to the server. The server creates a new HttpServletRequest object for you that has nothing to do with the old object. Regards, Ronald. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
errorPage and jdom
Hi All, I am facing a problem as soon as i include jdom.jar (which i have download from http://www.jdom.org/dist/binary/) my %@ page errorPage% and error-page do not display anything in the browser.Even though the files pointed by them are getting processed - as i can see that on the console. Is there some way around this problem. I need to have jdom.jar as it is required by my application This was working fine in Tomcat 4.0.1. Thanks, Gaurav Kadyan
RE: Dump HTTP Request and Response Headers
Dear folks, How could i dump HTTP Response and Request headers. Im using Apache 1.3 and Tomcat 4.0 MOD_JK. For Mozilla you have a tool called Live HTTP Headers (http://livehttpheaders.mozdev.org/) that does exactly what you want. You install it into Mozilla and it shows you the headers that are sent and received by the browser. Undoubtedly for IE there exist similar tools. Regards, Ronald. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk2 with multiple tomcats
Just create extra worker declarations on workers2.properties on different ports. -Original Message- From: Randy Harrison [mailto:[EMAIL PROTECTED] Sent: 11 March 2004 20:56 To: Tomcat Users List Subject: mod_jk2 with multiple tomcats Hi all, I'm currently using apache2 + mod_jk2 + tomcat 5 with no problems. I'd like to be able to connect to other instances of tomcat, including tomcat 4. Does anyone know of any good documentation regarding this? Thanks! Randy Harrison Edson Alves Pereira [EMAIL PROTECTED]To: 'Tomcat-User List' [EMAIL PROTECTED] ano.com.br cc: Subject: doubts about attributes 03/11/2004 03:05 PM Please respond to Tomcat Users List Hello dudes, i´m trying to set some attributes to a request in my servlet, that´s pretty easy as you know, but after i must use redirect to a JSP page and when i try to recall those attributes created before they doesn´t appear in JSP´s request object. Even thought i set a request´s attribute and use redirect i cannot get it again, can i? Regards, Edson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. Note:__ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs.
Re: Dump HTTP Request and Response Headers
On 03/12/2004 06:05 AM mganesh wrote: Dear folks, How could i dump HTTP Response and Request headers. Im using Apache 1.3 and Tomcat 4.0 MOD_JK. Hi Ganesh, if you are talking client-side, then there is an excellent extension for Firefox browser called HTTP headers. I expect there's something similar for IE as well but I don't recall anything at the mo'. Server-side, it's easy for request headers - you can getHeaders() to obtain an Enumeration of them. But for the response headers, it's only possible to see what they are if you already know what you are looking for (response.containsHeader()?) If you look in the archives, someone one mentioned a logging tool that sounded handy. Some sort of snooper it sounded like. Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Java Hosting
On 03/12/2004 08:49 AM Andi Reinbrech wrote: The next best thing since sliced bread is UML (no, not drawings of stickmen) User Mode Linux. Some hosting companies give you a Linux VM with full root telnet access. You can do with it whatever you want, install Tomcat, install JDK, PostgreSQL - whatever tickles your fancy. You can reboot whenever you want etc. Yes, +1 from me. I've been using UML at www.memset.co.uk for 3 months so far without the slightest glitch. I couldn't live without my root access :) Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to configure to give access to clients
Hallo, I am a newbie for tomcat 4.1.29.I have deployed tomcat4.1.29 successfully.The help I need is how to cofigure tomcat to give access to a client .I have configured only to localhost. Thankx in advance . regards Mano Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more.
RE: Strange exception at tomcat 4.1.29 startup
I think they are, because it finds the commons-digester.jar! In fact I use both CATALINA_BASE and CATALINA_HOME, but Catalina.jar is in the same directory with the same permissions as commons-digester.jar, which is used, clearly. 'can't understand. For those interested, someone added old (very old) tomcat classes (3.3a) to the jre/lib/ext directory of the SDK installation for another application. So, those classes were loaded first, and made a conflict. Just wait a minute, I have someone to kill, 'will be back later. François (bofh). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dump HTTP Request and Response Headers
One tomcat tool is the RequestDumperValve. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/valve.html (The doc is a bit sparse, so it needs some testing what is logged and if that is enough) -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 10:24 AM To: Tomcat Users List Subject: Re: Dump HTTP Request and Response Headers Server-side, it's easy for request headers - you can getHeaders() to obtain an Enumeration of them. But for the response headers, it's only possible to see what they are if you already know what you are looking for (response.containsHeader()?) If you look in the archives, someone one mentioned a logging tool that sounded handy. Some sort of snooper it sounded like. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to configure to give access to clients
what type of access? On Fri, 12 Mar 2004, xavier manohar wrote: Date: Fri, 12 Mar 2004 09:32:43 + (GMT) From: xavier manohar [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: how to configure to give access to clients Hallo, I am a newbie for tomcat 4.1.29.I have deployed tomcat4.1.29 successfully.The help I need is how to cofigure tomcat to give access to a client .I have configured only to localhost. Thankx in advance . regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to configure to give access to clients
Hallo Alex, I want to develop an application that I am working in a client and should have access to the main server.Where should I jsp files and compile it .can u understand .I am confused. regards' Mano Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more.
Hallo mr Alex how to configure to give access to clients
Hallo Alex, I want to develop an application that I am working in a client and should have access to the main server.Where should I save the jsp files and compile it .can u understand .I am confused. regards' Mano Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more.
Re: Java Hosting
Yes, +1 from me. I've been using UML at www.memset.co.uk for 3 months so far without the slightest glitch. I couldn't live without my root access :) I notice that memset.co.uk charge £9.60/year for the registration of .com domains. This is significantly lower than anywhere else. The cheapest I have found is £39.99 without hosting involved. Do you actually own the domain or do they look after it for you? -- Graham Reeds, [EMAIL PROTECTED] | http://omnieng.co.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Java Hosting
For simple domain registration £9.60 is expensive :). www.namecheap.com offer domain registration for $8.99 with dynamic DNS and a host of other goodies. -Original Message- From: Graham Reeds [mailto:[EMAIL PROTECTED] Sent: 12 March 2004 10:19 To: Tomcat Users List Subject: Re: Java Hosting Yes, +1 from me. I've been using UML at www.memset.co.uk for 3 months so far without the slightest glitch. I couldn't live without my root access :) I notice that memset.co.uk charge £9.60/year for the registration of .com domains. This is significantly lower than anywhere else. The cheapest I have found is £39.99 without hosting involved. Do you actually own the domain or do they look after it for you? -- Graham Reeds, [EMAIL PROTECTED] | http://omnieng.co.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. Note:__ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs.
Re: [Tomcat Monitor] alpha version ready
Peter Lin wrote: Latest screen shot http://cvs.apache.org/~woolfel/alpha-mon-cap.png http://tao.altern8.net/jmeter-mon.zip I've tested it quite a bit today. This weekend I plan to run a long-ish test and let the monitor run for 48+ hours to see if memory consumption grows. So far for short durations 30 min, the memory usage remains flat. What it is capable of doing. 1. monitor multiple servers a. add new thread group with 1 thread b. add constant timer c. add config element - authentication d. add http sampler e. check use as monitor 2. it will display the health of the servers in the Health tab 3. it will display the heart beat a.k.a performance history 4. you can stop and clear the results I tried to get all the bugs out I can. I'm hoping people will give it a try. Especially those who have a staging environment with many servers or people working on clustering. to use it, you need to be using a nightly snapshot of TC5 from this week. As usual, send all comments to me directly. Good :) There's a problem: the path to Java is hardcoded in the .bat script. You should use JAVA_HOME instead, I think. It works well enough otherwise, but I dont understand what the memory graph represents ? The percentage of free mem ? (in which case the load should increase when it goes down) I found the graph page to be quite slow to display (and made my computer sluggish - obviously my setup wasn't optimal as everything was running on one machine: TC, ab and JMeter), could this be improved a bit ? I think this will work with JBoss as well, but not with the current JB 3.2.4-RC1 (which includes TC 5.0.19). The next releases (incl JB 4 DR 3) will have all the needed fixes to XML output. -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Setting page content Type
Hi, I'm looking at internationalizing a series of pages, which cover different character sets. I've been planning to store the content type value in a properties files along wit hthe rest of the internationalized text, but I've run into some problems. I have been experiementing with jsp:directive.page contentType=... / @ page contentType=... / but none of them seem to be able to take a variable value for contentType, e.g. c:set fmt:message key=contentType/ /c:set %@ page contentType=${pageContentType} % or jsp:directive.page contentType=jsp:expressioncontentType/jsp:expression / Neither of them support EL, or sxpressions in the statement. Are there any plans to make these tags EL enabled? In the meantime I guess I'll have to look at filters. Cheers, Keith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Java Hosting
www.domainsite.com At $6.99 a year it's hard to beat. I haven't found a better deal with all the features they offer. Doug www.parsonstechnical.com - Original Message - From: Yiannis Mavroukakis [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, March 12, 2004 5:39 AM Subject: RE: Java Hosting For simple domain registration £9.60 is expensive :). www.namecheap.com offer domain registration for $8.99 with dynamic DNS and a host of other goodies. -Original Message- From: Graham Reeds [mailto:[EMAIL PROTECTED] Sent: 12 March 2004 10:19 To: Tomcat Users List Subject: Re: Java Hosting Yes, +1 from me. I've been using UML at www.memset.co.uk for 3 months so far without the slightest glitch. I couldn't live without my root access :) I notice that memset.co.uk charge £9.60/year for the registration of .com domains. This is significantly lower than anywhere else. The cheapest I have found is £39.99 without hosting involved. Do you actually own the domain or do they look after it for you? -- Graham Reeds, [EMAIL PROTECTED] | http://omnieng.co.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. Note:__ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Java Hosting
On 03/12/2004 11:19 AM Graham Reeds wrote: Yes, +1 from me. I've been using UML at www.memset.co.uk for 3 months so far without the slightest glitch. I couldn't live without my root access :) I notice that memset.co.uk charge £9.60/year for the registration of .com domains. This is significantly lower than anywhere else. The cheapest I have found is £39.99 without hosting involved. Do you actually own the domain or do they look after it for you? Don't know, sorry. I have my domain name from a different company entirely. I could find out easily enough, but what's the difference? Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Setting page content Type
I have been experiementing with jsp:directive.page contentType=... / @ page contentType=... / but none of them seem to be able to take a variable value for contentType, These constructs will indeed not work (and they never will work in future versions either). The constructs you use are directives (the first one in XML syntax, the second in JSP syntax). Directives are interpreted at page translation time. The tags you attempt to use are not executed at page translation time but at page execution time (when a request is received for the page). Directives can not have variables as attributes, since the value of these variables can never be known at the time the page is translated to a servlet. Regards, Ronald. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setting page content Type
On 03/12/2004 12:23 PM Keith Hyland wrote: I'm looking at internationalizing a series of pages, which cover different character sets. I've been planning to store the content type value in a properties files along wit hthe rest of the internationalized text, but I've run into some problems. I have been experiementing with jsp:directive.page contentType=... / @ page contentType=... / but none of them seem to be able to take a variable value for contentType, e.g. c:set fmt:message key=contentType/ /c:set %@ page contentType=${pageContentType} % or jsp:directive.page contentType=jsp:expressioncontentType/jsp:expression / Neither of them support EL, or sxpressions in the statement. Are there any plans to make these tags EL enabled? In the meantime I guess I'll have to look at filters. If you are using TC5, there is more flexibility for configuring the content-type and character-set, especially with JSTL standard taglibs. Regarding dynamic variables for JSP directives, it doesn't sound very plausible. You can map content-type to locales in your web.xml, and you can set it with fmt: tags, so I would say you'd be better off examining these methods first. I guess it also depends on how you are going to set the locale in the first place - is it a user choice or browser-setting dependent, or an application definition? Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error sending mail from web after upgrading from tomcat 4.0.4 to 5.0.18
Hello, I upgraded my webserver from 4.0.4 to 5.0.18 but now the script I used to send emails from a webpage doesn't work any more: This is the error I get: - An error occurred at line: 2 in the jsp file: /inviaIscrizione.jsp Generated servlet error: [javac] Compiling 1 source file /usr/jakarta-tomcat-5.0.18/work/Catalina/www.carriavela-rc.com/_/org/apa che/jsp/inviaIscrizione_jsp.java:7: package javax.mail does not exist import javax.mail.*; ^ /usr/jakarta-tomcat-5.0.18/work/Catalina/www.carriavela-rc.com/_/org/apa che/jsp/inviaIscrizione_jsp.java:8: package javax.mail.internet does not exist import javax.mail.internet.*; ^ /usr/jakarta-tomcat-5.0.18/work/Catalina/www.carriavela-rc.com/_/org/apa che/jsp/inviaIscrizione_jsp.java:51: cannot resolve symbol symbol : class Session location: class org.apache.jsp.inviaIscrizione_jsp Session sendMailSession; ^ - Any hints? Simone - Simone Chiaretta www.piyosailing.com/S Any sufficiently advanced technology is indistinguishable from magic Life is short, play hard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Java Hosting
Don't know, sorry. I have my domain name from a different company entirely. I could find out easily enough, but what's the difference? The difference is that if I don't like the hosting and decide to go elsewhere or start my own hosting of the domain I can ask that that they change the DNS accordingly. However if they actually own the domain for the purposes of hosting my website they can decide not to relinquish the domain or charge a fortune for it (technically referred to as 'shafting you'). I've emailed them asking to clarify and also asked for the response to be sent to my home address so I won't be able to inform this list until monday. I am hoping it is the former as a tenner is good value for money. Currently I am with http://easily.co.uk and wished I read the small print and not just gone with a recommendation from a friend. G. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
R: Error sending mail from web after upgrading from tomcat 4.0.4 to 5.0.18
Fixed I forgot to copy in the common/lib Mail.jar Activation.jar Simone - Simone Chiaretta www.piyosailing.com/S Any sufficiently advanced technology is indistinguishable from magic Life is short, play hard -Messaggio originale- Da: Simone - Dev [mailto:[EMAIL PROTECTED] Inviato: venerdì 12 marzo 2004 14.03 A: '[EMAIL PROTECTED]' Oggetto: Error sending mail from web after upgrading from tomcat 4.0.4 to 5.0.18 Hello, I upgraded my webserver from 4.0.4 to 5.0.18 but now the script I used to send emails from a webpage doesn't work any more: This is the error I get: - An error occurred at line: 2 in the jsp file: /inviaIscrizione.jsp Generated servlet error: [javac] Compiling 1 source file /usr/jakarta-tomcat-5.0.18/work/Catalina/www.carriavela-rc.com /_/org/apache/jsp/inviaIscrizione_jsp.java:7: package javax.mail does not exist import javax.mail.*; ^ /usr/jakarta-tomcat-5.0.18/work/Catalina/www.carriavela-rc.com /_/org/apache/jsp/inviaIscrizione_jsp.java:8: package javax.mail.internet does not exist import javax.mail.internet.*; ^ /usr/jakarta-tomcat-5.0.18/work/Catalina/www.carriavela-rc.com /_/org/apache/jsp/inviaIscrizione_jsp.java:51: cannot resolve symbol symbol : class Session location: class org.apache.jsp.inviaIscrizione_jsp Session sendMailSession; ^ - Any hints? Simone - Simone Chiaretta www.piyosailing.com/S Any sufficiently advanced technology is indistinguishable from magic Life is short, play hard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: international filenames inaccessible
I would like Tomcat to be able to serve a file named http://www.whatever.com/b%f8ger.html (note the international character %f8 in the name) As several people have mentioned, it takes some additional Tomcat configuration to make this work. Unfortunately I have not been able to make it work yet. My assumption is that Tomcat transforms the %f8 character into a Unicode Java character before requesting a file of that Unicode name from the file system. My Tomcat 4.1.27 is installed on a Windows XP PC, and the default file encoding is (as most of you know) Cp1252. What I don't know, is if I need to take that into account - I do not know if the file encoding is both a file and file name encoding. I am thinking the attribute useBodyEncodingForURI should be set to false (though I tried both) since I do not want to make Tomcat's success depend on what browsers put into the request headers. Do you have any comments on that? The files which are served are xhtml files with an ISO-8859-1 encoding. I have tried setting URIEncoding to both Cp1252 and UTF-8, but to no avail. Has anyone of you been able to make Tomcat serve such internationally named files from a PC? Which attribute settings did you use? Any suggestions to things I could try would be greatly appreciated! Randahl -Original Message- From: Edward Toro [mailto:[EMAIL PROTECTED] Sent: 11. marts 2004 19:47 To: Tomcat Users List Subject: RE: international filenames inaccessible It still seems incorrect for the server to decide which type of encoding to use. To support the portability of webapps, shouldn't each webapp decide its own encoding? Otherwise, once URIEncoding=UTF-8 is set, every webapp on the server has to send international characters in UTF-8. Instead, each webapp should specify the encoding it wants to use in a header. So the worthwhile change would be, as Yan said, to default the useBodyEncodingForURI to true. But if that only applies to the query string, then it only solves part of the problem. -ET -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED] Sent: Thursday, March 11, 2004 1:23 PM To: Tomcat Users List Subject: RE: international filenames inaccessible This has been discussed on tomcat-dev pretty thoroughly already. Tomcat 4.1.27 and earlier were hard coded to use UTF-8 for decoding URLs. This allowed you to easily develop a dependency on this feature and then later discover your webapp isn't portable. Tomcat 4.1.30 and 5.0.19 fix this by forcing you to change the default, which supports portability, to something that does not. Hence, no surprises with respect to portability. Note that URL query string encoding is affected by the useBodyEncodingForURI attribute. Tomcat 4.1.30 defaults this to true, to maintain the same behavior as prior Tomcat 4.1.x versions. In Tomcat 5.0.19 it defaults to false. If you try to serve some webapps that aren't using UTF-8 everywhere, you could be impacted by this. Cheers, Larry -Original Message- From: Edward Toro [mailto:[EMAIL PROTECTED] Sent: Thursday, March 11, 2004 12:58 PM To: Tomcat Users List Subject: RE: international filenames inaccessible Wow, that worked! The problem may actually be in Java rather than Tomcat. I set the DEBUG value to 1001 on a 5 server and a 4.1.18 server to check the request info. The call to getServletPath() returns a different value between 4.1.18 and the latest releases. I suppose previously Java did the decoding, but now the servlet is responsible for the decoding? Or maybe the newer servers specify ISO-8859-1 instead of letting Java do the work? It's really annoying that this value overrides the use of the file.encoding System property. A previous solution mentioned using that, but I couldn't get it to work. IMO, the server should be able to serve files with international file names without any extra configuration, especially since it used to do it before. UTF-8 is becoming the standard for international character transmission over the net, if it's not the standard already. And UTF-8 looks exactly like ASCII for all the values in the ASCII range. Is this something worth bringing up in the Tomcat-Dev group? -ET -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED] Sent: Thursday, March 11, 2004 12:36 PM To: Tomcat Users List Subject: RE: international filenames inaccessible See the uriEncoding attribute described at: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html The same attribute applies to Tomcat 4.1.30 as well. I'm not aware of any specs that guarantee behavior when using non-ASCII characters in the URL in this fashion, but it might work. Cheers, Larry -Original Message- From: Edward Toro [mailto:[EMAIL PROTECTED] Sent: Thursday, March 11, 2004 11:10 AM To: Tomcat Users List Subject: international filenames inaccessible Does anyone know if Tomcat 5 is
Re: [Tomcat Monitor] alpha version ready
Hi remy, there will be a delay in the graph, depending on the timer interval and response time. I'll test the graph component by itself and profile it. When I decrease the timer interval to 400ms, it works quite nicely. what's the specs of your machine. So far I've only tested it on m laptop. if you get a chance to try it against the nightly jboss, I'd love to hear how it went :) peter lin Remy Maucherat [EMAIL PROTECTED] wrote: Peter Lin wrote: Latest screen shot http://cvs.apache.org/~woolfel/alpha-mon-cap.png http://tao.altern8.net/jmeter-mon.zip I've tested it quite a bit today. This weekend I plan to run a long-ish test and let the monitor run for 48+ hours to see if memory consumption grows. So far for short durations 30 min, the memory usage remains flat. What it is capable of doing. 1. monitor multiple servers a. add new thread group with 1 thread b. add constant timer c. add config element - authentication d. add http sampler e. check use as monitor 2. it will display the health of the servers in the Health tab 3. it will display the heart beat a.k.a performance history 4. you can stop and clear the results I tried to get all the bugs out I can. I'm hoping people will give it a try. Especially those who have a staging environment with many servers or people working on clustering. to use it, you need to be using a nightly snapshot of TC5 from this week. As usual, send all comments to me directly. Good :) There's a problem: the path to Java is hardcoded in the .bat script. You should use JAVA_HOME instead, I think. It works well enough otherwise, but I dont understand what the memory graph represents ? The percentage of free mem ? (in which case the load should increase when it goes down) I found the graph page to be quite slow to display (and made my computer sluggish - obviously my setup wasn't optimal as everything was running on one machine: TC, ab and JMeter), could this be improved a bit ? I think this will work with JBoss as well, but not with the current JB 3.2.4-RC1 (which includes TC 5.0.19). The next releases (incl JB 4 DR 3) will have all the needed fixes to XML output. -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard
R: [Tomcat Monitor] alpha version ready
Sorry about the question, maybe I misses something But how can I setup Jmeter to monitor tomcat? Simone - Simone Chiaretta www.piyosailing.com/S Any sufficiently advanced technology is indistinguishable from magic Life is short, play hard -Messaggio originale- Da: Peter Lin [mailto:[EMAIL PROTECTED] Inviato: venerdì 12 marzo 2004 14.24 A: Tomcat Users List Oggetto: Re: [Tomcat Monitor] alpha version ready Hi remy, there will be a delay in the graph, depending on the timer interval and response time. I'll test the graph component by itself and profile it. When I decrease the timer interval to 400ms, it works quite nicely. what's the specs of your machine. So far I've only tested it on m laptop. if you get a chance to try it against the nightly jboss, I'd love to hear how it went :) peter lin Remy Maucherat [EMAIL PROTECTED] wrote: Peter Lin wrote: Latest screen shot http://cvs.apache.org/~woolfel/alpha-mon-cap.png http://tao.altern8.net/jmeter-mon.zip I've tested it quite a bit today. This weekend I plan to run a long-ish test and let the monitor run for 48+ hours to see if memory consumption grows. So far for short durations 30 min, the memory usage remains flat. What it is capable of doing. 1. monitor multiple servers a. add new thread group with 1 thread b. add constant timer c. add config element - authentication d. add http sampler e. check use as monitor 2. it will display the health of the servers in the Health tab 3. it will display the heart beat a.k.a performance history 4. you can stop and clear the results I tried to get all the bugs out I can. I'm hoping people will give it a try. Especially those who have a staging environment with many servers or people working on clustering. to use it, you need to be using a nightly snapshot of TC5 from this week. As usual, send all comments to me directly. Good :) There's a problem: the path to Java is hardcoded in the .bat script. You should use JAVA_HOME instead, I think. It works well enough otherwise, but I dont understand what the memory graph represents ? The percentage of free mem ? (in which case the load should increase when it goes down) I found the graph page to be quite slow to display (and made my computer sluggish - obviously my setup wasn't optimal as everything was running on one machine: TC, ab and JMeter), could this be improved a bit ? I think this will work with JBoss as well, but not with the current JB 3.2.4-RC1 (which includes TC 5.0.19). The next releases (incl JB 4 DR 3) will have all the needed fixes to XML output. -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: R: [Tomcat Monitor] alpha version ready
download the alpha from the URL I posted. Once I've commited it to JMeter CVS, you'll be able to get the nightly. Until then, you'll have to grab it off my server. change the JAVA_HOME in the jmeter.bat file and you should be able to run it. peter lin Simone - Dev [EMAIL PROTECTED] wrote: Sorry about the question, maybe I misses something But how can I setup Jmeter to monitor tomcat? Simone - Simone Chiaretta www.piyosailing.com/S Any sufficiently advanced technology is indistinguishable from magic Life is short, play hard -Messaggio originale- Da: Peter Lin [mailto:[EMAIL PROTECTED] Inviato: venerdì 12 marzo 2004 14.24 A: Tomcat Users List Oggetto: Re: [Tomcat Monitor] alpha version ready Hi remy, there will be a delay in the graph, depending on the timer interval and response time. I'll test the graph component by itself and profile it. When I decrease the timer interval to 400ms, it works quite nicely. what's the specs of your machine. So far I've only tested it on m laptop. if you get a chance to try it against the nightly jboss, I'd love to hear how it went :) peter lin Remy Maucherat wrote: Peter Lin wrote: Latest screen shot http://cvs.apache.org/~woolfel/alpha-mon-cap.png http://tao.altern8.net/jmeter-mon.zip I've tested it quite a bit today. This weekend I plan to run a long-ish test and let the monitor run for 48+ hours to see if memory consumption grows. So far for short durations 30 min, the memory usage remains flat. What it is capable of doing. 1. monitor multiple servers a. add new thread group with 1 thread b. add constant timer c. add config element - authentication d. add http sampler e. check use as monitor 2. it will display the health of the servers in the Health tab 3. it will display the heart beat a.k.a performance history 4. you can stop and clear the results I tried to get all the bugs out I can. I'm hoping people will give it a try. Especially those who have a staging environment with many servers or people working on clustering. to use it, you need to be using a nightly snapshot of TC5 from this week. As usual, send all comments to me directly. Good :) There's a problem: the path to Java is hardcoded in the .bat script. You should use JAVA_HOME instead, I think. It works well enough otherwise, but I dont understand what the memory graph represents ? The percentage of free mem ? (in which case the load should increase when it goes down) I found the graph page to be quite slow to display (and made my computer sluggish - obviously my setup wasn't optimal as everything was running on one machine: TC, ab and JMeter), could this be improved a bit ? I think this will work with JBoss as well, but not with the current JB 3.2.4-RC1 (which includes TC 5.0.19). The next releases (incl JB 4 DR 3) will have all the needed fixes to XML output. -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Search - Find what youre looking for faster.
RE: [Tomcat Monitor] alpha version ready
Hi, Sorry about the question, maybe I misses something But how can I setup Jmeter to monitor tomcat? You did miss something: search for Peter's posts over the past few days, and you'll see this is an in-development feature not yet available in the general JMeter releases. there will be a delay in the graph, depending on the timer interval and response time. I'll test the graph component by itself and profile it. When I decrease the timer interval to 400ms, it works quite nicely. what's the specs of your machine. So far I've only tested it on m laptop. Yeah, modifying the timer refresh from 5s to 1s worked nicely for me. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Strange exception at tomcat 4.1.29 startup
Hi, For those interested, someone added old (very old) tomcat classes (3.3a) to the jre/lib/ext directory of the SDK installation for another application. So, those classes were loaded first, and made a conflict. Just wait a minute, I have someone to kill, 'will be back later. Evil indeed. Please report on how the killing went! ;) And a good weekend to all, Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: international filenames inaccessible
I tried the new 5.0.19 and with it, everything works... however, I need to make it work with 4.1.27 too - is that possible? Randahl -Original Message- From: Randahl Fink Isaksen [mailto:[EMAIL PROTECTED] Sent: 12. marts 2004 14:14 To: 'Tomcat Users List' Subject: RE: international filenames inaccessible I would like Tomcat to be able to serve a file named http://www.whatever.com/b%f8ger.html (note the international character %f8 in the name) As several people have mentioned, it takes some additional Tomcat configuration to make this work. Unfortunately I have not been able to make it work yet. My assumption is that Tomcat transforms the %f8 character into a Unicode Java character before requesting a file of that Unicode name from the file system. My Tomcat 4.1.27 is installed on a Windows XP PC, and the default file encoding is (as most of you know) Cp1252. What I don't know, is if I need to take that into account - I do not know if the file encoding is both a file and file name encoding. I am thinking the attribute useBodyEncodingForURI should be set to false (though I tried both) since I do not want to make Tomcat's success depend on what browsers put into the request headers. Do you have any comments on that? The files which are served are xhtml files with an ISO-8859-1 encoding. I have tried setting URIEncoding to both Cp1252 and UTF-8, but to no avail. Has anyone of you been able to make Tomcat serve such internationally named files from a PC? Which attribute settings did you use? Any suggestions to things I could try would be greatly appreciated! Randahl -Original Message- From: Edward Toro [mailto:[EMAIL PROTECTED] Sent: 11. marts 2004 19:47 To: Tomcat Users List Subject: RE: international filenames inaccessible It still seems incorrect for the server to decide which type of encoding to use. To support the portability of webapps, shouldn't each webapp decide its own encoding? Otherwise, once URIEncoding=UTF-8 is set, every webapp on the server has to send international characters in UTF-8. Instead, each webapp should specify the encoding it wants to use in a header. So the worthwhile change would be, as Yan said, to default the useBodyEncodingForURI to true. But if that only applies to the query string, then it only solves part of the problem. -ET -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED] Sent: Thursday, March 11, 2004 1:23 PM To: Tomcat Users List Subject: RE: international filenames inaccessible This has been discussed on tomcat-dev pretty thoroughly already. Tomcat 4.1.27 and earlier were hard coded to use UTF-8 for decoding URLs. This allowed you to easily develop a dependency on this feature and then later discover your webapp isn't portable. Tomcat 4.1.30 and 5.0.19 fix this by forcing you to change the default, which supports portability, to something that does not. Hence, no surprises with respect to portability. Note that URL query string encoding is affected by the useBodyEncodingForURI attribute. Tomcat 4.1.30 defaults this to true, to maintain the same behavior as prior Tomcat 4.1.x versions. In Tomcat 5.0.19 it defaults to false. If you try to serve some webapps that aren't using UTF-8 everywhere, you could be impacted by this. Cheers, Larry -Original Message- From: Edward Toro [mailto:[EMAIL PROTECTED] Sent: Thursday, March 11, 2004 12:58 PM To: Tomcat Users List Subject: RE: international filenames inaccessible Wow, that worked! The problem may actually be in Java rather than Tomcat. I set the DEBUG value to 1001 on a 5 server and a 4.1.18 server to check the request info. The call to getServletPath() returns a different value between 4.1.18 and the latest releases. I suppose previously Java did the decoding, but now the servlet is responsible for the decoding? Or maybe the newer servers specify ISO-8859-1 instead of letting Java do the work? It's really annoying that this value overrides the use of the file.encoding System property. A previous solution mentioned using that, but I couldn't get it to work. IMO, the server should be able to serve files with international file names without any extra configuration, especially since it used to do it before. UTF-8 is becoming the standard for international character transmission over the net, if it's not the standard already. And UTF-8 looks exactly like ASCII for all the values in the ASCII range. Is this something worth bringing up in the Tomcat-Dev group? -ET -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED] Sent: Thursday, March 11, 2004 12:36 PM To: Tomcat Users List Subject: RE: international filenames inaccessible See the uriEncoding attribute described at: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html The same attribute applies to Tomcat 4.1.30 as well. I'm not aware of any specs that guarantee behavior when using
Re: Java Hosting
Correct me if I am wrong. If you registered a domain, you ARE the owner. A hosting company simply lets you park your domain at their company in order to host your web site. You can move it to any other hosting company as long as you don't have any long term contract that forbids that. - Original Message - From: Graham Reeds [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, March 12, 2004 07:06 AM Subject: Re: Java Hosting Don't know, sorry. I have my domain name from a different company entirely. I could find out easily enough, but what's the difference? The difference is that if I don't like the hosting and decide to go elsewhere or start my own hosting of the domain I can ask that that they change the DNS accordingly. However if they actually own the domain for the purposes of hosting my website they can decide not to relinquish the domain or charge a fortune for it (technically referred to as 'shafting you'). I've emailed them asking to clarify and also asked for the response to be sent to my home address so I won't be able to inform this list until monday. I am hoping it is the former as a tenner is good value for money. Currently I am with http://easily.co.uk and wished I read the small print and not just gone with a recommendation from a friend. G. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: Tomcat 5 and ajp13 working together
___ Join Excite! - http://www.excite.com The most personalized portal on the Web! ---BeginMessage--- X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: ID = 9a9bdcd97ee347f0f89c62b30b66bc15 Reply-to: [EMAIL PROTECTED] From: gimme change[EMAIL PROTECTED] MIME-Version: 1.0 X-Sender: [EMAIL PROTECTED] X-Mailer: PHP Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Bcc: To: [EMAIL PROTECTED] Date: Thu, 11 Mar 2004 11:25:19 -0500 Subject: Tomcat 5 and ajp13 working together Has anyone made tomcat5 work with ajp13? I am having problems making tomcat5 and ajp13 connectors working together well. I get the following error on startup: java.lang.NoClassDefFoundError: org/apache/catalina/connector/HttpRequestBase I can updated the catalina.jar with the appropriate needed classes, but then I get the following error: java.lang.AbstractMethodError: org.apache.ajp.tomcat4.Ajp13Request.getValveContext()Lorg/apache/catalina/ValveContext; This relates to the tomcat-jk.jar class. Of course the tomcat-jk.jar class does not have info related to ajp13 in the tomcat 5 download. So, I put the tomcat-jk.jar file from tomcat 4.1.30 in place. That gives the error above. Is it possible to make tomcat5 work with ajp13 connectors? All help is greatly appreciated! Thanks! ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! ---End Message--- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Java Hosting
They were nice enough to email me directly back with the answer: Just saw a link to your site while checking the messages on the Tomcat Users Lists. I saw that registering a .com domain name with you is significantly lower than everywhere else - £9.60 a year compared to most sites £50 - £100. Upon registration do I become the sole owner of the domain (ie.: 3 weeks after I purchase the domain I get a nice letter from ICAAN (or the UK equivalent - I've got a letter from them for another domain) saying that I now own it for a period of x months), or do you hold it for my use? You are the owner of any domains registered with us, yes. We are just the admin billing contacts. I am also curious to what Tomcat versions you use and what level access I have to the box running it. Tomcat version 4.1. If you are using a standard Web hosting package then you just have FTP access and access to the cPanel control panel. If you have your own Miniserver then you have full root access. I think I will be purchasing a domain tonight I do believe! G. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4 Clustering w/Session Replication Issue
Hi Filip, first let me thank you for your excellent replication code. Unfortunately, our current load balancing scheme does not guarantee session affinity. So, my requirements are to get session replication working across cluster in a non-sticky session environment. Through much research, I have seen some of your old source code, where it appeared you were considering replicating notes as well. I realize that this would force all notes to be serializable, and maybe that is why its not done. In the formauthenticator class, placing the original httprequest object in notes breaks the serializable model. My current workaround is to re-write the FormAuthenticator class to place the original http request info in session attributes, along with the Principal object. I am just hoping no other classes require these objects in the notes. Any thoughts or suggestions would be much appreciated! Filip Hanik (lists) [EMAIL PROTECTED] wrote:use sticky load balancing, that should do it Filip -Original Message- From: Walter Stokes [mailto:[EMAIL PROTECTED] Sent: Thursday, March 11, 2004 3:56 PM To: [EMAIL PROTECTED] Subject: Tomcat 4 Clustering w/Session Replication Issue I am experiencing a problem using software load balancer distributor (using round robin) to two Tomcat 4.1.24 instances running on the same machine. I am using the tomcat-replication.jar for in memory session replication. The context using session replication is also using a security-realm with form authentication. When the initial http request comes into server1, security constraint forces browser to my custom login form page. The submit of form(POST of j_security_check) then hits the server2. User authentication is successful, however server2 doesn't have the original http request. So he doesn't know the original URL to redirect to. This appears to happen b/c Tomcat places the original httprequest into the notes collection of the catalina session object. The notes collection doesn't appear to be replicated between servers. So, the second server doesn't have the original url. It looks like the principal gets replicated, along with all session attributes. So, the problem only happens at login. Meaning once the user is authenticated and redirected by the same server, I can switch servers successfully. From further testing, it looks like the same situation exists in Tomcat 5 with clustering code. I am wondering is this a known issue or if it should be considered an issue. Any configuration fixes or workarounds would be helpful. Thanks for your time! - Do you Yahoo!? Yahoo! Search - Find what youre looking for faster. --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.614 / Virus Database: 393 - Release Date: 3/5/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.614 / Virus Database: 393 - Release Date: 3/5/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Search - Find what youre looking for faster.
Re: Setting page content Type
Thanks for the replies, The locale will default to the users browser setting initially, but can also be selected (I have a filter that will dectect this parameter and set the locale in the javax.servlet.jsp.jstl.core.Config class), as well as stored in a cookie for future visits. I didn't know about the local-encoding-mapping-list settings in web.xml though, so I'll look into that. Keith Adam Hardy wrote on 12/03/2004, 12:55: On 03/12/2004 12:23 PM Keith Hyland wrote: I'm looking at internationalizing a series of pages, which cover different character sets. I've been planning to store the content type value in a properties files along wit hthe rest of the internationalized text, but I've run into some problems. I have been experiementing with jsp:directive.page contentType=... / @ page contentType=... / but none of them seem to be able to take a variable value for contentType, e.g. c:set fmt:message key=contentType/ /c:set %@ page contentType=${pageContentType} % or jsp:directive.page contentType=jsp:expressioncontentType/jsp:expression / Neither of them support EL, or sxpressions in the statement. Are there any plans to make these tags EL enabled? In the meantime I guess I'll have to look at filters. If you are using TC5, there is more flexibility for configuring the content-type and character-set, especially with JSTL standard taglibs. Regarding dynamic variables for JSP directives, it doesn't sound very plausible. You can map content-type to locales in your web.xml, and you can set it with fmt: tags, so I would say you'd be better off examining these methods first. I guess it also depends on how you are going to set the locale in the first place - is it a user choice or browser-setting dependent, or an application definition? Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
transitioning from non-logged in to logged in using security constraint....
What does tomcat do to ensure that you're logged in while using the j_security_check ? We're trying to transition users from non-logged in to logged in, but we've got a fair amt. of portions of the site that should be accessible from both states (non-logged in and logged in) Is there something, programmatically, that's done, or is it something that tomcat simply places in the user's session? any advice or direction to the location in the API would be great. thanks __ Do you Yahoo!? Yahoo! Search - Find what youre looking for faster http://search.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk errors when using tomcat 5 and apache
Hi, I still don't hear any comments about that mod_jk error? Does that mean none of the users on the mailling list have this problem? Galam [EMAIL PROTECTED] wrote:Hi, I have a few questions concerning running Apache 1.3.29 and Tomcat5 in a virtual hosting enviroment. The tomcat5 server runs fine, and I can access the sites using the browser. The only problem is that I got lots of errors in the mod_jk.log. I've attached the logs and my configuration in server.xml and workers.properties. I've been googling for a whole day but I still couldn't find an answer... It seems that there is no official solution to this problem. If anyone of you have the same experiences and have the problems resolved, please share your thougths with us. Thanks! Another question I want to ask is that there are JK and JK2 connectors, which one should I use to connect tomcat5 to Apache1.3.29? The mod_jk.so I used came from Tomcat4.0.3, I am not sure whether it is compatible with Tomcat5. The output from catalina.out log is complaining about the channel sockets, but the channel sockets only appears in the JK2 property files, not the JK one. Is it possible that the Apache use the wrong JK to talk to Tomcat? Any helps will be greately appreciated! Thanks! -- mod_jk log [Thu Mar 11 09:44:48 2004] [jk_ajp_common.c (651)]: ajp_connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Thu Mar 11 09:44:48 2004] [jk_ajp_common.c (1009)]: Error reading reply [Thu Mar 11 09:44:48 2004] [jk_ajp_common.c (1146)]: In jk_endpoint_t::service, ajp_get_reply failed in send loop 0 tomcat 5 log Total number of files loaded = 4335 Mar 11, 2004 8:44:15 AM org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached Mar 11, 2004 8:44:15 AM org.apache.jk.common.HandlerRequest invoke INFO: Unknown message 0 Mar 11, 2004 8:44:20 AM org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached Mar 11, 2004 8:44:20 AM org.apache.jk.common.HandlerRequest invoke INFO: Unknown message 0 Mar 11, 2004 8:44:25 AM org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached Mar 11, 2004 8:44:25 AM org.apache.jk.common.HandlerRequest invoke INFO: Unknown message 0 Mar 11, 2004 8:44:43 AM org.apache.jk.common.HandlerRequest decodeRequest WARNING: Error registering request Mar 11, 2004 8:44:48 AM org.apache.jk.common.HandlerRequest decodeRequest WARNING: Error registering request Mar 11, 2004 8:45:03 AM org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached Mar 11, 2004 8:45:03 AM org.apache.jk.common.HandlerRequest invoke INFO: Unknown message 0 Mar 11, 2004 8:45:12 AM org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached Mar 11, 2004 8:45:12 AM org.apache.jk.common.HandlerRequest invoke INFO: Unknown message 0 Mar 11, 2004 8:45:25 AM org.apache.jk.common.HandlerRequest decodeRequest WARNING: Error registering request java.lang.NullPointerException Here are my server.xml and workers.properties - server.xml (partial) maxProcessors=150 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ timestamp=true/ prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ sinclude(`/var/tomcat4/conf/sites.m4') workers.properties- worker.ajp12.port=8007 worker.ajp12.host=localhost worker.ajp12.type=ajp12 worker.ajp12.lbfactor=1 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 - Do you Yahoo!? Yahoo! Search - Find what youre looking for faster. - Do you Yahoo!? Yahoo! Search - Find what youre looking for faster.
RE: Tomcat 4 Clustering w/Session Replication Issue
your workaround will work fine, by putting the note in the session. good thinking :) Filip -Original Message- From: Walter Stokes [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 8:20 AM To: Tomcat Users List Subject: RE: Tomcat 4 Clustering w/Session Replication Issue Hi Filip, first let me thank you for your excellent replication code. Unfortunately, our current load balancing scheme does not guarantee session affinity. So, my requirements are to get session replication working across cluster in a non-sticky session environment. Through much research, I have seen some of your old source code, where it appeared you were considering replicating notes as well. I realize that this would force all notes to be serializable, and maybe that is why its not done. In the formauthenticator class, placing the original httprequest object in notes breaks the serializable model. My current workaround is to re-write the FormAuthenticator class to place the original http request info in session attributes, along with the Principal object. I am just hoping no other classes require these objects in the notes. Any thoughts or suggestions would be much appreciated! Filip Hanik (lists) [EMAIL PROTECTED] wrote:use sticky load balancing, that should do it Filip -Original Message- From: Walter Stokes [mailto:[EMAIL PROTECTED] Sent: Thursday, March 11, 2004 3:56 PM To: [EMAIL PROTECTED] Subject: Tomcat 4 Clustering w/Session Replication Issue I am experiencing a problem using software load balancer distributor (using round robin) to two Tomcat 4.1.24 instances running on the same machine. I am using the tomcat-replication.jar for in memory session replication. The context using session replication is also using a security-realm with form authentication. When the initial http request comes into server1, security constraint forces browser to my custom login form page. The submit of form(POST of j_security_check) then hits the server2. User authentication is successful, however server2 doesn't have the original http request. So he doesn't know the original URL to redirect to. This appears to happen b/c Tomcat places the original httprequest into the notes collection of the catalina session object. The notes collection doesn't appear to be replicated between servers. So, the second server doesn't have the original url. It looks like the principal gets replicated, along with all session attributes. So, the problem only happens at login. Meaning once the user is authenticated and redirected by the same server, I can switch servers successfully. From further testing, it looks like the same situation exists in Tomcat 5 with clustering code. I am wondering is this a known issue or if it should be considered an issue. Any configuration fixes or workarounds would be helpful. Thanks for your time! - Do you Yahoo!? Yahoo! Search - Find what youre looking for faster. --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.614 / Virus Database: 393 - Release Date: 3/5/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.614 / Virus Database: 393 - Release Date: 3/5/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Search - Find what youre looking for faster. --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.614 / Virus Database: 393 - Release Date: 3/5/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.614 / Virus Database: 393 - Release Date: 3/5/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Virtual hosts for single application context
Any ideas guys/gals? I have an application (CFMX) running under Tomcat 5.0.18 as a deployed war file within the ROOT folder i.e. $CATALINA_HOME/webapps/ROOT/ this all works perfectly and correcly parses all .cfm files. Now, I've created virtual hosts by adding the following in server.xml: Host name=website1.com debug=0 appBase=webapps Context path= docBase=website1 debug=0 reloadable=true/ /Host Host name=website2.com debug=0 appBase=webapps Context path= docBase=website2 debug=0 reloadable=true/ /Host This works, but the application (i.e. CFMX) doesn't parse the .cfm pages within the website1 and website2 folders. Is it possible to map multiple virtual hosts to a single application context so that the applications handles the page requests? Thanks, James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Import SSL keys into Tomcat 5.0.18 -- SSL handshake error
Greetings, I am trying to import an openssl key from a third party certificate authority, Geotrust (Equifax). I have used these keys successfully in an apache installation. So, I followed the key import process described for Tomcat on the Geotrust web site - http://www.geotrust.com/resources/install/jakarta_tomcat.htm However, tomcat 5.0.18 throws an exeception when I start up the HTTP/SSL listener: SSL handshake error - javax.net.ssl.SSLException: No available certificate corresponds to the SSL cipher suites which are enabled. Environment: 1) JDK 1.4.1_02 on Linux 2.4 kernel 2) Tomcat 5.0.18 3) OpenSSL 0.9.7a What I did: 1) Convert CAs cert and our server root cert (i.e., our domain public key) to binary (DED) format. 2) Import converted binary keys into a new java keystore (using keytool). 3) Add path to keystore.kdb file in tomcat server.xml, restart tomcat. Below are the specific commands (and output) I used to import keys and configure Tomcat. I have been using the PEM version of these keys in apache 2.x with no problems. I have contacted Geotrust and they do not seem to have an answer. Other posts to this list mostly show folks trying to set up SSL using their own CA certs. What have I missed? I appreciate any suggestions. Thanks Jeff --- details - 1) Convert pem keys to binary format: $ openssl x509 -in geotrustca.pem -inform PEM -outform DED -out geotrustca.crt $ openssl x509 -in mydomain.com.pem -inform PEM -outform DED -out mydomain.crt 2) Import binary keys into a new Java key store. I used Tomcat's default keystore password setting 'changeit'. Here's the commands and output: 2a) Geotrust root certificate: $ keytool -import -alias geotrustca -keystore /etc/cert/mydomain.kdb -file /etc/cert/geotrustca.crt Enter keystore password: changeit Owner: OU=Equifax Secure Certificate Authority, O=Equifax, C=US Issuer: OU=Equifax Secure Certificate Authority, O=Equifax, C=US Serial number: 35def4cf Valid from: Sat Aug 22 10:41:51 MDT 1998 until: Wed Aug 22 10:41:51 MDT 2018 Certificate fingerprints: MD5: 67:CB:9D:C0:13:24:8A:82:9B:B2:17:1E:D1:1B:EC:D4 SHA1: D2:32:09:AD:23:D3:14:23:21:74:E4:0D:7F:9D:62:13:97:86:63:3A Trust this certificate? [no]: yes Certificate was added to keystore 2b) Server root key (our public key): $ keytool -import -alias tomcat -keystore /etc/cert/mydomain.kdb -file /etc/cert/mydomain.crt Enter keystore password: changeit Certificate was added to keystore 2c) Here's the list of my keystore. $ keytool -list -keystore /etc/cert/mydomain.kdb Enter keystore password: changeit Keystore type: jks Keystore provider: SUN Your keystore contains 2 entries tomcat, Mar 9, 2004, trustedCertEntry, Certificate fingerprint (MD5): 1B:AE:BF:96:6C:3C:0A:C3:AE:3E:5A:46:94:CF:AF:0B geotrustca, Mar 9, 2004, trustedCertEntry, Certificate fingerprint (MD5): 67:CB:9D:C0:13:24:8A:82:9B:B2:17:1E:D1:1B:EC:D4 3) Update server.xml. Note we are using Tomcat 5, so the directive for the SSL connector syntax is different from that shown on the Geotrust web site instructions. Compared to the default connector parameters, I added the keystoreFile parameter to point to my kdb file created in step 2. Connector port=8443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=/etc/cert/mydomain.kdb / When I enable the SSL connector in my server.conf file and restart tomcat, logs show this exception: Mar 9, 2004 5:59:55 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket SEVERE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8443]] ignored exception: java.net.SocketException: SSL handshake errorjavax.net.ssl.SSLException: No available certificate corresponds to the SSL cipher suites which are enabled. java.net.SocketException: SSL handshake errorjavax.net.ssl.SSLException: No available certificate corresponds to the SSL cipher suites which are enabled. at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESocketFactory.java:154) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:387) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:557) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:536) Mar 9, 2004 5:59:55 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket WARNING: Reinitializing ServerSocket __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Filter chain
Is it possible to specify the sequence of filters being processed by the container? I have a checksession filter that throws a user object into the session and a second filter will gather statistics on requestsI want the checksession filter to be processed first Thanx Russ
RE: Filter chain
Hi, Is it possible to specify the sequence of filters being processed by the container? I have a checksession filter that throws a user object into the session and a second filter will gather statistics on requestsI want the checksession filter to be processed first The Servlet Spec is your friend. From SRC.6.2.4: The order the container uses in building the chain of filters to be applied for a particular request URI is as follows: 1. First, the url-pattern matching filter mappings in the same order that these elements appear in the deployment descriptor. 2. Next, the servlet-name matching filter mappings in the same order that these elements appear in the deployment descriptor. There is more in that section if you're interested. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
rotatable property on log file
Hi. I have set the rotatable property on the Tomcat AccessLog to false because I have my own mechanism for log rotation, and would prefer not to use tomcats. This works fine. However, I see that there is no rotatable property for FileLogger. Why would this be? Thanks, Jason. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Filter chain
Thanx, I must have over looked it ;) -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 10:44 AM To: Tomcat Users List Subject: RE: Filter chain Hi, Is it possible to specify the sequence of filters being processed by the container? I have a checksession filter that throws a user object into the session and a second filter will gather statistics on requestsI want the checksession filter to be processed first The Servlet Spec is your friend. From SRC.6.2.4: The order the container uses in building the chain of filters to be applied for a particular request URI is as follows: 1. First, the url-pattern matching filter mappings in the same order that these elements appear in the deployment descriptor. 2. Next, the servlet-name matching filter mappings in the same order that these elements appear in the deployment descriptor. There is more in that section if you're interested. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem with mod_jk 1.2: error in action code
Hello, I've got problems with a tomcat web application, that establishes a connection pool to a database (mysql). This connection pool is lost after an unspecified period of time the system wasn't used (f.e. 8 houres). I think the problem is due to the mod_jk connector between apache and tomcat. The web application is accessible over apache 1.3.27, that connects to tomcat 4.1.27 via jk connector mod_jk 1.2.25. The exception I got in catalina.out is: 10.03.2004 15:59:58 org.apache.jk.server.JkCoyoteHandler action SCHWERWIEGEND: Error in action code java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:407) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:599) at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:385) at org.apache.coyote.Response.action(Response.java:222) at org.apache.coyote.Response.finish(Response.java:343) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:268) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:562) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:619) at java.lang.Thread.run(Thread.java:534) 10.03.2004 15:59:58 org.apache.jk.common.ChannelSocket processConnection INFO: server has been restarted or reset this connection The HTTP connector defined in tomcats server.xml is: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=false redirectPort=8443 acceptCount=10 debug=5 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler scheme=http secure=false / The log in mod_jk.log shows the following: [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1052)]: ERROR sending data to client. Connection aborted or network problems [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems Here is the summary of my environment options: - tomcat 4.1.27 - apache 1.3.27 - mod_jk 1.2.25 - Suse Linux 7.2 - Java 2 RE Standard Edition, Version 1.4.1 (build Blackdown-1.4.1-01) My special problem is, that I'm not able to reproduce the error, it occurs after an unspecified period of time. I found nothing related to this problem. Any ideas? Thanks in advance M.Goerlich - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[NON DELIVERY NOTIFICATION]
This message was verified by the filtering system of our mail server. Original message was replaced by this one for the following reason: *** A suspicious file (executable code) was found in the message ! Original message had the following attached files: (X-FILE ??? ) : your_product.pif TYPE : application/octet-stream SUSPECT FILES : 1 Original message was sent by From : [EMAIL PROTECTED] If you did not send the original message, it is likely that it came to us with a forged header, and you can safely ignore this warning. If you think this is an error and the message should not be rejected by the filtering system, or if you have any questions, you can contact us: [EMAIL PROTECTED] Sincerely, [EMAIL PROTECTED] j-chkmail - (c) Ecole des Mines de Paris 2002 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: rotatable property on log file
Hi, I have set the rotatable property on the Tomcat AccessLog to false because I have my own mechanism for log rotation, and would prefer not to use tomcats. This works fine. However, I see that there is no rotatable property for FileLogger. Why would this be? They are different implementation: AccessLogValve is a Valve and contains its own rolling logic internally. FileLogger and the other Loggers do not contain this logic inside the class, but can be externally rotated. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with mod_jk 1.2: error in action code
Well I run in exactly the same environment except it's a RedHat 6.2 (-ish) box My server.xml is setup like so: !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=3 maxProcessors=15 acceptCount=10 debug=0/ The connector is setup like so: # BEGIN workers.properties worker.list=ajp13 worker.ajp13.port=8009 # change this line to match apache ServerName and Host name in server.xml worker.ajp13.host=www.whatever.com worker.ajp13.type=ajp13 # END workers.properties HTH. I can't see anything in your setup which instantly looks wrong but there appear to be some parameters which are unnessecary, although I'm not sure. Could it be anything to do with your timeout set to 0? Apart from that it looks like it could be something on the SQL side that's causing the problem. IMHO, have a glance at the sql server logs. Adam On Fri, 2004-03-12 at 15:53, Michael Grlich (CSC) wrote: Hello, I've got problems with a tomcat web application, that establishes a connection pool to a database (mysql). This connection pool is lost after an unspecified period of time the system wasn't used (f.e. 8 houres). I think the problem is due to the mod_jk connector between apache and tomcat. The web application is accessible over apache 1.3.27, that connects to tomcat 4.1.27 via jk connector mod_jk 1.2.25. The exception I got in catalina.out is: 10.03.2004 15:59:58 org.apache.jk.server.JkCoyoteHandler action SCHWERWIEGEND: Error in action code java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:407) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:599) at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:385) at org.apache.coyote.Response.action(Response.java:222) at org.apache.coyote.Response.finish(Response.java:343) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:268) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:562) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:619) at java.lang.Thread.run(Thread.java:534) 10.03.2004 15:59:58 org.apache.jk.common.ChannelSocket processConnection INFO: server has been restarted or reset this connection The HTTP connector defined in tomcats server.xml is: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=false redirectPort=8443 acceptCount=10 debug=5 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler scheme=http secure=false / The log in mod_jk.log shows the following: [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1052)]: ERROR sending data to client. Connection aborted or network problems [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems Here is the summary of my environment options: - tomcat 4.1.27 - apache 1.3.27 - mod_jk 1.2.25 - Suse Linux 7.2 - Java 2 RE Standard Edition, Version 1.4.1 (build Blackdown-1.4.1-01) My special problem is, that I'm not able to reproduce the error, it occurs after an unspecified period of time. I found nothing related to this problem. Any ideas? Thanks in advance M.Goerlich - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem with mod_jk 1.2: error in action code
I don't think that this message has anything to with the lost connection pool. (Do you really mean 'connection pool' and not just 'connection' ?) If you lose your connection, it may be caused by the databaseserver that cancels idle connections after a while. Look for validationQuery in: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html The message in the mod_jk.log is typically indication that a browser was closed while tomcat was sending an answer. I'm not shure if the message in catalina.out is related to that. -Original Message- From: Michael Görlich (CSC) [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 4:53 PM To: Tomcat Mailinglist Subject: problem with mod_jk 1.2: error in action code I've got problems with a tomcat web application, that establishes a connection pool to a database (mysql). This connection pool is lost after an unspecified period of time the system wasn't used (f.e. 8 houres). 10.03.2004 15:59:58 org.apache.jk.server.JkCoyoteHandler action SCHWERWIEGEND: Error in action code java.net.SocketException: Broken pipe The log in mod_jk.log shows the following: [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1052)]: ERROR sending data to client. Connection aborted or network problems [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem with mod_jk 1.2: error in action code
Yep I get the same errors quite often, apart from being annoying they do not cause any other issues, the error is what Ralph says it is. -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: 12 March 2004 16:14 To: Tomcat Users List Subject: RE: problem with mod_jk 1.2: error in action code I don't think that this message has anything to with the lost connection pool. (Do you really mean 'connection pool' and not just 'connection' ?) If you lose your connection, it may be caused by the databaseserver that cancels idle connections after a while. Look for validationQuery in: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html The message in the mod_jk.log is typically indication that a browser was closed while tomcat was sending an answer. I'm not shure if the message in catalina.out is related to that. -Original Message- From: Michael Görlich (CSC) [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 4:53 PM To: Tomcat Mailinglist Subject: problem with mod_jk 1.2: error in action code I've got problems with a tomcat web application, that establishes a connection pool to a database (mysql). This connection pool is lost after an unspecified period of time the system wasn't used (f.e. 8 houres). 10.03.2004 15:59:58 org.apache.jk.server.JkCoyoteHandler action SCHWERWIEGEND: Error in action code java.net.SocketException: Broken pipe The log in mod_jk.log shows the following: [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1052)]: ERROR sending data to client. Connection aborted or network problems [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. Note:__ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs.
Tomcat 5 -server option and log files
Hello, I am trying to get Tomcat 5 to work with the server jvm, but I am having some problems. First I tried adding -server to the java options in the configure Tomcat program. When I did that Tomcat wouldn't start. Then I set C:\j2sdk1.4.2_02\jre\bin\server\jvm.dll - This worked and using stress test tool I found a significant boost in my web application - However, once I set the JVM to this path I no longer get any output to the log files of Tomcat. Neither from Tomcat itself or from my own logging commands. So, my question is two fold: 1) What is the correct way to set the JVM to use Sun's server JVM? 2) How do I get log output after I do that? Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com
Re: JNDI Datasource Reference in DD Not Necessary?
All, I was just about to ask a question like this thread's today... glad I read the archives. ;) I have an intersting observation in Tomcat 4.1.29. I found that my resource-ref was misnamed in web.xml, so I decided to check it out. A long time ago, I wrote a quick-and-dirty JNDI browser to help me figure out these things. Using my JNDI browser, and looking at the path java:/comp/env/jdbc I find the following entries: * DSMstandard, class = org.apache.naming.ResourceLinkRef * diagnosis, class = org.apache.commons.dbcp.BasicDataSource (I have two DataSources configured -- I have to deal w/two DBs, so they're both there). It's odd that one of them shows up as a ResourceLinkRef and the other as a BasicDataSource. (I have no resource-ref elements in my web.xml, for testing). They were defined the same way in server.xml: GlobalNamingResources Resource name=jdbc/diagnosis auth=Container type=javax.sql.DataSource/ Resource name=jdbc/DSMstandard auth=Container type=javax.sql.DataSource/ (I'll spare you the details of the ResourceParams, but they are identical except for the name used). /GlobalNamingResources N.B.: I have my Resource declaration in GlobalNamingResources because I need to use it for my Realm. Apparently, Resources defined within a Context that will use it as a Realm don't work well -- at least this was my experience. I found that putting the resource in the global resources and then using a ResourceLink did the trick. Then, later, within the Context that will be using these, I had to add these: ResourceLink name=jdbc/diagnosis global=jdbc/diagnosis type=javax.sql.DataSource / ResourceLink name=jdbc/DSMstandard global=jdbc/DSMstandard type=javax.sql.DataSource / Why wouldn't I get both BasicDataSource objects, or both ResourceLinkRef objects? I thought it may have to do with the fact that I have the same name for the global reference and the local reference, so I changed the global references to jdbc/[dbname]-global and re-started. I got the exact same stuff in that JNDI context. Can anyone explain what's going on? Logically, I would expect the following: 1. Resource elements in the GlobalNamingResources would show up for all Contexts. If this is true, then why do I need ResourceLink in my context? 2. ResourceLink elements in a Context grant access to a globally-defined resource to that particular Context. Makes sense -- maybe you have a global resource for convenience, but it's a security issue to grant that resource to *any* webapp running on the server. So, if this is true, why don't I get two objects of type ResourceLinkRef in my context's JNDI namespace? Instead, I get one DataSource and one ResourceLinkRef. 3. resource-ref elements in web.xml should map the local name of a resource (the one you use from your webapp in JNDI lookups) to the resource mentioned in the Context's ResourceLink element. So, if all that's true, then here's what happens: Resource defines the canonical name for the resource. ResourceLink grants the resource to a particular webapp, possibly re-naming it in the process. (This should produce a ResourceLinkRef object in the JNDI namespace as seen by the webapp). resource-ref adds a 'local' reference name to a resource provided by the container. This should add another ResourceLinkRef (or something similar) to the JNDI namespace as seen by the webapp. Can someone comment on my logic, and show me where I'm making incorrect assumptions or missing some crucial detail? Thanks so much for helping me beat a dead horse. I really want to know what's going on. I'm *not* in a position where something's not working, so examples for getting things working aren't a ton of help (they pop up on the list often, and are in both Tomcat 4.x and 5.x JNDI HOWTOs). Thanks, -chris signature.asc Description: OpenPGP digital signature
Re: Java Hosting
Graham, when doing your cost calculation don't forget that the email pop3 server is extra - normally. Only a couple of quid a month, but still. Adam On 03/12/2004 03:12 PM Graham Reeds wrote: They were nice enough to email me directly back with the answer: Just saw a link to your site while checking the messages on the Tomcat Users Lists. I saw that registering a .com domain name with you is significantly lower than everywhere else - £9.60 a year compared to most sites £50 - £100. Upon registration do I become the sole owner of the domain (ie.: 3 weeks after I purchase the domain I get a nice letter from ICAAN (or the UK equivalent - I've got a letter from them for another domain) saying that I now own it for a period of x months), or do you hold it for my use? You are the owner of any domains registered with us, yes. We are just the admin billing contacts. I am also curious to what Tomcat versions you use and what level access I have to the box running it. Tomcat version 4.1. If you are using a standard Web hosting package then you just have FTP access and access to the cPanel control panel. If you have your own Miniserver then you have full root access. I think I will be purchasing a domain tonight I do believe! G. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: transitioning from non-logged in to logged in using security constraint....
On 03/12/2004 03:34 PM Paul Tomsic wrote: What does tomcat do to ensure that you're logged in while using the j_security_check ? We're trying to transition users from non-logged in to logged in, but we've got a fair amt. of portions of the site that should be accessible from both states (non-logged in and logged in) Is there something, programmatically, that's done, or is it something that tomcat simply places in the user's session? any advice or direction to the location in the API would be great. Paul, if you're logged in, request.getRemoteUser() returns the login name you gave. If you're not, it returns null. There's nothing in the session that is available to you with session.getAttribute(), if that's what your question was. Check out the java API for HttpServletRequest and ServletRequest. Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem with mod_jk 1.2: error in action code
when you specify the connection to mysql, are you including the 'autoreconnect=true' parameter? If not, the connections will be closed by mysql after (I think) 8 hrs. -Original Message- From: Michael Görlich (CSC) [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 9:53 AM To: Tomcat Mailinglist Subject: problem with mod_jk 1.2: error in action code Hello, I've got problems with a tomcat web application, that establishes a connection pool to a database (mysql). This connection pool is lost after an unspecified period of time the system wasn't used (f.e. 8 houres). I think the problem is due to the mod_jk connector between apache and tomcat. The web application is accessible over apache 1.3.27, that connects to tomcat 4.1.27 via jk connector mod_jk 1.2.25. The exception I got in catalina.out is: 10.03.2004 15:59:58 org.apache.jk.server.JkCoyoteHandler action SCHWERWIEGEND: Error in action code java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:407) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:599) at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:385) at org.apache.coyote.Response.action(Response.java:222) at org.apache.coyote.Response.finish(Response.java:343) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:268) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSo cket.java:562) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.jav a:619) at java.lang.Thread.run(Thread.java:534) 10.03.2004 15:59:58 org.apache.jk.common.ChannelSocket processConnection INFO: server has been restarted or reset this connection The HTTP connector defined in tomcats server.xml is: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=false redirectPort=8443 acceptCount=10 debug=5 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler scheme=http secure=false / The log in mod_jk.log shows the following: [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1052)]: ERROR sending data to client. Connection aborted or network problems [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems Here is the summary of my environment options: - tomcat 4.1.27 - apache 1.3.27 - mod_jk 1.2.25 - Suse Linux 7.2 - Java 2 RE Standard Edition, Version 1.4.1 (build Blackdown-1.4.1-01) My special problem is, that I'm not able to reproduce the error, it occurs after an unspecified period of time. I found nothing related to this problem. Any ideas? Thanks in advance M.Goerlich - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with mod_jk 1.2: error in action code
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike Curwen wrote: when you specify the connection to mysql, are you including the 'autoreconnect=true' parameter? If not, the connections will be closed by mysql after (I think) 8 hrs. I wish I could kill the 'autoReconnect' feature. You shouldn't be using it if you're using a connection pool :) Use the correct properties on your connection pool and you should be good to go. For example, setting 'timeBetweenEvictionRunsMillis' (set to some sensible number of milliseconds, I would suggest something around 5 minutes) and 'minEvictableIdleTimeMillis' (set to the number of milliseconds you have 'wait_timeout' set to on the server minus some %) should catch MySQL closing idle connections. Setting 'validationQuery' (set to 'SELECT 1') and 'testOnBorrow' or 'testOnReturn' should catch MySQL server restarts or general network flakiness. In any case, you should also see the new example in the troubleshooting section of the Connector/J docs that shows how your code can also detect whether a SQLException was caused by a lost connection, or some other error (section 4.4 under the following link): http://www.mysql.com/documentation/connector-j/index.html#id2803835 -Mark (the guy who wrote the 'autoReconnect' functionality, and now wishes he could remove it from the JDBC driver) - -- Mr. Mark Matthews MySQL AB, Software Development Manager, J2EE and Windows Platforms Office: +1 708 332 0507 www.mysql.com Meet the MySQL Team! April 14-16, 2004 http://www.mysql.com/uc2004/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.3 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFAUe8FtvXNTca6JD8RAmpmAJ0Wq/1rT/Fcw40H4fB1/g8UmheonACbBYwU mpRzou4Jb2yXUsGSNooLCKs= =DW3u -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with mod_jk 1.2: error in action code
All, when you specify the connection to mysql, are you including the 'autoreconnect=true' parameter? If not, the connections will be closed by mysql after (I think) 8 hrs. I'm not sure why everyne's caught up in database connection code. This is a Coyote connector exception -- which is the HTTP/1.1 protocol connector. It allows you to connect directly to Tomcat using a browser, instead of going through Apache. Usually the Broken Pipe means the the client hung up before listening for all the data. That could mean pressing the STOP button on the browser, following another link before the page fully loads, or pressing the back button. I wouldn't worry too much about it, unless your users are somehow being affected. -chris -Original Message- From: Michael Görlich (CSC) [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 9:53 AM To: Tomcat Mailinglist Subject: problem with mod_jk 1.2: error in action code Hello, I've got problems with a tomcat web application, that establishes a connection pool to a database (mysql). This connection pool is lost after an unspecified period of time the system wasn't used (f.e. 8 houres). I think the problem is due to the mod_jk connector between apache and tomcat. The web application is accessible over apache 1.3.27, that connects to tomcat 4.1.27 via jk connector mod_jk 1.2.25. The exception I got in catalina.out is: 10.03.2004 15:59:58 org.apache.jk.server.JkCoyoteHandler action SCHWERWIEGEND: Error in action code java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:407) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:599) at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:385) at org.apache.coyote.Response.action(Response.java:222) at org.apache.coyote.Response.finish(Response.java:343) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:268) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSo cket.java:562) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.jav a:619) at java.lang.Thread.run(Thread.java:534) 10.03.2004 15:59:58 org.apache.jk.common.ChannelSocket processConnection INFO: server has been restarted or reset this connection The HTTP connector defined in tomcats server.xml is: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=false redirectPort=8443 acceptCount=10 debug=5 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler scheme=http secure=false / The log in mod_jk.log shows the following: [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1052)]: ERROR sending data to client. Connection aborted or network problems [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems Here is the summary of my environment options: - tomcat 4.1.27 - apache 1.3.27 - mod_jk 1.2.25 - Suse Linux 7.2 - Java 2 RE Standard Edition, Version 1.4.1 (build Blackdown-1.4.1-01) My special problem is, that I'm not able to reproduce the error, it occurs after an unspecified period of time. I found nothing related to this problem. Any ideas? Thanks in advance M.Goerlich - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] signature.asc Description: OpenPGP digital signature
RE: problem with mod_jk 1.2: error in action code
So is autoReconnectForPools a hack to use with autoReconnect? -Original Message- From: Mark Matthews [mailto:[EMAIL PROTECTED] Sent: 12 March 2004 17:11 To: Tomcat Users List Subject: Re: problem with mod_jk 1.2: error in action code -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike Curwen wrote: when you specify the connection to mysql, are you including the 'autoreconnect=true' parameter? If not, the connections will be closed by mysql after (I think) 8 hrs. I wish I could kill the 'autoReconnect' feature. You shouldn't be using it if you're using a connection pool :) Use the correct properties on your connection pool and you should be good to go. For example, setting 'timeBetweenEvictionRunsMillis' (set to some sensible number of milliseconds, I would suggest something around 5 minutes) and 'minEvictableIdleTimeMillis' (set to the number of milliseconds you have 'wait_timeout' set to on the server minus some %) should catch MySQL closing idle connections. Setting 'validationQuery' (set to 'SELECT 1') and 'testOnBorrow' or 'testOnReturn' should catch MySQL server restarts or general network flakiness. In any case, you should also see the new example in the troubleshooting section of the Connector/J docs that shows how your code can also detect whether a SQLException was caused by a lost connection, or some other error (section 4.4 under the following link): http://www.mysql.com/documentation/connector-j/index.html#id2803835 -Mark (the guy who wrote the 'autoReconnect' functionality, and now wishes he could remove it from the JDBC driver) - -- Mr. Mark Matthews MySQL AB, Software Development Manager, J2EE and Windows Platforms Office: +1 708 332 0507 www.mysql.com Meet the MySQL Team! April 14-16, 2004 http://www.mysql.com/uc2004/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.3 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFAUe8FtvXNTca6JD8RAmpmAJ0Wq/1rT/Fcw40H4fB1/g8UmheonACbBYwU mpRzou4Jb2yXUsGSNooLCKs= =DW3u -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. Note:__ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs.
JAAS: Where does role information go in a Subject?
I'm implementing a JAAS login mechanism in my app, not as a Realm but via Struts Action classes. In my loginModule, I am creating the Subject with principals and credentials and want to store role information. Where does Tomcat expect a list of roles to be in the Subject? I Haven't been able to figure this out. I want to make sure that in the future I can use features that check request.isUserInRole(roleName). Also, within the session object, should the Subject be cached under 'subject_key'? I found this somewhere but am unsure about it. Thanks, Alan
Re: HTTPS on Tomcat
You need to change the security constraint settings in the web.xml of the application that needs redirection. Read the web.xml DTD for more information. [EMAIL PROTECTED] 03/11/04 07:37PM Hi, I wanted to have the default page running on 80 port and when the user logs in, I need him to be in 443 port. I have made all the settings but I need a clarification on how to redirect the user who has logged in using 80 port to 443 port. How is this generally handled in realtime. Do I need 2 instances of the tomcat running? If so how? Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
can not shutdown tomcat from shutdown.sh (V4.06)
Hi guys: I am using tomcat 4.06 /AIX, after added some servlet in the web.xml , I can not shutdown the tomcat by using shutdown.sh command. the process still runing in the Unix. and I have to use kill -9 to stop the tomcat process. the servlet I added is very simple , it initialize my jdbc connection pool and create some shared objects. Can any one give me some hints ? Thanks and regards. Kevin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: can not shutdown tomcat from shutdown.sh (V4.06)
Hi, I am using tomcat 4.06 /AIX, after added some servlet in the web.xml , I can not shutdown the tomcat by using shutdown.sh command. the process still runing in the Unix. and I have to use kill -9 to stop the tomcat process. the servlet I added is very simple , it initialize my jdbc connection pool and create some shared objects. Can any one give me some hints ? The day people start searching the archives of this list before posting, I will be a happier man indeed. Your servlet or code it uses is spawning non-daemon threads. You are responsible for interrupting and terminating those threads, as tomcat and the JVM cannot do it for you. Alternatively, if it's your own, you mark the threads as daemons so that the JVM will automatically terminate them. If you're writing your own connection pool, my suggestion is don't bother, use an existing implementation like DBCP. You can send the JVM a SIGQUIT after running shutdown.sh while the JVM process is still active to see what threads are running and preventing the process from exiting properly. This has been discussed numerous times on this list, so you can search the archives for more information. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: problem with mod_jk 1.2: error in action code
Hi, I programmed a connection pool by myself as an object, that I put into a global variable by context.setAttribute(myConnectionPool). The lost of the pool is a subsequent error, that occures as a reason of the error in the action code of the coyote connector. In the mysql logs there is nothing to see about errors. By the way, my workers.properties are: worker.list=worker1 worker.worker1.port=8009 worker.worker1.host=localhost worker.worker1.type=ajp13 worker.worker1.lbfactor=50 worker.worker1.cachesize=100 #worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 #worker.worker1.socket_timeout=300 Great problem!!! -Ursprüngliche Nachricht- Von: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 12. März 2004 17:14 An: Tomcat Users List Betreff: RE: problem with mod_jk 1.2: error in action code I don't think that this message has anything to with the lost connection pool. (Do you really mean 'connection pool' and not just 'connection' ?) If you lose your connection, it may be caused by the databaseserver that cancels idle connections after a while. Look for validationQuery in: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html The message in the mod_jk.log is typically indication that a browser was closed while tomcat was sending an answer. I'm not shure if the message in catalina.out is related to that. -Original Message- From: Michael Görlich (CSC) [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 4:53 PM To: Tomcat Mailinglist Subject: problem with mod_jk 1.2: error in action code I've got problems with a tomcat web application, that establishes a connection pool to a database (mysql). This connection pool is lost after an unspecified period of time the system wasn't used (f.e. 8 houres). 10.03.2004 15:59:58 org.apache.jk.server.JkCoyoteHandler action SCHWERWIEGEND: Error in action code java.net.SocketException: Broken pipe The log in mod_jk.log shows the following: [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1052)]: ERROR sending data to client. Connection aborted or network problems [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JAAS: Where does role information go in a Subject?
On 03/12/2004 06:44 PM Alan Weissman wrote: I'm implementing a JAAS login mechanism in my app, not as a Realm but via Struts Action classes. In my loginModule, I am creating the Subject with principals and credentials and want to store role information. Where does Tomcat expect a list of roles to be in the Subject? I Haven't been able to figure this out. I want to make sure that in the future I can use features that check request.isUserInRole(roleName). That would be messin' with the container-managed security, which isn't allowed according to the servlet spec. You can't mix match your own login with the container-managed stuff, unless you're modifying tomcat source code. Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
final class problem
Hi, I have a web app which was working fine. I made a lot of changes, and it works fine on my machine at home. But when I try to install it on my server, using the tomcat manager init command, I get this error. If I knew which class it was trying to instanciate, I might be able to fix it, but I'm basically hoping that someone has seen this before and knows what the problem is. None of the classes I wrote are marked 'final'. This dump was copied from the app log. Thanks in advance for any clues: Michael Davis Toronto 2004-03-12 13:29:27 Manager: ManagerServlet.install[/sham] java.lang.VerifyError: Cannot inherit from final class at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:502) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1664) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:953) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1394) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1274) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.createContentDispatcher(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.init(XMLDocumentFragmentScannerImpl.java:248) at org.apache.xerces.impl.XMLDocumentScannerImpl.init(XMLDocumentScannerImpl.java:245) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.init(Unknown Source) at org.apache.xerces.parsers.IntegratedParserConfiguration.createDocumentScanner(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.init(DTDConfiguration.java:366) at org.apache.xerces.parsers.StandardParserConfiguration.init(StandardParserConfiguration.java:197) at org.apache.xerces.parsers.IntegratedParserConfiguration.init(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.init(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.init(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:306) at java.lang.Class.newInstance(Class.java:259) at org.apache.xerces.util.ObjectFactory.newInstance(ObjectFactory.java:293) at org.apache.xerces.util.ObjectFactory.createObject(ObjectFactory.java:224) at org.apache.xerces.util.ObjectFactory.createObject(ObjectFactory.java:119) at org.apache.xerces.parsers.SAXParser.init(SAXParser.java:140) at org.apache.xerces.parsers.SAXParser.init(SAXParser.java:125) at org.apache.xerces.jaxp.SAXParserImpl.init(SAXParserImpl.java:102) at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.java:95) at org.apache.commons.digester.Digester.getParser(Digester.java:676) at org.apache.commons.digester.Digester.getXMLReader(Digester.java:892) at org.apache.commons.digester.Digester.parse(Digester.java:1514) at org.apache.catalina.startup.ContextConfig.tldScanStream(ContextConfig.java:977) at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:921) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3493) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:257) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.servlets.ManagerServlet.install(ManagerServlet.java:650) at org.apache.catalina.servlets.ManagerServlet.doGet(ManagerServlet.java:342) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
RE: JAAS: Where does role information go in a Subject?
Hm! Thanks Adam - I guess that makes sense! Ok, so my two requirements for my authentication are 1) that I can load custom information into the session object and 2) that I support isUserInRole(). Realm authentication should take care of #2, but what can I do about #1 since I won't have any control over what happens at login? -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 1:48 PM To: Tomcat Users List Subject: Re: JAAS: Where does role information go in a Subject? On 03/12/2004 06:44 PM Alan Weissman wrote: I'm implementing a JAAS login mechanism in my app, not as a Realm but via Struts Action classes. In my loginModule, I am creating the Subject with principals and credentials and want to store role information. Where does Tomcat expect a list of roles to be in the Subject? I Haven't been able to figure this out. I want to make sure that in the future I can use features that check request.isUserInRole(roleName). That would be messin' with the container-managed security, which isn't allowed according to the servlet spec. You can't mix match your own login with the container-managed stuff, unless you're modifying tomcat source code. Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: final class problem
Hi, machine at home. But when I try to install it on my server, using the tomcat manager init command, I get this error. If I knew which class it was trying to instanciate, I might be able to fix it, but I'm basically hoping that someone has seen this before and knows what the problem is. None of the classes I wrote are marked 'final'. You're likely extending a class that's marked as final in a library whose version on your home machine is different than on your server. It's tough to tell which class from this stack trace, so the thing to do is make very sure all the libraries at home and on the server are the same, including extras like Xerces etc, and that you can compile your app at home against these libraries. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: Tomcat 5 and IIS
Generally the IIS - Redirector - Tomcat runs fine and is reasonably documented. The only serious problem that I have seen is returning a response to the wrong requestor and this has allegedly be fixed in the most recent release. Too bad that release isn't quite out just yet. --- [EMAIL PROTECTED] wrote: No Apache at all. Like described in http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html You set up your IIS, then integrate the isapi_redirector into IIS (IIS-part of JK). This is then configured to communicate with the tomcat-instance(s) on that machine or somewhere in the network. So IIS serves normal content and ASP and stuff, and special Webs are beeing redirect to the Tomcat-workers to handle the Java-Content. With WLBS, this looks like ... Client (Browser) || WLBS /\ IIS JK IIS JK | \ / | | \/ | | /\ | Tomcat 1 Tomcat 2 MfG Björn Andersen _ Webservices -Ursprüngliche Nachricht- Von: LILES, DAVID (CONTRACTOR) [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 9. März 2004 14:59 An: Tomcat Users List Betreff: RE: Tomcat 5 and IIS Thanks for the reply So then would we need to configure an Apache entry for each IIS site we are currently hosting? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 09, 2004 2:03 AM To: [EMAIL PROTECTED] Subject: AW: Tomcat 5 and IIS Hi Dave, I'm not an expert, but we use your proposed environment. Tomcat normally runs with Apache, even in Windows. That's why most How-To's Refere to that configuration. (e.g. http://raibledesigns.com/tomcat/) I've heared that it runs better with Apache, but with out IIS's it does also well. We got a production environment with several IIS's clustered with WLBS. These got JK-Plugins (isapi-redirectors) to redirect Java-Content. Below that we got a Tomcat-Workers-Farm. Every component is redundant and it runs quite smooth and fast. So even in bigger environments you can use Tomcat with IIS. -- Björn Andersen _ Webservices -Ursprüngliche Nachricht- Von: LILES, DAVID (CONTRACTOR) [mailto:[EMAIL PROTECTED] Gesendet: Montag, 8. März 2004 21:11 An: [EMAIL PROTECTED] Betreff: Tomcat 5 and IIS I am looking for an alternative to our current environment. Currently we = are using JRun 3.0 for our Java needs and IIS for our web configuration. = Our environment requires our use of IIS. With regard to JRun, we = recently installed our upgrade to version 4.0 only to find functionality = we require has been removed and the configuration steps have become more = complicated. We house multiple web applications and have several JRun = server instances running concurrently on our server. With the 4.0 = version we have been told by Macromedia that we need to install a = separate JRE instance for each JRun instance and copy and modify their = jvm.config file as well plus several other steps. This was never the case with the 3.0 version, but the 3.0 version is no = longer capable of supporting our needs. I have been looking at Tomcat 5.0 and replacement but was wondering how = difficult it is to configure with IIS and support multiple web = applications. I did find an article that talked about JK2.0 but it = mentioned the prerequisite of configuring Apache. If this is true, isn't = that a bit cumbersome since IIS has to be our web server? Any clarification would be greatly appreciated. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Search - Find what youre looking for faster http://search.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple Host (no apache or iis)
Hi! I have tried to search for this but all hits seems to be about getting tomcat to work together with apache or iis. I can't figure out why my test1-domain doesn't answer at all. All I gets is a 400-error. What bother me the most is that there is nothing in the catalina.out log that indicats that there are something wrong so I don't even know where to start look. I post the Host-part of my server.xml below. Thanks in advance Roland Carlsson Host name=test1.mydomain.com debug=0 appBase=webapps: unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=test1_access_log. suffix=.txt pattern=combined resolveHosts=false/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=test1.log. suffix=.txt timestamp=true/ /Host Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=combined resolveHosts=false/ Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ /Host - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem with mod_jk 1.2: error in action code
I don't deny the stacktraces the original poster included are from a connector. But... the original problem relates to loosing a 'database connection pool', which should have nothing at all to do with the jk connector. I don't think it's very clear yet, what is *actually* going on. If you are correct, and the database thing is a red herring, then fine, he can ignore that annoying (and common) jk message. I get them all the time, I've asked a couple times for help in getting them shut off... oh well. That's jk for you. If, otoh, he's got a database problem, and while trying to diagnose the trouble, noticed those common jk errors, and related the two (his database trouble to the jk error messages), then his trouble is *not* with jk, but with his connection pool. He did, after all, say I think I was attempting to eliminate a very common cause of 'lost connections' to a mysql database. This is a Coyote connector exception -- which is the HTTP/1.1 protocol connector. It allows you to connect directly to Tomcat using a browser, instead of going through Apache. And.. who first mentioned the Coyote HTTP connector ?? I see in the original poster's server.xml: protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler that looks the configuration for an AJP 1.3 connection to Apache. -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 11:17 AM To: Tomcat Users List Subject: Re: problem with mod_jk 1.2: error in action code All, when you specify the connection to mysql, are you including the 'autoreconnect=true' parameter? If not, the connections will be closed by mysql after (I think) 8 hrs. I'm not sure why everyne's caught up in database connection code. This is a Coyote connector exception -- which is the HTTP/1.1 protocol connector. It allows you to connect directly to Tomcat using a browser, instead of going through Apache. Usually the Broken Pipe means the the client hung up before listening for all the data. That could mean pressing the STOP button on the browser, following another link before the page fully loads, or pressing the back button. I wouldn't worry too much about it, unless your users are somehow being affected. -chris -Original Message- From: Michael Görlich (CSC) [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 9:53 AM To: Tomcat Mailinglist Subject: problem with mod_jk 1.2: error in action code Hello, I've got problems with a tomcat web application, that establishes a connection pool to a database (mysql). This connection pool is lost after an unspecified period of time the system wasn't used (f.e. 8 houres). I think the problem is due to the mod_jk connector between apache and tomcat. The web application is accessible over apache 1.3.27, that connects to tomcat 4.1.27 via jk connector mod_jk 1.2.25. The exception I got in catalina.out is: 10.03.2004 15:59:58 org.apache.jk.server.JkCoyoteHandler action SCHWERWIEGEND: Error in action code java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:407) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:599) at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler. java:385) at org.apache.coyote.Response.action(Response.java:222) at org.apache.coyote.Response.finish(Response.java:343) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler. java:268) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSo cket.java:562) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.jav a:619) at java.lang.Thread.run(Thread.java:534) 10.03.2004 15:59:58 org.apache.jk.common.ChannelSocket processConnection INFO: server has been restarted or reset this connection The HTTP connector defined in tomcats server.xml is: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=false redirectPort=8443 acceptCount=10 debug=5 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler scheme=http secure=false / The log in mod_jk.log shows the following: [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1052)]: ERROR sending data to client. Connection aborted or network problems [Wed Mar 10 15:59:58 2004] [jk_ajp_common.c (1303)]: ERROR: Client connection aborted or network problems Here is the summary of
Re: JAAS: Where does role information go in a Subject?
On 03/12/2004 08:02 PM Alan Weissman wrote: Hm! Thanks Adam - I guess that makes sense! Ok, so my two requirements for my authentication are 1) that I can load custom information into the session object and 2) that I support isUserInRole(). Realm authentication should take care of #2, but what can I do about #1 since I won't have any control over what happens at login? well you can put in a filter that checks for the user info in the session and creates it when it isn't there. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Anyone used Tomcat w/ Oracle Real Application Cluster?
I'm exploring the possibility to use Oracle RAC 9.2.0.4 as the backend for a project. I think as long as I use the Oracle thick JDBC drivers, failover of connections should be automatic. Has anyone implemented this combination before? Are there any gotcha's that I should look out for? Thanks for your insight :-) Priscilla - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IIS5 isolation mode
Hi, (B (BI am trying to run Tomcat 4.1 on Windows 2003/IIS6. After going through (Bsome documentation, (BI've noticed that we must enable "IIS5 isolation mode" to make it work. (BWhen I enable the IIS5 isolation (Bmode, there was a "red cross" on "Web Sites" in IIS Admin, and World Wide (BWeb Service did not start. (BFurthermore, when I tried to add isapi_redirector.dll, IIS service wouldn't (Beven start when I tried to restart it.. I think we've configured properties (Bfile correctly, but I don't think we're even that far. (B (BAny suggestions appreciated! (B (B (BTony (B (B (B- (BTo unsubscribe, e-mail: [EMAIL PROTECTED] (BFor additional commands, e-mail: [EMAIL PROTECTED]
Re: IIS5 isolation mode
Hi, (B (BSorry, I carefully followed the documentation one more time, and this (Bparticular (Bproblem went awayapologies. Now the problem looks like the one that (BI've seen (Bon other threads before. The arrow is green, and there are no errors, but (Bit just won't (Bredirect. (B (B (BTony (B (B (B- Original Message - (BFrom: "Tony Nakamura" [EMAIL PROTECTED] (BTo: "Tomcat Users List" [EMAIL PROTECTED] (BSent: Friday, March 12, 2004 5:36 PM (BSubject: IIS5 isolation mode (B (B (B Hi, (B (B I am trying to run Tomcat 4.1 on Windows 2003/IIS6. After going through (B some documentation, (B I've noticed that we must enable "IIS5 isolation mode" to make it work. (B When I enable the IIS5 isolation (B mode, there was a "red cross" on "Web Sites" in IIS Admin, and World Wide (B Web Service did not start. (B Furthermore, when I tried to add isapi_redirector.dll, IIS service (Bwouldn't (B even start when I tried to restart it.. I think we've configured (Bproperties (B file correctly, but I don't think we're even that far. (B (B Any suggestions appreciated! (B (B (B Tony (B (B (B - (B To unsubscribe, e-mail: [EMAIL PROTECTED] (B For additional commands, e-mail: [EMAIL PROTECTED] (B (B (B (B (B- (BTo unsubscribe, e-mail: [EMAIL PROTECTED] (BFor additional commands, e-mail: [EMAIL PROTECTED]
R: [Tomcat Monitor] alpha version ready
Yeah, I know this, In fact I was referring to the alpha Peter posted on his site. I was just asking which logger do I've to choose. Simone - Simone Chiaretta www.piyosailing.com/S Any sufficiently advanced technology is indistinguishable from magic Life is short, play hard -Messaggio originale- Da: Shapira, Yoav [mailto:[EMAIL PROTECTED] Inviato: venerdì 12 marzo 2004 14.52 A: Tomcat Users List Oggetto: RE: [Tomcat Monitor] alpha version ready Hi, Sorry about the question, maybe I misses something But how can I setup Jmeter to monitor tomcat? You did miss something: search for Peter's posts over the past few days, and you'll see this is an in-development feature not yet available in the general JMeter releases. there will be a delay in the graph, depending on the timer interval and response time. I'll test the graph component by itself and profile it. When I decrease the timer interval to 400ms, it works quite nicely. what's the specs of your machine. So far I've only tested it on m laptop. Yeah, modifying the timer refresh from 5s to 1s worked nicely for me. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: R: [Tomcat Monitor] alpha version ready
if you're not familiar with JMeter, I would suggest reading my second performance article and trying the example test plans I have in the bin folder. peter lin Simone - Dev [EMAIL PROTECTED] wrote: Yeah, I know this, In fact I was referring to the alpha Peter posted on his site. I was just asking which logger do I've to choose. Simone Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam
Re: transitioning from non-logged in to logged in using security constraint....
no, my question wasn't whether request.getRemoteUser() returns null or not. HOW, specifically, does tomcat populate that information using the j_security_check and the security-constraint nodes in the web.xml??? __ Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Tomcat monitor] alpha2
http://tao.altern8.net/jmeter-mon.zip Here is the second alpha of the monitor. I fixed some minor resizing bugs and optimized the graph rendering a bit. This latest version has the graph labels and the legends. I also changed the calculation of server load to 50 thread/50 memory. The next version of the monitor will probably be a JMeter nightly. As a result of the new Apache policy, I'm now working on a custom parser for the monitor, so that users won't have to go d/l jaxb from Sun. as usual, feedback is greatly appreciated. peter lin Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam
where to place tag libs
hi all, i have got a problem i have got a libraries of tag lib which is used by developers for their apapplication.he/she has to add the tag libraries in his/her own wen/inf/tlds. Is there any common dir where all libraries can be placed and used. thanks aKhilesh ITX HWR BHEL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Import SSL keys into Tomcat 5.0.18 -- SSL handshake error
You need to import the CA for your client-certs into your truststore file. Then you add the 'truststoreFile=/path/to/truststore' to your Connector element in server.xml. After that, your browser should prompt you for any cert that you have that is signed by that CA. Jeffery Cann [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Greetings, I am trying to import an openssl key from a third party certificate authority, Geotrust (Equifax). I have used these keys successfully in an apache installation. So, I followed the key import process described for Tomcat on the Geotrust web site - http://www.geotrust.com/resources/install/jakarta_tomcat.htm However, tomcat 5.0.18 throws an exeception when I start up the HTTP/SSL listener: SSL handshake error - javax.net.ssl.SSLException: No available certificate corresponds to the SSL cipher suites which are enabled. Environment: 1) JDK 1.4.1_02 on Linux 2.4 kernel 2) Tomcat 5.0.18 3) OpenSSL 0.9.7a What I did: 1) Convert CAs cert and our server root cert (i.e., our domain public key) to binary (DED) format. 2) Import converted binary keys into a new java keystore (using keytool). 3) Add path to keystore.kdb file in tomcat server.xml, restart tomcat. Below are the specific commands (and output) I used to import keys and configure Tomcat. I have been using the PEM version of these keys in apache 2.x with no problems. I have contacted Geotrust and they do not seem to have an answer. Other posts to this list mostly show folks trying to set up SSL using their own CA certs. What have I missed? I appreciate any suggestions. Thanks Jeff --- details - 1) Convert pem keys to binary format: $ openssl x509 -in geotrustca.pem -inform PEM -outform DED -out geotrustca.crt $ openssl x509 -in mydomain.com.pem -inform PEM -outform DED -out mydomain.crt 2) Import binary keys into a new Java key store. I used Tomcat's default keystore password setting 'changeit'. Here's the commands and output: 2a) Geotrust root certificate: $ keytool -import -alias geotrustca -keystore /etc/cert/mydomain.kdb -file /etc/cert/geotrustca.crt Enter keystore password: changeit Owner: OU=Equifax Secure Certificate Authority, O=Equifax, C=US Issuer: OU=Equifax Secure Certificate Authority, O=Equifax, C=US Serial number: 35def4cf Valid from: Sat Aug 22 10:41:51 MDT 1998 until: Wed Aug 22 10:41:51 MDT 2018 Certificate fingerprints: MD5: 67:CB:9D:C0:13:24:8A:82:9B:B2:17:1E:D1:1B:EC:D4 SHA1: D2:32:09:AD:23:D3:14:23:21:74:E4:0D:7F:9D:62:13:97:86:63:3A Trust this certificate? [no]: yes Certificate was added to keystore 2b) Server root key (our public key): $ keytool -import -alias tomcat -keystore /etc/cert/mydomain.kdb -file /etc/cert/mydomain.crt Enter keystore password: changeit Certificate was added to keystore 2c) Here's the list of my keystore. $ keytool -list -keystore /etc/cert/mydomain.kdb Enter keystore password: changeit Keystore type: jks Keystore provider: SUN Your keystore contains 2 entries tomcat, Mar 9, 2004, trustedCertEntry, Certificate fingerprint (MD5): 1B:AE:BF:96:6C:3C:0A:C3:AE:3E:5A:46:94:CF:AF:0B geotrustca, Mar 9, 2004, trustedCertEntry, Certificate fingerprint (MD5): 67:CB:9D:C0:13:24:8A:82:9B:B2:17:1E:D1:1B:EC:D4 3) Update server.xml. Note we are using Tomcat 5, so the directive for the SSL connector syntax is different from that shown on the Geotrust web site instructions. Compared to the default connector parameters, I added the keystoreFile parameter to point to my kdb file created in step 2. Connector port=8443 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=/etc/cert/mydomain.kdb / When I enable the SSL connector in my server.conf file and restart tomcat, logs show this exception: Mar 9, 2004 5:59:55 AM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocket SEVERE: Endpoint [SSL: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8443]] ignored exception: java.net.SocketException: SSL handshake errorjavax.net.ssl.SSLException: No available certificate corresponds to the SSL cipher suites which are enabled. java.net.SocketException: SSL handshake errorjavax.net.ssl.SSLException: No available certificate corresponds to the SSL cipher suites which are enabled. at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESocketFac tory.java:154) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java :387) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:557) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:683) at java.lang.Thread.run(Thread.java:536) Mar 9, 2004 5:59:55 AM
Re: Tomcat 5 -server option and log files
It looks like you should be able to add '-server' to the JavaOptions, but I haven't tried it. You could also do: tomcat //US//Tomcat5 --Java java --Arguments java -server As for the log redirection not working except for --Java=java, that's a known issue. I still haven't found something I'm completely happy with (mostly because of the messy way that MS handles output redirection). Chanan Braunstein [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I am trying to get Tomcat 5 to work with the server jvm, but I am having some problems. First I tried adding -server to the java options in the configure Tomcat program. When I did that Tomcat wouldn't start. Then I set C:\j2sdk1.4.2_02\jre\bin\server\jvm.dll - This worked and using stress test tool I found a significant boost in my web application - However, once I set the JVM to this path I no longer get any output to the log files of Tomcat. Neither from Tomcat itself or from my own logging commands. So, my question is two fold: 1) What is the correct way to set the JVM to use Sun's server JVM? 2) How do I get log output after I do that? Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is this normal? JK2: ajp13 listening on /0.0.0.0:8009.
Hi, Is the message JK2: ajp13 listening on /0.0.0.0:8009 normal? Why the ip address is all 0's? - Mar 13, 2004 1:06:03 AM org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) Mar 13, 2004 1:06:03 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 Mar 13, 2004 1:06:03 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=1/109 config=/var/tomcat4/conf/jk2.properties Mar 13, 2004 1:06:03 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 2641 ms Mar 13, 2004 1:06:04 AM org.apache.jk.common.HandlerRequest invoke INFO: Unknown message 0 -- Galam. Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam