How to Disable TRACE and DELETE methods in tomcat 6.x
Hi, Can anyone suggest me How to Disable TRACE and DELETE methods in tomcat 6.x? For security reason i want to - Disable TRACE and DELETE methods - Disable 8005 Port on Tomcat instance. Users can shutdown tomcat from that port. - Anand Singh
Re: Tomcat Performance
About cisco: Peter Lin, what was the model in your case? Was it able to replicate sessions (sticky session maybe ) ? Peter Lin wrote: from past experience, it's much better to use hardware load balancing. At a previous job, we had any where from 12-24 servers load balanced behind a cisco local director. Any load balancing router today can do the job, it doesn't have to be cisco. What I did in the past was to take production logs and run them in jmeter against a cluster of tomcat servers. All the servers were behind the load balancer. After the test was run, we collected the logs to make sure the load was distributed evenly and we generated reports. From those reports, we compared the results of the new system against the system we were replacing. That established the baseline performance for untuned tomcat. I then spent a week going through 10 different jvm settings and running a full set of benchmarks on each. At the end I looked at what concurrent loads the entire system needed to support and chose the settings that match those needs. In my test suite, I varied the number of concurrent connections, think time between requests, ramp up time and a mix of requests. the key to tuning the system correctly is understanding exactly what kind of traffic you expect. of course that isn't always possible, so you might have to take a guess. peter On 1/30/08, David Brown [EMAIL PROTECTED] wrote: Hello Andrew, reading your email, Alan's email and the Mladen email piqued my interest because I am currently working on a gig to improve the performance and monitoring of two Tomcat instances supporting 3 web applications and one web service. I am inclined to agree with Alan. And, did you read the ML replies to the Xmx and Xms Subject line emails? I must agree with the ML contributors that answered the email named in the previous sentence: baseline test, apply Eden parameters to the JVM then monitor the results of the load testing. Once you have all your monitoring results including logs the next step is to create a new metric by comparing the newly acquired data to your initial baseline test. There are very good points made on both sides but I have to believe that Tomcat tuning a priori is like trying to predict the weather. In my gig there are too many unknowns to resolve: (1) this is a legacy system which means differing verions of JDKs, Tomcat instances, web apps or web services built with framework versions no longer supported e.g. AXIS 1.3. (2) Commercial vendors that have taken FOSS and re-packaged it as proprietary software and as a result there is no direct support from the vendors for: SLA source code or updated binaries that were written in this century. (3) I know my client wants everything upgraded and migrated if possible when in reality I will have to improve the monitoring and performance issues with the current servlet containers, web services and network topology as it stands now. I know the rest of the world is moving away from clustering (horizontal scaling) and more toward virtualization (vertical scaling). In my case I will have to settle for horizontal scaling and the Tomcat software load balancing. I welcome anyone wanting to expound on Tomcat load balancing: say, a comparison between Tomcat JK connector load balancing and using an appliance like Big IP. Like you Andrew I would cheer a calculated solution if it existed: just dump in the number of nodes, instances, network(s), applications, web services, bandwidth and client users and viola! out comes the network diagram with annotations. Discussion, suggestions, advice, solutions, rants and raves welcomed. Andrew Hole wrote .. Hello I read an interesting document from Mladen Turk (with whom I want to speak directly, but I don't know direct contact) that there is a formula to calculate the number of concurrent request: http://people.apache.org/~mturk/docs/article/ftwai.html Calculating Load When determining the number of Tomcat servers that you will need to satisfy the client load, the first and major task is determining the Average Application Response Time (hereafter AART). As said before, to satisfy the user experience the application has to respond within half of second. The content received by the client browser usually triggers couple of physical requests to the Web server (e.g. images). The web page usually consists of html and image data, so client issues a series of requests, and the time that all this gets processed and delivered is called AART. To get most out of Tomcat you should limit the number of concurrent requests to 200 per CPU. So we can come with the simple formula to calculate the maximum number of concurrent connections a physical box can handle: 500 Concurrent requests = ( -- max 200 ) * Number of CPU's AART
Re: Tomcat 5.5 and SSL connector: keystore was tampered with [SOLVED]
Update on this thing Tomcat+SSL+keystore thing: I dug into the Tomcat 5.5.25 source code to see what's really going on. Here's what I found - hopefully it's useful to someone. Tomcat SSL Connector entries accept the following parameters: - keystorePass (password for the JKS (Java keystore) - keypass (password for the key inside the JKS - keystoreFile (keystore location in filesystem) At least Tomcat 5.5.20 (older, yes) supports only the keystoreFile parameter. The keypass and keystorePass get messed up somehow, no matter how they're defined in the Connector part. The default password (changeit) is used instead. In Tomcat 5.5.21 a Java property check was added to the code to allow a property (javax.net.keystorePassword or something) to define the keystore password. In Tomcat 5.5.25 it seems to be possible to use a different keystore password and key password. One of them has to be the default (changeit), can't remember which. I didn't have time to check this properly. There's also a bug in Tomcat SSL Howto - I'll file a bug report on it unless it's has been done already. At least on 5.5.20 the keystoreFile parameters has to be inserted straight into Connector, contrary to what the Howto says. This is easily verifiable with strace. Unless somebody proves me wrong, I would consider the parameters keypass and keystorePass useless with Tomcat 5.5.x versions. There is no practical way to change those without Java debugging and/or patching, which is beyond the skill of most system admins. If the parameters are indeed usable, please update the Tomcat 5.5 SSL documentation to reflect their correct usage. Alternatively tell me how to use them correctly and I'll file a patch to the SSL howto. This configuration hell aside, Tomcat has been a real workhorse. Keep on the good work! Best regards, Samuli Some additional info: Debian Etch w/o system-wide Java installation These are included in the Funambol sync server bundle (6.5.12): Java Runtime environment 1.5.0 Tomcat 5.5.20 First of all, instead of recipes, I'd prefer to be pointed at information on how to debug this problem. I'm not a professional Java developer so all these Servlet/Java/log4j/properties/Connector/Factory things are a bit strange for me. Anyways, here are the HTTPS/SSL connector settings that I've tried to no avail. Please tell me which one _should_ work, or if they are all faulty. The paths are correct. !-- This is based strictly on Tomcat 5.5 SSL Howto. Still -- !-- it does not work. The keystoreFile should be in -- !-- Connector part, not Factory part. Feel free to -- !-- verify with strace to see what I mean. -- Connector port=443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS keystorePass=something keyAlias=tomcat Factory clientAuth=false protocol=TLS keystoreFile=/root/newkeystore/ /Connector !-- Another variant with keystorePass in Connector -- Connector port=443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS keystorePass=something keyAlias=tomcat keystoreFile=/root/newkeystore Factory clientAuth=false protocol=TLS/ /Connector !-- Another variant with keystorePass inside Factory -- Connector port=443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS keyAlias=tomcat keystoreFile=/root/newkeystore Factory clientAuth=false protocol=TLS keystorePass=something/ /Connector !-- Another variant without Factory part -- Connector port=443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS keystorePass=something keyAlias=tomcat keystoreFile=/root/newkeystore/ So none of these work. Any ideas? Hi! I migrated from Tomcat 5.0 to Tomcat 5.5. I had SSL working in Tomcat 5.0 with both a self-created certificate and a signed (trusted) certificate, both inside a Java keystore (JKS). Now, with Tomcat 5.5 the SSL connector refuses to start with the dreaded keystore was
Re: JSP/Tag recompilation on running server
Chris Hut wrote: We use a global message .tag file to display any important updates to users - by default it is blank but can be updated to say, e.g. Site will be going down for maintenance in one hour.. We push these updates by deploying an updated .tag file to our system. In my opinion it's better to store message as some bean in servletContext. With that approach it is not necessary to redeploy/recompile tag file, and you can have nice form/panel to edit such messages. And (for me the most important point) you do not need to have admin access to tomcat to change a message. -- Mikolaj Rydzewski [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
Re: Tomcat Performance
I would be interested how much performance you were able to tickle compared to default jvm settings? Leon And how many of the settings had to be reverted with switch to a newer jdk, if any. On Jan 31, 2008 3:49 AM, Peter Lin [EMAIL PROTECTED] wrote: from past experience, it's much better to use hardware load balancing. At a previous job, we had any where from 12-24 servers load balanced behind a cisco local director. Any load balancing router today can do the job, it doesn't have to be cisco. What I did in the past was to take production logs and run them in jmeter against a cluster of tomcat servers. All the servers were behind the load balancer. After the test was run, we collected the logs to make sure the load was distributed evenly and we generated reports. From those reports, we compared the results of the new system against the system we were replacing. That established the baseline performance for untuned tomcat. I then spent a week going through 10 different jvm settings and running a full set of benchmarks on each. At the end I looked at what concurrent loads the entire system needed to support and chose the settings that match those needs. In my test suite, I varied the number of concurrent connections, think time between requests, ramp up time and a mix of requests. the key to tuning the system correctly is understanding exactly what kind of traffic you expect. of course that isn't always possible, so you might have to take a guess. peter On 1/30/08, David Brown [EMAIL PROTECTED] wrote: Hello Andrew, reading your email, Alan's email and the Mladen email piqued my interest because I am currently working on a gig to improve the performance and monitoring of two Tomcat instances supporting 3 web applications and one web service. I am inclined to agree with Alan. And, did you read the ML replies to the Xmx and Xms Subject line emails? I must agree with the ML contributors that answered the email named in the previous sentence: baseline test, apply Eden parameters to the JVM then monitor the results of the load testing. Once you have all your monitoring results including logs the next step is to create a new metric by comparing the newly acquired data to your initial baseline test. There are very good points made on both sides but I have to believe that Tomcat tuning a priori is like trying to predict the weather. In my gig there are too many unknowns to resolve: (1) this is a legacy system which means differing verions of JDKs, Tomcat instances, web apps or web services built with framework versions no longer supported e.g. AXIS 1.3. (2) Commercial vendors that have taken FOSS and re-packaged it as proprietary software and as a result there is no direct support from the vendors for: SLA source code or updated binaries that were written in this century. (3) I know my client wants everything upgraded and migrated if possible when in reality I will have to improve the monitoring and performance issues with the current servlet containers, web services and network topology as it stands now. I know the rest of the world is moving away from clustering (horizontal scaling) and more toward virtualization (vertical scaling). In my case I will have to settle for horizontal scaling and the Tomcat software load balancing. I welcome anyone wanting to expound on Tomcat load balancing: say, a comparison between Tomcat JK connector load balancing and using an appliance like Big IP. Like you Andrew I would cheer a calculated solution if it existed: just dump in the number of nodes, instances, network(s), applications, web services, bandwidth and client users and viola! out comes the network diagram with annotations. Discussion, suggestions, advice, solutions, rants and raves welcomed. Andrew Hole wrote .. Hello I read an interesting document from Mladen Turk (with whom I want to speak directly, but I don't know direct contact) that there is a formula to calculate the number of concurrent request: http://people.apache.org/~mturk/docs/article/ftwai.html Calculating Load When determining the number of Tomcat servers that you will need to satisfy the client load, the first and major task is determining the Average Application Response Time (hereafter AART). As said before, to satisfy the user experience the application has to respond within half of second. The content received by the client browser usually triggers couple of physical requests to the Web server (e.g. images). The web page usually consists of html and image data, so client issues a series of requests, and the time that all this gets processed and delivered is called AART. To get most out of Tomcat you should limit the number of concurrent requests to 200 per CPU. So we can come with the simple formula to calculate the maximum number of concurrent connections a
NIO connector
hi all -- I'm trying to hook the NIO connector to an engine, but I'm lost in how to do this. I'm using Tomcat embedded, so I have an Engine instance, from which I have a Session object. Can anyone take me from there? Thanks! - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Performance
yes, most hardware load balancer handle sticky sessions. this was back in 2001-2002. I don't know which model number it was, but it was part of cisco's local director line of routers. peter On Jan 31, 2008 3:46 AM, andrey.morskoy [EMAIL PROTECTED] wrote: About cisco: Peter Lin, what was the model in your case? Was it able to replicate sessions (sticky session maybe ) ? Peter Lin wrote: from past experience, it's much better to use hardware load balancing. At a previous job, we had any where from 12-24 servers load balanced behind a cisco local director. Any load balancing router today can do the job, it doesn't have to be cisco. What I did in the past was to take production logs and run them in jmeter against a cluster of tomcat servers. All the servers were behind the load balancer. After the test was run, we collected the logs to make sure the load was distributed evenly and we generated reports. From those reports, we compared the results of the new system against the system we were replacing. That established the baseline performance for untuned tomcat. I then spent a week going through 10 different jvm settings and running a full set of benchmarks on each. At the end I looked at what concurrent loads the entire system needed to support and chose the settings that match those needs. In my test suite, I varied the number of concurrent connections, think time between requests, ramp up time and a mix of requests. the key to tuning the system correctly is understanding exactly what kind of traffic you expect. of course that isn't always possible, so you might have to take a guess. peter On 1/30/08, David Brown [EMAIL PROTECTED] wrote: Hello Andrew, reading your email, Alan's email and the Mladen email piqued my interest because I am currently working on a gig to improve the performance and monitoring of two Tomcat instances supporting 3 web applications and one web service. I am inclined to agree with Alan. And, did you read the ML replies to the Xmx and Xms Subject line emails? I must agree with the ML contributors that answered the email named in the previous sentence: baseline test, apply Eden parameters to the JVM then monitor the results of the load testing. Once you have all your monitoring results including logs the next step is to create a new metric by comparing the newly acquired data to your initial baseline test. There are very good points made on both sides but I have to believe that Tomcat tuning a priori is like trying to predict the weather. In my gig there are too many unknowns to resolve: (1) this is a legacy system which means differing verions of JDKs, Tomcat instances, web apps or web services built with framework versions no longer supported e.g. AXIS 1.3. (2) Commercial vendors that have taken FOSS and re-packaged it as proprietary software and as a result there is no direct support from the vendors for: SLA source code or updated binaries that were written in this century. (3) I know my client wants everything upgraded and migrated if possible when in reality I will have to improve the monitoring and performance issues with the current servlet containers, web services and network topology as it stands now. I know the rest of the world is moving away from clustering (horizontal scaling) and more toward virtualization (vertical scaling). In my case I will have to settle for horizontal scaling and the Tomcat software load balancing. I welcome anyone wanting to expound on Tomcat load balancing: say, a comparison between Tomcat JK connector load balancing and using an appliance like Big IP. Like you Andrew I would cheer a calculated solution if it existed: just dump in the number of nodes, instances, network(s), applications, web services, bandwidth and client users and viola! out comes the network diagram with annotations. Discussion, suggestions, advice, solutions, rants and raves welcomed. Andrew Hole wrote .. Hello I read an interesting document from Mladen Turk (with whom I want to speak directly, but I don't know direct contact) that there is a formula to calculate the number of concurrent request: http://people.apache.org/~mturk/docs/article/ftwai.htmlhttp://people.apache.org/%7Emturk/docs/article/ftwai.html Calculating Load When determining the number of Tomcat servers that you will need to satisfy the client load, the first and major task is determining the Average Application Response Time (hereafter AART). As said before, to satisfy the user experience the application has to respond within half of second. The content received by the client browser usually triggers couple of physical requests to the Web server (e.g. images). The web page usually consists of html and image data, so client issues a series of requests, and the time that all
RE: How to Disable TRACE and DELETE methods in tomcat 6.x
From: Anand Kumar Singh [mailto:[EMAIL PROTECTED] Subject: How to Disable TRACE and DELETE methods in tomcat 6.x - Disable TRACE and DELETE methods Don't know, but I suspect a filter can be written to ignore them. - Disable 8005 Port on Tomcat instance. Users can shutdown tomcat from that port. Only if you give them telnet or other direct access to the machine Tomcat is running on. The shutdown port is used only with 127.0.0.1, no other IP address. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5 and SSL connector: keystore was tampered with [SOLVED]
From: Samuli Seppänen [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 5.5 and SSL connector: keystore was tampered with [SOLVED] Tomcat SSL Connector entries accept the following parameters: - keystorePass (password for the JKS (Java keystore) - keypass (password for the key inside the JKS - keystoreFile (keystore location in filesystem) The problem with your analysis is that the kepass attribute is not in the Tomcat doc, and you've misinterpreted the code. As currently implemented, the keypass attribute is simply an internal alias for keystorePass, nothing else. Note the following from the SSL how-to: Finally, you will be prompted for the key password, which is the password specifically for this Certificate (as opposed to any other Certificates stored in the same keystore file). You MUST use the same password here as was used for the keystore password itself. Note: your private key password and keystore password should be the same. If you want things to work differently, submit an enhancement request (preferably with a patch). At least on 5.5.20 the keystoreFile parameters has to be inserted straight into Connector, contrary to what the Howto says. Where else does the doc say the keystoreFile attribute can be specified? I can't find anything other than a comment about its default location, which seems to work fine. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TomCat Learning
This Book is a good one Professional Apache Tomcat 6 http://www.wrox.com/WileyCDA/Section/id-WROX_SEARCH_RESULT.html?queryText=9780471753612field=keyword aum kumar wrote: Hi all, I am a java based developer used tomcat for the development purpose.but onlu know abt it in limited manner,i mean to say wat i have to use. Now i have some individual projects to develop and i have to do all by my own so i need to learn abt the tomcat in details. can some body help me to tell me abt the books or resources so that i can get involved in it.i also wana to use the documnetation but i thik u need to know a bit before u start with documentation. any help in this regard will be much appriciated. Thanks aum - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sharing session cookies across sub-domains - how?
Thanks guys for all the replies. I did get it to work - by adding logic to manually create/update a JSESSIONID cookie with the Domain set to the parent domain (e.g., company.com).This logic could be placed into a tomcat valve, or in some other place along the request control flow. Wanting to avoid too many dependencies to the servlet container api, I chose to place the logic down in the webapp framework (struts request processor in this case). Regarding the DNS aspect of this... Yes, that part was pretty straight forward. We added a wildcard into DNS (e.g., *.company.com) to point to the server. Tomcat runs as a single Host. Then, we added logic into the app itself (again, up in the requestprocessor / interceptor) to parse out the subdomain and enforce various rules accordingly. This makes sense for our case, as the subdomains are used to change the geographic region set into session and used to query content into the pages. So, it's always the same site regardless of subdomain, just different content. Again, thanks for the help. I'll blog this later and send a note. I imagine others will want to do this same thing. On Jan 31, 2008 1:12 AM, David Delbecq [EMAIL PROTECTED] wrote: Christopher Schultz a écrit : If you use a web server like Apache httpd to make it look like there are several domains there, but there's really only one deployed instance of your web application, then you should already be able to share the cookies across the domains. And of course, if you just set dns to point to tomcat, an you use defaultHost on tomcat, there will only be one instance of webapp, but nothing will magically rewrite cookies as is. Perhaps you can create a custom valve to do so (Alter response to change cookie domain, alter request to change the other way) :) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: NIO connector
use public Connector createConnector(String address, int port,String protocol) set org.apache.coyote.http11.Http11NioProtocol as the protocol value should work Filip brien colwell wrote: hi all -- I'm trying to hook the NIO connector to an engine, but I'm lost in how to do this. I'm using Tomcat embedded, so I have an Engine instance, from which I have a Session object. Can anyone take me from there? Thanks! - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TomCat Learning
come and see us in amsterdam http://eu.apachecon.com/eu2008/program/talk/1001 Filip aum kumar wrote: Hi all, I am a java based developer used tomcat for the development purpose.but onlu know abt it in limited manner,i mean to say wat i have to use. Now i have some individual projects to develop and i have to do all by my own so i need to learn abt the tomcat in details. can some body help me to tell me abt the books or resources so that i can get involved in it.i also wana to use the documnetation but i thik u need to know a bit before u start with documentation. any help in this regard will be much appriciated. Thanks aum No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.19.16/1250 - Release Date: 1/29/2008 10:20 PM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Performance
Hello Peter, Wow! this is good stuff: exactly what I needed. I feel sorry for the client when they see that first baseline! Thank you! David. Peter Lin wrote .. from past experience, it's much better to use hardware load balancing. At a previous job, we had any where from 12-24 servers load balanced behind a cisco local director. Any load balancing router today can do the job, it doesn't have to be cisco. What I did in the past was to take production logs and run them in jmeter against a cluster of tomcat servers. All the servers were behind the load balancer. After the test was run, we collected the logs to make sure the load was distributed evenly and we generated reports. From those reports, we compared the results of the new system against the system we were replacing. That established the baseline performance for untuned tomcat. I then spent a week going through 10 different jvm settings and running a full set of benchmarks on each. At the end I looked at what concurrent loads the entire system needed to support and chose the settings that match those needs. In my test suite, I varied the number of concurrent connections, think time between requests, ramp up time and a mix of requests. the key to tuning the system correctly is understanding exactly what kind of traffic you expect. of course that isn't always possible, so you might have to take a guess. peter On 1/30/08, David Brown [EMAIL PROTECTED] wrote: Hello Andrew, reading your email, Alan's email and the Mladen email piqued my interest because I am currently working on a gig to improve the performance and monitoring of two Tomcat instances supporting 3 web applications and one web service. I am inclined to agree with Alan. And, did you read the ML replies to the Xmx and Xms Subject line emails? I must agree with the ML contributors that answered the email named in the previous sentence: baseline test, apply Eden parameters to the JVM then monitor the results of the load testing. Once you have all your monitoring results including logs the next step is to create a new metric by comparing the newly acquired data to your initial baseline test. There are very good points made on both sides but I have to believe that Tomcat tuning a priori is like trying to predict the weather. In my gig there are too many unknowns to resolve: (1) this is a legacy system which means differing verions of JDKs, Tomcat instances, web apps or web services built with framework versions no longer supported e.g. AXIS 1.3. (2) Commercial vendors that have taken FOSS and re-packaged it as proprietary software and as a result there is no direct support from the vendors for: SLA source code or updated binaries that were written in this century. (3) I know my client wants everything upgraded and migrated if possible when in reality I will have to improve the monitoring and performance issues with the current servlet containers, web services and network topology as it stands now. I know the rest of the world is moving away from clustering (horizontal scaling) and more toward virtualization (vertical scaling). In my case I will have to settle for horizontal scaling and the Tomcat software load balancing. I welcome anyone wanting to expound on Tomcat load balancing: say, a comparison between Tomcat JK connector load balancing and using an appliance like Big IP. Like you Andrew I would cheer a calculated solution if it existed: just dump in the number of nodes, instances, network(s), applications, web services, bandwidth and client users and viola! out comes the network diagram with annotations. Discussion, suggestions, advice, solutions, rants and raves welcomed. Andrew Hole wrote .. Hello I read an interesting document from Mladen Turk (with whom I want to speak directly, but I don't know direct contact) that there is a formula to calculate the number of concurrent request: http://people.apache.org/~mturk/docs/article/ftwai.html Calculating Load When determining the number of Tomcat servers that you will need to satisfy the client load, the first and major task is determining the Average Application Response Time (hereafter AART). As said before, to satisfy the user experience the application has to respond within half of second. The content received by the client browser usually triggers couple of physical requests to the Web server (e.g. images). The web page usually consists of html and image data, so client issues a series of requests, and the time that all this gets processed and delivered is called AART. To get most out of Tomcat you should limit the number of concurrent requests to 200 per CPU. So we can come with the simple formula to calculate the maximum number of concurrent connections a physical box can handle: 500 Concurrent
Tomcat Ajp Connector with Apache Frontend and mod_deflate
Hi, i am trying to build a cluster of tomcats with mod_proxy_balancer. At the moment my tomcats are connected via mod_proxy_http protocol port 80 tomcat uses compression and mod_proxy_balancer is doing fine with sending the compressed content to the client. I wonder if i can do the same with mod_proxy_ajp. As AJP is a binary protocol anyway it doesn't need any compression for the response to my proxy server, right? But the response send to the client from my proxy needs compression for faster downloads. How can i tell my mod_proxy_balancer to compress the response with mod_deflate it tried the simple configuration AddOutputFilterByType DEFLATE text/html text/plain text/xml but it didn't work. did i misconfigure my proxy or isn't it possible at all to have mod_deflate filter the response from mod_proxy_ajp? Sorry for being a little bit off-topic but i hope this question still relates to tomcat-users. kind regards, janning - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: port
From: Tony Chamberlain [mailto:[EMAIL PROTECTED] We had tomcat running on port 8080 (which is default). Since some people block that port we moved it to the http port 80. Now some places that are expecting it on 8080 can't find it anymore. Anyway to have it run on both? Maybe forward from 8080 to 80? Two Connectors - one on each port - should do the job. - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to Disable TRACE and DELETE methods in tomcat 6.x
Anand Kumar Singh wrote: Hi, Can anyone suggest me How to Disable TRACE and DELETE methods in tomcat 6.x? For security reason i want to - Disable TRACE and DELETE methods - Disable 8005 Port on Tomcat instance. Users can shutdown tomcat from that port. set port=-1 Filip - Anand Singh No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.19.16/1250 - Release Date: 1/29/2008 10:20 PM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to Disable TRACE and DELETE methods in tomcat 6.x
- Disable 8005 Port on Tomcat instance. Users can shutdown tomcat from that port. Only if you give them telnet or other direct access to the machine Tomcat is running on. The shutdown port is used only with 127.0.0.1, no other IP address. Yes, and you also may change the shutdown attribute of Server element in server.xml. It specifies the secret string that is being printed to port 8005 to shutdown the server. You may also change the port number there. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Start Tomcat 5.0.28 using a domain account
I'm using Tomcat 5.0.28, installed the option to start as a windows service, and my question relates to an issue I've posted earlier about sqljdbc. For some reason, I cannot get a connection to our sql database using a simple JSP page. I'm using this connection information: Class.forName( com.microsoft.sqlserver.jdbc.SQLServerDriver); String connectionUrl = jdbc:sqlserver://SSQLB:1433;instanceName=gis;databaseName=permits;integ ratedSecurity=true;; Connection con = DriverManager.getConnection(connectionUrl); When I use this information, I cannot get past Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. My dba and sysadmin suggested trying to change the user account under which Tomcat starts/runs. My dba won't create a sql login to test whether I have a database connection issue or a Tomcat issue. I'd like to bypass the integratedSecurity and see if a reqular sql login even works. But that isn't an option for me today. Changing the log on as user from Local System account to a domain account seems straight forward. Under the Windows Services tool, I double click Apache Tomcat and I specify the This account, under the Log On tab, and put in some domain\domain_name user, which has access to the SQL Server view. I stop and restart tomcat and I can't even get to http://localhost:8080 anymore. No Tomcat page. What am I doing wrong here? Leo Donahue - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 6 - Cluster error.
Hi again, I try the config using keepAliveTime to 10: Transport className=org.apache.catalina.tribes.transport.nio.PooledParallelSender timeout=6 keepAliveTime=10 keepAliveCount=0/ One more time, the cluster is not working, the big problem is that I cannot reproduce the error at my backup server that works perfectly. Node 2, drops a log error at 12:58 AM, then, at the same time, node 1 report ClusterError continuously (Continuous errors are on every hit; the server supports 1 hit per second) Logs: NODE 2 - LOG = Jan 31, 2008 12:58:13 PM org.apache.catalina.tribes.transport.nio.NioReceiver socketTimeouts WARNING: Channel key is registered, but has had no interest ops for the last 3000 ms. (cancelled:false):[EMAIL PROTECTED] last access:2008-01-31 12:58:10.208 NODE 1 - LOG = Jan 31, 2008 12:58:04 PM org.apache.catalina.tribes.group.interceptors.TcpFailureDetector memberDisappeared INFO: Received memberDisappeared[org.apache.catalina.tribes.membership.MemberImpl[tcp://loc alhost:4002,localhost,4002, alive=101194547,id={123 -66 95 -10 88 24 77 -32 -93 16 -13 -112 90 52 -18 78 }, payload={}, command={}, domain={}, ]] message. Will verify. Jan 31, 2008 12:58:04 PM org.apache.catalina.tribes.group.interceptors.TcpFailureDetector memberDisappeared INFO: Verification complete. Member still alive[org.apache.catalina.tribes.membership.MemberImpl[tcp://localhost:4002, localhost,4002, alive=101194547,id={123 -66 95 -10 88 24 77 -32 -93 16 -13 -112 90 52 -18 78 }, payload={}, command={}, domain={}, ]] Jan 31, 2008 12:58:04 PM org.apache.catalina.ha.tcp.SimpleTcpCluster send SEVERE: Unable to send message through cluster sender. org.apache.catalina.tribes.ChannelException: Operation has timed out(6 ms.).; Faulty members:tcp://localhost:4002; at org.apache.catalina.tribes.transport.nio.ParallelNioSender.sendMessage(Paral lelNioSender.java:97) at org.apache.catalina.tribes.transport.nio.PooledParallelSender.sendMessage(Po oledParallelSender.java:53) at org.apache.catalina.tribes.transport.ReplicationTransmitter.sendMessage(Repl icationTransmitter.java:80) at org.apache.catalina.tribes.group.ChannelCoordinator.sendMessage(ChannelCoord inator.java:78) at org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(ChannelI nterceptorBase.java:75) at org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor.sendMess age(ThroughputInterceptor.java:61) at org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(ChannelI nterceptorBase.java:75) at org.apache.catalina.tribes.group.interceptors.MessageDispatchInterceptor.sen dMessage(MessageDispatchInterceptor.java:73) at org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(ChannelI nterceptorBase.java:75) at org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.sendMessage (TcpFailureDetector.java:87) at org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(ChannelI nterceptorBase.java:75) at org.apache.catalina.tribes.group.GroupChannel.send(GroupChannel.java:216) at org.apache.catalina.tribes.group.GroupChannel.send(GroupChannel.java:175) at org.apache.catalina.ha.tcp.SimpleTcpCluster.send(SimpleTcpCluster.java:835) at org.apache.catalina.ha.tcp.SimpleTcpCluster.sendClusterDomain(SimpleTcpClust er.java:814) at org.apache.catalina.ha.tcp.ReplicationValve.send(ReplicationValve.java:551) at org.apache.catalina.ha.tcp.ReplicationValve.sendMessage(ReplicationValve.jav a:535) at org.apache.catalina.ha.tcp.ReplicationValve.sendSessionReplicationMessage(Re plicationValve.java:517) at org.apache.catalina.ha.tcp.ReplicationValve.sendReplicationMessage(Replicati onValve.java:428) at org.apache.catalina.ha.tcp.ReplicationValve.invoke(ReplicationValve.java:362 ) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http 11Protocol.java:584) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) Jan 31, 2008 12:58:07 PM org.apache.catalina.tribes.group.interceptors.TcpFailureDetector memberDisappeared INFO: Received memberDisappeared[org.apache.catalina.tribes.membership.MemberImpl[tcp://loc alhost:4002,localhost,4002, alive=101197553,id={123 -66 95 -10 88 24 77 -32 -93 16 -13 -112 90 52 -18 78 }, payload={}, command={}, domain={}, ]] message. Will verify. Jan 31, 2008 12:58:07 PM org.apache.catalina.tribes.group.interceptors.TcpFailureDetector memberDisappeared INFO: Verification complete. Member still alive[org.apache.catalina.tribes.membership.MemberImpl[tcp://localhost:4002, localhost,4002, alive=101197553,id={123 -66 95 -10 88 24 77 -32 -93 16
RE: port
Hi, You can have an apache HTTPd redirecting it to port 8080 of Tomcat. Additionaly, if you're on Linux, you can do port forwarding with IPTables -Original Message- From: Tony Chamberlain [mailto:[EMAIL PROTECTED] Sent: quinta-feira, 31 de Janeiro de 2008 15:18 To: users@tomcat.apache.org Subject: port We had tomcat running on port 8080 (which is default). Since some people block that port we moved it to the http port 80. Now some places that are expecting it on 8080 can't find it anymore. Anyway to have it run on both? Maybe forward from 8080 to 80? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Start Tomcat 5.0.28 using a domain account
From: Leo Donahue - PLANDEVX [mailto:[EMAIL PROTECTED] Changing the log on as user from Local System account to a domain account seems straight forward. Under the Windows Services tool, I double click Apache Tomcat and I specify the This account, under the Log On tab, and put in some domain\domain_name user, which has access to the SQL Server view. I stop and restart tomcat and I can't even get to http://localhost:8080 anymore. No Tomcat page. What am I doing wrong here? Some possibilities... Has the new account been granted the Log On As A Service user right? Does the Tomcat process start at all? Does it have appropriate permissions on the Tomcat filestore? You may find tools like filemon.exe useful if you end up debugging acces denials. Incidentally, is the SQL Server on the same box or on a remote one? If remote, you'll never get a SSPI connection using LocalSystem, as it's local to the machine on which Tomcat's running. - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TomCat Learning
Your are in basically the right spot. I have used TC for years and I am not sure if there are any books that can help. My experience with any type of Java/J2EE and related books are most books are outdated by the time you read them. The only exception is: I wished Peter Lin would get his book (JMeter) out or something close to it. I know doco is hard to chew down but you will just have to start reading and mostly begin working with TC somewhere private and expect a lot of problems and things-not-understood and requests to MLs like this one. One ML etiquette tip: complement your requests or issues with a laundry list of info such that the folks that know what they are doing will have something to analyze. In this way they will be more motivate to help you with your problems. OS: Debian 3.1, Solaris 10.x, Windows XP SP2, Windows 2003 server SP1 JDK: 1.3.x, 1.4.x TC: 4.x and 5.x Apps: JPetstore, Apache AXIS 2.0 Logs: log4j, commons-logging (examples) Properties files: weblogic.properties XML config: server.xml, web.xml, application.xml (you get the idea). aum kumar wrote .. Hi all, I am a java based developer used tomcat for the development purpose.but onlu know abt it in limited manner,i mean to say wat i have to use. Now i have some individual projects to develop and i have to do all by my own so i need to learn abt the tomcat in details. can some body help me to tell me abt the books or resources so that i can get involved in it.i also wana to use the documnetation but i thik u need to know a bit before u start with documentation. any help in this regard will be much appriciated. Thanks aum - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Start Tomcat 5.0.28 using a domain account
Incidentally, is the SQL Server on the same box or on a remote one? If remote, you'll never get a SSPI connection using LocalSystem, as it's local to the machine on which Tomcat's running. Yes, SQL Server is on a remote physical server. That's why my sysadmin suggested changing the log on user for Tomcat. Has the new account been granted the Log On As A Service user right? Does the Tomcat process start at all? Does it have appropriate permissions on the Tomcat filestore? Yes, yes, yes. This domain user is the user I use to log onto my GIS server - where Tomcat is installed. When I look at other services running, if they are using a domain account they appear as: domain\domain_username When I use the browse for user and check the name, it changes to [EMAIL PROTECTED] I used this and it worked. Sometimes I just can't see the answer right in front of me, but I appreciate this list and your help! Leo Donahue -Original Message- From: Peter Crowther [mailto:[EMAIL PROTECTED] Sent: Thursday, January 31, 2008 9:22 AM To: 'Tomcat Users List' Subject: RE: Start Tomcat 5.0.28 using a domain account From: Leo Donahue - PLANDEVX [mailto:[EMAIL PROTECTED] Changing the log on as user from Local System account to a domain account seems straight forward. Under the Windows Services tool, I double click Apache Tomcat and I specify the This account, under the Log On tab, and put in some domain\domain_name user, which has access to the SQL Server view. I stop and restart tomcat and I can't even get to http://localhost:8080 anymore. No Tomcat page. What am I doing wrong here? Some possibilities... Has the new account been granted the Log On As A Service user right? Does the Tomcat process start at all? Does it have appropriate permissions on the Tomcat filestore? You may find tools like filemon.exe useful if you end up debugging acces denials. Incidentally, is the SQL Server on the same box or on a remote one? If remote, you'll never get a SSPI connection using LocalSystem, as it's local to the machine on which Tomcat's running. - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6 - Cluster error.
I'll take this offline with you, and if we resolve it, we will post the solution here Filip Raúl García wrote: Hi again, I try the config using keepAliveTime to 10: Transport className=org.apache.catalina.tribes.transport.nio.PooledParallelSender timeout=6 keepAliveTime=10 keepAliveCount=0/ One more time, the cluster is not working, the big problem is that I cannot reproduce the error at my backup server that works perfectly. Node 2, drops a log error at 12:58 AM, then, at the same time, node 1 report ClusterError continuously (Continuous errors are on every hit; the server supports 1 hit per second) Logs: NODE 2 - LOG = Jan 31, 2008 12:58:13 PM org.apache.catalina.tribes.transport.nio.NioReceiver socketTimeouts WARNING: Channel key is registered, but has had no interest ops for the last 3000 ms. (cancelled:false):[EMAIL PROTECTED] last access:2008-01-31 12:58:10.208 NODE 1 - LOG = Jan 31, 2008 12:58:04 PM org.apache.catalina.tribes.group.interceptors.TcpFailureDetector memberDisappeared INFO: Received memberDisappeared[org.apache.catalina.tribes.membership.MemberImpl[tcp://loc alhost:4002,localhost,4002, alive=101194547,id={123 -66 95 -10 88 24 77 -32 -93 16 -13 -112 90 52 -18 78 }, payload={}, command={}, domain={}, ]] message. Will verify. Jan 31, 2008 12:58:04 PM org.apache.catalina.tribes.group.interceptors.TcpFailureDetector memberDisappeared INFO: Verification complete. Member still alive[org.apache.catalina.tribes.membership.MemberImpl[tcp://localhost:4002, localhost,4002, alive=101194547,id={123 -66 95 -10 88 24 77 -32 -93 16 -13 -112 90 52 -18 78 }, payload={}, command={}, domain={}, ]] Jan 31, 2008 12:58:04 PM org.apache.catalina.ha.tcp.SimpleTcpCluster send SEVERE: Unable to send message through cluster sender. org.apache.catalina.tribes.ChannelException: Operation has timed out(6 ms.).; Faulty members:tcp://localhost:4002; at org.apache.catalina.tribes.transport.nio.ParallelNioSender.sendMessage(Paral lelNioSender.java:97) at org.apache.catalina.tribes.transport.nio.PooledParallelSender.sendMessage(Po oledParallelSender.java:53) at org.apache.catalina.tribes.transport.ReplicationTransmitter.sendMessage(Repl icationTransmitter.java:80) at org.apache.catalina.tribes.group.ChannelCoordinator.sendMessage(ChannelCoord inator.java:78) at org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(ChannelI nterceptorBase.java:75) at org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor.sendMess age(ThroughputInterceptor.java:61) at org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(ChannelI nterceptorBase.java:75) at org.apache.catalina.tribes.group.interceptors.MessageDispatchInterceptor.sen dMessage(MessageDispatchInterceptor.java:73) at org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(ChannelI nterceptorBase.java:75) at org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.sendMessage (TcpFailureDetector.java:87) at org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(ChannelI nterceptorBase.java:75) at org.apache.catalina.tribes.group.GroupChannel.send(GroupChannel.java:216) at org.apache.catalina.tribes.group.GroupChannel.send(GroupChannel.java:175) at org.apache.catalina.ha.tcp.SimpleTcpCluster.send(SimpleTcpCluster.java:835) at org.apache.catalina.ha.tcp.SimpleTcpCluster.sendClusterDomain(SimpleTcpClust er.java:814) at org.apache.catalina.ha.tcp.ReplicationValve.send(ReplicationValve.java:551) at org.apache.catalina.ha.tcp.ReplicationValve.sendMessage(ReplicationValve.jav a:535) at org.apache.catalina.ha.tcp.ReplicationValve.sendSessionReplicationMessage(Re plicationValve.java:517) at org.apache.catalina.ha.tcp.ReplicationValve.sendReplicationMessage(Replicati onValve.java:428) at org.apache.catalina.ha.tcp.ReplicationValve.invoke(ReplicationValve.java:362 ) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http 11Protocol.java:584) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) Jan 31, 2008 12:58:07 PM org.apache.catalina.tribes.group.interceptors.TcpFailureDetector memberDisappeared INFO: Received memberDisappeared[org.apache.catalina.tribes.membership.MemberImpl[tcp://loc alhost:4002,localhost,4002, alive=101197553,id={123 -66 95 -10 88 24 77 -32 -93 16 -13 -112 90 52 -18 78 }, payload={}, command={}, domain={}, ]] message. Will verify. Jan 31, 2008 12:58:07 PM org.apache.catalina.tribes.group.interceptors.TcpFailureDetector memberDisappeared INFO: Verification complete. Member still
Re: port
I can't figure out the iptable commands to do it. On Thu, Jan 31, 2008 at 9:45 AM, Peter Crowther [EMAIL PROTECTED] wrote: From: Tony Chamberlain [mailto:[EMAIL PROTECTED] We had tomcat running on port 8080 (which is default). Since some people block that port we moved it to the http port 80. Now some places that are expecting it on 8080 can't find it anymore. Anyway to have it run on both? Maybe forward from 8080 to 80? Two Connectors - one on each port - should do the job. - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: port
Edit your server.xml. Find the Connector element for port 80. Copy the Connector element and paste it. Change the port in the pasted one to 8080. Restart Tomcat. No iptables needed. -Original Message- From: Tony Chamberlain [mailto:[EMAIL PROTECTED] Sent: 31 January 2008 17:07 To: Tomcat Users List Subject: Re: port I can't figure out the iptable commands to do it. On Thu, Jan 31, 2008 at 9:45 AM, Peter Crowther [EMAIL PROTECTED] wrote: From: Tony Chamberlain [mailto:[EMAIL PROTECTED] We had tomcat running on port 8080 (which is default). Since some people block that port we moved it to the http port 80. Now some places that are expecting it on 8080 can't find it anymore. Anyway to have it run on both? Maybe forward from 8080 to 80? Two Connectors - one on each port - should do the job. - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Why doesn't SSL fire up (Tomcat 6.0.14), Java 1.5 (jsse)
I create the keystore per instructions. My server.xml was modified thusly: Connector port=8443 protocol=HTTP/1.1 SSLEnabled=true maxThreads=150 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=c:\Documents and Settings\myname\.keystore keystorePass=changeit / When I make a connection to https://localhost:8443/ my browser just sits and spins. I see the message sent from the browser but I don't get either a reply or an error. thanks, /steveA
Re: Xmx and Xms size
Julio Cesar Leiva wrote: We have an app on a m linux box dual processor dual core , 16GB RAM We are wondering what could be the ideal size for Xmx and Xms (Java Heap Size) We have a load test that hits our server with 800 clients sending request every sec. Thanks for your tips. Adding to the other responses; allocating too much memory isn't a good thing, either - so, if your app doesn't require the full 16GB, I would keep Xmx at some lower limit (test with various Xmx settings, until you find where the application behaviour starts to suffer from the lack of memory -- then raise by some suitable amount). This recommendation comes from seeing (albeit with a now obsolete JVM) excessively long pauses for GC in a situation where an application with memory leak had gradually been given higher and higher Xmx values (but as there was a true leak, no amount of memory was enough). With this bloater Xmx, when the memory became nearly full, the GC pause times shot through the roof. With smaller Xmx, even though the memory became full faster, the application also died more gracefully. With larger Xmx, the application was for a long time in a limbo state; not serving, but not dead, either. -- ..Juha - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Xmx and Xms size
From: Juha Laiho [mailto:[EMAIL PROTECTED] Subject: Re: Xmx and Xms size This recommendation comes from seeing (albeit with a now obsolete JVM) excessively long pauses for GC in a situation where an application with memory leak had gradually been given higher and higher Xmx values That's not a terribly useful generalization, given that the webapp you're describing could never reach anything approximating a steady state due to the memory leak. Current JVM GC pause times are a function of the number of live objects, not the size of the heap. Since the number of live objects tends to be a constant for a given load, the pause time is also constant. The largest heap possible is usually the right answer these days, at least until it impacts on other applications running on the same system, or you start encountering non-uniform memory access (NUMA) situations. The latter can significantly impact performance on larger multiprocessor systems. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Forcing a session lastaccessedtime update
When accessing an HTTPSession through a back door the session's last access time is not updated. Is there any way to touch that session to update that time or call a specific method to do so? In other words I allow people to access their session through an xml request that may be called from a server (not the browser). Supplying the sessionID I can retrieve that session from a hashtable I keep, yet manipulating the session does not update the last accessed time, leaving it vulnerable to a timeout. Probably more of a servlet question than Tomcat, but hopefully somebody can help me. Thanks in advance, Frank
Need help with multiple sites in server.xml file, almost there but not quite!
I've deployed a WAR for Railo (a CFML processor) and I have a site working just fine through apache (with mod_jk) to point to my domain. My problem is I want to be able to host multiple sites on my server using the Railo application and have the httpdocs in a structure like /home/www/domain/ as of now I have the site in tomcatdir/railo/. I'll include excerpts from my httpd.conf and server.xml below, how do I run as many as I want? FOR BONUS POINTS: run one on ssl HTTPD.CONF: NameVirtualHost *:80 +VirtualHost *:80+ DocumentRoot /usr/java/tomcat-5.5/webapps/railo-2.0.0.026 ServerName aquariumdb.com ServerAlias www.aquariumdb.com DirectoryIndex index.cfm JkMount /*.cfm default JkMount /*.cfc default +/VirtualHost+ +VirtualHost *:80+ ServerName blog.aquariumdb.com DirectoryIndex index.php DocumentRoot /home/www/blog.aquariumdb.com/httpdocs/ ScriptAlias /cgi-bin/ /home/www/blog.aquariumdb.com/cgi-bin/ +Location /cgi-bin+ Options +ExecCGI +/Location+ ErrorLog /home/www/blog.aquariumdb.com/logs/error.log CustomLog /home/www/blog.aquariumdb.com/logs/custom.log combined +/VirtualHost+ SERVER.XML: +Host name=aquariumdb.com appBase=/usr/java/tomcat-5.5/webapps/railo-2.0.0.026+ +Context path= docBase=./+ +Alias+www.aquariumdb.com+/Alias+ +/Host+ -- View this message in context: http://www.nabble.com/Need-help-with-multiple-sites-in-server.xml-file%2C-almost-there-but-not-quite%21-tp15217741p15217741.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sharing session cookies across sub-domains - how?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Delbecq wrote: | Perhaps you can create a | custom valve to do so (Alter response to change cookie domain, alter | request to change the other way) :) You only have to change the outgoing cookie domain; the browser does not send the domain for the cookie when sending it to the server. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkeibvwACgkQ9CaO5/Lv0PDzDQCgqCCMrlxtftCL1qq1ngh4eu/2 ltUAn0YjU6bJxkKheGSeh9bB+CcImceX =/K+a -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Problem file not found
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tony, Tony Chamberlain wrote: | No, it is not time sensitive. It is command sensitive (if that makes | sense). | Clicking a certain button in a jsp form Then Tomcat should not have crashed. Did the JVM actually go down, or did you just get an exception? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkeib0YACgkQ9CaO5/Lv0PAGsgCeLdRWBAiTi7hTbPUKafAjburL uv4AoMQAQWMGNvc8JrBeqw92UAKDLEFF =VaDC -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Upgrading to 5.5.25 causes File /javax/servlet/resources/web-app_2_3.dtd not found
I upgraded from 5.5.20--5.5.25 (RH linux) by copying new jars to /common/lib and /server/lib I then got these errors. Is this a bug in 5.5.25, or some sort of problem with my upgrade method? I'm now back to 5.5.20 jars and working fine again, but I'd like to upgrade. Any suggestions? Where is this dtd supposed to be? Thanks. SEVERE: Servlet.service() for servlet jsp threw exception org.xml.sax.SAXException: Internal Error: File /javax/servlet/resources/web-app_2_3.dtd not found at org.apache.jasper.xmlparser.MyEntityResolver.resolveEntity(ParserUtils.java:205) at com.sun.org.apache.xerces.internal.util.EntityResolverWrapper.resolveEntity(EntityResolverWrapper.java:148) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntity(XMLEntityManager.java:701) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XMLDocumentScannerImpl.java:1019) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:3 68) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:250) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292) at org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:95) at org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:76) at org.apache.jasper.compiler.JspConfig.init(JspConfig.java:197) at org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:249) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:112) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:392) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Upgrading to 5.5.25 causes File /javax/servlet/resources/web-app_2_3.dtdnot found
From: George Payne [mailto:[EMAIL PROTECTED] Subject: Upgrading to 5.5.25 causes File /javax/servlet/resources/web-app_2_3.dtdnot found I upgraded from 5.5.20--5.5.25 (RH linux) by copying new jars to /common/lib and /server/lib And what happens if you do a real install of a real Tomcat download? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: NIO connector
Connector c = e.createConnector((String)null,8080,org.apache.coyote.http11.Http11NioProtocol); Filip brien colwell wrote: hi Filip, Thanks for the tip. Any thoughts on why createConnector would give null? embedded.createConnector( (InetAddress) null, port, org.apache.coyote.http11.Http11NioProtocol ); Brien On Jan 31, 2008 7:15 AM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: use public Connector createConnector(String address, int port,String protocol) set org.apache.coyote.http11.Http11NioProtocol as the protocol value should work Filip brien colwell wrote: hi all -- I'm trying to hook the NIO connector to an engine, but I'm lost in how to do this. I'm using Tomcat embedded, so I have an Engine instance, from which I have a Session object. Can anyone take me from there? Thanks! - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upgrading to 5.5.25 causes File /javax/servlet/resources/web-app_2_3.dtdnot found
Well, I guess part of my question is: what does that mean? I downloaded the 5.5.25 binary tar and used all the latest jar files from it. If no one else has seen this problem, I'll try a real install--by which I assume you mean untarring, symlinking, and copying over webapps and server.xml, but I had assumed this would not be very different from what I did. Caldarale, Charles R wrote: From: George Payne [mailto:[EMAIL PROTECTED] Subject: Upgrading to 5.5.25 causes File /javax/servlet/resources/web-app_2_3.dtdnot found I upgraded from 5.5.20--5.5.25 (RH linux) by copying new jars to /common/lib and /server/lib And what happens if you do a real install of a real Tomcat download? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upgrading to 5.5.25 causes File /javax/servlet/resources/web-app_2_3.dtd not found
TC 5.5.25 servlet spec jumped to Servlet Spec 2.4/ JSP Spec 2.0 I dont think you can upgrade by copying in some of the jars in that way and would suggest a fresh install M - Original Message - From: George Payne [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, January 31, 2008 8:09 PM Subject: Upgrading to 5.5.25 causes File /javax/servlet/resources/web-app_2_3.dtd not found I upgraded from 5.5.20--5.5.25 (RH linux) by copying new jars to /common/lib and /server/lib I then got these errors. Is this a bug in 5.5.25, or some sort of problem with my upgrade method? I'm now back to 5.5.20 jars and working fine again, but I'd like to upgrade. Any suggestions? Where is this dtd supposed to be? Thanks. SEVERE: Servlet.service() for servlet jsp threw exception org.xml.sax.SAXException: Internal Error: File /javax/servlet/resources/web-app_2_3.dtd not found at org.apache.jasper.xmlparser.MyEntityResolver.resolveEntity(ParserUtils.java: 205) at com.sun.org.apache.xerces.internal.util.EntityResolverWrapper.resolveEntity( EntityResolverWrapper.java:148) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntity(XMLEn tityManager.java:701) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDispatcher dispatch(XMLDocumentScannerImpl.java:1019) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanD ocument(XMLDocumentFragmentScannerImpl.java:3 68) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con figuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con figuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:14 8) at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:25 0) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBu ilderImpl.java:292) at org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:95 ) at org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:76) at org.apache.jasper.compiler.JspConfig.init(JspConfig.java:197) at org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:249) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:112) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 63) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 05) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:178) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase java:524) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126 ) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105 ) at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:392) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java :889) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:684) at java.lang.Thread.run(Thread.java:595) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail:
cookie-based session tracking, how to start a new session
For cookie-based session tracking, when a user clicks a link on a jsp page, how to make the request belong to a new session, not existing session. Thanks! dave - Never miss a thing. Make Yahoo your homepage.
RE: Upgrading to 5.5.25 causes File /javax/servlet/resources/web-app_2_3.dtd not found
From: Martin Gainty [mailto:[EMAIL PROTECTED] Subject: Re: Upgrading to 5.5.25 causes File /javax/servlet/resources/web-app_2_3.dtd not found TC 5.5.25 servlet spec jumped to Servlet Spec 2.4/ JSP Spec 2.0 That jump was from 5.0.x to 5.5.x, not 5.5.20 to 5.5.25. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Upgrading to 5.5.25 causes File /javax/servlet/resources/web-app_2_3.dtdnotfound
From: George Payne [mailto:[EMAIL PROTECTED] Subject: Re: Upgrading to 5.5.25 causes File /javax/servlet/resources/web-app_2_3.dtdnotfound Well, I guess part of my question is: what does that mean? We get many questions from people who try to use 3rd-party, repackaged versions of Tomcat, with varying degrees of failure. Trying to make sure you weren't in that category. I downloaded the 5.5.25 binary tar and used all the latest jar files from it. That's good, but you run a serious risk of missing jars or other things that might have changed. I assume you mean untarring, symlinking, and copying over webapps and server.xml The symlinking can be causing some interesting behavior if it's not done carefully and configured where needed in Tomcat. Copying over server.xml is certainly not recommended; updating the one that comes with 5.5.25 for your environment is. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TomCat Learning
hey really thanks for giving me such wonderful answers. i hope i will again put my queries when ever i wll find any one... On 1/31/08, David Brown [EMAIL PROTECTED] wrote: Your are in basically the right spot. I have used TC for years and I am not sure if there are any books that can help. My experience with any type of Java/J2EE and related books are most books are outdated by the time you read them. The only exception is: I wished Peter Lin would get his book (JMeter) out or something close to it. I know doco is hard to chew down but you will just have to start reading and mostly begin working with TC somewhere private and expect a lot of problems and things-not-understood and requests to MLs like this one. One ML etiquette tip: complement your requests or issues with a laundry list of info such that the folks that know what they are doing will have something to analyze. In this way they will be more motivate to help you with your problems. OS: Debian 3.1, Solaris 10.x, Windows XP SP2, Windows 2003 server SP1 JDK: 1.3.x, 1.4.x TC: 4.x and 5.x Apps: JPetstore, Apache AXIS 2.0 Logs: log4j, commons-logging (examples) Properties files: weblogic.properties XML config: server.xml, web.xml, application.xml (you get the idea). aum kumar wrote .. Hi all, I am a java based developer used tomcat for the development purpose.butonlu know abt it in limited manner,i mean to say wat i have to use. Now i have some individual projects to develop and i have to do all by my own so i need to learn abt the tomcat in details. can some body help me to tell me abt the books or resources so that i can get involved in it.i also wana to use the documnetation but i thik u need to know a bit before u start with documentation. any help in this regard will be much appriciated. Thanks aum - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.25 Build Failed [Suse Linux 8, JDK 1.4]
Hi Chuck, I had tried with JDK 1.5, it was built successfully, however it need ecj.jar to be built. Thank you very much chuck. *thanks and regards* *subba reddy kalluri* On Jan 30, 2008 7:14 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: KALLURI VENKATA SUBBA REDDY [mailto:[EMAIL PROTECTED] Subject: Tomcat 5.5.25 Build Failed [Suse Linux 8, JDK 1.4] I am trying to build Tomcat 5.5.25 Why are you attempting to do that? Tomcat is pure Java, so its classes run on any viable JVM. Builds are not required unless you're modifying the code. on SUSE Linux 8 machine using JDK 1.4.2_04 As clearly stated in the Tomcat doc, levels 5.5 and above require a 1.5 JRE or JDK; it will not run or build on 1.4, and you're wasting your time trying to do so. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: NIO connector
hi Filip, Still no success there ... I think I'm missing something fundamental. Just in case anyone is interested, I'm running Tomcat 6.0.13, JDK 1.6.0_04, with libnative for the APR connector. I'm going to stick to APR for now ... I wanted to run a benchmark, but it's not critical. Best regards, Brien On Jan 31, 2008 5:50 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: Connector c = e.createConnector((String)null,8080,org.apache.coyote.http11.Http11NioProtocol); Filip brien colwell wrote: hi Filip, Thanks for the tip. Any thoughts on why createConnector would give null? embedded.createConnector( (InetAddress) null, port, org.apache.coyote.http11.Http11NioProtocol ); Brien On Jan 31, 2008 7:15 AM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: use public Connector createConnector(String address, int port,String protocol) set org.apache.coyote.http11.Http11NioProtocol as the protocol value should work Filip brien colwell wrote: hi all -- I'm trying to hook the NIO connector to an engine, but I'm lost in how to do this. I'm using Tomcat embedded, so I have an Engine instance, from which I have a Session object. Can anyone take me from there? Thanks! - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
auto-run updated classes
I'm using Tomcat version 6.0.14. What is the setting/config to automatically run updated classes (without having to restart Tomcat each time I compile a .java file)? David Schwartz [EMAIL PROTECTED] www.arrayone.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to use https together with http
For jsf page (myfaces), some data need to go through SSL such as bank information. For better performance, other pages(or forms) can use http. h:form ... /h:form h:form ... /h:form if a form may contain personal data, it should be summitted using https. Also we need to let user know it is secure by showing a lock and https:// in browser address bar. How can I do this? sometimes The IE browser shows a warning: the page contains both secure and nonsecure data. what is the meaning? how to avoid the warning? Thanks for ideas. Dave - Looking for last minute shopping deals? Find them fast with Yahoo! Search.