Severe 7.0.47 startup performance regression

2013-12-04 Thread David Rees
Since upgrading to 7.0.47 from 7.0.42, I've seen a very severe performance hit during startup. One Tomcat instance with a lot of webapps slowed down from ~33 seconds to ~180 seconds. It appears to be related to jar-scanning - If I change catalina.properties' tomcat.util.scan.DefaultJarScanner.jars

Re: Expire Sesssion

2013-12-04 Thread Igor Cicimov
On 05/12/2013 9:47 AM, "Crystal Maramba" wrote: > > Version: Apache Tomcat 7.0.42 > Server: 2008r2 Standard > > How can I change the expired sessions in Tomcat Manager from 30 minutes to 480 minutes? > > I think you can do it through the web.xml file located in \tomcat\conf\web.xml and then restar

RE: Logging makes a grown man cry

2013-12-04 Thread Dale Ogilvie
Alec: "That seems like a good solution. Are you able to avoid having a single giant catalina.out file in $CATALINA_HOME/logs?" No, we find we can live with that but we try to minimise writes to stdout etc. From Chris's note it seems like the ideal solution for us would be 1. server log4j isolat

RE: Logging makes a grown man cry

2013-12-04 Thread Dale Ogilvie
>> Dale wrote: >> We found issues with trying to have log4j in catalina/lib. >> >> That said, it would be nice to use log4j for tomcat, however we found >> that the two configurations collided in our slf4j setup. >You can do this if you put log4j.jar into a server-only ClassLoader. >That's not c

Re: mod_proxy not redirecting servlet redirect properly

2013-12-04 Thread Konstantin Kolinko
2013/12/5 Ponmani : > Hi > > > > I am very new to mod_proxy. Gone thru some tutorials and configured > mod_proxy. Everything works great except this issue. Couldn't solve even > after spending hrs in googling. Issue is - I have apache 2 in front of tomcat > 6 (running in port 8080) in my interne

Expire Sesssion

2013-12-04 Thread Crystal Maramba
Version: Apache Tomcat 7.0.42 Server: 2008r2 Standard How can I change the expired sessions in Tomcat Manager from 30 minutes to 480 minutes? I think you can do it through the web.xml file located in \tomcat\conf\web.xml and then restart Tomcat. Is there a difference if I change it in the \tom

mod_proxy not redirecting servlet redirect properly

2013-12-04 Thread Ponmani
Hi I am very new to mod_proxy. Gone thru some tutorials and configured mod_proxy. Everything works great except this issue. Couldn't solve even after spending hrs in googling. Issue is - I have apache 2 in front of tomcat 6 (running in port 8080) in my internet website. I am using mod_proxy t

Re: Exception in CoyoteAdapter class

2013-12-04 Thread Konstantin Kolinko
2013/12/3 at.silk : > Hi, > > I contact you to talk about an exception we receive in a Tomcat class. Few > days ago we get an error in an application integrated with Tomcat. We have > tried to get information about it but we don't find any solution, so we would > like to know if you are aware ab

Re: Logging makes a grown man cry

2013-12-04 Thread Tomcat Random
Chris, "The examples don't meet your needs exactly? Well, I'm sure we're all terribly sorry about that." Heh...Sorry, I was responding to Konstantin's comment and mine crossed over just before your long and helpful reply. Thanks, as always, Alec On Wed, Dec 4, 2013 at 12:39 PM, Christopher Sc

Re: Pooled Connections Lost After 10 Minutes (600 seconds)

2013-12-04 Thread Tomcat Random
"I think without a validationQuery, your pool will effectively dry-up over time." I'm expecting some very high traffic, so it's unlikely if not impossible a connection will timeout on the mysql side with the default settings. All connections are safely returned to the pool (famous last words, I kn

Re: ssl on tomcat

2013-12-04 Thread Randeep
Chris, Yes. I have so many http links as some of our old submitted apps used non secured http links. as the apps are in use we cannot change it. I cannot use any redirect rules to convert all the http to https because of that. We use struts for framework. And normal jsp pages. I'm not a developer

Re: Pooled Connections Lost After 10 Minutes (600 seconds)

2013-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Dan, On 12/3/13, 12:32 PM, Daniel Mikusa wrote: > On Dec 3, 2013, at 12:14 PM, Tomcat Random > wrote: > >> I considered using a validation query but it seemed like extra >> overhead when the default behavior was not, um, behaving in the >> default

Re: Transfer-Encoding: chunked not working

2013-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Benson, On 12/3/13, 6:55 PM, C. Benson Manica wrote: > Tomcat 7.0.47, OSX 10.8. Fresh install via homebrew. [As an aside, I'm interested in your experience with Tomcat-via-homebrew. I use Mac OS but installed Tomcat via direct-download. Does brew m

Re: [OT] Need Information regarding Apache Webserver static file configuration

2013-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 12/4/13, 8:14 AM, André Warnier wrote: > It reminds me a bit of the story about a sculptor, who was aked how > he sculpted a horse from a big block of stone. He answered that it > was very easy : you just remove from the stone everything

Re: ssl on tomcat

2013-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Randeep, On 12/4/13, 12:22 PM, Randeep wrote: > I'm using apacche 2.2 as front end and apache tomcat 6.0.37 as > backend. I'm using mod_jk for connecting them. > > The problem is. I'm using ssl certificates. I'v configured ssl on > apache. when I c

Re: Logging makes a grown man cry

2013-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Dale, On 12/3/13, 11:01 PM, Dale Ogilvie wrote: > Currently we use tomcat configured as out-of-the-box for logging > (no log4j) and log4j.jar and config in the app war file. > > We found issues with trying to have log4j in catalina/lib. > > That s

Re: Logging makes a grown man cry

2013-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Alec, On 12/4/13, 11:31 AM, Tomcat Random wrote: > I'd argue that dealing with logging configuration is not newbie > stuff. This is probably some of the most poorly implemented > technology in the servlet container. What about the implementation is

Re: Logging makes a grown man cry

2013-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Alec, On 12/3/13, 1:12 PM, Tomcat Random wrote: > I'm trying to implement log4j as per the instructions here > (skipping step 5): > http://tomcat.apache.org/tomcat-7.0-doc/logging.html#Using_Log4j > > Since I'm not using the Manager, I've removed

Re: Exception in CoyoteAdapter class

2013-12-04 Thread Mark Thomas
On 04/12/2013 17:17, at.silk wrote: > Hi Mark, > > This is the application behaviour, and it only happens when the session has > expired. I cannot say why this method is still called if there is no session > at that time. > > We just can assure that the exception is triggered by this piece of c

ssl on tomcat

2013-12-04 Thread Randeep
hi, I'm using apacche 2.2 as front end and apache tomcat 6.0.37 as backend. I'm using mod_jk for connecting them. The problem is. I'm using ssl certificates. I'v configured ssl on apache. when I connect the site with https. it works. but when I click on an link it goes. I mean its not secure bro

RE: Exception in CoyoteAdapter class

2013-12-04 Thread at.silk
Hi Mark, This is the application behaviour, and it only happens when the session has expired. I cannot say why this method is still called if there is no session at that time. We just can assure that the exception is triggered by this piece of code, since handling the exception inside this met

Re: Logging makes a grown man cry

2013-12-04 Thread Tomcat Random
I'd argue that dealing with logging configuration is not newbie stuff. This is probably some of the most poorly implemented technology in the servlet container. On Tue, Dec 3, 2013 at 3:44 PM, Konstantin Kolinko wrote: > 2013/12/3 Tomcat Random : > > Environment is RHEL6, Tomcat 7.0.42. There is

Re: Logging makes a grown man cry

2013-12-04 Thread Tomcat Random
That seems like a good solution. Are you able to avoid having a single giant catalina.out file in $CATALINA_HOME/logs? On Tue, Dec 3, 2013 at 11:01 PM, Dale Ogilvie wrote: > Currently we use tomcat configured as out-of-the-box for logging (no > log4j) and log4j.jar and config in the app war file

Re: enable SSL for Tomcat

2013-12-04 Thread Ognjen Blagojevic
Sivakumar, On 4.12.2013 14:27, sivakumar_balag...@contractor.amat.com wrote: This csr has the DN formatted like CN=, OU=, O=, L=, ST=, C= which is based on the information we give while genarating the keystore. But the signing authority in our domain accepts the dn format with cn=,ou=Devices,o

Re: Need Information regarding Apache Webserver static file configuration

2013-12-04 Thread André Warnier
Hi. First, respond only to the list, do not copy people extra. I get every message to the list anyway, and if you copy me I get an extra copy which I do not need. Second, on this list, it is preferred to send responses in the text of the original message, not on top. See : http://tomcat.apach

Re: Need Information regarding Apache Webserver static file configuration

2013-12-04 Thread Daniel Mikusa
On Dec 4, 2013, at 8:29 AM, Tapajyoti Roybarman wrote: > Hi Andre, > > Thanks a lot for the quick response. > > In my httpd.conf file I have added the below settings. > > ProxyPass / http://localhost:8080/ > ProxyPassReverse / http://localhost:8080/ > > This is to connect Apache Webserver an

Re: Need Information regarding Apache Webserver static file configuration

2013-12-04 Thread Tapajyoti Roybarman
Hi Andre, Thanks a lot for the quick response. In my httpd.conf file I have added the below settings. ProxyPass / http://localhost:8080/ ProxyPassReverse / http://localhost:8080/ This is to connect Apache Webserver and Tomcat. In future I would add more clusters and then modify the httpd.conf

RE: enable SSL for Tomcat

2013-12-04 Thread Sivakumar_Balaguru
Hi Daniel, I have generated the csr with the keytool: keytool -certreq -sigalg RSA -alias -filename certreq.csr -keystore This csr has the DN formatted like CN=, OU=, O=, L=, ST=, C= which is based on the information we give while genarating the keystore. But the signing authority in our d

Re: Need Information regarding Apache Webserver static file configuration

2013-12-04 Thread André Warnier
Tapajyoti Roybarman wrote: Hi, Could you please let me know that how can I serve static content like image files, css files through Apache Webserver instead of Tomcat? That is the normal thing that an Apache httpd webserver does. Please let me know about all the required configurations in

Re: enable SSL for Tomcat

2013-12-04 Thread Daniel Mikusa
On Dec 4, 2013, at 7:40 AM, sivakumar_balag...@contractor.amat.com wrote: > Hi Ognjen, > > I have tried this as well. > > I have generated a new keystore. By default, keytool generates a keystore > with a private key. Good. You're half way there. > > I have imported the trusted signed certi

RE: enable SSL for Tomcat

2013-12-04 Thread Sivakumar_Balaguru
Hi Ognjen, I have tried this as well. I have generated a new keystore. By default, keytool generates a keystore with a private key. I have imported the trusted signed certificate to this keystore. But Tomcat is using the unsigned key/certificate which has been generated by default with keytoo

Need Information regarding Apache Webserver static file configuration

2013-12-04 Thread Tapajyoti Roybarman
Hi, Could you please let me know that how can I serve static content like image files, css files through Apache Webserver instead of Tomcat? Please let me know about all the required configurations in detail. I am connecting Apache webserver and Tomcat using mod_proxy_http module. Also, please

Re: enable SSL for Tomcat

2013-12-04 Thread Ognjen Blagojevic
Sivakumar, On 4.12.2013 12:11, sivakumar_balag...@contractor.amat.com wrote: I need to enable SSL for tomcat in a windows server 2008. I have generated a certificate using the csr generated by this command: certreq -new request.inf request.req (...) I have imported this certificate to CACERT

enable SSL for Tomcat

2013-12-04 Thread Sivakumar_Balaguru
Hi, I need to enable SSL for tomcat in a windows server 2008. I have generated a certificate using the csr generated by this command: certreq -new request.inf request.req request.inf: [NewRequest] Subject = "" Exportable = TRUE KeyLength = 2048 MachineKeySet = TRUE FriendlyName = "DN of the ser

Fwd: enable SSL for Tomcat

2013-12-04 Thread Siva Kumar Balaguru
Hi, I need to enable SSL for tomcat in a windows server 2008. I have generated a certificate using the csr generated by this command: certreq -new request.inf request.req request.inf: [NewRequest] Subject = "" Exportable = TRUE KeyLength = 2048 MachineKeySet = TRUE FriendlyName = "DN of