getting 404 after migrating app to rpm based tomcat install
Can some please help me out with this?. recently we have started migrating our application from Tomcat 8.5.49 (tar file) to the RPM-installed Tomcat 8.5.89. We encountered a 404 error after the migration tomcat 8.5.49 tar file installation: TOMCAT_HOME: /deploy/software/tomcat TOMCAT_BASE: /deploy/software/tomcat webapps: ROOT -> the above config is the current one where we have running apps in dev ,stg and prod. tomcat 8.5.89 rpm installation TOMCAT_HOME: /usr/share/tomcat8 ( maintaining same conf dir/files including web.xml what we have with ver 8.5.49) TOMCAT_BASE: /usr/share/tomcat8 webapps: ROOT -> no errors in catalina.out and app is coming up fine and able to connect both ports 8080 and 8443, but I do get 404 when I hit the page *Description* The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. -- *Thanks* *Niranjan*
Re: Tomcat SSL - Issue
port where server is listening ssl(8443) and ipaddres of server where tomcat is running, expect output like this starting Nmap 6.40 ( http://nmap.org ) at 2021-09-22 14:35 EDT Nmap scan report for 12.0.0.1 Host is up (0.35s latency). PORT STATE SERVICEVERSION 8443/tcp open https-alt? | ssl-enum-ciphers: | TLSv1.0: | ciphers: | TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA - strong | TLS_DHE_RSA_WITH_AES_128_CBC_SHA - strong | TLS_DHE_RSA_WITH_AES_256_CBC_SHA - strong | TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA - strong | TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA - strong | TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA - strong | compressors: | NULL | TLSv1.1: | ciphers: | TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA - strong | TLS_DHE_RSA_WITH_AES_128_CBC_SHA - strong | TLS_DHE_RSA_WITH_AES_256_CBC_SHA - strong | TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA - strong | TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA - strong | TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA - strong | compressors: | NULL | TLSv1.2: | ciphers: | TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA - strong | TLS_DHE_RSA_WITH_AES_128_CBC_SHA - strong | TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 - strong | TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 - strong | TLS_DHE_RSA_WITH_AES_256_CBC_SHA - strong | TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 - strong | TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 - strong | TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA - strong | TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA - strong | TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 - strong | TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 - strong | TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA - strong | TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 - strong | TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 - strong | compressors: | NULL |_ least strength: strong On Wed, Sep 22, 2021 at 8:48 AM Kumawat, Priyanka wrote: > Hi Niranjan , > > Thankyou. > > The script here on the below command will be the ssltest script that Chris > have given ? > Also IP address will be the IP of the server .? > > > nmap -sV --script ssl-enum-ciphers -p > > https://clicktime.symantec.com/3Cx1tBjB9n6EQyoUQjHJNWU7Vc?u=https%3A%2 > F%2Fgithub.com%2FChristopherSchultz%2Fssltest > > > Thanks & Regards, > > Priyanka Kumawat | Middleware Admin > T +91.7879364483 > EMail - priyanka.kuma...@dxc.com > DL - ams-leveraged-webadmin-offsh...@dxc.com > > DXC Technology > > > > > > > -Original Message- > From: Niranjan Babu Bommu > Sent: 22 September 2021 04:53 > To: Tomcat Users List > Subject: Re: Tomcat SSL - Issue > > Another way you get supported is TLS and the cipher suite. > > nmap -sV --script ssl-enum-ciphers -p > > > > > > > > > > > > > > > > > nmap -sV --script ssl-enum-ciphers -p > > > > On Tue, Sep 21, 2021 at 5:25 PM Christopher Schultz < > ch...@christopherschultz.net> wrote: > > > Priyanka, > > > > On 9/21/21 13:52, Kumawat, Priyanka wrote: > > > Hello Team , > > > > > > Please find the error details as below - > > > > > > The site can’t provide a secure connection . > > > > > > xmotam01.phl.com uses an unsupported protocol > > > > > > ERR_SSL_VERSION or CIPHER MISMATCH > > > > > > Unsupported protocol – The client and server don;t support a common > > > protocol version. > > > > Many versions of Java 1.7 do not support TLSv1.2. Try running this > > tool under your Java 1.7 environment for some good information: > > > > https://clicktime.symantec.com/3Cx1tBjB9n6EQyoUQjHJNWU7Vc?u=https%3A%2 > > F%2Fgithub.com%2FChristopherSchultz%2Fssltest > > > > -chris > > > > - > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > > > -- > *Thanks* > *Niranjan* > > > DXC Technology Company -- This message is transmitted to you by or on > behalf of DXC Technology Company or one of its affiliates. It is intended > exclusively for the addressee. The substance of this message, along with > any attachments, may contain proprietary, confidential or privileged > information or information that is otherwise legally exempt from > disclosure. Any unauthorized review, use, disclosure or distribution is > prohibited. If you are not the intended recipient of this message, you are > not authorized to read, print, retain, copy or disseminate any part of this > message. If you have received this message in error, please destroy and > delete all copies
Re: Tomcat SSL - Issue
Another way you get supported is TLS and the cipher suite. nmap -sV --script ssl-enum-ciphers -p nmap -sV --script ssl-enum-ciphers -p On Tue, Sep 21, 2021 at 5:25 PM Christopher Schultz < ch...@christopherschultz.net> wrote: > Priyanka, > > On 9/21/21 13:52, Kumawat, Priyanka wrote: > > Hello Team , > > > > Please find the error details as below - > > > > The site can’t provide a secure connection . > > > > xmotam01.phl.com uses an unsupported protocol > > > > ERR_SSL_VERSION or CIPHER MISMATCH > > > > Unsupported protocol – The client and server don;t support a common > > protocol version. > > Many versions of Java 1.7 do not support TLSv1.2. Try running this tool > under your Java 1.7 environment for some good information: > > https://github.com/ChristopherSchultz/ssltest > > -chris > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- *Thanks* *Niranjan*
Re: JVM job for Tomcat taking lots and lots of CPU
have you turned on codecahe , if that is true can you monitor codecahe? known issue with codecache in java 7, when codecache fills up the compiler may not get get restarted even after the codecache occupancy drops down to half after the emergency flushing, this may cause high cpu usage by the compiler threads. if above all true here are the solutions. 1. increase codecache may be 128MB 2. upgrade jdk to 8 On Tue, Feb 11, 2020 at 7:40 PM James H. H. Lampert < jam...@touchtonecorp.com> wrote: > Ladies and Gentlemen: > > We have a customer installation in which the JVM job for our Tomcat > server is frequently using massive amounts of CPU. > > It's Tomcat 7.0.67, running on an AS/400, in a 64-bit Java 7 JVM, with > -Xms3096m and -Xmx5120m JVM arguments. > > GC information on the JVM job shows: > > Garbage collected heap: > > Initial heap size . . . . . . . . . : 3096.000M > > Maximum heap size . . . . . . . . . : 5120.000M > > Current heap size . . . . . . . . . : 4458.562M > > Heap in use . . . . . . . . . . . . : 1907.673M > > Other memory: > > Internal (break) memory size . . . . : 504.982M > > JIT memory size . . . . . . . . . . :74.000M > > Shared classes memory size . . . . . : 0.000M > > General GC information: > > Current GC cycle . . . . . . . . . . : 2184 > > GC policy type . . . . . . . . . . . : GENCON > > Current GC cycle time . . . . . . . :552 > > Accumulated GC time . . . . . . . . :5108241 > > It seems to be doing a lot of garbage-collecting. > > Would switching to Java 8 help? Would switching to 7.0.93 help? > > -- > James H. H. Lampert > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- *Thanks* *Niranjan*
Re: setupenv.sh
options -d32 and -d64 have been addd to the java launcher to specify whether the program is be run in a 32-bit or 64-bit env, this is valid only certain unix(solaris) env, windows and linux have their own 32-bit or 64-bit java installations. On Fri, Apr 20, 2018 at 8:32 AM, Cheltenham, Chris < ccheltenham-...@philasd.org> wrote: > Hello, > > > > I have been trying to find out what this meand starting up Tomcat to no > avail. > > Please help. > > I mean –d64 that is. > > > > JAVA_OPTS="-d64" > > > > === > > Thank You; > > Chris Cheltenham > Technology Services > The School District of Philadelphia > > Work # 215-400-5025 > Cell # 215-301-6571 > -- *Thanks* *Niranjan*
Re: Tomcat managed server
Hi Subhro, tomcat document has the all the info you are looking for. https://tomcat.apache.org/tomcat-7.0-doc/RUNNING.txt https://tomcat.apache.org/tomcat-8.0-doc/RUNNING.txt look for "Advanced Configuration - Multiple Tomcat Instances" in that page. thanks Niranjan On Fri, Jun 30, 2017 at 11:18 AM, Subhro Paulwrote: > -Christopher Schultz wrote: - > To: users@tomcat.apache.org > From: Christopher Schultz > Date: 06/29/2017 12:35PM > Subject: Re: Tomcat managed server > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Subhro, > > On 6/29/17 11:57 AM, Subhro Paul wrote: > > Can you tell me if we can create manged server in tomcat like we > > can do in Weblogic server? > > > > I have Googled that and found information which is about setting > > up different tomcat instances but not the managed server which we > > can do in Weblogic. > For those of us unfamiliar with WebLogic... can you explain what a > "managed server in Tomcat" is? > > - -chris > -BEGIN PGP SIGNATURE- > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAllVLFMACgkQHPApP6U8 > pFg8Vw//WcSo7+ynxMQvNsiJdiJ+HP+qPrkH5reYUvyYfj5D0f0W8RfCt5yvB1Um > jdww+T9tpYbt2nt5iWYjBx27x9DbhTuJt/OnUNfZQw7PAP2S4L0Q6Amim7yQNzau > 1nbRxpfSL4rBzR2aQvwNokyd1Uqy1Wwujkf8x4ozphAhtrpeX0ctYHJupusUAXZf > ijQgDypgwWkPk2LpWkOQDF3jfsFqim/JRsw6DhRvV/u9jfPWGThmKUGF0JkilB+W > kkiIjA3eH03HS/S+wIJBQ3tJoEbTo5H8Xg786hdO3Z1fCyUV13THK+wihLM1WlcA > OLvBQlEn/Ms2tQKV1HOfMr4O4EOsxh+1yAz0Wh7oli0dOC8uurSxqI3J0oYbRP99 > d8RJbbNumMXuK0OYo6Gihs/M9dAtafLV1gamACFCBl4HSMTYUBn0NulImcznnX9X > bue+lO2c+yeg2RAC5gOQnlq9VVcf+bOYRlak9rz5kdA9tp1XPQn9A3112HI0ebe3 > kuIe8eZMO0hbw/lrPG+kjdnjjCrFzeU6QQodnsZh6oZ1V1rB+A9acn9UeMuXOe6F > gT9GPuxSCRciU3CScNd+9KjT5uEFXvGmP7Dmb7XFCsE4VRIDRFNhE7zRRsmrZfkX > 4ProlRh9mryxJUyf1r+OLGK7kJOFccb+e4q19+7sVqfswHU+9xc= > =sxgZ > -END PGP SIGNATURE- > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > Hi Chris, > Managed Server is like instance of a server. Like one single Tomcat > installation can have multiple instances. Each instance can run separately > and can have different setup and configuration. You can configure them as a > cluster as well. But all this instance is linked with single server. But i > am not sure if Tomcat support that facility. > > Thanks, > Subhro Paul > > =-=-= > Notice: The information contained in this e-mail > message and/or attachments to it may contain > confidential or privileged information. If you are > not the intended recipient, any dissemination, use, > review, distribution, printing or copying of the > information contained in this e-mail message > and/or attachments to it are strictly prohibited. If > you have received this communication in error, > please notify us by reply e-mail or telephone and > immediately and permanently delete the message > and any attachments. Thank you > > > -- *Thanks* *Niranjan*
Re: tomcat installation errors
may be pid file lying around from earlier stop/start? remove the pid file and start again. /opt/tomcat/temp/tomcat.pid On Tue, Dec 20, 2016 at 4:08 PM, Mary Wiegandwrote: > Hi, > > I'm installing tomcat v8.5.9 on ubuntu 16.04 > > this is my tomcat.service file: > > #System unit file for tomcat > [Unit] > Description=Apache Tomcat Web Application Container > After=network.target > > [Service] > Type=forking > > Environment=JAVA_HOME=/usr/lib/jvm/java-8-oracle/jre/bin/java > Environment=CATALINA_PID=/opt/tomcat/temp/tomcat.pid > Environment=CATALINA_HOME=/opt/tomcat > Environment=CATALINA_BASE=/opt/tomcat > Environment='CATALINA_OPTS=-Xms512M -Xmx1024M -server-XX:+UseParallelGC' > Environment='JAVA_OPTS=-Djava.awt.headless=true > -Djava.security.edg=file:/dev/./urandom' > > ExecStart=/opt/tomcat/bin/startup.sh > ExecStop=/opt/tomcat/bin/shutdown.sh > > User=tomcat > Group=tomcat > UMask=0007 > RestartSec=10 > Restart=always > > [Install] > WantedBy=multi-user.target > > > This is what I get when I check the journalctl -xe: > > tomcat.service: Main process exited, code=exited, status=2/INVALIDARGUMENT > PID file found but no matching process was found. Stop aborted. > tomcat.service: Control process exited, code=exited status=1 > tomcat.service: Unit entered failed state. > tomcat.service:Failed with result 'exit-code'. > > Anyone have any ideas for me on where to start looking for the > invalidargument? > > Thanks, > > -Mary > -- *Thanks* *Niranjan*
Re: Apache/Tomcat vulnerability
you can find who is flooding site in apache access.log and block them in firewall. ex to find the IP: cat /var/log/apache2/access.log |cut -d' ' -f1 |sort |uniq -c|sort -gr On Fri, Nov 25, 2016 at 8:42 AM, Jaaz Portalwrote: > hi, > we are from some weeks struggling with some Polish hackers that are > bringing our server down. After updating apache to latest version (2.4.23) > and tomcat (8.0.38) available for debian systems we still cannot secure our > server. > > Today it has stopped to respond again and we needed to restart tomcat > process to get it back alive. > > There is no too much clues in the logs. The apache error.log gives just > this line: > > [Fri Nov 25 13:08:00.647835 2016] [mpm_event:error] [pid 13385:tid > 1397934896385 > 92] AH00484: server reached MaxRequestWorkers setting, consider raising the > MaxR > equestWorkers setting > > seems that somehow tomcat, mod-jk2 or even apache is vulnerable to some new > exploit, as we certainly does not have such traffic that would block our > server otherwise > > for now we have increased MaxRequestWorkers and we have limited number of > connections from one client to 5 by mod_bw and limited number of > simultaneous connections from one ip by iptables but does not know if this > will help > > best regards, > artur > -- *Thanks* *Niranjan*
Re: tomcat cache database server IP forever
Thanks Chris, thanks for the lead on this, will test this scenario and update on this. Thanks Niranjan On Tue, Jun 14, 2016 at 3:56 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Niranjan, > > On 6/14/16 10:06 AM, Niranjan Babu Bommu wrote: > > Thanks for your reply, here I'm attaching server.xml file in this > > email. > > > > actually we are running MHA for mysql where we can spin up new db > > server and add to the cluster or change the IP of db server > > without impacting end user. our application is running on both > > tomcat and jboss we switch whenever we want, Recently we have > > noticed that when we replaced the db server, jboss is able to > > detect the dns change and sends connection requests to new IP where > > as tomcat sending connection requests to the old IP and throws > > tons of error. Since we can't test this in real time in prod, we > > were able to replicate this test env. > > > > tried with simple java program where it polls the host name while > > I'm changing the IP address of the server in DNS. I'm able to see > > the new IP address imminently when I change that IP in DNS. this > > confirms that java security setting looks fine, the same in-house > > application works in jboss when we change the IP of DB server but > > tomcat behaving differently. I ran out of options to figure out > > where is the problem. > > What if you write a simple JSP, etc. that reports the IP address of > db1.local and auto-refreshes every second? > > My suspicion is that the jdbc-pool is continuing to use connections > that have already been established. No DNS resolution is performed to > communicate over an existing TCP/IP connection. > > When you change the IP address of db1.local, are you also terminating > all TCP/IP connections to the old db1.local host? If not, they will > continue to function as if no change had occurred. New connections are > likely to connect to the use server. > > Why are you playing games with IP addresses? If you are using MySQL > HA, why not run it on a machine that doesn't change IP addresses and > use that as a proxy to your db cluster? Then the HA proxy takes care > of everything and you don't need to re-IP your whole cluster while > it's running. > > - -chris > > > On Tue, Jun 14, 2016 at 4:04 AM, Mark Thomas <ma...@apache.org > > <mailto:ma...@apache.org>> wrote: > > > > On 13/06/2016 19:21, Niranjan Babu Bommu wrote: > >> Hi All, > >> > >> I have an issue with tomcat dns cache ttl, > > > > That simply is not possible. Tomcat doesn't cache DNS entries. > > > >> where if I change the IP address of the database, tomcat still > >> sending connection requests to an old IP until I restart tomcat, > > > > Now that sounds like a better start to the problem description. You > > are going to need to expand on that. A lot. > > > > Tomcat doesn't use a database by default so is this really a > > Tomcat issue or an application issue? How is the database > > configured? Is connection pooling being used? How are you > > confirming connection requests are being directed to the old IP > > address? Define "restart Tomcat". > > > > Mark > > > >> this is not the case with Jboss. I verified in java security, > >> this what we have in java. > >> > >> #networkaddress.cache.ttl=-1 > >> > >> since this property has been disabled, by default ttl will be 30 > >> sec, jboss 7 is respecting this value, but not tomcat. > >> > >> so far I have tried these things in tomcat. > >> > >> https://bz.apache.org/bugzilla/show_bug.cgi?id=33226 > >> > >> neither of these settings is not working in tomcat > >> > >> -Dnetworkaddress.cache.ttl=0 or -Dsun.net.inetaddr.ttl=0 > >> > >> > >> java version "1.7.0_60" tomcat-7.0.56 os centos 6. > >> > >> can someone please help me out to fix this issue > >> > > > > > > - > > > > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > <mailto:users-unsubscr...@tomcat.apache.org> For additional > > commands, e-mail: users-h...@tomcat.apache.org > > <mailto:users-h...@tomcat.apache.org> > > > > > > > > > > -- /*Thanks*/ /*Niranjan*/ /*+1 781.956.6900*/ > > > > > > > > - > > > > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -BEGIN PGP SIGNATURE- > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iEYEARECAAYFAldgYWkACgkQ9CaO5/Lv0PBbGQCeIuMkUUcAZX1m5aE8Yh40lgll > hJAAn3rSoZspVPai4PH5eJYh79wPzfPl > =EX/E > -END PGP SIGNATURE- > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- *Thanks* *Niranjan*
Re: tomcat dns cache forever
Hi Chris, here is how I'm connecting to the database. Thanks Niranjan On Tue, Jun 14, 2016 at 3:41 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Niranjan, > > On 6/10/16 11:45 AM, Niranjan Babu Bommu wrote: > > I have an issue with tomcat dns cache ttl, where if I change the IP > > address of the database, tomcat still sending connection requests > > to an old IP until I restart tomcat, this is not the case with > > Jboss. I verified in java security, this what we have in java. > > > > #networkaddress.cache.ttl=-1 > > > > since this property has been disabled, by default ttl will be 30 > > sec, jboss 7 is respecting this value, but not tomcat. > > > > so far I have tried these things in tomcat. > > > > https://bz.apache.org/bugzilla/show_bug.cgi?id=33226 > > > > neither of these settings is not working in tomcat > > > > -Dnetworkaddress.cache.ttl=0 or -Dsun.net.inetaddr.ttl=0 > > > > > > java version "1.7.0_60" tomcat-7.0.56 os centos 6. > > > > can someone please help me out to fix this issue? > > How are you connecting to your database? > > - -chris > -BEGIN PGP SIGNATURE- > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iEYEARECAAYFAldgXeoACgkQ9CaO5/Lv0PAsAQCgv1QJp55fv8v1VIYXIGLzWWLn > M6wAniY7ewMkxz5ogyIqg4PybnFtYBtV > =TdRc > -END PGP SIGNATURE- > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- *Thanks* *Niranjan*
Re: tomcat cache database server IP forever
Hi Mark, Thanks for your reply, here I'm attaching server.xml file in this email. actually we are running MHA for mysql where we can spin up new db server and add to the cluster or change the IP of db server without impacting end user. our application is running on both tomcat and jboss we switch whenever we want, Recently we have noticed that when we replaced the db server, jboss is able to detect the dns change and sends connection requests to new IP where as tomcat sending connection requests to the old IP and throws tons of error. Since we can't test this in real time in prod, we were able to replicate this test env. tried with simple java program where it polls the host name while I'm changing the IP address of the server in DNS. I'm able to see the new IP address imminently when I change that IP in DNS. this confirms that java security setting looks fine, the same in-house application works in jboss when we change the IP of DB server but tomcat behaving differently. I ran out of options to figure out where is the problem. Thanks Niranjan On Tue, Jun 14, 2016 at 4:04 AM, Mark Thomas <ma...@apache.org> wrote: > On 13/06/2016 19:21, Niranjan Babu Bommu wrote: > > Hi All, > > > > I have an issue with tomcat dns cache ttl, > > That simply is not possible. Tomcat doesn't cache DNS entries. > > > where if I change the IP address > > of the database, tomcat still sending connection requests to an old IP > > until I restart tomcat, > > Now that sounds like a better start to the problem description. You are > going to need to expand on that. A lot. > > Tomcat doesn't use a database by default so is this really a Tomcat > issue or an application issue? How is the database configured? Is > connection pooling being used? How are you confirming connection > requests are being directed to the old IP address? Define "restart Tomcat". > > Mark > > > this is not the case with Jboss. I verified in java > > security, this what we have in java. > > > > #networkaddress.cache.ttl=-1 > > > > since this property has been disabled, by default ttl will be 30 sec, > jboss > > 7 is respecting this value, but not tomcat. > > > > so far I have tried these things in tomcat. > > > > https://bz.apache.org/bugzilla/show_bug.cgi?id=33226 > > > > neither of these settings is not working in tomcat > > > > -Dnetworkaddress.cache.ttl=0 or -Dsun.net.inetaddr.ttl=0 > > > > > > java version "1.7.0_60" > > tomcat-7.0.56 > > os centos 6. > > > > can someone please help me out to fix this issue > > > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- *Thanks* *Niranjan* *+1 781.956.6900* - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
tomcat cache database server IP forever
Hi All, I have an issue with tomcat dns cache ttl, where if I change the IP address of the database, tomcat still sending connection requests to an old IP until I restart tomcat, this is not the case with Jboss. I verified in java security, this what we have in java. #networkaddress.cache.ttl=-1 since this property has been disabled, by default ttl will be 30 sec, jboss 7 is respecting this value, but not tomcat. so far I have tried these things in tomcat. https://bz.apache.org/bugzilla/show_bug.cgi?id=33226 neither of these settings is not working in tomcat -Dnetworkaddress.cache.ttl=0 or -Dsun.net.inetaddr.ttl=0 java version "1.7.0_60" tomcat-7.0.56 os centos 6. can someone please help me out to fix this issue -- *Thanks* *Niranjan*
tomcat dns cache forever
Hi All, I have an issue with tomcat dns cache ttl, where if I change the IP address of the database, tomcat still sending connection requests to an old IP until I restart tomcat, this is not the case with Jboss. I verified in java security, this what we have in java. #networkaddress.cache.ttl=-1 since this property has been disabled, by default ttl will be 30 sec, jboss 7 is respecting this value, but not tomcat. so far I have tried these things in tomcat. https://bz.apache.org/bugzilla/show_bug.cgi?id=33226 neither of these settings is not working in tomcat -Dnetworkaddress.cache.ttl=0 or -Dsun.net.inetaddr.ttl=0 java version "1.7.0_60" tomcat-7.0.56 os centos 6. can someone please help me out to fix this issue? -- *Thanks* *Niranjan*
Re: Problem with monitoring with JMX
can you try putting config in startup script? CATALINA_OPTS="-Xms512M -Xmx1024M -server -XX:+UseParallelGC" CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.port= \ -Dcom.sun.management.jmxremote.authenticate=false \ -Dcom.sun.management.jmxremote.ssl=false " I'm guessing when you set this in setenv.sh, this may not able to find all the classes. On Tue, May 24, 2016 at 4:31 PM, Niranjan Babu Bommu < niranjan.bo...@gmail.com> wrote: > make sense, if you are not using shared apps better to use CATALINA_OPTS. > > On Tue, May 24, 2016 at 4:07 PM, Edwin Quijada <listas_quij...@hotmail.com > > wrote: > >> I read that is better use CATALINA_OPTS instead of JAVA_OPTS >> >> >> From: Niranjan Babu Bommu <niranjan.bo...@gmail.com> >> Sent: Tuesday, May 24, 2016 7:44 PM >> To: Tomcat Users List >> Subject: Re: Problem with monitoring with JMX >> >> I think this would be JAVA_OPTS. >> >> CATALINA_OPTS="-Xms512M -Xmx1024M -server -XX:+UseParallelGC" >> >> On Tue, May 24, 2016 at 2:50 PM, Edwin Quijada < >> listas_quij...@hotmail.com> >> wrote: >> >> > Hi! >> > I am trying to monitor my Tomcat server using JMX remote when I >> configure >> > the JMX protocol when I try to start Tomcat I get this >> > >> > Could not load Logmanager "org.apache.juli.ClassLoaderLogManager" >> > java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager >> > at java.net.URLClassLoader$1.run(URLClassLoader.java:372) >> > at java.net.URLClassLoader$1.run(URLClassLoader.java:361) >> > at java.security.AccessController.doPrivileged(Native Method) >> > at java.net.URLClassLoader.findClass(URLClassLoader.java:360) >> > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) >> > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) >> > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) >> > at java.util.logging.LogManager$1.run(LogManager.java:195) >> > at java.util.logging.LogManager$1.run(LogManager.java:181) >> > at java.security.AccessController.doPrivileged(Native Method) >> > at java.util.logging.LogManager.(LogManager.java:181) >> > at java.util.logging.Logger.demandLogger(Logger.java:448) >> > at java.util.logging.Logger.getLogger(Logger.java:502) >> > at >> com.sun.jmx.remote.util.ClassLogger.(ClassLogger.java:55) >> > at >> > >> sun.management.jmxremote.ConnectorBootstrap.(ConnectorBootstrap.java:814) >> > at sun.management.Agent.startAgent(Agent.java:257) >> > at sun.management.Agent.startAgent(Agent.java:447) >> > Can't load log handler "1catalina.org.apache.juli.AsyncFileHandler" >> > java.lang.ClassNotFoundException: >> > 1catalina.org.apache.juli.AsyncFileHandler >> > java.lang.ClassNotFoundException: >> > 1catalina.org.apache.juli.AsyncFileHandler >> > >> > and to the bottom I get errror : >> > Error: Password file not found: >> > /usr/lib/jvm/java-8-oracle/jre/lib/management/jmxremote.password >> > >> > but my config doesnt use password >> > >> > This is my setenv.sh >> > CATALINA_OPTS="-Xms512M -Xmx1024M -server -XX:+UseParallelGC" >> > CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote \ >> > -Dcom.sun.management.jmxremote.port= \ >> > -Dcom.sun.management.jmxremote.authenticate=false \ >> > -Dcom.sun.management.jmxremote.ssl=false " >> > >> > When I put off this configuration everything is fine and Tomcat can >> startup >> > >> > Any cluees?> >> > >> > >> #-Dcom.sun.management.jmxremote.password.file=../conf/jmxremote.password \ >> > #-Dcom.sun.management.jmxremote.access.file=../conf/jmxremote.access" >> > >> > >> > >> >> >> -- >> *Thanks* >> *Niranjan* >> *+1 781.956.6900* >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> > > > -- > *Thanks* > *Niranjan* > *+1 781.956.6900 <%2B1%20781.956.6900>* > -- *Thanks* *Niranjan* *+1 781.956.6900*
Re: Problem with monitoring with JMX
make sense, if you are not using shared apps better to use CATALINA_OPTS. On Tue, May 24, 2016 at 4:07 PM, Edwin Quijada <listas_quij...@hotmail.com> wrote: > I read that is better use CATALINA_OPTS instead of JAVA_OPTS > > > From: Niranjan Babu Bommu <niranjan.bo...@gmail.com> > Sent: Tuesday, May 24, 2016 7:44 PM > To: Tomcat Users List > Subject: Re: Problem with monitoring with JMX > > I think this would be JAVA_OPTS. > > CATALINA_OPTS="-Xms512M -Xmx1024M -server -XX:+UseParallelGC" > > On Tue, May 24, 2016 at 2:50 PM, Edwin Quijada <listas_quij...@hotmail.com > > > wrote: > > > Hi! > > I am trying to monitor my Tomcat server using JMX remote when I configure > > the JMX protocol when I try to start Tomcat I get this > > > > Could not load Logmanager "org.apache.juli.ClassLoaderLogManager" > > java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager > > at java.net.URLClassLoader$1.run(URLClassLoader.java:372) > > at java.net.URLClassLoader$1.run(URLClassLoader.java:361) > > at java.security.AccessController.doPrivileged(Native Method) > > at java.net.URLClassLoader.findClass(URLClassLoader.java:360) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > > at java.util.logging.LogManager$1.run(LogManager.java:195) > > at java.util.logging.LogManager$1.run(LogManager.java:181) > > at java.security.AccessController.doPrivileged(Native Method) > > at java.util.logging.LogManager.(LogManager.java:181) > > at java.util.logging.Logger.demandLogger(Logger.java:448) > > at java.util.logging.Logger.getLogger(Logger.java:502) > > at > com.sun.jmx.remote.util.ClassLogger.(ClassLogger.java:55) > > at > > > sun.management.jmxremote.ConnectorBootstrap.(ConnectorBootstrap.java:814) > > at sun.management.Agent.startAgent(Agent.java:257) > > at sun.management.Agent.startAgent(Agent.java:447) > > Can't load log handler "1catalina.org.apache.juli.AsyncFileHandler" > > java.lang.ClassNotFoundException: > > 1catalina.org.apache.juli.AsyncFileHandler > > java.lang.ClassNotFoundException: > > 1catalina.org.apache.juli.AsyncFileHandler > > > > and to the bottom I get errror : > > Error: Password file not found: > > /usr/lib/jvm/java-8-oracle/jre/lib/management/jmxremote.password > > > > but my config doesnt use password > > > > This is my setenv.sh > > CATALINA_OPTS="-Xms512M -Xmx1024M -server -XX:+UseParallelGC" > > CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote \ > > -Dcom.sun.management.jmxremote.port= \ > > -Dcom.sun.management.jmxremote.authenticate=false \ > > -Dcom.sun.management.jmxremote.ssl=false " > > > > When I put off this configuration everything is fine and Tomcat can > startup > > > > Any cluees?> > > > > #-Dcom.sun.management.jmxremote.password.file=../conf/jmxremote.password > \ > > #-Dcom.sun.management.jmxremote.access.file=../conf/jmxremote.access" > > > > > > > > > -- > *Thanks* > *Niranjan* > *+1 781.956.6900* > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- *Thanks* *Niranjan* *+1 781.956.6900*
Re: Problem with monitoring with JMX
I think this would be JAVA_OPTS. CATALINA_OPTS="-Xms512M -Xmx1024M -server -XX:+UseParallelGC" On Tue, May 24, 2016 at 2:50 PM, Edwin Quijadawrote: > Hi! > I am trying to monitor my Tomcat server using JMX remote when I configure > the JMX protocol when I try to start Tomcat I get this > > Could not load Logmanager "org.apache.juli.ClassLoaderLogManager" > java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager > at java.net.URLClassLoader$1.run(URLClassLoader.java:372) > at java.net.URLClassLoader$1.run(URLClassLoader.java:361) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:360) > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > at java.util.logging.LogManager$1.run(LogManager.java:195) > at java.util.logging.LogManager$1.run(LogManager.java:181) > at java.security.AccessController.doPrivileged(Native Method) > at java.util.logging.LogManager.(LogManager.java:181) > at java.util.logging.Logger.demandLogger(Logger.java:448) > at java.util.logging.Logger.getLogger(Logger.java:502) > at com.sun.jmx.remote.util.ClassLogger.(ClassLogger.java:55) > at > sun.management.jmxremote.ConnectorBootstrap.(ConnectorBootstrap.java:814) > at sun.management.Agent.startAgent(Agent.java:257) > at sun.management.Agent.startAgent(Agent.java:447) > Can't load log handler "1catalina.org.apache.juli.AsyncFileHandler" > java.lang.ClassNotFoundException: > 1catalina.org.apache.juli.AsyncFileHandler > java.lang.ClassNotFoundException: > 1catalina.org.apache.juli.AsyncFileHandler > > and to the bottom I get errror : > Error: Password file not found: > /usr/lib/jvm/java-8-oracle/jre/lib/management/jmxremote.password > > but my config doesnt use password > > This is my setenv.sh > CATALINA_OPTS="-Xms512M -Xmx1024M -server -XX:+UseParallelGC" > CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote \ > -Dcom.sun.management.jmxremote.port= \ > -Dcom.sun.management.jmxremote.authenticate=false \ > -Dcom.sun.management.jmxremote.ssl=false " > > When I put off this configuration everything is fine and Tomcat can startup > > Any cluees?> > > #-Dcom.sun.management.jmxremote.password.file=../conf/jmxremote.password \ > #-Dcom.sun.management.jmxremote.access.file=../conf/jmxremote.access" > > > -- *Thanks* *Niranjan* *+1 781.956.6900*
Re: tomcat(7.0.56) is not releasing idle jdbc connections
I'm re-posting my ds On Wed, May 11, 2016 at 10:16 AM, Niranjan Babu Bommu < niranjan.bo...@gmail.com> wrote: > I tried the same config on test stacks. numidle always "10" why it is > behaving differently in prod? > >auth="Container" > type="javax.sql.DataSource" > testWhileIdle="true" > testOnBorrow="true" > testOnReturn="false" > fairQueue="false" > validationQuery="SELECT 1" > validationInterval="3" > timeBetweenEvictionRunsMillis="3" > maxActive="100" > maxIdle="10" > minIdle="10" > maxWait="1" > initialSize="10" > removeAbandonedTimeout="60" > removeAbandoned="true" > logAbandoned="true" > minEvictableIdleTimeMillis="30" > jmxEnabled="true" > > jdbcInterceptors="ConnectionState;StatementFinalizer;ResetAbandonedTimer" > username="" > password="" > driverClassName="com.mysql.jdbc.Driver" > > url="jdbc:mysql:///?useServerPrepStmts=falseuseOldAliasMetadataBehavior=true"/> > > On Wed, May 11, 2016 at 7:35 AM, Niranjan Babu Bommu < > niranjan.bo...@gmail.com> wrote: > >> Hi Mark >> I have included defined data source in this mail, do you want me to >> include complete server.xml? >> >> thanks >> Niranjan >> >> On Wed, May 11, 2016 at 7:19 AM, Mark Thomas <ma...@apache.org> wrote: >> >>> On 11/05/2016 11:58, Niranjan Babu Bommu wrote: >>> > Hi, >>> > >>> > we are migrating prod servers to tomcat, since we are doing it slowly >>> we >>> > have found an issue in jdbc connection pool, tomcat is not releasing >>> idle >>> > jdbc connections, even we have tried setting maxIdle="10" but "NumIdle >>> 97" >>> > always. due to this threads are piling up in database. >>> > >>> > I'm including my config here, can someone please help me out, how to >>> > minimize idle jdbc connections. >>> >>> Where have you added the configuration below? >>> >>> Mark >>> >>> >>> > >>> > >> > auth="Container" >>> > type="javax.sql.DataSource" >>> > testWhileIdle="true" >>> > testOnBorrow="true" >>> > testOnReturn="false" >>> > fairQueue="false" >>> > validationQuery="SELECT 1" >>> > validationInterval="3" >>> > timeBetweenEvictionRunsMillis="3" >>> > maxActive="100" >>> > maxIdle="10" >>> > minIdle="10" >>> > maxWait="1" >>> > initialSize="10" >>> > removeAbandonedTimeout="60" >>> > removeAbandoned="true" >>> > logAbandoned="true" >>> > minEvictableIdleTimeMillis="30" >>> > jmxEnabled="true" >>> > >>> > >>> jdbcInterceptors="ConnectionState;StatementFinalizer;ResetAbandonedTimer" >>> > username="" >>> > password="" >>> > driverClassName="com.mysql.jdbc.Driver" >>> > >>> > >>> url="jdbc:mysql:///?useServerPrepStmts=falseuseOldAliasMetadataBehavior=true"/> >>> > >>> > >>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >>> For additional commands, e-mail: users-h...@tomcat.apache.org >>> >>> >> >> >> -- >> *Thanks* >> *Niranjan* >> *+1 781.956.6900 <%2B1%20781.956.6900>* >> > > > > -- > *Thanks* > *Niranjan* > *+1 781.956.6900 <%2B1%20781.956.6900>* > -- *Thanks* *Niranjan* *+1 781.956.6900*
Re: tomcat(7.0.56) is not releasing idle jdbc connections
I tried the same config on test stacks. numidle always "10" why it is behaving differently in prod? On Wed, May 11, 2016 at 7:35 AM, Niranjan Babu Bommu < niranjan.bo...@gmail.com> wrote: > Hi Mark > I have included defined data source in this mail, do you want me to > include complete server.xml? > > thanks > Niranjan > > On Wed, May 11, 2016 at 7:19 AM, Mark Thomas <ma...@apache.org> wrote: > >> On 11/05/2016 11:58, Niranjan Babu Bommu wrote: >> > Hi, >> > >> > we are migrating prod servers to tomcat, since we are doing it slowly we >> > have found an issue in jdbc connection pool, tomcat is not releasing >> idle >> > jdbc connections, even we have tried setting maxIdle="10" but "NumIdle >> 97" >> > always. due to this threads are piling up in database. >> > >> > I'm including my config here, can someone please help me out, how to >> > minimize idle jdbc connections. >> >> Where have you added the configuration below? >> >> Mark >> >> >> > >> > > > auth="Container" >> > type="javax.sql.DataSource" >> > testWhileIdle="true" >> > testOnBorrow="true" >> > testOnReturn="false" >> > fairQueue="false" >> > validationQuery="SELECT 1" >> > validationInterval="3" >> > timeBetweenEvictionRunsMillis="3" >> > maxActive="100" >> > maxIdle="10" >> > minIdle="10" >> > maxWait="1" >> > initialSize="10" >> > removeAbandonedTimeout="60" >> > removeAbandoned="true" >> > logAbandoned="true" >> > minEvictableIdleTimeMillis="30" >> > jmxEnabled="true" >> > >> > >> jdbcInterceptors="ConnectionState;StatementFinalizer;ResetAbandonedTimer" >> > username="" >> > password="" >> > driverClassName="com.mysql.jdbc.Driver" >> > >> > >> url="jdbc:mysql:///?useServerPrepStmts=falseuseOldAliasMetadataBehavior=true"/> >> > >> > >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> > > > -- > *Thanks* > *Niranjan* > *+1 781.956.6900 <%2B1%20781.956.6900>* > -- *Thanks* *Niranjan* *+1 781.956.6900*
Re: tomcat(7.0.56) is not releasing idle jdbc connections
Hi Mark I have included defined data source in this mail, do you want me to include complete server.xml? thanks Niranjan On Wed, May 11, 2016 at 7:19 AM, Mark Thomas <ma...@apache.org> wrote: > On 11/05/2016 11:58, Niranjan Babu Bommu wrote: > > Hi, > > > > we are migrating prod servers to tomcat, since we are doing it slowly we > > have found an issue in jdbc connection pool, tomcat is not releasing idle > > jdbc connections, even we have tried setting maxIdle="10" but "NumIdle > 97" > > always. due to this threads are piling up in database. > > > > I'm including my config here, can someone please help me out, how to > > minimize idle jdbc connections. > > Where have you added the configuration below? > > Mark > > > > > > > auth="Container" > > type="javax.sql.DataSource" > > testWhileIdle="true" > > testOnBorrow="true" > > testOnReturn="false" > > fairQueue="false" > > validationQuery="SELECT 1" > > validationInterval="3" > > timeBetweenEvictionRunsMillis="3" > > maxActive="100" > > maxIdle="10" > > minIdle="10" > > maxWait="1" > > initialSize="10" > > removeAbandonedTimeout="60" > > removeAbandoned="true" > > logAbandoned="true" > > minEvictableIdleTimeMillis="30" > > jmxEnabled="true" > > > > jdbcInterceptors="ConnectionState;StatementFinalizer;ResetAbandonedTimer" > > username="" > > password="" > > driverClassName="com.mysql.jdbc.Driver" > > > > > url="jdbc:mysql:///?useServerPrepStmts=falseuseOldAliasMetadataBehavior=true"/> > > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- *Thanks* *Niranjan* *+1 781.956.6900*
tomcat(7.0.56) is not releasing idle jdbc connections
Hi, we are migrating prod servers to tomcat, since we are doing it slowly we have found an issue in jdbc connection pool, tomcat is not releasing idle jdbc connections, even we have tried setting maxIdle="10" but "NumIdle 97" always. due to this threads are piling up in database. I'm including my config here, can someone please help me out, how to minimize idle jdbc connections. -- *Thanks* *Niranjan*
Re: Issue with JMX in tomcat
I think the following OPTS is missing. -Dcom.sun.management.jmxremote=true On Tue, Apr 7, 2015 at 10:45 AM, Paul, Subhro subhro.p...@pseg.com wrote: Dear Team, Below is the property I was using to enable JMX in tomcat.conf file without authentication : CATALINA_OPTS=${CATALINA_OPTS} -Dcom.sun.management.jmxremote.port=9010 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=xx.xxx.xxx.xxx This was working fine through jConsole or VisualVM remotely. To move the change in production server we decided to enable user authentication. So, on the same box we did a trial and changed the property value as below: CATALINA_OPTS=${CATALINA_OPTS} -Dcom.sun.management.jmxremote.port=9010 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=true -Djava.rmi.server.hostname=10.184.222.84 -Dcom.sun.management.jmxremote.password.file=/export/home/webserve/jmxremote.password -Dcom.sun.management.jmxremote.access.file=/export/home/webserve/jmxremote.access Content in jmxremote.access : monitorRole readonly controlRole readwrite Content in jmxremote.password : monitorRole webserve controlRole webserve Tomcat is running under webserve user. Now every time we connect to the JMX on the server getting message Authentication Failed! Invalid username or password We are using Linux 6.5 64 bit OS, Tomcat6 and JAVA 1.6. Please let me know what I need to change here? Thanks Regards, Subhro Paul - The information contained in this e-mail, including any attachment(s), is intended solely for use by the named addressee(s). If you are not the intended recipient, or a person designated as responsible for delivering such messages to the intended recipient, you are not authorized to disclose, copy, distribute or retain this message, in whole or in part, without written authorization from PSEG. This e-mail may contain proprietary, confidential or privileged information. If you have received this message in error, please notify the sender immediately. This notice is included in all e-mail messages leaving PSEG. Thank you for your cooperation. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- *Thanks* *Niranjan* *+1 781.956.6900*
Re: Issue with JMX in tomcat
What you see in the log? can you try chmod to read on two files? -r 1 jmxremote.password -r 1 jmxremote.access On Tue, Apr 7, 2015 at 11:19 AM, Paul, Subhro subhro.p...@pseg.com wrote: -Original Message- From: Niranjan Babu Bommu [mailto:niranjan.bo...@gmail.com] Sent: Tuesday, April 07, 2015 11:02 AM To: Tomcat Users List Subject: Re: Issue with JMX in tomcat Email sent from outside of PSEG. Use caution before using links/attachments. I think the following OPTS is missing. -Dcom.sun.management.jmxremote=true On Tue, Apr 7, 2015 at 10:45 AM, Paul, Subhro subhro.p...@pseg.com wrote: Dear Team, Below is the property I was using to enable JMX in tomcat.conf file without authentication : CATALINA_OPTS=${CATALINA_OPTS} -Dcom.sun.management.jmxremote.port=9010 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=xx.xxx.xxx.xxx This was working fine through jConsole or VisualVM remotely. To move the change in production server we decided to enable user authentication. So, on the same box we did a trial and changed the property value as below: CATALINA_OPTS=${CATALINA_OPTS} -Dcom.sun.management.jmxremote.port=9010 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=true -Djava.rmi.server.hostname=10.184.222.84 -Dcom.sun.management.jmxremote.password.file=/export/home/webserve/jmxremote.password -Dcom.sun.management.jmxremote.access.file=/export/home/webserve/jmxremote.access Content in jmxremote.access : monitorRole readonly controlRole readwrite Content in jmxremote.password : monitorRole webserve controlRole webserve Tomcat is running under webserve user. Now every time we connect to the JMX on the server getting message Authentication Failed! Invalid username or password We are using Linux 6.5 64 bit OS, Tomcat6 and JAVA 1.6. Please let me know what I need to change here? Thanks Regards, Subhro Paul - The information contained in this e-mail, including any attachment(s), is intended solely for use by the named addressee(s). If you are not the intended recipient, or a person designated as responsible for delivering such messages to the intended recipient, you are not authorized to disclose, copy, distribute or retain this message, in whole or in part, without written authorization from PSEG. This e-mail may contain proprietary, confidential or privileged information. If you have received this message in error, please notify the sender immediately. This notice is included in all e-mail messages leaving PSEG. Thank you for your cooperation. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- *Thanks* *Niranjan* *+1 781.956.6900* Dear Niranjan, I applied your suggestion and restarted the server. But I am still getting same message. Thanks Regards, Subhro Paul - The information contained in this e-mail, including any attachment(s), is intended solely for use by the named addressee(s). If you are not the intended recipient, or a person designated as responsible for delivering such messages to the intended recipient, you are not authorized to disclose, copy, distribute or retain this message, in whole or in part, without written authorization from PSEG. This e-mail may contain proprietary, confidential or privileged information. If you have received this message in error, please notify the sender immediately. This notice is included in all e-mail messages leaving PSEG. Thank you for your cooperation. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- *Thanks* *Niranjan* *+1 781.956.6900*
Re: catalina.out rotation in tomcat 7.0.56
Hi Chris, Can you please help me out catalina.out rotation, I have only thing pending in my migration project. I want to rotate catalina.out everyday midnight. Thanks Niranjan On Fri, Nov 21, 2014 at 2:00 PM, Niranjan Babu Bommu niranjan.bo...@gmail.com wrote: Hi Chris, Thanks for your reply. Actually I'm running multiple instances in tomcat, log-rotation works fine for all the instances but they are not rotation midnight everyday, '.'-MM-ddRollover at midnight each day. Thanks Niranjan On Fri, Nov 21, 2014 at 12:18 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Niranjan, On 11/21/14 10:38 AM, Niranjan Babu Bommu wrote: I’m working on a project migrating apps from jboss to tomcat, I’m running into an issue that is catalina.out rotation, I’m using log4.properties. Everything works fine, log rotation happening but not everyday midnight. I ‘m having difficult time to figure out. could some one help me out on this I followed this document to setup. http://tomcat.apache.org/tomcat-7.0-doc/logging.html#Using_Log4j. log4j.properties in CATALINA_BASE/lib log4j.rootLogger=INFO,catalina log4j.appender.catalina=org.apache.log4j.DailyRollingFileAppender log4j.appender.catalina.File=${catalina.base}/logs/catalina.out log4j.appender.catalina.Append=true log4j.appender.catalina.Encoding=UTF-8 # Roll-over the log once per day log4j.appender.catalina.DatePattern='.'-MM-dd'.log' log4j.appender.catalina.layout=org.apache.log4j.PatternLayout log4j.appender.catalina.layout.ConversionPattern=%d [%t] %-5p %c- %m%n If you use ${catalina.base}/logs/catalina.out with log4j and you are also using Tomcat's standard scripts to launch Tomcat, then you will have a conflict because logs/catalina.out is used for redirection of the stdout and stderr streams when the JVM launches. Instead, use a different file with log4j, and minimize the amount of stuff going to stdout/stderr so that it does not require any rotation at all. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJUb3PUAAoJEBzwKT+lPKRYRaoP/ijh53H4flvtl8uVTVxwRBXc kt12tGfEfMgm8D6oneh6oZ4gNO6VnGKEWP8VHCEvKzZPCUgTwx2/VPTKi8lRdrKl JghjfbzuuVHIF+VQi5ClzT6uNveiIhzi60oleyzMHiIjaCs1lSR6HJ7V2W67Mu2M iEVz2j33/WA5BQzDPRwpbiJBFVzdJrfD2YTmUdIoIBaLLKYTBxgmGcLbamvUwsXg qotuN5wWQRgcIiclE0O7Ko+F075tY3ec65llV6olIlzGLXIKqhzsj9Tg15cRx97A RQCUAV9qH1MjFHhBnVfHOkte/6JqAetjHeN7Cf3rIWjp+CdC6fO0teLGJPtZHvAQ 6eeN0VntGy6OSe12r3nID+FvDTgBWe85UPAwk3hP1wXgMYaclOMRwfa5kD3zM4Tm y2ZMrdQKMq6xfl1hSXCtYA5mYjMVxSELTarGv42V9hqErk+4BUxzm6v/71G1NCCj 8yQo6+X7Ei4QfjUuO/K9u+/aZP70n+39MxMVopSa/Ol95RlxzI+1bJJtIsjZFU/7 VgkZ6mHdHrLJMdgOIsjM3spfOZvbpKuIboo/bGLe5TnUfoccNTmnYml0KWKGWhqh fLYTtc9Pl5JdYmpi3MqBTr2Yv3dGssC9yW1G0zDztNrv6qn3YXKFJ61gMj1rDhau SaLFI4P3EQ4mWjKmI0j0 =O3bN -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- *Thanks* *Niranjan* *+1 781.956.6900 %2B1%20781.956.6900* -- *Thanks* *Niranjan* *+1 781.956.6900*
Re: Deploying .ca-bundle file .crt file as SSL certificates
Hi Kernel, I think you have create a keystore from the cert, please follow these instruction and ket me know. Create store with temporary key inside: keytool -genkey -alias alias name -keystore yourkeystore.jks -storepass Hello1 Then delete existing entry: keytool -delete -alias temp -keystore yourkeystore.jks -storepass Hello1 Now you've got empty store. You can check that it's empty: keytool -list -keystore yourkeystore.jks -storepass Hello1 Then import your certificate to the store: keytool -import -alias alias name -file cert_file.crt -keypass keypass -keystore yourkeystore.jks -storepass Hello1 Thanks Niranjan On Mon, Nov 24, 2014 at 10:13 AM, Kernel freak kernelfr...@gmail.com wrote: Hello friends, I am using apache tomcat and I would like to deploy a Spring-MVC application which I am working on. In that, via Spring-Security I have specified to use https which requires to install the SSL certificate on the server. I am running a Debian Wheezy server, and I have certificate files with extension as .crt and .ca-bundle. Unfortunately I cannot find any resources which mention where and how to install these files. What I found was these files are meant for webserver. Is that correct? If yes, can I use them to deploy these 2 files? Kindly let me know. Also if anyone can help me with one more problem I have posted on StackOverflow : http://stackoverflow.com/questions/27106983/configuring-apache-tomcat-to-start-webapp-by-default Regards, Kernel -- *Thanks* *Niranjan* *+1 781.956.6900*
Re: Deploying .ca-bundle file .crt file as SSL certificates
Sorry, I did not notice that. - *Import a root or intermediate CA certificate to an existing Java keystore* keytool -import -trustcacerts -alias root -file *ca.crt* -keystore *yourkeystore.jks* On Mon, Nov 24, 2014 at 11:02 AM, Kernel freak kernelfr...@gmail.com wrote: Thank you, and what about the CA-Bundle file? Did you got a chance to look at the question I have posted on Stackoverflow mentioned in the original question? On Mon, Nov 24, 2014 at 4:51 PM, Niranjan Babu Bommu niranjan.bo...@gmail.com wrote: Hi Kernel, I think you have create a keystore from the cert, please follow these instruction and ket me know. Create store with temporary key inside: keytool -genkey -alias alias name -keystore yourkeystore.jks -storepass Hello1 Then delete existing entry: keytool -delete -alias temp -keystore yourkeystore.jks -storepass Hello1 Now you've got empty store. You can check that it's empty: keytool -list -keystore yourkeystore.jks -storepass Hello1 Then import your certificate to the store: keytool -import -alias alias name -file cert_file.crt -keypass keypass -keystore yourkeystore.jks -storepass Hello1 Thanks Niranjan On Mon, Nov 24, 2014 at 10:13 AM, Kernel freak kernelfr...@gmail.com wrote: Hello friends, I am using apache tomcat and I would like to deploy a Spring-MVC application which I am working on. In that, via Spring-Security I have specified to use https which requires to install the SSL certificate on the server. I am running a Debian Wheezy server, and I have certificate files with extension as .crt and .ca-bundle. Unfortunately I cannot find any resources which mention where and how to install these files. What I found was these files are meant for webserver. Is that correct? If yes, can I use them to deploy these 2 files? Kindly let me know. Also if anyone can help me with one more problem I have posted on StackOverflow : http://stackoverflow.com/questions/27106983/configuring-apache-tomcat-to-start-webapp-by-default Regards, Kernel -- *Thanks* *Niranjan* *+1 781.956.6900* -- *Thanks* *Niranjan* *+1 781.956.6900*
Re: Deploying .ca-bundle file .crt file as SSL certificates
Are you able to see the 8443 port listening? nc -z ipaddress 8443 On Mon, Nov 24, 2014 at 11:25 AM, Kernel freak kernelfr...@gmail.com wrote: I have added the certificate. I modified the server.xml code to add the following lines : Connector port=8443 protocol=HTTP/1.1 SSLEnabled=true maxThreads=150 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=/root/.keystore keystorepass=password for keystore / Now when I open the application, it redirects to https, but it says unable to connect, your connection to this website maynotbe encrypted. What am I doing wrong? On Mon, Nov 24, 2014 at 5:20 PM, Niranjan Babu Bommu niranjan.bo...@gmail.com wrote: Sorry, I did not notice that. - *Import a root or intermediate CA certificate to an existing Java keystore* keytool -import -trustcacerts -alias root -file *ca.crt* -keystore *yourkeystore.jks* On Mon, Nov 24, 2014 at 11:02 AM, Kernel freak kernelfr...@gmail.com wrote: Thank you, and what about the CA-Bundle file? Did you got a chance to look at the question I have posted on Stackoverflow mentioned in the original question? On Mon, Nov 24, 2014 at 4:51 PM, Niranjan Babu Bommu niranjan.bo...@gmail.com wrote: Hi Kernel, I think you have create a keystore from the cert, please follow these instruction and ket me know. Create store with temporary key inside: keytool -genkey -alias alias name -keystore yourkeystore.jks -storepass Hello1 Then delete existing entry: keytool -delete -alias temp -keystore yourkeystore.jks -storepass Hello1 Now you've got empty store. You can check that it's empty: keytool -list -keystore yourkeystore.jks -storepass Hello1 Then import your certificate to the store: keytool -import -alias alias name -file cert_file.crt -keypass keypass -keystore yourkeystore.jks -storepass Hello1 Thanks Niranjan On Mon, Nov 24, 2014 at 10:13 AM, Kernel freak kernelfr...@gmail.com wrote: Hello friends, I am using apache tomcat and I would like to deploy a Spring-MVC application which I am working on. In that, via Spring-Security I have specified to use https which requires to install the SSL certificate on the server. I am running a Debian Wheezy server, and I have certificate files with extension as .crt and .ca-bundle. Unfortunately I cannot find any resources which mention where and how to install these files. What I found was these files are meant for webserver. Is that correct? If yes, can I use them to deploy these 2 files? Kindly let me know. Also if anyone can help me with one more problem I have posted on StackOverflow : http://stackoverflow.com/questions/27106983/configuring-apache-tomcat-to-start-webapp-by-default Regards, Kernel -- *Thanks* *Niranjan* *+1 781.956.6900* -- *Thanks* *Niranjan* *+1 781.956.6900* -- *Thanks* *Niranjan* *+1 781.956.6900*
Re: Deploying .ca-bundle file .crt file as SSL certificates
it works for me with this conf. Connector port=8443 protocol=HTTP/1.1 SSLEnabled=true address=IPADDRESS executor=THREADNAME scheme=https secure=true keystoreFile=PATH of keystore file keystorePass=PASSWRD sslProtocol=TLSv1 / On Mon, Nov 24, 2014 at 11:27 AM, Niranjan Babu Bommu niranjan.bo...@gmail.com wrote: Are you able to see the 8443 port listening? nc -z ipaddress 8443 On Mon, Nov 24, 2014 at 11:25 AM, Kernel freak kernelfr...@gmail.com wrote: I have added the certificate. I modified the server.xml code to add the following lines : Connector port=8443 protocol=HTTP/1.1 SSLEnabled=true maxThreads=150 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=/root/.keystore keystorepass=password for keystore / Now when I open the application, it redirects to https, but it says unable to connect, your connection to this website maynotbe encrypted. What am I doing wrong? On Mon, Nov 24, 2014 at 5:20 PM, Niranjan Babu Bommu niranjan.bo...@gmail.com wrote: Sorry, I did not notice that. - *Import a root or intermediate CA certificate to an existing Java keystore* keytool -import -trustcacerts -alias root -file *ca.crt* -keystore *yourkeystore.jks* On Mon, Nov 24, 2014 at 11:02 AM, Kernel freak kernelfr...@gmail.com wrote: Thank you, and what about the CA-Bundle file? Did you got a chance to look at the question I have posted on Stackoverflow mentioned in the original question? On Mon, Nov 24, 2014 at 4:51 PM, Niranjan Babu Bommu niranjan.bo...@gmail.com wrote: Hi Kernel, I think you have create a keystore from the cert, please follow these instruction and ket me know. Create store with temporary key inside: keytool -genkey -alias alias name -keystore yourkeystore.jks -storepass Hello1 Then delete existing entry: keytool -delete -alias temp -keystore yourkeystore.jks -storepass Hello1 Now you've got empty store. You can check that it's empty: keytool -list -keystore yourkeystore.jks -storepass Hello1 Then import your certificate to the store: keytool -import -alias alias name -file cert_file.crt -keypass keypass -keystore yourkeystore.jks -storepass Hello1 Thanks Niranjan On Mon, Nov 24, 2014 at 10:13 AM, Kernel freak kernelfr...@gmail.com wrote: Hello friends, I am using apache tomcat and I would like to deploy a Spring-MVC application which I am working on. In that, via Spring-Security I have specified to use https which requires to install the SSL certificate on the server. I am running a Debian Wheezy server, and I have certificate files with extension as .crt and .ca-bundle. Unfortunately I cannot find any resources which mention where and how to install these files. What I found was these files are meant for webserver. Is that correct? If yes, can I use them to deploy these 2 files? Kindly let me know. Also if anyone can help me with one more problem I have posted on StackOverflow : http://stackoverflow.com/questions/27106983/configuring-apache-tomcat-to-start-webapp-by-default Regards, Kernel -- *Thanks* *Niranjan* *+1 781.956.6900* -- *Thanks* *Niranjan* *+1 781.956.6900* -- *Thanks* *Niranjan* *+1 781.956.6900 %2B1%20781.956.6900* -- *Thanks* *Niranjan* *+1 781.956.6900*
catalina.out rotation in tomcat 7.0.56
Hi I’m working on a project migrating apps from jboss to tomcat, I’m running into an issue that is catalina.out rotation, I’m using log4.properties. Everything works fine, log rotation happening but not everyday midnight. I ‘m having difficult time to figure out. could some one help me out on this I followed this document to setup. http://tomcat.apache.org/tomcat-7.0-doc/logging.html#Using_Log4j. log4j.properties in CATALINA_BASE/lib log4j.rootLogger=INFO,catalina log4j.appender.catalina=org.apache.log4j.DailyRollingFileAppender log4j.appender.catalina.File=${catalina.base}/logs/catalina.out log4j.appender.catalina.Append=true log4j.appender.catalina.Encoding=UTF-8 # Roll-over the log once per day log4j.appender.catalina.DatePattern='.'-MM-dd'.log' log4j.appender.catalina.layout=org.apache.log4j.PatternLayout log4j.appender.catalina.layout.ConversionPattern=%d [%t] %-5p %c- %m%n -- *Thanks* *Niranjan*
Re: catalina.out rotation in tomcat 7.0.56
Hi Chris, Thanks for your reply. Actually I'm running multiple instances in tomcat, log-rotation works fine for all the instances but they are not rotation midnight everyday, '.'-MM-ddRollover at midnight each day. Thanks Niranjan On Fri, Nov 21, 2014 at 12:18 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Niranjan, On 11/21/14 10:38 AM, Niranjan Babu Bommu wrote: I’m working on a project migrating apps from jboss to tomcat, I’m running into an issue that is catalina.out rotation, I’m using log4.properties. Everything works fine, log rotation happening but not everyday midnight. I ‘m having difficult time to figure out. could some one help me out on this I followed this document to setup. http://tomcat.apache.org/tomcat-7.0-doc/logging.html#Using_Log4j. log4j.properties in CATALINA_BASE/lib log4j.rootLogger=INFO,catalina log4j.appender.catalina=org.apache.log4j.DailyRollingFileAppender log4j.appender.catalina.File=${catalina.base}/logs/catalina.out log4j.appender.catalina.Append=true log4j.appender.catalina.Encoding=UTF-8 # Roll-over the log once per day log4j.appender.catalina.DatePattern='.'-MM-dd'.log' log4j.appender.catalina.layout=org.apache.log4j.PatternLayout log4j.appender.catalina.layout.ConversionPattern=%d [%t] %-5p %c- %m%n If you use ${catalina.base}/logs/catalina.out with log4j and you are also using Tomcat's standard scripts to launch Tomcat, then you will have a conflict because logs/catalina.out is used for redirection of the stdout and stderr streams when the JVM launches. Instead, use a different file with log4j, and minimize the amount of stuff going to stdout/stderr so that it does not require any rotation at all. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJUb3PUAAoJEBzwKT+lPKRYRaoP/ijh53H4flvtl8uVTVxwRBXc kt12tGfEfMgm8D6oneh6oZ4gNO6VnGKEWP8VHCEvKzZPCUgTwx2/VPTKi8lRdrKl JghjfbzuuVHIF+VQi5ClzT6uNveiIhzi60oleyzMHiIjaCs1lSR6HJ7V2W67Mu2M iEVz2j33/WA5BQzDPRwpbiJBFVzdJrfD2YTmUdIoIBaLLKYTBxgmGcLbamvUwsXg qotuN5wWQRgcIiclE0O7Ko+F075tY3ec65llV6olIlzGLXIKqhzsj9Tg15cRx97A RQCUAV9qH1MjFHhBnVfHOkte/6JqAetjHeN7Cf3rIWjp+CdC6fO0teLGJPtZHvAQ 6eeN0VntGy6OSe12r3nID+FvDTgBWe85UPAwk3hP1wXgMYaclOMRwfa5kD3zM4Tm y2ZMrdQKMq6xfl1hSXCtYA5mYjMVxSELTarGv42V9hqErk+4BUxzm6v/71G1NCCj 8yQo6+X7Ei4QfjUuO/K9u+/aZP70n+39MxMVopSa/Ol95RlxzI+1bJJtIsjZFU/7 VgkZ6mHdHrLJMdgOIsjM3spfOZvbpKuIboo/bGLe5TnUfoccNTmnYml0KWKGWhqh fLYTtc9Pl5JdYmpi3MqBTr2Yv3dGssC9yW1G0zDztNrv6qn3YXKFJ61gMj1rDhau SaLFI4P3EQ4mWjKmI0j0 =O3bN -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- *Thanks* *Niranjan* *+1 781.956.6900*
RE: JspTagException- Stream closed
Here is the body of the method doEndTag(). The exception is thrown for line number 146, which isthis.iter = null; of the reset method. public int doEndTag() throws JspException { if (this.jdField_bodyContent_of_type_JavaxServletJspTagextBodyContent != null) { try { this.jdField_bodyContent_of_type_JavaxServletJspTagextBodyContent.writeOut(this.jdField_bodyContent_of_type_JavaxServletJspTagextBodyContent.getEnclosingWriter()); } catch (IOException localIOException) { this.jdField_pageContext_of_type_JavaxServletJspPageContext.getServletContext().log(Res.getString(4), localIOException); throw new JspTagException(localIOException.getMessage()); } } reset(); return 6; } private void reset() { this.sDataSource = null; this.changeCurrentRow = true; this.useRange = false; this.ds = null; this.rs = null; this.iter = null; } -Original Message- From: Babu, Tinu [mailto:tinu.b...@amd.com] Sent: Monday, August 26, 2013 2:51 PM To: Tomcat Users List Subject: RE: JspTagException- Stream closed The RowSetIterate tag is declared in the JSP itself. All the JSPs having this RowSetIterate tag is throwing Stream closed exception. -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Wednesday, August 21, 2013 9:41 PM To: Tomcat Users List Subject: Re: JspTagException- Stream closed -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Tinu, On 8/20/13 9:59 PM, Babu, Tinu wrote: Here is the piece of codes which is throwing the error. select name=list1 size=15 multiple jbo:RowsetIterate datasource=userRole option value=jbo:ShowValue datasource=userRole dataitem=RoleName / jbo:ShowValue datasource=userRole dataitem=RoleDesc / /option /jbo:RowsetIterate /select select name=list2 size=15 multiple jbo:RowsetIterate datasource=roles option value=jbo:ShowValue datasource=roles dataitem=RoleName / jbo:ShowValue datasource=roles dataitem=RoleDesc / /option /jbo:RowsetIterate /select Exception is always being thrown from the RowSetIterate Tags in JSPs. This was working properly with Tomcat4 version and when we upgraded our Tomcat to version 6 we started getting this strange exception. Please share your thoughts. Where is the row set itself declared? In the JSP? In a servlet somewhere that executes before the JSP? In general, I wouldn't recommend making any JDBC calls from within a JSP: I prefer to take care of all data acquisition in a servlet (or similar) before delegating the creation of a response to the view layer. But that's just me. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.14 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJSFMNUAAoJEBzwKT+lPKRYRDUQAMs3ugmVpr/K0kGMRIV2xHvG cb7Kd2uWrvAnFLqgbj6GuMFQvWsTXcbA3tlaa+iY3FSQEchFnzktONVdqml6CGsB UdumVqg0GFPI9vPM7nq4EOxTZg6QlaVsy2LJ0hbmc4vFaYD6s4uz21yd2IMZ8MJy FjGx6JylFn1c9RjLBegWRWUS3ykkapaZ8lwJU+QUnI1WxLp8mg37FV7ziwKIk5u5 yKc1nquQ/cj2aqUiEdpC2CEwmy05m2APiDmGT/UkKuZoHMRG1/OzLFlKg65RhlvB x0iPSDZv6iP/neZEtGmOsYiQLG9F5/v4ziV+kgsJYbhmb6jtYIYiHcBYrn425Q2W ERhqEuYRXR+2yRxt3/xzB0uSyg3eikhfwNoOrFH2OGgk4cpzSZJRW/E0N2EUYUwr ZRuGpOr4wgpPOrJ3A02hGYpBz2ZtbiingTl/72IlLcgBnBUapWzSazPl4BE7gPe/ VToMDtlxm74qiqtvr8C8swGAK9Y2xwmFkFI2GF2tu7STgbDfIA7f8eILYo3+m57S 3oI/O4aVf38HiKuA5pZmahSU5mLtCi4Fj0RmzDSSwLgi0WYfgUzCsqKDJKFns2qe PRNEyA8w7X4IKI4oJKgP/C7+gl3g8xycEo2C04Q6ZlZHjqfSBqJi6KnxJfdZLoYt t18eSlW8KZBzKKHP7QpT =011K -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: JspTagException- Stream closed
The RowSetIterate tag is declared in the JSP itself. All the JSPs having this RowSetIterate tag is throwing Stream closed exception. -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Wednesday, August 21, 2013 9:41 PM To: Tomcat Users List Subject: Re: JspTagException- Stream closed -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Tinu, On 8/20/13 9:59 PM, Babu, Tinu wrote: Here is the piece of codes which is throwing the error. select name=list1 size=15 multiple jbo:RowsetIterate datasource=userRole option value=jbo:ShowValue datasource=userRole dataitem=RoleName / jbo:ShowValue datasource=userRole dataitem=RoleDesc / /option /jbo:RowsetIterate /select select name=list2 size=15 multiple jbo:RowsetIterate datasource=roles option value=jbo:ShowValue datasource=roles dataitem=RoleName / jbo:ShowValue datasource=roles dataitem=RoleDesc / /option /jbo:RowsetIterate /select Exception is always being thrown from the RowSetIterate Tags in JSPs. This was working properly with Tomcat4 version and when we upgraded our Tomcat to version 6 we started getting this strange exception. Please share your thoughts. Where is the row set itself declared? In the JSP? In a servlet somewhere that executes before the JSP? In general, I wouldn't recommend making any JDBC calls from within a JSP: I prefer to take care of all data acquisition in a servlet (or similar) before delegating the creation of a response to the view layer. But that's just me. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.14 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJSFMNUAAoJEBzwKT+lPKRYRDUQAMs3ugmVpr/K0kGMRIV2xHvG cb7Kd2uWrvAnFLqgbj6GuMFQvWsTXcbA3tlaa+iY3FSQEchFnzktONVdqml6CGsB UdumVqg0GFPI9vPM7nq4EOxTZg6QlaVsy2LJ0hbmc4vFaYD6s4uz21yd2IMZ8MJy FjGx6JylFn1c9RjLBegWRWUS3ykkapaZ8lwJU+QUnI1WxLp8mg37FV7ziwKIk5u5 yKc1nquQ/cj2aqUiEdpC2CEwmy05m2APiDmGT/UkKuZoHMRG1/OzLFlKg65RhlvB x0iPSDZv6iP/neZEtGmOsYiQLG9F5/v4ziV+kgsJYbhmb6jtYIYiHcBYrn425Q2W ERhqEuYRXR+2yRxt3/xzB0uSyg3eikhfwNoOrFH2OGgk4cpzSZJRW/E0N2EUYUwr ZRuGpOr4wgpPOrJ3A02hGYpBz2ZtbiingTl/72IlLcgBnBUapWzSazPl4BE7gPe/ VToMDtlxm74qiqtvr8C8swGAK9Y2xwmFkFI2GF2tu7STgbDfIA7f8eILYo3+m57S 3oI/O4aVf38HiKuA5pZmahSU5mLtCi4Fj0RmzDSSwLgi0WYfgUzCsqKDJKFns2qe PRNEyA8w7X4IKI4oJKgP/C7+gl3g8xycEo2C04Q6ZlZHjqfSBqJi6KnxJfdZLoYt t18eSlW8KZBzKKHP7QpT =011K -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: JspTagException- Stream closed
Here is the piece of codes which is throwing the error. select name=list1 size=15 multiple jbo:RowsetIterate datasource=userRole option value=jbo:ShowValue datasource=userRole dataitem=RoleName / jbo:ShowValue datasource=userRole dataitem=RoleDesc / /option /jbo:RowsetIterate /select select name=list2 size=15 multiple jbo:RowsetIterate datasource=roles option value=jbo:ShowValue datasource=roles dataitem=RoleName / jbo:ShowValue datasource=roles dataitem=RoleDesc / /option /jbo:RowsetIterate /select Exception is always being thrown from the RowSetIterate Tags in JSPs. This was working properly with Tomcat4 version and when we upgraded our Tomcat to version 6 we started getting this strange exception. Please share your thoughts. -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Monday, August 19, 2013 9:39 PM To: Tomcat Users List Subject: Re: JspTagException- Stream closed -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Babu, On 8/19/13 2:59 AM, Babu, Tinu wrote: Thank you Konstantin and Chris for your valuable comments. No image IO operation has been performed by the thread. Basically what it does is, we have a database view for admin user which is like a package tree. On click of each package will show the contents of the package in the right panel. This works always. But when the user clicks on packages very fast, this Stream closed error is getting displayed in the GUI. Now iIf the user click on the package again which has thrown the exception previously will show the contents properly. I don’t have the source for RowsetIterateTag and so not very sure about the content of do EndTag or what it actually does. I don’t think that any other exception is being thrown along with the Stream closed exception. I am new to this server-client applications, so please correct me if I am wrong. This sounds like you may be inappropriately sharing a resource between threads -- most likely a database Connection, Statement, or even ResultSet object. Is this all implemented in a JSP or a servlet? Can you post some of the relevant code? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.14 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJSEiARAAoJEBzwKT+lPKRYktAQAJZ7OoktKQw2Y+FKgfWHpeen Md4BBd6rEebSfzEAd9qm88UEvOKNn/kks7uj27vRe1zpZdWf4S7xQ1TEnNVIhi+q TxjolFmj6NvDIDuGQV1W8M0Js2kORm14X0GlokFY4Pg5qBBZ5LjxyrzAtOlvyGK9 qJjlvkJFfC/pmRI0zLtiLCAhEisLBZJdAh2O6StFB65HcE+XzawZYtJ2FrnkzfYu l4eY16Qf0kqZs8dSXsbIMf3S27Oik/ApsNMNp8FuyrvQ5+Zh2UIN07/pPSzEPIEG /jb+qyMgd+nqiS4LMsgNXoR+VzyGZ977HZv/Toxv+pSSbr5MPdRT8mBXan6wa5zc y0U1GVPuaOyIV9J1+8x+UqojXafYvHSCFRq9hpTKZODBxgtIMRVkQimUdriibU92 Sy6p4O/bhhCBU0L1D7fhsu/7yw3eZcQWLMNuNk6cLCKhDVMOmnpUF9ILWx1Ginsf Kqs/uZStSXEg9p5Q8N8T7pHaVnoMRUcoJpzQ2JvQ7hYDX535Qq6T2NiI7+c09xz+ uKW1ATMUkQiRuwfYGE2GLZKUbEgI9agrBTC4u/+b3Px22I4WniUa/rln7QGyXg3v o/nCLcQn8w1kckNte5uIloyocuUBcO5aP3qzX146+icZrBl8dMQYUvdKzD9dh4tj dsdC+WWP9kHMo2PGScYo =UGQ8 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Fix CVE tomcat 6.0.18 with out upgrade
We are using tomcat 6.0.18 and we found below number of Common Vulnerabilities and Exposures (CVE). High Vulns: 98 Medium Vulns: 50 Low Vulns: 6 We cannot upgrade/patch any of those components due to supportability concerns from Autonomy. How can I apply a fix for all the CVE, I see the build instructions in below link but I was looking for applying the fixes without upgrade. Security - http://tomcat.apache.org/security-6.html#Apache_Tomcat_6.x_vulnerabilities Build Instructions - http://tomcat.apache.org/tomcat-6.0-doc/building.html Thanks
Re: Fix CVE tomcat 6.0.18 with out upgrade
Hi Dan, We might consider for upgrading the tomcat later, due to to supportability concerns from Autonomy we cannot upgrade it to any of the higher version. but right now we are looking to apply the fix for all CVE's we identified, it will be great if you can let me know the procedure. Thanks Suresh On Wed, May 8, 2013 at 10:11 AM, Daniel Mikusa dmik...@gopivotal.comwrote: On May 8, 2013, at 12:11 PM, suresh babu yella wrote: We are using tomcat 6.0.18 and we found below number of Common Vulnerabilities and Exposures (CVE). Not surprising given the version that you are using. Latest version is 6.0.37. High Vulns: 98 Medium Vulns: 50 Low Vulns: 6 We cannot upgrade/patch any of those components due to supportability concerns from Autonomy. How can I apply a fix for all the CVE, I see the build instructions in below link but I was looking for applying the fixes without upgrade. You should really consider upgrading. Why are you so opposed to upgrading? Dan Security - http://tomcat.apache.org/security-6.html#Apache_Tomcat_6.x_vulnerabilities Build Instructions - http://tomcat.apache.org/tomcat-6.0-doc/building.html Thanks - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Remove default files, example JSPs and Servlets from the Tomcat Servlet/JSP container.
Hi, We are using tomcat 6.0.18 and we got common vulnerability reported for having default files, example JSPs and Servlets from the Tomcat Servlet/JSP container. I need a steps to Remove default files, example JSPs and Servlets from the Tomcat Servlet/JSP container. Thanks Sures
RE: Memory leak in using SSL with Tomcat 6.0.18 - Solved
Good Work Bala. -Original Message- From: B. Balakrishna Rao [mailto:balakrishna_...@persistent.co.in] Sent: Thursday, August 05, 2010 5:29 PM To: Tomcat Users List Subject: RE: Memory leak in using SSL with Tomcat 6.0.18 - Solved The problem with memory leak using Tomcat 6.0.18 with SSL+JSSE is solved. I have implemented native SSL(using Apache APR) instead of JSSE SSL and the problem went away. Thanks for your help on this. Please note that memory leak using with SSL+JSSE is still exist on tomcat 6.0.29 version. Thanks, Bala. -Original Message- From: B. Balakrishna Rao Sent: Thursday, August 05, 2010 10:17 AM To: Tomcat Users List Subject: RE: Memory leak in using SSL with Tomcat 6.0.18 Hi Chris, Attached is the image for incoming references for com.sun.net.ssl.internal.ssl.SSLSocketImpl objects. Please let me know if you want any further details. Thanks, -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Wednesday, August 04, 2010 10:14 PM To: Tomcat Users List Subject: Re: Memory leak in using SSL with Tomcat 6.0.18 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 B., On 8/4/2010 10:19 AM, B. Balakrishna Rao wrote: Please note that, the 2,996 count is on production environment. The counts 7 and 10 are on my local environment. Ok. Below is the procedure I am following on my local environment to test this: Log in - do some operations - log out. I am calling session.invalidate() method upon log out. Whether you log out of not shouldn't have anything to do with these objects staying around. After that, I am taking the heap dump. Eclipse Memory Analyzer tool will do a full GC before it produce the results. Hence, com.sun.net.ssl.internal.ssl.SSLSocketImpl should be GCed?? Most likely. Since you're using a profiler, can you show us what the stack trace is of the code that created the SSLSocketImpl objects? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxZmNEACgkQ9CaO5/Lv0PA3DwCdEpwgPIclWBmmlfM+wD5VX0w4 YPIAn2P5+aVG9u8UswVYPEd5ctXh2jO1 =kV3t -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org DISCLAIMER == This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails. DISCLAIMER == This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.
Kerberos header passing issue
Hello We are having Desktop SSO for an application hosted on tomcat. The Desktop SSO uses kerberos authentication. We are using spnego.sourceforge.net solution for enabling SSO on tomcat end. Now, desktop SSO works charm. Now we would like to front tomcat with APache and use mod_jk for connecting. We have Apache 2.2.15, mod_jk 1.2.30 on Tomcat 6.0.24. As such apache mod_jk is working fine with tomcat when SSO is turned off on tomcat i.e apache and mod_jk have been configured properly. When i turn on SSO on tomcat, i get error when going through Apache but when i hit tomcat directly i don't get any error. Here is the error i'm getting GSSException: Failure unspecified at GSS-API level (Mechanism level: Checksum failed) sun.security.jgss.krb5.Krb5Context.acceptSecContext(Unknown Source) sun.security.jgss.GSSContextImpl.acceptSecContext(Unknown Source) sun.security.jgss.GSSContextImpl.acceptSecContext(Unknown Source) sun.security.jgss.spnego.SpNegoContext.GSS_acceptSecContext(Unknown Source) sun.security.jgss.spnego.SpNegoContext.acceptSecContext(Unknown Source) sun.security.jgss.GSSContextImpl.acceptSecContext(Unknown Source) sun.security.jgss.GSSContextImpl.acceptSecContext(Unknown Source) Does it mean that i need to tweak some configuration on apache and mod_jk to work with tomcat when sso is enabled? Please help Regards KB
Tomcat Connection Problem
Hi When i checked my log file i found this error. java.sql.SQLException: Connection is closed at org.apache.tomcat.dbcp.dbcp.DelegatingConnection.checkOpen(DelegatingConnection.java:291) at org.apache.tomcat.dbcp.dbcp.DelegatingConnection.createStatement(DelegatingConnection.java:159) at org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.createStatement(PoolingDataSource.java:204). With Regards Sharat Babu Shravanam Byte and Switch Names Solix Technologies One of the Top 10 Startups to Watch Read More at http://www.solix.com/top10startups - CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Solix has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Solix reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Solix e-mail system. End of Disclaimer **
Maximum Number of processes Exceeded
Hi, We are using Tomcat Server and oracle database. After running for a while we are getting this error in the log files. Its taking both inactive and active processess. how to remove the inactive processess so that we dont have this error. Debug: makeConnection(Database) java.sql.SQLException: ORA-00020: maximum number of processes (300) exceeded at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:283) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:278) at oracle.jdbc.driver.T4CTTIoauthenticate.receiveOsesskey(T4CTTIoauthenticate.java:294) at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:357) at oracle.jdbc.driver.PhysicalConnection.init(PhysicalConnection.java:439) at oracle.jdbc.driver.T4CConnection.init(T4CConnection.java:165) at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801) at org.apache.tomcat.dbcp.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38) at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294) at org.apache.tomcat.dbcp.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:974) at org.apache.tomcat.dbcp.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:84) at org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880) at utils.ConnectionBroker.makeConnection(ConnectionBroker.java:256) at utils.ConnectionBroker.makeConnection(ConnectionBroker.java:76) at beans.PurgeProcess_T.run(PurgeProcess_T.java:166) With Regards Sharat Babu Shravanam Byte and Switch Names Solix Technologies One of the Top 10 Startups to Watch Read More at http://www.solix.com/top10startups - CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Solix has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Solix reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Solix e-mail system. End of Disclaimer ** - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Connection Closed Issue
Hi all, we are using Tomcat server 5.5.20. Database is 9.0.28. After starting tomcat and using our application after sometime we are getting the following error: Can anyone suggest me, its really very urgent Thread 78: SQLException While Purging the Selected Data From Source Table java.sql.SQLException: Connection oracle.jdbc.driver.t4cconnect...@1c9e95a is closed. for CONFIG 100019 For RUN_ID 100063 Debug: AJArchiveLogDetails.java Exception Occured While Inserting Data to AJArchiveLogDetails java.sql.SQLException: Connection oracle.jdbc.dr iver.t4cconnect...@1c9e95a is closed. Debug: insertToAJArchiveLogDetails() java.sql.SQLException: Connection oracle.jdbc.driver.t4cconnect...@1c9e95a is closed. at org.apache.tomcat.dbcp.dbcp.DelegatingConnection.checkOpen(DelegatingConnection.java:354) at org.apache.tomcat.dbcp.dbcp.DelegatingConnection.prepareStatement(DelegatingConnection.java:246) at org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prepareStatement(PoolingDataSource.java:302) at beans.AJArchiveLogDetails.insertToAJArchiveLogDetails(AJArchiveLogDetails.java:177) at beans.PurgeProcess_T.run(PurgeProcess_T.java:281) Debug: PurgeProcess_T.java: run() Thread 78: Exception While Updating the AJ_JOBS Table java.lang.Exception: java.sql.SQLException: Connection oracle.jdbc.driver.t4cconnect...@1c9e95a is closed. for CONFIG 100019 For RUN_ID 100063 Debug: PurgeProcess_T.java: run() Thread 78: Exception Releasing Resources java.sql.SQLException: Connection oracle.jdbc.driver.T4CConnection@ 1c9e95a is closed. for CONFIG 100019 For RUN_ID 100063 With Regards Sharat Babu Shravanam Byte and Switch Names Solix Technologies One of the Top 10 Startups to Watch Read More at http://www.solix.com/top10startups - CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Solix has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Solix reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Solix e-mail system. End of Disclaimer **
RE: Re : Connection Closed Issue
Yes i have validation query specified. In developement we are having the same environment and settings there it is working fine without any issues. But in testing environment we are having this issue. Cannot figure it out why throught log files. One more exception we can find in log file is that CONNECTION NEVER CLOSED. With Regards Sharat Babu Shravanam From: Gaurav Lohiya [mailto:gloh...@gmail.com] Sent: Wed 9/16/2009 8:21 AM To: Tomcat Users List Subject: Re: Re : Connection Closed Issue Do you have the validation query specified. I believe putting in the validation query should solve the problem. On Wed, Sep 16, 2009 at 11:17 AM, Chetouani kchet...@yahoo.fr wrote: Hi, I had a similar problem. I was using tomcat and mysql and configured a connection pool using dbcp. The problem was that after some hours the application starts to throw an exception. The exception was : communication link failure The reason is that mysql is destroying the connectionz after some time (8 hours by default) and the connection pool is not aware of that I replaced dbcp by c3p0 and defined the maxConnectionAge to 3600s and the problem was solved --- En date de : Mer 16.9.09, Sharath Babu S S S sharath.b...@solix.com a écrit : De: Sharath Babu S S S sharath.b...@solix.com Objet: Connection Closed Issue À: users@tomcat.apache.org Date: Mercredi 16 Septembre 2009, 11h52 Hi all, we are using Tomcat server 5.5.20. Database is 9.0.28. After starting tomcat and using our application after sometime we are getting the following error: Can anyone suggest me, its really very urgent Thread 78: SQLException While Purging the Selected Data From Source Table java.sql.SQLException: Connection oracle.jdbc.driver.t4cconnect...@1c9e95a is closed. for CONFIG 100019 For RUN_ID 100063 Debug: AJArchiveLogDetails.java Exception Occured While Inserting Data to AJArchiveLogDetails java.sql.SQLException: Connection oracle.jdbc.dr iver.t4cconnect...@1c9e95a is closed. Debug: insertToAJArchiveLogDetails() java.sql.SQLException: Connection oracle.jdbc.driver.t4cconnect...@1c9e95ais closed. at org.apache.tomcat.dbcp.dbcp.DelegatingConnection.checkOpen(DelegatingConnection.java:354) at org.apache.tomcat.dbcp.dbcp.DelegatingConnection.prepareStatement(DelegatingConnection.java:246) at org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prepareStatement(PoolingDataSource.java:302) at beans.AJArchiveLogDetails.insertToAJArchiveLogDetails(AJArchiveLogDetails.java:177) at beans.PurgeProcess_T.run(PurgeProcess_T.java:281) Debug: PurgeProcess_T.java: run() Thread 78: Exception While Updating the AJ_JOBS Table java.lang.Exception: java.sql.SQLException: Connection oracle.jdbc.driver.t4cconnect...@1c9e95a is closed. for CONFIG 100019 For RUN_ID 100063 Debug: PurgeProcess_T.java: run() Thread 78: Exception Releasing Resources java.sql.SQLException: Connection oracle.jdbc.driver.T4CConnection@ 1c9e95a is closed. for CONFIG 100019 For RUN_ID 100063 With Regards Sharat Babu Shravanam Byte and Switch Names Solix Technologies One of the Top 10 Startups to Watch Read More at http://www.solix.com/top10startups - CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Solix has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Solix reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Solix e-mail system. End of Disclaimer ** -- Regards Lohiya Gaurav - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
New Mail Id
Hello all, Please note my new maild ID [EMAIL PROTECTED] , and also please send test mail as well... -- Suresh Babu, Software Engineer, Computer Associates-India
Re: Where to find session cookies
Think the servlet APIs like response.addCookie() etc ... might be helpful here. You can send couple of cookies in your response header, the browser will store these cookies permanently in harddisk. -Venkatesh - Original Message From: lightbulb432 [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Wednesday, June 27, 2007 12:42:36 AM Subject: RE: Where to find session cookies How can I configure Tomcat to use permanent cookies as opposed to session cookies? One of the reasons I'd like to know is to see the behavior of method isNew() of HttpSession, which I can do if I'm able to disable cookies. As the Javadoc for HttpSession says: A servlet should be able to handle cases in which the client does not choose to join a session, such as when cookies are intentionally turned off. Fargusson.Alan wrote: Session cookies are not stored on disk. This is why they are more secure then cookies (non-session). Since they only exist in RAM (ok, maybe in swap files) nobody else using that machine can find them, and they go away when the browser ends. -Original Message- From: lightbulb432 [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 29, 2007 12:15 PM To: users@tomcat.apache.org Subject: Where to find session cookies When testing my application that uses sessions, I don't seem to see a cookie with domain localhost in my browser's cookies folder. Does Tomcat use some internal folder to put its cookies, or am I just doing something else wrong? I do have cookies enabled, so it's not writing the session id to the URL, either. Thanks. -- View this message in context: http://www.nabble.com/Where-to-find-session-cookies-tf3835973.html#a10860700 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] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Where-to-find-session-cookies-tf3835973.html#a11311838 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] Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when. http://tv.yahoo.com/collections/222 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
increase the backend idle connection timeout or the connection_pool_minsize
::jk_lb_worker.c (517): decay with 2^3 [Mon Apr 02 22:26:06 2007] [13042:48048] [debug] wc_get_name_for_type::jk_worker.c (290): Found worker type 'lb' [Mon Apr 02 22:26:06 2007] [13042:48048] [debug] init_ws_service::mod_jk.c (604): Service protocol=HTTP/1.1 method=GET host=(null) addr=172.19 .88.138 name=cna-stage-nv.cisco.com port=80 auth=(null) user=(null) laddr=172.20.155.45 raddr=172.19.88.138 [Mon Apr 02 22:26:06 2007] [13042:48048] [debug] service::jk_lb_worker.c (848): service sticky_session=1 id='empty' [Mon Apr 02 22:26:06 2007] [13042:48048] [debug] get_most_suitable_worker::jk_lb_worker.c (793): found best worker tc_3_3 (tc_3_3) using metho d 'Request' [Mon Apr 02 22:26:06 2007] [13042:48048] [debug] service::jk_lb_worker.c (871): service worker=tc_3_3 route=tc_3_3 [Mon Apr 02 22:26:06 2007] [13042:48048] [debug] ajp_get_endpoint::jk_ajp_common.c (2329): acquired connection pool slot=0 [Mon Apr 02 22:26:06 2007] [13042:48048] [debug] ajp_marshal_into_msgb::jk_ajp_common.c (548): ajp marshaling done [Mon Apr 02 22:26:06 2007] [13042:48048] [debug] ajp_service::jk_ajp_common.c (1785): processing tc_3_3 with 2 retries [Mon Apr 02 22:26:06 2007] [13042:48048] [debug] ajp_send_request::jk_ajp_common.c (1184): (tc_3_3) socket 17 is not connected any more (errno =11) [Mon Apr 02 22:26:06 2007] [13042:48048] [info] ajp_send_request::jk_ajp_common.c (1215): (tc_3_3) error sending request. Will try another po oled connection [Mon Apr 02 22:26:06 2007] [13042:48048] [info] ajp_send_request::jk_ajp_common.c (1241): (tc_3_3) all endpoints are disconnected [Mon Apr 02 22:26:06 2007] [13042:48048] [info] ajp_send_request::jk_ajp_common.c (1244): (tc_3_3) increase the backend idle connection timeo ut or the connection_pool_minsize [Mon Apr 02 22:26:06 2007] [13042:48048] [info] ajp_service::jk_ajp_common.c (1930): (tc_3_3) sending request to tomcat failed, recoverable operation attempt=1 [Mon Apr 02 22:26:06 2007] [13042:48048] [debug] jk_open_socket::jk_connect.c (335): socket TCP_NODELAY set to On [Mon Apr 02 22:26:06 2007] [13042:48048] [debug] jk_open_socket::jk_connect.c (348): socket SO_KEEPALIVE set to On [Mon Apr 02 22:26:06 2007] [13042:48048] [debug] jk_open_socket::jk_connect.c (433): trying to connect socket 17 to 172.20.155.162:8002 [Mon Apr 02 22:26:06 2007] [13042:48048] [debug] jk_open_socket::jk_connect.c (459): socket 17 connected to 172.20.155.162:8002 [Mon Apr 02 22:26:06 2007] [13042:48048] [debug] ajp_connect_to_endpoint::jk_ajp_common.c (850): Connected socket 17 to (172.20.155.162:8002) [Mon Apr 02 22:26:06 2007] [13042:48048] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (896): sending to ajp13 pos=4 len=234 max=81 92 [Mon Apr 02 22:26:06 2007] [13042:48048] [debug] ajp_connection_tcp_send_message::jk_ajp_common.c (896): 12 34 00 E6 02 02 00 08 48 54 54 50 2F 31 2E 31 - .4..HTTP/1.1 With regards, Babu Satasiya -- View this message in context: http://www.nabble.com/increase-the-backend-idle-connection-timeout-or-the-connection_pool_minsize-tf3522364.html#a9826278 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: increase the backend idle connection timeout or the connection_pool_minsize
Hi, I think in mod_jk 1.2.20 these old parameters changed with new parameter names, these old paramter does not take effect into your mod_jk. Please change them with new name. Please refer URL for more details changes in new mod_jk: http://tomcat.apache.org/connectors-doc/reference/printer/workers.html worker.tomcat-publicweb-01.cachesize=10 worker.tomcat-publicweb-01.cache_timeout=600 It should be: worker.tomcat-publicweb-01.connection_pool_size=10 worker.tomcat-publicweb-01.connection_pool_timeout=600 worker.tomcat-publicweb-01.connection_pool_minsize=6 I also suggest to increase the nos for worker.tomcat-publicweb-01.connection_pool_size=50 worker.tomcat-publicweb-01.connection_pool_minsize=26 This modification you need to do in workers.properties. Please update this does not help. With regards, Babu Satasiya Cisco System Inc. Fletcher Cocquyt wrote: Rainer Jung rainer.jung at kippdata.de writes: Yes, but the log message is talking about the min size. The default min size is size/2, but we changed it between 1.2.19 and 1.2.20 to (size+1)/2. So for prefork the min size was 0 until 1.2.19 and is 1 starting with 1.2.20. So I tried connection_pool_minsize=1 - no discernable effect on error rate I've tried tuning all the other suggested parameters without a noticable effect on the rate of these info messages (2000-3000/hour) I tried: maxActive 40, maxIdle 5, maxWait 3000 no discernable difference in error rate. Maybe I need to modify them with bigger deltas to see a difference? Is there a way to tell which parameter would have the most impact? If those are for a DataSource, they have no relation to your mod_jk messages. Yes, maxActive 40, maxIdle 5, maxWait 3000 are all in the context.xml file in the datasource definition - so these would not affect mod_jk messages - I get that now! I tried connectionTimeout = 60 (10 times the default of 60 seconds) - no reduction in error rate Are you sure, you put it into the correct connector? I put it into the server.xml AJP connector - actually I'm not sure now if I had the value in quotes: Server port=13135 shutdown=SHUTDOWN Service name=Catalina Connector port=13138 / Connector port=13139 protocol=AJP/1.3 connectionTimeout=60 / Engine name=Catalina defaultHost=localhost jvmRoute=tomcat-publicweb-01 Logger className=org.apache.catalina.logger.FileLogger / Host name=localhost appBase=webapps / /Engine /Service /Server Please post your version numbers, platform details, log example and relevant apache and tomcat configuration items. Web servers: Solaris 9 x86, Apache 2.0.52, mod_jk 1.2.20 App servers: Solaris 9 Sparc, tomcat 5.0 worker definition: worker.tomcat-publicweb-01.type=ajp13 worker.tomcat-publicweb-01.host=irt-app-01 worker.tomcat-publicweb-01.port=13139 worker.tomcat-publicweb-01.lbfactor=50 worker.tomcat-publicweb-01.cachesize=10 worker.tomcat-publicweb-01.cache_timeout=600 worker.tomcat-publicweb-01.socket_keepalive=1 worker.tomcat-publicweb-01.retries=2 worker.tomcat-publicweb-01.socket_timeout=30 worker.tomcat-publicweb-01.connect_timeout=2000 worker.tomcat-publicweb-01.prepost_timeout=5000 worker.tomcat-publicweb-01.reply_timeout=30 mod_jk errors: ajp_send_request::jk_ajp_common.c (1201): (tomcat-publicweb-01) error sending request. Will try another pooled connection ajp_send_request::jk_ajp_common.c (1227): (tomcat-publicweb-01) all endpoints are disconnected ajp_send_request::jk_ajp_common.c (1230): (tomcat-publicweb-01) increase the backend idle connection timeout or the connection_pool_minsize ajp_service::jk_ajp_common.c (1916): (tomcat-publicweb-01) sending request to tomcat failed, recoverable operation attempt=1 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/increase-the-backend-idle-connection-timeout-or-the-connection_pool_minsize-tf3294954.html#a9718414 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]
Tomcat going down abruptly
Hello all, We have hosted a small vehicle retail website using tomcat as app server. The site has been live from around 6-7 months, just that the number of vehicles on our site is increasing. The site was working fine till last week, but in the last week we are seeing that our site is unstable, and tomcat keeps going down regularly. We are not able to find out the exact reason behind why this is happening. Tomcat log files are not containing note of any exceptions or error conditions resulting in tomcat going down. Can anybody tell me as to how we can find out the cause? As far as our webapp is concerned, addition of vehicles will cause increase in memory usage, but we are hosting our site in a machine having good amount of memory (2GB RAM). Given below are details of our setup: Hardware - AMD Opteron 170 (2GHz) OS - Redhat linux Memory - 2 GB RAM Tomcat - 4.1.31 Apache - 2.0.47 Thank you, Venkatesh TV dinner still cooling? Check out Tonight's Picks on Yahoo! TV. http://tv.yahoo.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: [OT] mod_jk sticky session now working !! My bad.
Hi Scott, Good its now working for you, I hope you can share your server.xml and workers.properties for community, so others can benefits of it. I would like to know do you use cluster or not? If yes, you tried stopping one of tomcat and your session is still continued or not? With cluster one can do session replication and it will help to have high availabilty and load balancing together. Please update. Babu Satasiya Cisco System Inc. Scott Danforth wrote: Aha!!! I was confused by the XML. I was changing the Engine element that was previously commented out, and this, of course, is followed by another (the real one, which wins, and didn't have a jvmRoute). Thanks so much! Your comments helped me find my problem. Thanks, -- Scott. Scott Danforth wrote: Hi Mladen, I really appreciate your help, and am happy that you're seeing a problem in the log output. I think I've got the Engine attributes specified correctly, and the two different jvmRoute values do show up in the mod_jk log. Engine name=Standalone defaultHost=localhost debug=0 jvmRoute=tomcat1 / Engine name=Standalone defaultHost=localhost debug=0 jvmRoute=tomcat2 / Maybe if I give the Engines different names? It sounds like we're expecting the jvmRoute to be appended to the sessionId that is returned in the Set-Cookie header? If so, I guess mod_jk is working as expected, and I'm just not getting the right sessionid created by Tomcat. I'm not using Boss. Just Apache and Tomcat on a single Solaris machine. -- Scott. Mladen Turk wrote: Scott Danforth wrote: Mladen Turk wrote: Thanks for your help. That sounds very reasonable, and I modifed the two server.xml Engine elements as suggested, but it appears to make no difference. get_most_suitable_worker::jk_lb_worker.c (733): searching worker for partial sessionid 9E36E3DC58A09ED9045B25F839E37A2C You still don't have jvmRoute appended. Check if jvmRoute (param name is case sensitive!) is correctly set up. Also, if you use JBoss add attribute name=UseJKtrue/attribute see: http://www.jboss.org/wiki/Wiki.jsp?page=UsingMod_jk1.2WithJBoss Regards, Mladen. - 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] -- View this message in context: http://www.nabble.com/mod_jk-sticky-session-not-working---tf3276314.html#a9192294 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: [OT] A Howto for Tomcat 6.0.9, mod_jk, apache 2.2 load balancing + session replication
Hi, Thanks, Do you think application needs to take care of new session replication or not, if not then try cart in example and you will find error message, You need to do some serialization of objects unless its not possible. Regarding multicast address setup on that cluster option, do we need to setup that on all the cluter tomcat system, otherwise how it will work? Please update on all the steps which you might have done not documented to how to which will help others to get going with session replication. If it is possible you can add your server.xml of both tomcat. With regards, Babulal Satasiya Cisco System Inc. Sriram Narayanan wrote: On 2/14/07, Babu Satasiya [EMAIL PROTECTED] wrote: Hi, Please update about cluster option in server.xml, without that how does it work. If you can post all the steps will help others, otherwise it may even confuse to others. I just looked over my previous post, and I see the following statement: 2. In server.xml, uncomment the tag for clustering That's all that I needed to do for enabling clustering on Tomcat. Thanks for posting on session replication, please let me know if we anyone have live application and if they go for session replication which you explain is method using session in memory. Will they need to do anything in application or not? http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html That link describes clustering better than I would. -- Sriram - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/A-Howto-for-Tomcat-6.0.9%2C-mod_jk%2C-apache-2.2-load-balancing-%2B-session-replication-tf3221269.html#a8998726 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: [OT] mod_jk seems to fail if not in debug mode
Hi, Do you have firewall configured between Apache+mod_jk and tomcat servers, if yes then try setting following parameters. worker.tomcat61.cachesize=25 worker.tomcat61.cache_timeout=20 worker.tomcat61.socket_timeout=20 worker.tomcat61.socket_keepalive=1 and also let me know what is timeout paramenters in sever.xml. It could be 2 miliseconds so I put 20 seconds in mod_jk. Please past server.xml and workers.properties (which you did). With regards, Babu Satasiya Cisco System Inc. Dave Gardner wrote: mod_jk seems to fail if not in debug mode I've set up my Apache/Tomcat servers and it seems to be working. However, in my httpd.conf if I use JkLogLevel info I get the following messages in my mod_jk.log file: [Tue Feb 13 08:08:45 2007] [24399:46784] [info] ajp_process_callback::jk_ajp_common.c (1433): Writing to client aborted or client network problems [Tue Feb 13 08:08:45 2007] [24399:46784] [info] ajp_service::jk_ajp_common.c (1832): (tomcat72) request failed, because of client write error without recovery in send loop attempt=0 [Tue Feb 13 08:08:45 2007] [24399:46784] [info] service::jk_lb_worker.c (979): unrecoverable error 200, request failed. Client failed in the middle of request, we can't recover to another instance. [Tue Feb 13 08:08:45 2007] [24399:46784] [info] jk_handler::mod_jk.c (2135): Aborting connection for worker=tomcats These repeat, not for every request but it cycles through all four Tomcat workers about every 10-20 minutes or so. Users also are getting page cannot be displayed, timeouts, etc. If I change it to JkLogLevel debug I get tons of information but no errors. Users tend to run a little slow (probably because of all the logging taking place), but it seems to work. Any help here would be appreciated. I am running: Linux RedHat Fedora 4.2 Apache 2.0.54-10 Apache Tomcat 5.5.12 Tomcat Connectors (mod_jk) 1.2.20 2 physical servers, each with dual procesors Each server runs 2 instances of Tomcat, each with it's own AJP1.3 connector Apache HTTPD runs on one server running virtual hosts. Each host routes to mod_jk using a JkMount /* tomcats directive My workers.properties file looks like this: # workers.properties start ps=/ worker.list=tomcat61, tomcat62, tomcat71, tomcat72, tomcats, jkstatus # DTBS6 Tomcat 1 worker.tomcat61.port=8009 worker.tomcat61.host=192.168.6.41 worker.tomcat61.type=ajp13 worker.tomcat61.lbfactor=100 # DTBS6 Tomcat 2 worker.tomcat62.port=8010 worker.tomcat62.host=192.168.6.41 worker.tomcat62.type=ajp13 worker.tomcat62.lbfactor=100 # DTBS7 Tomcat 1 worker.tomcat71.port=8009 worker.tomcat71.host=192.168.6.42 worker.tomcat71.type=ajp13 worker.tomcat71.lbfactor=100 # DTBS7 Tomcat 2 worker.tomcat72.port=8010 worker.tomcat72.host=192.168.6.42 worker.tomcat72.type=ajp13 worker.tomcat72.lbfactor=100 # Load Balancer worker worker.tomcats.type=lb worker.tomcats.balance_workers=tomcat61, tomcat71, tomcat62, tomcat72 # Status Worker worker.jkstatus.type=status # workers.properties end - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/mod_jk-seems-to-fail-if-not-in-debug-mode-tf3221490.html#a8951985 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: [OT] A Howto for Tomcat 6.0.9, mod_jk, apache 2.2 load balancing + session replication
Hi, Please update about cluster option in server.xml, without that how does it work. If you can post all the steps will help others, otherwise it may even confuse to others. Thanks for posting on session replication, please let me know if we anyone have live application and if they go for session replication which you explain is method using session in memory. Will they need to do anything in application or not? With regards, Babulal Satasiya Sriram Narayanan wrote: Hi all: I just got this working, so I thought of posting a small howto for the list :) An apache instance (httpd) that serves http://localhost/examples/ where /examples is served by two Tomcat instances (if one is down/unavailable, then httpd decides to redirect requests to the second tomcat instances. What I've got working so far: - Session replication between the various Tomcat instances in the cluster. - In case one instance is not available, then apache sends new requests to the next instance. - When and instance comes back, it joins the cluster, receives session replication, and is ready to take over when required. What else is possible: - Load balance based on the number of requests already sent to a Tomcat instance - Configure timeouts, etc - More information at http://tomcat.apache.org/connectors-doc/reference/workers.html What's not possible: - If the first instance dies, then the second instance carries on processing from that point. To try this yourself: 1. Download and install Apache Tomcat 6.0.9 2. In server.xml, uncomment the tag for clustering 3. Edit the webapps/example/WEB-INF/web.xml to include the distributable tag distributable/ 4. Create a copy of this Tomcat folder (say, Tomcat2) 5. Edit the server.xml in Tomcat2. Change all the port numbers. e.g. change the AJP port number to 8010 6. Download the file http://mirrors.24-7-solutions.net/pub/apache/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.20/mod_jk-apache-2.2.3.so and save it as mod_jk.so at apache/modules folder. 7. Place the following contents in the file apache/conf/worker.properties # The advanced router LB worker worker.list=router,worker2,worker1 # Define a worker using ajp13 worker.worker1.port=8009 worker.worker1.host=localhost worker.worker1.type=ajp13 worker.worker1.lbfactor=1 # Define prefered failover node for worker1 worker.worker1.redirect=worker2 # Define another worker using ajp13 worker.worker2.port=8010 worker.worker2.host=localhost worker.worker2.type=ajp13 worker.worker2.lbfactor=1 worker.worker2.mount=/examples/* # Disable worker2 for all requests except failover worker.worker2.activation=disabled # Define the LB worker worker.router.type=lb worker.router.balance_workers=worker1,worker2 worker.list=jkstatus # Define a 'jkstatus' worker using status worker.jkstatus.type=status 8. Edit apache/conf/httpd.conf to include the following: LoadModulejk_module modules/mod_jk.so #AddModule mod_jk.c JkWorkersFile conf/worker.properties JkShmFile mod_jk.shm JkLogFile mod_jk.log JkLogLevelinfo JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkMount /jkmanager/* jkstatus JkMount /examples/* router 9. Start the two Tomcat instances You should see some replication related messages in the console Feb 13, 2007 8:01:34 PM org.apache.catalina.ha.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.tribes.membership.MemberImpl[ tcp://Ramn.corporate.thoughtworks.com:4001,Ramn.corporate.thoughtworks.com,4001, alive=1016,id={99 34 -19 82 10 -107 64 51 -119 77 9 -117 -91 9 24 -9 }, payload ={}, command={}, domain={}, ] INFO: Manager [localhost#/examples]; session state send at 2/13/07 8:01 PM recei ved in 125 ms. 10. Restart the httpd web server Testing the session replication 1. Browse to http://localhost/examples/ 2. Try the Session examples for the servlet. 3. Set a variable into the session with a value 4. Stop the first Tomcat instance 5. Set another variable into the session. This time, the second Tomcat instance will serve the content You'll see that the first variable is still in the session. This is a sign that replication has been successful. 6. Restart the first instance, wait for it to enter the cluster and for the replication to happen INFO: Manager [localhost#/examples]; session state send at 2/13/07 8:01 PM recei ved in 125 ms. 7. Stop the second Tomcat instance. 8. Set another variable into the session. 9. You'll see that all the variables are still available. -- Sriram
RE: mod_jk - tomcat sending delay
Hi, oh!! Its always - Apache+mod_jk - connecting to multiple tomcates on different systems. With regards, Babu Satasiya Propes, Barry L [GCG-NAOT] wrote: New using Tomcat 5 series -- just where is mod_jk within Tomcat? Please let me know. Thanks, -Original Message- From: babu [mailto:[EMAIL PROTECTED] Sent: Friday, February 09, 2007 4:11 PM To: users@tomcat.apache.org Subject: Re: [OT] mod_jk - tomcat sending delay Hi, We are also facing same problem and we are using mod_jk 1.2.6 with apache 2.0.53 and tomcat 5.0.27. Mod_jk is configured with loadbalancer. We have Apache+mod_jk with LB + 9 tomcats in backend. Mod_jk is set with sticky bit set. Partial workers.properites worker.list=loadbalancer worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=tc_1_1,tc_1_2,tc_1_3,tc_2_1,tc_2_2,tc_2_3,tc_3_1,tc_3_2,tc_3_3 worker.tc_1_1.host=cna-prod-app-25 worker.tc_1_1.port=8000 worker.tc_1_1.type=ajp13 worker.tc_1_1.lbfactor=1 worker.tc_1_1.cachesize=50 worker.tc_1_1.cache_timeout=180 worker.tc_1_1.socket_timeout=300 worker.tc_1_1.socket_keepalive=1 worker.tc_1_1.recovery_options=0 worker.tc_1_1.sticky_session=1 server.xml Connector port=8000 protocol=AJP/1.3 address=cna-prod-app-25 minProcessors=50 maxProcessors=100 enableLookups=false debug=0 URIEncoding=UTF-8 connectionTimeout=18 / I found in one of discussion board, that connection timeout in sever.xml and timeout parameters in workers.properties should be matched properly and also found that in server.xml its in miliseconds and in workers.properites it is seconds. We do not find any issue at client side but erorr keeps going in mod_jk log. ( I am not sure of client side issues are there or not) mod_jk log [Fri Feb 09 22:00:55 2007] [jk_ajp_common.c (1250)]: Tomcat is down or network problems. No response has been sent to the client (yet) [Fri Feb 09 22:00:55 2007] [jk_ajp_common.c (1449)]: ERROR: Receiving from tomcat failed, recoverable operation. err=2 [Fri Feb 09 22:00:55 2007] [jk_ajp_common.c (1477)]: Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=tc_3_3 failed errno = 0 [Fri Feb 09 22:01:21 2007] [jk_ajp_common.c (783)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down (128.107.229.109:8002), err=-1 [Fri Feb 09 22:01:21 2007] [jk_ajp_common.c (1250)]: Tomcat is down or network problems. No response has been sent to the client (yet) [Fri Feb 09 22:01:21 2007] [jk_ajp_common.c (1449)]: ERROR: Receiving from tomcat failed, recoverable operation. err=2 [Fri Feb 09 22:01:21 2007] [jk_ajp_common.c (1477)]: Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=tc_1_3 failed errno = 0 [Fri Feb 09 22:01:41 2007] [jk_ajp_common.c (783)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down (128.107.229.110:8001), err=-1 [Fri Feb 09 22:01:41 2007] [jk_ajp_common.c (1250)]: Tomcat is down or network problems. No response has been sent to the client (yet) [Fri Feb 09 22:01:41 2007] [jk_ajp_common.c (1449)]: ERROR: Receiving from tomcat failed, recoverable operation. err=2 [Fri Feb 09 22:01:41 2007] [jk_ajp_common.c (1477)]: Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=tc_2_2 failed errno = 0 [Fri Feb 09 22:01:44 2007] [jk_ajp_common.c (783)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down (128.107.229.109:8000), err=-1 [Fri Feb 09 22:01:44 2007] [jk_ajp_common.c (1250)]: Tomcat is down or network problems. No response has been sent to the client (yet) [Fri Feb 09 22:01:44 2007] [jk_ajp_common.c (1449)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 [Fri Feb 09 22:02:03 2007] [jk_ajp_common.c (783)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down (128.107.229.110:8002), err=-1 [Fri Feb 09 22:02:03 2007] [jk_ajp_common.c (1250)]: Tomcat is down or network problems. No response has been sent to the client (yet) [Fri Feb 09 22:02:03 2007] [jk_ajp_common.c (1449)]: ERROR: Receiving from tomcat failed, recoverable operation. err=1 [Fri Feb 09 22:02:49 2007] [jk_ajp_common.c (783)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down (128.107.229.110:8002), err=-1 [Fri Feb 09 22:02:49 2007] [jk_ajp_common.c (1250)]: Tomcat is down or network problems. No response has been sent to the client (yet) [Fri Feb 09 22:02:49 2007] [jk_ajp_common.c (1449)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 [Fri Feb 09 22:02:59 2007] [jk_ajp_common.c (783
Re: [OT] mod_jk - tomcat sending delay
Hi, We are also facing same problem and we are using mod_jk 1.2.6 with apache 2.0.53 and tomcat 5.0.27. Mod_jk is configured with loadbalancer. We have Apache+mod_jk with LB + 9 tomcats in backend. Mod_jk is set with sticky bit set. Partial workers.properites worker.list=loadbalancer worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=tc_1_1,tc_1_2,tc_1_3,tc_2_1,tc_2_2,tc_2_3,tc_3_1,tc_3_2,tc_3_3 worker.tc_1_1.host=cna-prod-app-25 worker.tc_1_1.port=8000 worker.tc_1_1.type=ajp13 worker.tc_1_1.lbfactor=1 worker.tc_1_1.cachesize=50 worker.tc_1_1.cache_timeout=180 worker.tc_1_1.socket_timeout=300 worker.tc_1_1.socket_keepalive=1 worker.tc_1_1.recovery_options=0 worker.tc_1_1.sticky_session=1 server.xml Connector port=8000 protocol=AJP/1.3 address=cna-prod-app-25 minProcessors=50 maxProcessors=100 enableLookups=false debug=0 URIEncoding=UTF-8 connectionTimeout=18 / I found in one of discussion board, that connection timeout in sever.xml and timeout parameters in workers.properties should be matched properly and also found that in server.xml its in miliseconds and in workers.properites it is seconds. We do not find any issue at client side but erorr keeps going in mod_jk log. ( I am not sure of client side issues are there or not) mod_jk log [Fri Feb 09 22:00:55 2007] [jk_ajp_common.c (1250)]: Tomcat is down or network problems. No response has been sent to the client (yet) [Fri Feb 09 22:00:55 2007] [jk_ajp_common.c (1449)]: ERROR: Receiving from tomcat failed, recoverable operation. err=2 [Fri Feb 09 22:00:55 2007] [jk_ajp_common.c (1477)]: Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=tc_3_3 failed errno = 0 [Fri Feb 09 22:01:21 2007] [jk_ajp_common.c (783)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down (128.107.229.109:8002), err=-1 [Fri Feb 09 22:01:21 2007] [jk_ajp_common.c (1250)]: Tomcat is down or network problems. No response has been sent to the client (yet) [Fri Feb 09 22:01:21 2007] [jk_ajp_common.c (1449)]: ERROR: Receiving from tomcat failed, recoverable operation. err=2 [Fri Feb 09 22:01:21 2007] [jk_ajp_common.c (1477)]: Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=tc_1_3 failed errno = 0 [Fri Feb 09 22:01:41 2007] [jk_ajp_common.c (783)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down (128.107.229.110:8001), err=-1 [Fri Feb 09 22:01:41 2007] [jk_ajp_common.c (1250)]: Tomcat is down or network problems. No response has been sent to the client (yet) [Fri Feb 09 22:01:41 2007] [jk_ajp_common.c (1449)]: ERROR: Receiving from tomcat failed, recoverable operation. err=2 [Fri Feb 09 22:01:41 2007] [jk_ajp_common.c (1477)]: Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=tc_2_2 failed errno = 0 [Fri Feb 09 22:01:44 2007] [jk_ajp_common.c (783)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down (128.107.229.109:8000), err=-1 [Fri Feb 09 22:01:44 2007] [jk_ajp_common.c (1250)]: Tomcat is down or network problems. No response has been sent to the client (yet) [Fri Feb 09 22:01:44 2007] [jk_ajp_common.c (1449)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 [Fri Feb 09 22:02:03 2007] [jk_ajp_common.c (783)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down (128.107.229.110:8002), err=-1 [Fri Feb 09 22:02:03 2007] [jk_ajp_common.c (1250)]: Tomcat is down or network problems. No response has been sent to the client (yet) [Fri Feb 09 22:02:03 2007] [jk_ajp_common.c (1449)]: ERROR: Receiving from tomcat failed, recoverable operation. err=1 [Fri Feb 09 22:02:49 2007] [jk_ajp_common.c (783)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down (128.107.229.110:8002), err=-1 [Fri Feb 09 22:02:49 2007] [jk_ajp_common.c (1250)]: Tomcat is down or network problems. No response has been sent to the client (yet) [Fri Feb 09 22:02:49 2007] [jk_ajp_common.c (1449)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 [Fri Feb 09 22:02:59 2007] [jk_ajp_common.c (783)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down (128.107.229.110:8001), err=-1 [Fri Feb 09 22:02:59 2007] [jk_ajp_common.c (1250)]: Tomcat is down or network problems. No response has been sent to the client (yet) [Fri Feb 09 22:02:59 2007] [jk_ajp_common.c (1449)]: ERROR: Receiving from tomcat failed, recoverable operation. err=2 [Fri Feb 09 22:02:59 2007] [jk_ajp_common.c (1477)]: Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=tc_2_2 failed errno = 0 If you find any
Re: [OT] mod_jk replacement?
Hi, I am also running with same problem, Please let me know if any settings have helped to solve this problem. With regards, Babulal Satasiya Cisco System Inc. Sanjose, CA JNeuhoff wrote: Do I remember correctly, that Apache and Tomcat are on the same machine? Is there a firewall on this machine? They are both on the same machine. Apache is listening to a dedicated IP-address, on port 80, while Tomcat is configured to using localhost, and listens to port 8080 (http) and 8009 (ajp1.3). There is no firewall on that machine, because it is located behind a campus-wide firewall on a University network. The latter has opened up port 80 for that machine to outside users. The file might get big. I could download from a web site or similar. I'll be away for two days, so don't expect an answer before friday. Thank you very much, I can upload the mod_jk.log tomorrow after the new test with the updated settings and let you know on Friday. J.Neuhoff -- View this message in context: http://www.nabble.com/mod_jk-replacement--tf3050993.html#a8894778 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: [OT] mod_jk - tomcat sending delay
Hi, We tried updating it once but we have problem in load balancing and we went back to original mod_jk which we working fine. We upgraded to 1.2.15, but we are planing to try out new one 1.2.20, but I am watching this discussion board and there issues even in 1.2.20 and I have posted because of thius. With regards, Babulal Satasiya Rainer Jung-3 wrote: Version 1.2.6 of mod_jk is an antiquity. First update before investigating the problem. babu wrote: Hi, We are also facing same problem and we are using mod_jk 1.2.6 with apache 2.0.53 and tomcat 5.0.27. Mod_jk is configured with loadbalancer. We have Apache+mod_jk with LB + 9 tomcats in backend. Mod_jk is set with sticky bit set. Partial workers.properites worker.list=loadbalancer worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=tc_1_1,tc_1_2,tc_1_3,tc_2_1,tc_2_2,tc_2_3,tc_3_1,tc_3_2,tc_3_3 worker.tc_1_1.host=cna-prod-app-25 worker.tc_1_1.port=8000 worker.tc_1_1.type=ajp13 worker.tc_1_1.lbfactor=1 worker.tc_1_1.cachesize=50 worker.tc_1_1.cache_timeout=180 worker.tc_1_1.socket_timeout=300 worker.tc_1_1.socket_keepalive=1 worker.tc_1_1.recovery_options=0 worker.tc_1_1.sticky_session=1 server.xml Connector port=8000 protocol=AJP/1.3 address=cna-prod-app-25 minProcessors=50 maxProcessors=100 enableLookups=false debug=0 URIEncoding=UTF-8 connectionTimeout=18 / I found in one of discussion board, that connection timeout in sever.xml and timeout parameters in workers.properties should be matched properly and also found that in server.xml its in miliseconds and in workers.properites it is seconds. We do not find any issue at client side but erorr keeps going in mod_jk log. ( I am not sure of client side issues are there or not) mod_jk log [Fri Feb 09 22:00:55 2007] [jk_ajp_common.c (1250)]: Tomcat is down or network problems. No response has been sent to the client (yet) [Fri Feb 09 22:00:55 2007] [jk_ajp_common.c (1449)]: ERROR: Receiving from tomcat failed, recoverable operation. err=2 [Fri Feb 09 22:00:55 2007] [jk_ajp_common.c (1477)]: Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=tc_3_3 failed errno = 0 [Fri Feb 09 22:01:21 2007] [jk_ajp_common.c (783)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down (128.107.229.109:8002), err=-1 [Fri Feb 09 22:01:21 2007] [jk_ajp_common.c (1250)]: Tomcat is down or network problems. No response has been sent to the client (yet) [Fri Feb 09 22:01:21 2007] [jk_ajp_common.c (1449)]: ERROR: Receiving from tomcat failed, recoverable operation. err=2 [Fri Feb 09 22:01:21 2007] [jk_ajp_common.c (1477)]: Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=tc_1_3 failed errno = 0 [Fri Feb 09 22:01:41 2007] [jk_ajp_common.c (783)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down (128.107.229.110:8001), err=-1 [Fri Feb 09 22:01:41 2007] [jk_ajp_common.c (1250)]: Tomcat is down or network problems. No response has been sent to the client (yet) [Fri Feb 09 22:01:41 2007] [jk_ajp_common.c (1449)]: ERROR: Receiving from tomcat failed, recoverable operation. err=2 [Fri Feb 09 22:01:41 2007] [jk_ajp_common.c (1477)]: Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=tc_2_2 failed errno = 0 [Fri Feb 09 22:01:44 2007] [jk_ajp_common.c (783)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down (128.107.229.109:8000), err=-1 [Fri Feb 09 22:01:44 2007] [jk_ajp_common.c (1250)]: Tomcat is down or network problems. No response has been sent to the client (yet) [Fri Feb 09 22:01:44 2007] [jk_ajp_common.c (1449)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 [Fri Feb 09 22:02:03 2007] [jk_ajp_common.c (783)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down (128.107.229.110:8002), err=-1 [Fri Feb 09 22:02:03 2007] [jk_ajp_common.c (1250)]: Tomcat is down or network problems. No response has been sent to the client (yet) [Fri Feb 09 22:02:03 2007] [jk_ajp_common.c (1449)]: ERROR: Receiving from tomcat failed, recoverable operation. err=1 [Fri Feb 09 22:02:49 2007] [jk_ajp_common.c (783)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down (128.107.229.110:8002), err=-1 [Fri Feb 09 22:02:49 2007] [jk_ajp_common.c (1250)]: Tomcat is down or network problems. No response has been sent to the client (yet) [Fri Feb 09 22:02:49 2007] [jk_ajp_common.c (1449)]: ERROR: Receiving from tomcat failed, recoverable operation. err=0 [Fri Feb 09 22:02:59 2007] [jk_ajp_common.c
Re: Garbace Collection executes 1GB but HEAP Size at 1.5GB!
Hi, Just for your information .. Memmory is divided in young and old generation as object life increasing it will occupy space i old generation, Please refer SUN JVM documentation. GC will keep happening once the memmory (Young generation )reached threshold. Young generation again divided in to survivor 0 and survivor 1 spaces. When a object is created it keeps allocating in survivor spaces alternatively. Two types of GC: Mini GC : Cleaning only with in young generation Full GC: If all objects present in young generation are alive so cleaning happens in old generation hence will become FUll GC Following is the info I have sent a mail to some person (It may be usefull) --- Setting heap size to -Xms256 -Xmx1024 will allocate memmory intially to 256 MB and keeps expanding as allocating more objects up to 1024. My recomendation to you is as mentioned in previos mail set heap size to -Xms1536 -Xmx1536 and verify it. But Do not increase heap size blindly to greater values which may lead to performance issue(Pause times may become more to clean GC). try the heap settings and let me know, If still problem is there just send the verbose output and log file. --- On 1/10/07, starki78 [EMAIL PROTECTED] wrote: Hi I'm profiling my application with -verboseGC. My maximum heap-size is XMS is 1.5GB but the garbage collection always is executed when about 1GB is reached. Why is it so early? Is there anything to control this? I'm using Sun 1.4.2 Thanks and nice greetings Starki -- Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom http://click.libero.it/infostrada10gen07 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Suresh Babu, Software Engineer, Computer Associates-India
Re: from https to http?
Hi all I have one question regarding http and https: Lets say I open a pop up page from https, pop window will be opened in https mode as main window is opened in https and I have action in pop up where it leave https mode and enter in to http modeIf i want put value from pop window to main window it gives security violation java script error...How to resolve this.. Thanks Suresh On 1/4/07, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pablo, John Doe wrote: Thanks a lot by the explanation. Looks like Tomcat (or maybe the Servlet specification?) needs a mechanism to switch from https to http when this access is declared by a security-constrains otherwise is forcing programmers to always use programmatic security to made this switch It isn't Tomcat's job to guess when you want to go back to http, it's yours. It isn't very difficult to build a complete URL (including protocol) for a link. I would imagine that you have very few places in your application where you need to: 1. Switch from HTTP to HTTPS and 2. Switch from HTTPS to HTTP I recommend that you treat those as special cases and hand-code them as appropriate. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFnQT89CaO5/Lv0PARAgrAAJ9mC1jWsr5rYmD7El+d6OGO3rIJzACeOiN2 D2fSjZ+YlIfUXzaXatPV0Kg= =mxZ3 -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] -- Suresh Babu, Software Engineer, Computer Associates-India
Re: Setting the classpath for my application
I agree with chris On 7/25/06, Christopher Schultz [EMAIL PROTECTED] wrote: Darren, My jar file (foo.jar) is in the webapps/abc/WEB-INF/lib directory for my 'abc' application. However, in the Catalina log file, when Tomcat starts, I get a ClassNotFound - com.abc.framework.ControlServlet error. Why can my servlet not be found if it resides in the jar under the WEB-INF/lib directory??? Can you confirm with jar tvf webapps/abd/WEB-INF/lib/abc.jar that your class is actually in there with the path com/abc/framework/ControlServlet.class? Another thing you could try is this: $ javap -classpath webapps/abc/WEB-INF/lib/abc.jar \ com.abc.framework.ControlServlet This should print out the API of your class. If it does not, then either the JAR is broken or the package and class names are incorrect. -chris -- Suresh Babu, Software Engineer, Computer Associates-India
Re: out of memory error
GC details will be printed in console On 7/20/06, MW Janssen [EMAIL PROTECTED] wrote: thx for the fact that you want to look into it..i set those parameters and restarted tomcat..are GC details printed in stout.log?? Maarten -Oorspronkelijk bericht- Van: Suresh babu [mailto:[EMAIL PROTECTED] Verzonden: donderdag 20 juli 2006 7:32 Aan: Tomcat Users List; Martin Gainty Onderwerp: Re: out of memory error Hi, please set this and send the verbose out put log file. set JAVA_OPTS=%JAVA_OPTS% -verbosegc -XX:+PrintGCDetails, I will look in to this. On 7/19/06, Martin Gainty [EMAIL PROTECTED] wrote: Good Afternoon Jon- set Max Mem and Min Mem within jvm.cfg (-Xmx and -Xms options) to the same value http://java.sun.com/docs/hotspot/PerformanceFAQ.html#8 Exercise caution on playing with stack SS 64k is mightly lean 512k(default for Sparc) and 256k(default for Intel) usually is plenty unless your program has some grossly huge stack allocations Drivers- Also be mindful of synch points for Type 2 (OCI) drivers vs using Type 4 (thin) drivers.. HTH Martin -- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Jon Wingfield [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, July 19, 2006 12:12 PM Subject: Re: out of memory error This may be of help (emphasis on may): http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4765019 Has a bit about tuning Xss for a high number of threads. MW Janssen wrote: Hi, These are my parameters: I have Xmx1024m and Xms1024m as well for the heap size memory. I dont set Xss so I presume I use the default value. My Operating System: OS Name: Windows 2003 OS Version: 5.2 Total RAM: 2.00Gb Free RAM: 2.00Gb Committed JVM memory: 1.02Gb Total swap: 4.00Gb Free swap: 3.87Gb (from lambdaprobe) Maarten -Oorspronkelijk bericht- Van: David Tonhofer [mailto:[EMAIL PROTECTED] Verzonden: woensdag 19 juli 2006 16:57 Aan: Tomcat Users List Onderwerp: Re: out of memory error MW Janssen wrote: java.lang.OutOfMemoryError: unable to create new native thread Are you it isn't just the heap and/or stack that's too small? Try starting the Jvm with one of the extended options line -Xss500k -Xmx100m (if it is the Sun JVM) --- -- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.10.1/391 - Release Date: 18-7-2006 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Suresh Babu, Software Engineer, Computer Associates-India -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.10.2/393 - Release Date: 19-7-2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.10.2/393 - Release Date: 19-7-2006 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Suresh Babu, Software Engineer, Computer Associates-India
Re: Increase Heapsize
Hi It's an option to the JVM, just append this line over there -verbosegc -XX:+PrintGCDetails. To avoid out of memmory errors just make sure minimum and maximum heap space should be same. You can find out still more information with GC details logged on enabling above option in JVM. Check it out how much memmory is reclaimimg on each GC and whats the frequency of minor or major GC are happening. More over you can set different alogorithms like copying collector.mark and compavt/mark and sweep /incremental/throughput collectors in young/ old generation. You can find brief details in following links. http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html On 7/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Chris, This gives how much heapsize is currently allocated. How can I know whether it is enough or what size it should be increased to? Also: real time wise, how if tomcat behaving with each event/interaction/page delivery? Thanks, Ibrahim *Christopher Schultz [EMAIL PROTECTED]* 07/18/2006 09:00 AM Please respond to Tomcat Users List To:Tomcat Users List users@tomcat.apache.org cc: Subject:Re: Increase Heapsize Ibrahim, You can always call Runtime.getRuntime().totalMemory() to find out the amount of heap space that has been allocated to the JVM. Where would this code be written? And how would I execute it? Just toss a JSP file somewhere with that code in it to allow you to check up on the app. -chris ** This communication (including any attachments) may contain privileged or confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this communication and/or shred the materials and any attachments and are hereby notified that any disclosure, copying, or distribution of this communication, or the taking of any action based on it, is strictly prohibited. Thank you. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Suresh Babu, Software Engineer, Computer Associates-India
Re: Increase Heapsize
Hi, Use following line in catalina file set JAVA_OPTS=%JAVA_OPTS% -verbosegc -XX:+PrintGCDetails in windows change accordingly to linux. Run stratup.sh from command line: to see all heap information on console. On 7/19/06, Suresh babu [EMAIL PROTECTED] wrote: Hi It's an option to the JVM, just append this line over there -verbosegc -XX:+PrintGCDetails. To avoid out of memmory errors just make sure minimum and maximum heap space should be same. You can find out still more information with GC details logged on enabling above option in JVM. Check it out how much memmory is reclaimimg on each GC and whats the frequency of minor or major GC are happening. More over you can set different alogorithms like copying collector.markand compavt/mark and sweep /incremental/throughput collectors in young/ old generation. You can find brief details in following links. http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html On 7/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Chris, This gives how much heapsize is currently allocated. How can I know whether it is enough or what size it should be increased to? Also: real time wise, how if tomcat behaving with each event/interaction/page delivery? Thanks, Ibrahim *Christopher Schultz [EMAIL PROTECTED]* 07/18/2006 09:00 AM Please respond to Tomcat Users List To:Tomcat Users List users@tomcat.apache.org cc: Subject:Re: Increase Heapsize Ibrahim, You can always call Runtime.getRuntime().totalMemory() to find out the amount of heap space that has been allocated to the JVM. Where would this code be written? And how would I execute it? Just toss a JSP file somewhere with that code in it to allow you to check up on the app. -chris ** This communication (including any attachments) may contain privileged or confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this communication and/or shred the materials and any attachments and are hereby notified that any disclosure, copying, or distribution of this communication, or the taking of any action based on it, is strictly prohibited. Thank you. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Suresh Babu, Software Engineer, Computer Associates-India -- Suresh Babu, Software Engineer, Computer Associates-India
Re: Increase Heapsize
Hi, Setting heap size to -Xms256 -Xmx1024 will allocate mammory intially to 256 MB and keeps expanding as allocating more objects up to 1024. My recomendation to you is as mentioned in previos mail set heap size to -Xms1536 -Xmx1536 and verify it. But Do not increase heap size blindly to greater values which may lead to performance issue(Pause times may become more to clean GC). try the heap settings and let me know, If still problem is there just send the verbose output and log file. On 7/20/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: what wouldve happened if you left your heapsize: -Xms256 -Xmx1024 ? ** This communication (including any attachments) may contain privileged or confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this communication and/or shred the materials and any attachments and are hereby notified that any disclosure, copying, or distribution of this communication, or the taking of any action based on it, is strictly prohibited. Thank you. -- Suresh Babu, Software Engineer, Computer Associates-India
Re: out of memory error
Hi, please set this and send the verbose out put log file. set JAVA_OPTS=%JAVA_OPTS% -verbosegc -XX:+PrintGCDetails, I will look in to this. On 7/19/06, Martin Gainty [EMAIL PROTECTED] wrote: Good Afternoon Jon- set Max Mem and Min Mem within jvm.cfg (-Xmx and -Xms options) to the same value http://java.sun.com/docs/hotspot/PerformanceFAQ.html#8 Exercise caution on playing with stack SS 64k is mightly lean 512k(default for Sparc) and 256k(default for Intel) usually is plenty unless your program has some grossly huge stack allocations Drivers- Also be mindful of synch points for Type 2 (OCI) drivers vs using Type 4 (thin) drivers.. HTH Martin -- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Jon Wingfield [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, July 19, 2006 12:12 PM Subject: Re: out of memory error This may be of help (emphasis on may): http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4765019 Has a bit about tuning Xss for a high number of threads. MW Janssen wrote: Hi, These are my parameters: I have Xmx1024m and Xms1024m as well for the heap size memory. I dont set Xss so I presume I use the default value. My Operating System: OS Name: Windows 2003 OS Version: 5.2 Total RAM: 2.00Gb Free RAM: 2.00Gb Committed JVM memory: 1.02Gb Total swap: 4.00Gb Free swap: 3.87Gb (from lambdaprobe) Maarten -Oorspronkelijk bericht- Van: David Tonhofer [mailto:[EMAIL PROTECTED] Verzonden: woensdag 19 juli 2006 16:57 Aan: Tomcat Users List Onderwerp: Re: out of memory error MW Janssen wrote: java.lang.OutOfMemoryError: unable to create new native thread Are you it isn't just the heap and/or stack that's too small? Try starting the Jvm with one of the extended options line -Xss500k -Xmx100m (if it is the Sun JVM) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.10.1/391 - Release Date: 18-7-2006 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Suresh Babu, Software Engineer, Computer Associates-India
Re: Increase Heapsize
Hi, Using -verbose:gc will also help in finding out the heap size On 7/18/06, Christopher Schultz [EMAIL PROTECTED] wrote: Ibrahim, I've increased the heapsize in my development enviroment. And I don't knowhow to confirm the change has been made to the effect the whole system is affected. So I'd like to know how to go about confirming this, possibly thru some monitoring measure. You can always call Runtime.getRuntime().totalMemory() to find out the amount of heap space that has been allocated to the JVM. I have incorporated this piece of information into a page that allows the current user to snoop their session (only enabled in development, of course). -chris
Re: Increase Heapsize
-verbosegc -XX:+PrintGCDetails On 7/18/06, Suresh babu [EMAIL PROTECTED] wrote: Hi, Using -verbose:gc will also help in finding out the heap size On 7/18/06, Christopher Schultz [EMAIL PROTECTED] wrote: Ibrahim, I've increased the heapsize in my development enviroment. And I don't knowhow to confirm the change has been made to the effect the whole system is affected. So I'd like to know how to go about confirming this, possibly thru some monitoring measure. You can always call Runtime.getRuntime().totalMemory() to find out the amount of heap space that has been allocated to the JVM. I have incorporated this piece of information into a page that allows the current user to snoop their session (only enabled in development, of course). -chris
Setting locale for a particular web application
Hello All, We are using Tomcat 4.1.3 . We have 2 web applications running on the same webserver. The problem I'm facing is that I need to change the locale information while instantiating one of these web application. Is such thing possible? I tried setting the JVM opts -Duser.language and -Duser.region in catalina.bat, but that changes the locale for both web applications (which I don't want). I would really appreciate any help/information in this regard. Thank you, Venkatesh __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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: Undeploy task not working
Hi Mark, I went through the link given by you. Also checked for permissions of webapps folder (guess things are fine). The link is for Tomcat 5.5 but I'm working with Tomcat 4.3.1 . The context entry put by tomcat, for app1, when deploying the application is: Context className=org.apache.catalina.core.StandardContext crossContext=false reloadable=false mapperClass=org.apache.catalina.core.StandardContextMapper useNaming=true debug=0 swallowOutput=false privileged=false displayName=app1 wrapperClass=org.apache.catalina.core.StandardWrapper docBase=C:\Program Files\Apache Group\Tomcat 4.1\webapps\app1 cookies=true path=/app1 cachingAllowed=true charsetMapperClass=org.apache.catalina.util.CharsetMapper workDir=work\Standalone\localhost\app1 /Context In addition I just want to mention that I installed Tomcat 5.5 and ran deploy and undeploy targets on it and everything works fine there. But I'm getting the problem only in Tomcat 4.1.3 ... How can this happen? Thank you, Venkatesh --- Mark Thomas [EMAIL PROTECTED] wrote: Marc Farrow wrote: Which still implies a permission problem. On Windows 2000 check the security tab of the webapps folder under Tomcat. Make sure the account that is running Tomcat has permission to delete. The archive set is the file type and doesn't really have much to do with permissions. More likely to be file locking. There are a couple of context settings that might help you work around this. Look at http://tomcat.apache.org/tomcat-5.5-doc/config/context.html and search for antiJARLocking and antiResourceLocking As far as I recall there is an issue with one of the xml parsers that when it accesses resources from a war keeps a lock on the file. This only happens on Windows. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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: Undeploy task not working
Hi, Thanks for the replies and suggestions. I'm running Tomcat on a Windows 2000 machine. I saw the directory permissions and it is just an Archive set. Also, our webapp is not having any database connection open. Still I'm unable to undeploy the app using undeploy target. Thank you, Venkatesh --- Marc Farrow [EMAIL PROTECTED] wrote: It also could be a permissions problem. What platform is the server? I know on OpenVMS that if you use the manager application to deploy an application and then try to undeploy it, the permissions on the directory are not correct and thus it cannot delete the directories. (There is a logical to change this behavior for OpenVMS). So I would suggest to check your permissions before you try to undeploy and make sure you have delete privileges. HTH On 6/6/06, Peter Hubbard [EMAIL PROTECTED] wrote: On Mon, 2006-06-05 at 23:40 -0700, Venkatesh Babu wrote: Hello All, I'm using Tomcat 4.1 and trying to deploy/undeploy application using ant targets. Earlier I posted a mail on deploy task not working due to some protocol error. Got the solution for that :-) But right now undeploy task is not working. It is giving an error saying: FAIL - Cannot remove document base for path /app1 I found this often happened to me if there were open database connections in the webapp, and I tried to undeploy it before stopping it. -- Peter Hubbard [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] -- Marc Farrow __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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]
Undeploy task not working
Hello All, I'm using Tomcat 4.1 and trying to deploy/undeploy application using ant targets. Earlier I posted a mail on deploy task not working due to some protocol error. Got the solution for that :-) But right now undeploy task is not working. It is giving an error saying: FAIL - Cannot remove document base for path /app1 Here is the ant targets I have: property name=tomcat.server.name value=127.0.0.1/ property name=tomcat.server.port value=8080/ property name=tomcat.user.name value=admin/ property name=tomcat.user.password value=admin/ property name=app.hostname value=http://${tomcat.server.name}:${tomcat.server.port}/ property name=app.deploy.manageurl value=${app.hostname}/manager/ taskdef file=./catalinatasks.properties classpath pathelement path=./lib/catalina-ant.jar/ /classpath /taskdef target name=undeployapp undeploy url=${app.deploy.manageurl} path=/app1 username=${tomcat.user.name} password=${tomcat.user.password} / /target I searched the web for solutions to this problem, but unable to find one. Can anybody please help me and say as to what is wrong? Thank you, Venkatesh __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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: Problem while deploying war
Hi Mark, Thanks for the solution. Actually file:///C:\temp\app1\app1.war works -Venkatesh --- Mark Thomas [EMAIL PROTECTED] wrote: Venkatesh Babu wrote: Can anybody help me and point out what might be the problem? Your url starts C:/ (so C looks like the protocol rather than a drive) Try something like file://c/... Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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]
Problem while deploying war
Hi all, I'm using Tomcat 4.1.31. I have a war file and I'm using the ant target deploy to deploy this war. Here is the code snippet of my build.xml : property name=tomcat.server.name value=localhost/ property name=tomcat.server.port value=8080/ property name=tomcat.user.name value=admin/ property name=tomcat.user.password value=admin/ property name=app.deploy.manageurl value=http://${tomcat.server.name}:${tomcat.server.port}/manager/ target name=deployapp depends=war deploy url=${app.deploy.manageurl} path=/app1 war=${basedir}/app1.war username=${tomcat.user.name} password=${tomcat.user.password}/ /target But when I call this target, I'm getting a strange error: BUILD FAILED C:\temp\app1\build.xml:33: java.net.MalformedURLException: unknown protocol: c I have taken catalina-ant.jar from ${TOMCATHOME}/lib/ and placed that in ${ANT_HOME}/lib but still having this problem. Can anybody help me and point out what might be the problem? Thank you, Venkatesh __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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]
Problem while deploying war
Hi all, I'm using Tomcat 4.1.31. I have a war file and I'm using the ant target deploy to deploy this war. Here is the code snippet of my build.xml : property name=tomcat.server.name value=localhost/ property name=tomcat.server.port value=8080/ property name=tomcat.user.name value=admin/ property name=tomcat.user.password value=admin/ property name=app.deploy.manageurl value=http://${tomcat.server.name}:${tomcat.server.port}/manager/ target name=deployapp depends=war deploy url=${app.deploy.manageurl} path=/app1 war=${basedir}/app1.war username=${tomcat.user.name} password=${tomcat.user.password}/ /target But when I call this target, I'm getting a strange error: BUILD FAILED C:\temp\app1\build.xml:33: java.net.MalformedURLException: unknown protocol: c I have taken catalina-ant.jar from ${TOMCATHOME}/lib/ and placed that in ${ANT_HOME}/lib but still having this problem. Can anybody help me and point out what might be the problem? Thank you, Venkatesh __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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: Internationalization Problem with Tomcat 5.5.9
Hi, Thanks for your suggestions. But unfortunately none of them worked. Actually the application sets the Locale based on browser settings. So the response encoding is set to the appropriate Locate that is set in the browser with Tomcat 4. But its always set to ISO-8859-1 with Tomcat 5 and thats why are displayed. Is there anything that has changed with respect to usage of 18n taglibrary with Tomcat 5? Regards, Bob On 12/6/05, Seak, Teng-Fong [EMAIL PROTECTED] wrote: IMO, it's quite possible that your webapp were relying on bugs in previous version. So, you have to make sure you're jsp pages are following standards. The obvious reasons that I could think of are the followings tags not being used correctly: 1. %@ page contentType=text/html;charset=utf-8 % This tag specifies in which encoding your _resultant_ webpage is using. It's in UTF-8 in my example. 2. %@ page pageEncoding=iso-8859-1 % This tag specifies in which encoding your _original_ jsp file is saved. It's in ISO-8859-1 in my example. If your editor can't save in other encodings than your system's, I would expect that you're using the same encoding here. 3. meta http-equiv=Content-Type content=text/html; charset=utf-8 This tag, which is within HTML head tag specifies once more to the browser in which encoding it should use to render the page. Its encoding HAS to be the same as that specified in no 1 (UTF-1 in my example). Some might argue that this is not necessary, but the fact is that there're still browsers out there not capable of parsing encoding info in HTTP header. HTH Seak Vijay Babu wrote: Hi all, I am facing a problem with i18n using Tomcat 5.5.9. I have an application which has been internationalized for a couple of languages and is working fine with Tomcat 4.1.x. But the same application when deployed in Tomcat 5.5.9 does not work. When a jsp page having some text is accessed, its displaying ?? marks instead of the locale specific text. I could not figure out whats causing this problem. Does any one have idea of what could be the problem or is there any configuration change that needs to be done in Tomcat 5. Any suggestions would be highly appreciated. Thanks, Bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Internationalization Problem with Tomcat 5.5.9
On 12/8/05, Vijay Babu [EMAIL PROTECTED] wrote: Hi, Thanks for your suggestions. But unfortunately none of them worked. Actually the application sets the Locale based on browser settings. So the response encoding is set to the appropriate Locate that is set in the browser with Tomcat 4. But its always set to ISO-8859-1 with Tomcat 5 and thats why are displayed. Is there anything that has changed with respect to usage of 18n taglibrary with Tomcat 5? Regards, Bob On 12/6/05, Seak, Teng-Fong [EMAIL PROTECTED] wrote: IMO, it's quite possible that your webapp were relying on bugs in previous version. So, you have to make sure you're jsp pages are following standards. The obvious reasons that I could think of are the followings tags not being used correctly: 1. %@ page contentType=text/html;charset=utf-8 % This tag specifies in which encoding your _resultant_ webpage is using. It's in UTF-8 in my example. 2. %@ page pageEncoding=iso-8859-1 % This tag specifies in which encoding your _original_ jsp file is saved. It's in ISO-8859-1 in my example. If your editor can't save in other encodings than your system's, I would expect that you're using the same encoding here. 3. meta http-equiv=Content-Type content=text/html; charset=utf-8 This tag, which is within HTML head tag specifies once more to the browser in which encoding it should use to render the page. Its encoding HAS to be the same as that specified in no 1 (UTF-1 in my example). Some might argue that this is not necessary, but the fact is that there're still browsers out there not capable of parsing encoding info in HTTP header. HTH Seak Vijay Babu wrote: Hi all, I am facing a problem with i18n using Tomcat 5.5.9. I have an application which has been internationalized for a couple of languages and is working fine with Tomcat 4.1.x. But the same application when deployed in Tomcat 5.5.9 does not work. When a jsp page having some text is accessed, its displaying ?? marks instead of the locale specific text. I could not figure out whats causing this problem. Does any one have idea of what could be the problem or is there any configuration change that needs to be done in Tomcat 5. Any suggestions would be highly appreciated. Thanks, Bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Internationalization Problem with Tomcat 5.5.9
Hi all, I am facing a problem with i18n using Tomcat 5.5.9. I have an application which has been internationalized for a couple of languages and is working fine with Tomcat 4.1.x. But the same application when deployed in Tomcat 5.5.9 does not work. When a jsp page having some text is accessed, its displaying ?? marks instead of the locale specific text. I could not figure out whats causing this problem. Does any one have idea of what could be the problem or is there any configuration change that needs to be done in Tomcat 5. Any suggestions would be highly appreciated. Thanks, Bob