Single sign on not working
Hi all, I have two web applications which use the same JDBCRealm. I have tested the realm and it works fine. I commented out the single sign on valve in the server.xml . I tested the links from one application to another. The protected resources still ask for the login information. It would be really helpful if someone could help me out with this. I am using tomcat 5.0.29 Thanks shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Single sign on problem
Hi all, I have two web applications which use the same JDBCRealm. I have tested the realm and it works fine. I commented out the single sign on valve in the server.xml . I tested the links from one application to another. The protected resources still ask for the login information. It would be really helpful if someone could help me out with this. I am using tomcat 5.0.29 Thanks shyam - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Single Sign On Help
Hi all, I have two web applications which use the same JDBCRealm. I have tested the realm and it works fine. I commented out the single sign on valve in the server.xml . I tested the links from one application to another. The protected resources still ask for the login information. It would be really helpful if someone could help me out with this. I am using tomcat 5.0.29. I have checked my logs and this is the output I am getting : 2005-04-18 10:12:19 SingleSignOn[localhost]: Checking for SSO cookie 2005-04-18 10:12:19 SingleSignOn[localhost]: SSO cookie is not present and this is happening for every request. I checked my broowser settings and it allows cookies. Thanks shyam Shyam Gavulla,Software Engineer www.interviewexchange.com Boston, MA USA phone:617 515 6549 - Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone.
Re: Single Sign On Help
I am sorri for the 3 messages. I got a response from the first two messages that the message was not delivered as I didnt have an account. So I subcribed again and sent the email. Sorri for the trouble shyam Jason Bainbridge [EMAIL PROTECTED] wrote: On 4/18/05, shyam reddy wrote: Hi all, I have two web applications which use the same JDBCRealm. I have tested the realm and it works fine. I commented out the single sign on valve in the server.xml . I tested the links from one application to another. The protected resources still ask for the login information. It would be really helpful if someone could help me out with this. I am using tomcat 5.0.29. I have checked my logs and this is the output I am getting : Why have you sent three emails about the same thing with different subjects? It isn't going to help you get a response, if you have more info to add then reply to your own post and keep it within the same thread that way you're much more likely to get a response. Regards, -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Make Yahoo! your home page
Socket Exception - Heavy load
Hi All, I am doing some performance tests. Under heavy load I get socket exceptions in my tomcat logs SEVERE: Error, processing connection java.net.SocketException: Software caused connection abort: recv failed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:556) at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:494) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: 614) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool java:644) at java.lang.Thread.run(Unknown Source) I guess it has something to do with jk2 and the sockets. It would be helpful if someone can explain this and why it is happening? My configuration is Apache 2.0.52 Tomcat 5.0.29 Jk2 - 1.2.8 Thanks shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Socket Exception - Heavy load
Yes I am on windows Thanks shyam -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:12 PM To: Tomcat Users List Subject: RE: Socket Exception - Heavy load Are you on a windows environment? -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 1:41 PM To: 'Tomcat Users List' Subject: Socket Exception - Heavy load Hi All, I am doing some performance tests. Under heavy load I get socket exceptions in my tomcat logs SEVERE: Error, processing connection java.net.SocketException: Software caused connection abort: recv failed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:556) at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:494) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: 614) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool java:644) at java.lang.Thread.run(Unknown Source) I guess it has something to do with jk2 and the sockets. It would be helpful if someone can explain this and why it is happening? My configuration is Apache 2.0.52 Tomcat 5.0.29 Jk2 - 1.2.8 Thanks shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Socket Exception - Heavy load
Hi Mark, Thanks. I would remember this . Thanks shyam -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:10 PM To: Tomcat Users List Subject: Re: Socket Exception - Heavy load Please do not hijack another message thread. If you wish to post to the list create a new message and send it. DO NOT reply to a list message and change the subject. Thread aware mail clients still recognise this as a reply and do not show it as a new message. Mark [EMAIL PROTECTED] shyam wrote: Hi All, I am doing some performance tests. Under heavy load I get socket exceptions in my tomcat logs SEVERE: Error, processing connection java.net.SocketException: Software caused connection abort: recv failed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:556) at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:494) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: 614) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool java:644) at java.lang.Thread.run(Unknown Source) I guess it has something to do with jk2 and the sockets. It would be helpful if someone can explain this and why it is happening? My configuration is Apache 2.0.52 Tomcat 5.0.29 Jk2 - 1.2.8 Thanks shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Socket Exception - Heavy load
Hi Derrick, Yeah it the read error. For reasonable amount of load tomcat doesn't complain. But for high loads , tomcat takes almost 400M (max allocated is 512) and as I observe it , there is a GC, and tomcat uses the minimum and during that time all these exceptions occur. I tried playing with the cachesize and cachetimeout values in workers.properties. But no success. And yeah it is jk version. Thanks shyam -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:38 PM To: Tomcat Developers List; Tomcat Users List Subject: RE: Socket Exception - Heavy load Sorry, I thought you had a socket write error. Looks like a read error. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:35 PM To: Tomcat Users List Cc: Tomcat Developers List Subject: RE: Socket Exception - Heavy load Windows is notorious for holding the socket binding for some time after the close is done. I expected that you would see a BindException, not a SocketException. This exception is thrown if a socket cannot be created and bound to the requested port. However, your error looks like the receiver dropped the connection. If the OutputStream was closed after you finished sending (before you started receiving), that's the cause of your problem, since closing the OutputStream also closes the socket. In any event it's the client that is closing the socket connection. BTW, 1.2.8 refers to a JK version not JK2 unless there is some really old version of JK2 of which I'm not aware. Perhaps Mladen Turk (JK expert) can help. -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:17 PM To: 'Tomcat Users List' Subject: RE: Socket Exception - Heavy load Hi Mark, Thanks. I would remember this . Thanks shyam -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:10 PM To: Tomcat Users List Subject: Re: Socket Exception - Heavy load Please do not hijack another message thread. If you wish to post to the list create a new message and send it. DO NOT reply to a list message and change the subject. Thread aware mail clients still recognise this as a reply and do not show it as a new message. Mark [EMAIL PROTECTED] shyam wrote: Hi All, I am doing some performance tests. Under heavy load I get socket exceptions in my tomcat logs SEVERE: Error, processing connection java.net.SocketException: Software caused connection abort: recv failed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:556) at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:494) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: 614) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool java:644) at java.lang.Thread.run(Unknown Source) I guess it has something to do with jk2 and the sockets. It would be helpful if someone can explain this and why it is happening? My configuration is Apache 2.0.52 Tomcat 5.0.29 Jk2 - 1.2.8 Thanks shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Socket Exception - Heavy load
I am including my workers.properties here # Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=200 worker.worker1.cache_timeout=60 worker.worker1.socket_keepalive=1 worker.worker1.reclycle_timeout=60 worker.worker1.retries=5 this the server.xml configuration of tomcat !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 maxThreads=1000 / thanks shyam -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:43 PM To: Tomcat Developers List; Tomcat Users List Subject: RE: Socket Exception - Heavy load What is your wait_timeout set to? ContactInfo NameDerrick Koes/Name TitleSenior Software Engineer/Title Company name=SkillSoft url=http://www.skillsoft.com/ AIMcodeauthor2001/AIM Email[EMAIL PROTECTED]/Email Phone(603) 821-3260/Phone Cell(603) 305-1753/Cell Fax/ Quote attributedTo=YodaNo, try not, do or do not, there is no try./Quote /ContactInfo -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:38 PM To: Tomcat Developers List; Tomcat Users List Subject: RE: Socket Exception - Heavy load Sorry, I thought you had a socket write error. Looks like a read error. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:35 PM To: Tomcat Users List Cc: Tomcat Developers List Subject: RE: Socket Exception - Heavy load Windows is notorious for holding the socket binding for some time after the close is done. I expected that you would see a BindException, not a SocketException. This exception is thrown if a socket cannot be created and bound to the requested port. However, your error looks like the receiver dropped the connection. If the OutputStream was closed after you finished sending (before you started receiving), that's the cause of your problem, since closing the OutputStream also closes the socket. In any event it's the client that is closing the socket connection. BTW, 1.2.8 refers to a JK version not JK2 unless there is some really old version of JK2 of which I'm not aware. Perhaps Mladen Turk (JK expert) can help. -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:17 PM To: 'Tomcat Users List' Subject: RE: Socket Exception - Heavy load Hi Mark, Thanks. I would remember this . Thanks shyam -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:10 PM To: Tomcat Users List Subject: Re: Socket Exception - Heavy load Please do not hijack another message thread. If you wish to post to the list create a new message and send it. DO NOT reply to a list message and change the subject. Thread aware mail clients still recognise this as a reply and do not show it as a new message. Mark [EMAIL PROTECTED] shyam wrote: Hi All, I am doing some performance tests. Under heavy load I get socket exceptions in my tomcat logs SEVERE: Error, processing connection java.net.SocketException: Software caused connection abort: recv failed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:556) at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:494) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: 614) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool java:644) at java.lang.Thread.run(Unknown Source) I guess it has something to do with jk2 and the sockets. It would be helpful if someone can explain this and why it is happening? My configuration is Apache 2.0.52 Tomcat 5.0.29 Jk2 - 1.2.8 Thanks shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED
RE: Socket Exception - Heavy load
Hi Derrick, I tried the default settings and also my settings. I get the same error. I turned the jklog file and saw the below error [Fri Jan 07 15:10:53 2005] [error] ajp_service::jk_ajp_common.c (1673): Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=worker1 failed errno = 61. I checked tomcat and it is running. Probably something todo with the number of connections between apache and tomcat. Just for curiosity, how many connections does apache and tomcat have between them? The tomcat server.xml has a setting for a port 8009 of 1000 connections. But for 100 concurrent users doing heavy load is this the correct number of connections? thanks shyam -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:58 PM To: Tomcat Users List Subject: RE: Socket Exception - Heavy load Do you see the problem when # worker.worker1.cachesize=200 # worker.worker1.cache_timeout=60 # worker.worker1.socket_keepalive=1 # worker.worker1.reclycle_timeout=60 # worker.worker1.retries=5 That is, defaults used for all these properties. BTW, you don't need an lbfactor unless this is actually a load balanced worker. Also, what do your JK logs say with debugging turned up around the time of the error? You have to set this in the registry for JK. -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:49 PM To: 'Tomcat Users List' Subject: RE: Socket Exception - Heavy load I am including my workers.properties here # Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=200 worker.worker1.cache_timeout=60 worker.worker1.socket_keepalive=1 worker.worker1.reclycle_timeout=60 worker.worker1.retries=5 this the server.xml configuration of tomcat !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 maxThreads=1000 / thanks shyam -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:43 PM To: Tomcat Developers List; Tomcat Users List Subject: RE: Socket Exception - Heavy load What is your wait_timeout set to? ContactInfo NameDerrick Koes/Name TitleSenior Software Engineer/Title Company name=SkillSoft url=http://www.skillsoft.com/ AIMcodeauthor2001/AIM Email[EMAIL PROTECTED]/Email Phone(603) 821-3260/Phone Cell(603) 305-1753/Cell Fax/ Quote attributedTo=YodaNo, try not, do or do not, there is no try./Quote /ContactInfo -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:38 PM To: Tomcat Developers List; Tomcat Users List Subject: RE: Socket Exception - Heavy load Sorry, I thought you had a socket write error. Looks like a read error. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:35 PM To: Tomcat Users List Cc: Tomcat Developers List Subject: RE: Socket Exception - Heavy load Windows is notorious for holding the socket binding for some time after the close is done. I expected that you would see a BindException, not a SocketException. This exception is thrown if a socket cannot be created and bound to the requested port. However, your error looks like the receiver dropped the connection. If the OutputStream was closed after you finished sending (before you started receiving), that's the cause of your problem, since closing the OutputStream also closes the socket. In any event it's the client that is closing the socket connection. BTW, 1.2.8 refers to a JK version not JK2 unless there is some really old version of JK2 of which I'm not aware. Perhaps Mladen Turk (JK expert) can help. -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:17 PM To: 'Tomcat Users List' Subject: RE: Socket Exception - Heavy load Hi Mark, Thanks. I would remember this . Thanks shyam -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:10 PM To: Tomcat Users List Subject: Re: Socket Exception - Heavy load Please do not hijack another message thread. If you wish to post to the list create a new message and send it. DO NOT reply to a list message and change the subject. Thread aware mail clients still recognise this as a reply and do not show it as a new message. Mark [EMAIL PROTECTED] shyam wrote: Hi All, I am doing some performance tests. Under heavy load I get socket exceptions in my tomcat logs SEVERE: Error, processing connection java.net.SocketException: Software caused connection abort: recv failed at java.net.SocketInputStream.socketRead0(Native Method
tomcat 5.0.29 service start problem (JNI)
Hi All, I have a problem starting tomcat as a service. I get this error in the tomcat log for Jakarta_service log. JNI Error occurred during initialization of VM [2004-10-14 01:22:29] [info] JNI [2004-10-14 01:22:29] [info] JNI Could not reserve enough space for object heap [2004-10-14 01:22:29] [info] JNI Can somebody help me out in this as my tomcat doesn't start as a service. It starts from the command line as a standalone application. The only change I have made is that of latest windows update. OS windows 2000 Thanks shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5.0.29 service start problem (JNI)
Hi, I have enough memory . I have set it up to use 1500mb where as I have enough ram of 2000. I have checked the windows site with their latest security updates. My guess is something to do with that coz I have been running with this configuration for almost an year now and never had any problem Thanks shyam -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 10:00 AM To: Tomcat Users List Subject: RE: tomcat 5.0.29 service start problem (JNI) Hi, I bet your -Xmx parameter is too big for your physical hardware. Yoav Shapira http://www.yoavshapira.com -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 9:41 AM To: 'Tomcat Users List' Subject: tomcat 5.0.29 service start problem (JNI) Hi All, I have a problem starting tomcat as a service. I get this error in the tomcat log for Jakarta_service log. JNI Error occurred during initialization of VM [2004-10-14 01:22:29] [info] JNI [2004-10-14 01:22:29] [info] JNI Could not reserve enough space for object heap [2004-10-14 01:22:29] [info] JNI Can somebody help me out in this as my tomcat doesn't start as a service. It starts from the command line as a standalone application. The only change I have made is that of latest windows update. OS windows 2000 Thanks shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5.0.29 service start problem (JNI)
Thanks you for all the replies. I havent fixed it but I am sure that's the problem with windows update. Will play with the -Xmx parameter later Thanks shyam -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 11:05 AM To: Tomcat Users List Subject: RE: tomcat 5.0.29 service start problem (JNI) From: shyam [mailto:[EMAIL PROTECTED] Subject: RE: tomcat 5.0.29 service start problem (JNI) I have enough memory . I have set it up to use 1500mb where as I have enough ram of 2000. This has nothing to do with physical memory. The maximum heap size is dependent on the largest contiguous virtual space available in the 2GB that Windows provides for each user process. Unfortunately, this space is fragmented by various DLLs that Windows preloads for you, so the biggest chunk you can use is noticeably smaller. I suspect the recently applied updates reduced this largest contiguous area, resulting in JVM initialization errors. You'll need to experiment with -Xmx to find the largest value that works in your current environment. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
connectionpool initial number of connections
Hi, I have successfully migrated my application from using a third party connection pooling to tomcat connection pooling using data sources. The documentation helped me a lot. However I want to initialize a certain number of connections at the start up just as the maxActive connections. Is there anyway of doing this? Thanks shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
stdouts
Hi All, Probably this question has been asked before but couldn't find it in archive. I have recently upgraded to tomcat 5.0.19 and I get lot of system outs and my stdout size is increasing exponentially because of this. I checked the debug level on my server and also my web application. Its at 0. One example is Returning NON-STM Instance which I saw the code and it's a log which should be there if the debug level =2. How can I stop all these system outs? Any help would be grateful Thanks in advance shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems building tomcat 5 from source
Hi All, I am trying to build tomcat 5 from the build.xml. I am getting the below errors. My OS is windows XP. I have followed the instructions provided in on the Jakarta web site. [cvs] Caught exception: CreateProcess: cvs -d:pserver:[EMAIL PROTECTED]:/home/cvspublic -q -z3 checkout -P jakarta-commons/LICENSE error=2 [cvs] Caught exception: CreateProcess: cvs -d:pserver:[EMAIL PROTECTED]:/home/cvspublic -q -z3 checkout -P jakarta-commons/daemon error=2 Any help is grateful. Thanks in advance shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session Mess
Hi All, I have an application running on tomcat 4.1.24. Recently I have seen some cases where the session is getting messed up. When a user logs in , the data shown is for another user. Recently I had some session expiring problems as lot of my sessions never expired. I just fixed the bug by setting maxInactiveInterval time. Is it because of this the sessions are getting messed up or any other reason. Any help would be thankful Thanks shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session Mess
Hi Matt, Thanks for the reply. I understand that if people from the same machine log in. But I see an instance when people who are from different locations getting the same session. I have two people who have uploaded files to my server and both file are same. Thanks shyam Software Engineer Adamshand Inc www.interviewexchange.com -Original Message- From: Matt Woodings [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 9:45 AM To: Tomcat Users List Subject: Re: Session Mess Session crossover is a common problem especially when many people log in from the same machine. The reason for this could be from caching of the browser. What you need to do is to force it to go back to the server and get the user the latest information. One way to do this is to add timestamp data and session id in the url of the page, as this is unique to the user, and if you run checks on the timestamp etc you can add extra security to your site also. This way you will be able to guarantee that the sessions will stop getting crossed and the right info gets put infront of the user. Matt - Original Message - From: shyam [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 8:17 AM Subject: Session Mess Hi All, I have an application running on tomcat 4.1.24. Recently I have seen some cases where the session is getting messed up. When a user logs in , the data shown is for another user. Recently I had some session expiring problems as lot of my sessions never expired. I just fixed the bug by setting maxInactiveInterval time. Is it because of this the sessions are getting messed up or any other reason. Any help would be thankful Thanks shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session Mess
Hi Matt, I am doing this file upload in servlet using Orielly multipart. I am not using any temp file but directly upload the file to my file system. And I rename the files with the current time stamp in the file name. Thanks Shyam -Original Message- From: Matt Woodings [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 10:33 AM To: Tomcat Users List Subject: Re: Session Mess Ahhh, I see. This might not be a session problem but a code problem. When you are uploading, do you store this file using a tmp file or something similar ... check for synchronization problems, and also check for files with the same name, i.e. does the files contents start with one set of data and finish with another. Matt - Original Message - From: shyam [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 8:34 AM Subject: RE: Session Mess Hi Matt, Thanks for the reply. I understand that if people from the same machine log in. But I see an instance when people who are from different locations getting the same session. I have two people who have uploaded files to my server and both file are same. Thanks shyam Software Engineer Adamshand Inc www.interviewexchange.com -Original Message- From: Matt Woodings [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 9:45 AM To: Tomcat Users List Subject: Re: Session Mess Session crossover is a common problem especially when many people log in from the same machine. The reason for this could be from caching of the browser. What you need to do is to force it to go back to the server and get the user the latest information. One way to do this is to add timestamp data and session id in the url of the page, as this is unique to the user, and if you run checks on the timestamp etc you can add extra security to your site also. This way you will be able to guarantee that the sessions will stop getting crossed and the right info gets put infront of the user. Matt - Original Message - From: shyam [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 8:17 AM Subject: Session Mess Hi All, I have an application running on tomcat 4.1.24. Recently I have seen some cases where the session is getting messed up. When a user logs in , the data shown is for another user. Recently I had some session expiring problems as lot of my sessions never expired. I just fixed the bug by setting maxInactiveInterval time. Is it because of this the sessions are getting messed up or any other reason. Any help would be thankful Thanks shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Turn off session persistence
Hi all, I have an application running on tomcat 4.1.24. I saw the session persistence is turned on. I want to turn it off . How can I do that ? Thanks in advance shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multi Threads
Hi all, I have a question. When tomcat starts , I have a loadonstartup servlet which creates new thread and this thread will not die. Now the question is when I shut down tomcat , I want this thread to die . I want to know how tomcat notifies its sub processes about the shut down. Currently because of the thread which active the shut down process takes a longer time . And sometimes I gget Thread death exception in my logs. I want to prevent it . Any help in this issue would be grateful Thanks in advance shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Java OutOfMemory Error
Hi, I not sure about tomcat 3.2.1. In tomcat 4 I have used the JAVA_OPTS . I set JAVA_OPTS as my environmental variable and that was it. Hope this helps you shyam -Original Message- From: Baldacchini Marco [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 06, 2004 5:41 AM To: [EMAIL PROTECTED] Subject: Tomcat Java OutOfMemory Error Hi, I'm running Tomcat 3.2.1 on Windows 2000 Server as service with jk_nt_service.exe utility. I receive java.lang.OutOfMemory error in my JSP page. I need to increment memory for JVM to 512 MB by setting -Xms512m -Xmx512m. Where I do it? Thanks in advance. Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Memory Issues
Hi All, I have an application running on tomcat4.1.24. I have allocated 1500 mb to the java vm. What happens is in 3-4 days my total memory reaches the 1500mb. The free memory is low. I force the GC to run so that the memory is freed. What I don't understand why is the total memory maximum. I want tomcat to deallocate and resize the heap so that the total memory doesn't max out. And also I need the GC to run more aggressively . My JAVA_OPTS are java -noclassgc -jmx1500 -jms1500. Any help in this issue will be grateful. Thanks shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Memory Issues
Hi, Thanks a lot for the information. I am using java 1.4.1_02 . I force the GC to run so that the memory is freed. No. You can not. You can tell the system, that it should. You cannot enforce it. I ask the System to the GC. Sorri for the wrong interpretation. We are pretty soon moving to tomcat5.0.19. But it will take some time. Until then I don't to see outofmemory errors. I guess I should ask the System to run the GC . Regarding memory leaks, I realize that I need to use a profiler . I will do it . Thanks again shyam -Original Message- From: SH Solutions [mailto:[EMAIL PROTECTED] Sent: Saturday, April 03, 2004 1:56 PM To: 'Tomcat Users List' Subject: RE: Memory Issues Hi I have an application running on tomcat4.1.24. Upgrade. 4.1.30 is latest in 4.1.x. I can even recommend 5.0.19, that I am running without problems. For some it has shown to be even faster. I force the GC to run so that the memory is freed. No. You can not. You can tell the system, that it should. You cannot enforce it. What I don't understand why is the total memory maximum. USE A PROFILER. This is a important step. You may be able to adjust some parameters to take the OoME to happen less frequently, but it will NOT solve your memory leaks. I want tomcat to deallocate and resize the heap so that the total memory doesn't max out. Tomcat cannot deallocate anything, since tomcat is also only a java program. If you do have memory leaks, no java code can change anything. Solve your leaks. And also I need the GC to run more aggressively. There are some VM options that allow you to control the way, GC works. Read its release notes. BTW, which VM are you using? Upgrade to latest. It was said, that where were StringBuffer memory leaks in at least one of the recent versions. Regards, Steffen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Memory Issues
Hi, Thanks a lot again. I just checked the release notes of java 1.4.2. The memory leak problem is fixed in 1.4.2. We will upgrade our VM. And I guess this is the problem coz I am using StringBuffer extensively. Will also run the profiler to check for any other memory leaks. Thanks shyam -Original Message- From: SH Solutions [mailto:[EMAIL PROTECTED] Sent: Saturday, April 03, 2004 3:22 PM To: 'Tomcat Users List' Subject: RE: Memory Issues Hi Thanks a lot for the information. I am using java 1.4.1_02 . I am not sure, maybe someone else can jump in, but I think, this was one the those VM releases I mentioned here: It was said, that where were StringBuffer memory leaks in at least one of the recent versions. So this might be the first thing to update instantly. Regards, Steffen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
load balancing with apache2
Hi All, I have set up the clustering with tomcat 5 and it works awesome. I followed the steps provided in the documentation for apache load balancing. I had success the first time but after that I keep getting this error in my apache logs The system cannot find the path specified. : mod_rewrite: can't access text RewriteMap file /conf/balancing.conf I have the balancing.conf in the conf directory. Balancing.conf LB1 tomcat1:8080 LB3 tomcat2:8080 ALL tomcat1:8080|tomcat2:8080 Can you please tell me whats wrong with the above. Thanks I advance shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
load balancing with apache2
Hi All, Can somebody help me with this. I am struck . thanks a lot From: shyam [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 09, 2004 10:28 AM To: 'Tomcat Users List' Subject: load balancing with apache2 Hi All, I have set up the clustering with tomcat 5 and it works awesome. I followed the steps provided in the documentation for apache load balancing. I had success the first time but after that I keep getting this error in my apache logs The system cannot find the path specified. : mod_rewrite: can't access text RewriteMap file /conf/balancing.conf I have the balancing.conf in the conf directory. Balancing.conf LB1 tomcat1:8080 LB3 tomcat2:8080 ALL tomcat1:8080|tomcat2:8080 Can you please tell me whats wrong with the above. Thanks I advance shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: load balancing with apache2
Hi, I have apache running under the local system account. It has the workers2.properties in the conf directory. I also have the ssl set up and apache 2 can access them. The balancing.conf is located at apache serverRoot/conf/ . Software Engineer Adamshand Inc www.interviewexchange.com -Original Message- From: Aadi Deshpande [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 09, 2004 12:49 PM To: Tomcat Users List Subject: Re: load balancing with apache2 Hi, Looks like a permissions issue. Is Apache running as nobody? Does it have rights to /conf/balancing.conf? ( which seems to located from the root directory of your server ). shyam wrote: Hi All, Can somebody help me with this. I am struck . thanks a lot From: shyam [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 09, 2004 10:28 AM To: 'Tomcat Users List' Subject: load balancing with apache2 Hi All, I have set up the clustering with tomcat 5 and it works awesome. I followed the steps provided in the documentation for apache load balancing. I had success the first time but after that I keep getting this error in my apache logs The system cannot find the path specified. : mod_rewrite: can't access text RewriteMap file /conf/balancing.conf I have the balancing.conf in the conf directory. Balancing.conf LB1 tomcat1:8080 LB3 tomcat2:8080 ALL tomcat1:8080|tomcat2:8080 Can you please tell me whats wrong with the above. Thanks I advance shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: customized error page
It should he under your root directory of the application or the directory in which your web-inf is present. Say c:\app\root\error Software Engineer Adamshand Inc www.interviewexchange.com -Original Message- From: Mathew [mailto:[EMAIL PROTECTED] Sent: Thursday, March 04, 2004 10:31 AM To: Tomcat Users List Subject: customized error page I have following code in my web.xml to redirect when ever I get 404 error. But I don't know where I have to create error folder (relative path) and put 404.html. Is it under /WEB-INF of application ? error-page error-code404/error-code location/error/404.html/location /error-page - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: access to apache httpd process from tomcat or jk
Hi All, I have a apache server in front of my tomcat . Currently I have my tomcat serving the static files. But now I want apache to do this not my tomcat. It would be grateful if someone can help me in this. Thanks shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
clustering tomcat 5.0.19 issues
Hi All, I have done clustering of tomcat. I have two different machines running tomcat which join the cluster. I am testing my application . But in between I see some errors like 1) context manager doesn't exist. 2)Unable to send replicated message, is server down? 3) SEVERE: TCP Worker thread in cluster caught 'java.io.IOException: An established connection was aborted by the software in your host machine' closing channel It would be grateful if somebody can tell what are these errors for . And also I have another query. I have my apache as the load balancer. Currently the requests are dispatched to each tomcat by the apache. I want this dispatch to happen in a specific way like one tomcat getting 2 requests and other getting just one request. Like a ratio of 2:1 . How can I do it ? Thanks in advance shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat clustering
Hi all, I am trying to do the clustering . I have tomcat set up on two different machines. Both these tomcats are joining the cluster. I have checked the logs and everything looks fine. I tried load balancing with apache2. I have apache set up on one machine. I have followed the instructions posted on Jakarta site. The problem is I don't see any session replication happening. I have checked the tomcat logs and apache logs. Tomcat logs has a warning. ERROR IN REGISTERING REQUEST. And apache logs has a error [error] ajp13.connect() failed ajp13:localhost:8009 [error] ajp13.service() failed to connect endpoint errno=61 Unknown error [error] ajp13.service() Error forwarding ajp13:localhost:8009 1 1 [error] lb.service() worker failed ajp13:localhost:8009 [error] lb_worker.service() all workers in error or disabled state Can somebody help me out in this. Thanks in advance shyam Software Engineer Adamshand Inc www.interviewexchange.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: StringBuffer out of range???
Can you give the exact error . Software Engineer Adamshand Inc www.interviewexchange.com -Original Message- From: Leonardo Larraquy [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 3:25 PM To: Tomcat Users List Subject: StringBuffer out of range??? Hi all, I'm using a class in my aplication to generate XML. It works perfectly, and it is used EVERYWERE for sending results from the server to the client. This way of sending information is developed by iterating some collections, and appending it in on a StringBuffer. The XML is well formed, but developing a program like a CUBE with much information, it reaches over 6.100.000 bytes the servlet throws an Exception that I havent deduced yet. (must be some kind of RunTimeException). I've tried the setLenght(), capacity and all the stuff. What could I do? Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
moving from tomcat 4.1.24 to tomcat 5
Hi All, I am glad to be back on the tomcat users list. I have an application running on tomcat 4.1.24 and I want to migrate to tomcat 5. It would be grateful if you could tell me the necessary steps or where I could thenecessary documentation . thanks shyam
Re: StackOverFlowError--Please help
Hi, The code snippet is taken from a different servlet which is my controller servlet. servlet1 and servlet2 forward to different pages. thanks, shyam - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 3:39 PM Subject: RE: StackOverFlowError--Please help Howdy, Can servlet1 also forward to servlet2, or vice versa? Is the code snippet taken from either servlet1 or servlet2? If so, you still could have infinite forwarding - StackOverFlowError. Yoav Shapira Millennium ChemInformatics -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 2:57 PM To: Tomcat Users List Subject: Re: StackOverFlowError--Please help sorri about the code snippet. Heres a complete picture. if(flag) { rd = context.getRequestDispatcher(/servlet1); rd.forward(request,response); } else { rd = context.getRequestDispatcher(/servlet2); rd.forward(request,response); } so when the flag is true it should be forwarded to servlet 1 else servlet 2. - Original Message - From: Jeff Tulley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 2:53 PM Subject: Re: StackOverFlowError--Please help Is it just me, or are both halves of that if statement exactly identical? Based on this snippet of code only, you should get the same results regardless of flag's value. Is there other code that checks this flag, and does the getRequestDispatcher call differently? It sounds like you are forwarding to yourself, and that whatever logic determines the value of flag is based on the forwarded request parameters, so it will always keep determining it to be false and forward once more to itself = infinite recursion. Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com [EMAIL PROTECTED] 9/30/03 12:39:12 PM Hi All, I am having a problem when doing servlet chaining. I have a code snippet like this if(flag) { requestdispatcher.forward(request,response); } else { requestdispatcher.forward(request,response); } The problem is if flag is true the forward and I get the desired result. But in the else case I get a java.lang.StackOverFlowError . The stack trace is java.lang.StackOverflowError at org.apache.catalina.core.ApplicationHttpRequest.removeAttribute(Applica tion H ttpRequest.java:229) And the error is at the forward of the false case. Can somebody help me with this problem. Thanks in advance, shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: StackOverFlowError--Please help
thanks for all your help. It was my problem. I didnt define the servlet properly in the web.xml . Poor stuff . sorri for the trouble. thanks, shyam - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 3:39 PM Subject: RE: StackOverFlowError--Please help Howdy, Can servlet1 also forward to servlet2, or vice versa? Is the code snippet taken from either servlet1 or servlet2? If so, you still could have infinite forwarding - StackOverFlowError. Yoav Shapira Millennium ChemInformatics -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 2:57 PM To: Tomcat Users List Subject: Re: StackOverFlowError--Please help sorri about the code snippet. Heres a complete picture. if(flag) { rd = context.getRequestDispatcher(/servlet1); rd.forward(request,response); } else { rd = context.getRequestDispatcher(/servlet2); rd.forward(request,response); } so when the flag is true it should be forwarded to servlet 1 else servlet 2. - Original Message - From: Jeff Tulley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 2:53 PM Subject: Re: StackOverFlowError--Please help Is it just me, or are both halves of that if statement exactly identical? Based on this snippet of code only, you should get the same results regardless of flag's value. Is there other code that checks this flag, and does the getRequestDispatcher call differently? It sounds like you are forwarding to yourself, and that whatever logic determines the value of flag is based on the forwarded request parameters, so it will always keep determining it to be false and forward once more to itself = infinite recursion. Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com [EMAIL PROTECTED] 9/30/03 12:39:12 PM Hi All, I am having a problem when doing servlet chaining. I have a code snippet like this if(flag) { requestdispatcher.forward(request,response); } else { requestdispatcher.forward(request,response); } The problem is if flag is true the forward and I get the desired result. But in the else case I get a java.lang.StackOverFlowError . The stack trace is java.lang.StackOverflowError at org.apache.catalina.core.ApplicationHttpRequest.removeAttribute(Applica tion H ttpRequest.java:229) And the error is at the forward of the false case. Can somebody help me with this problem. Thanks in advance, shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
StackOverFlowError--Please help
Hi All, I am having a problem when doing servlet chaining. I have a code snippet like this if(flag) { requestdispatcher.forward(request,response); } else { requestdispatcher.forward(request,response); } The problem is if flag is true the forward and I get the desired result. But in the else case I get a java.lang.StackOverFlowError . The stack trace is java.lang.StackOverflowError at org.apache.catalina.core.ApplicationHttpRequest.removeAttribute(ApplicationH ttpRequest.java:229) And the error is at the forward of the false case. Can somebody help me with this problem. Thanks in advance, shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: StackOverFlowError--Please help
sorri about the code snippet. Heres a complete picture. if(flag) { rd = context.getRequestDispatcher(/servlet1); rd.forward(request,response); } else { rd = context.getRequestDispatcher(/servlet2); rd.forward(request,response); } so when the flag is true it should be forwarded to servlet 1 else servlet 2. - Original Message - From: Jeff Tulley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 2:53 PM Subject: Re: StackOverFlowError--Please help Is it just me, or are both halves of that if statement exactly identical? Based on this snippet of code only, you should get the same results regardless of flag's value. Is there other code that checks this flag, and does the getRequestDispatcher call differently? It sounds like you are forwarding to yourself, and that whatever logic determines the value of flag is based on the forwarded request parameters, so it will always keep determining it to be false and forward once more to itself = infinite recursion. Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com [EMAIL PROTECTED] 9/30/03 12:39:12 PM Hi All, I am having a problem when doing servlet chaining. I have a code snippet like this if(flag) { requestdispatcher.forward(request,response); } else { requestdispatcher.forward(request,response); } The problem is if flag is true the forward and I get the desired result. But in the else case I get a java.lang.StackOverFlowError . The stack trace is java.lang.StackOverflowError at org.apache.catalina.core.ApplicationHttpRequest.removeAttribute(ApplicationH ttpRequest.java:229) And the error is at the forward of the false case. Can somebody help me with this problem. Thanks in advance, shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to find a javac compiler
I also had the same problem. If you have installed tomcat as a service this problem comes. You need to have the JAVA_HOME variable set to your j2sdk1.4.1 directory in the environmental variables . Hope this helps you. - Original Message - From: Bradberry, Rick [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 31, 2003 3:42 PM Subject: Unable to find a javac compiler Hi, Got a problem with Apache 2.0.47, Tomcat 4.1.18 and j2sdk 1.4.1.01. I've read through the archive and found some close to my problem, but not quit. My problem: I've installed Apache and Tomcat as standalone servers and they both work great. Now I'm trying to get them to talk to each other. I read through a HOWTO on setting it up on win2K as a inprocess server for jk2 and it almost works. Apache passes the request to Tomcat and Tomcat will process them unless it comes across a jsp page that has not been complied. Then I get Unable to find a javac compiler in the Tomcat logs. However, If I start Tomcat as a stand alone and go to the same page it compiles it and then I can go back to Apache and it will work. I've tried everything I can find, but get the same results. any help would be greatly appreciated. Some setup JAVA_HOME=C:\Program Files\eclipse\j2sdk1.4.1_01 CATALINA_HOME=C:\Program Files\Apache Group\jakarta-tomcat-4.1.18 TOMCAT_HOME=C:\Program Files\Apache Group\jakarta-tomcat-4.1.18 JK2.properties from HOWTO ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED ## WHEN YOU EDIT THE FILE. ## COMMENTS WILL BE _LOST_ ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc. # Override the default port for the socketChannel # channelSocket.port=8019 # Default: # channelUnix.file=${jkHome}/work/jk2.socket # Just to check if the the config is working shm.file=C:\Program Files\Apache Group\Apache2/logs/jk2.shm # In order to enable jni use any channelJni directive channelJni.disabled = 0 # And one of the following directives: # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so # If set to inprocess the mod_jk2 will Register natives itself # This will enable the starting of the Tomcat from mod_jk2 apr.jniModeSo=inprocess worker.properties from the HOWTO. [logger] level=DEBUG [config:] #file=${serverRoot}/conf/workers2.properties file=C:/Program Files/Apache Group/Apache2/conf/workers2.properties debug=0 debugEnv=0 [uriMap:] info=Maps the requests. Options: debug debug=0 # Alternate file logger #[logger.file:0] #level=DEBUG #file=${serverRoot}/logs/jk2.log [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=C:/Program Files/Apache Group/Apache2/logs/jk2.shm size=100 debug=0 disabled=0 [workerEnv:] info=Global server options timing=1 debug=0 # Default Native Logger (apache2 or win32 ) # can be overriden to a file logger, useful # when tracing win32 related issues #logger=logger.file:0 [lb:lb] info=Default load balancer. debug=0 #[lb:lb_1] #info=A second load balancer. #debug=0 [channel.socket:localhost:8009] info=Ajp13 forwarding over socket debug=0 tomcatId=localhost:8009 #[channel.socket:localhost:8019] #info=A second tomcat instance. #debug=0 #tomcatId=localhost:8019 #lb_factor=1 #group=lb #group=lb_1 #disabled=0 #[channel.un:/opt/33/work/jk2.socket] #info=A second channel connecting to localhost:8019 via unix socket #tomcatId=localhost:8019 #lb_factor=1 #debug=0 [channel.jni:jni] info=The jni channel, used if tomcat is started inprocess [status:] info=Status worker, displays runtime informations [vm:] info=Parameters used to load a JVM in the server process #JVM=C:\jdk\jre\bin\hotspot\jvm.dll OPT=-Djava.class.path=C:/Program Files/Apache Group/jakarta-tomcat-4.1.18/bin/tomcat-jni.jar;C:/Program Files/Apache Group/jakarta-tomcat-4.1.18/server/lib/commons-logging.jar;C:/Program Files/eclipse/j2sdk1.4.1_01/bin;C:/Program Files/Apache Group/jakarta-tomcat-4.1.18/jre/lib/rt.jar;C:/Program Files/Apache Group/jakarta-tomcat-4.1.18/lib/tools.jar OPT=-Dtomcat.home=C:/Program Files/Apache Group/jakarta-tomcat-4.1.18 OPT=-Dcatalina.home=C:/Program Files/Apache Group/jakarta-tomcat-4.1.18 OPT=-Djava.home=C:/Program Files/eclipse/j2sdk1.4.1_01 OPT=-Xmx128M #OPT=-Djava.compiler=NONE OPT=-Djava.compiler=C:/Program Files/eclipse/j2sdk1.4.1_01/bin/javac disabled=0 [worker.jni:onStartup] info=Command to be executed by the VM on startup. This one will start tomcat. class=org/apache/jk/apr/TomcatStarter ARG=start disabled=0 stdout=C:/Program Files/Apache Group/Apache2/logs/stdout.log stderr=C:/Program Files/Apache Group/Apache2/logs/stderr.log [worker.jni:onShutdown] info=Command to be executed by the VM on shutdown. This one will stop tomcat. class=org/apache/jk/apr/TomcatStarter ARG=stop disabled=0 [uri:/jkstatus/*] info=Display status information and checks the config file for changes. group=status: #[uri:127.0.0.1:8003]
Re: Hello Sir, Madam,Miss
Instead of adding the folder to the ROOT directory add ur directory (Book) to the webapps directory and make chanes to your server.xml like point ur context path to that directory. if everything goes well then http://localhost:8080/Book/AdminBook.jsp will show up. - Original Message - From: Felix gt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 31, 2003 2:57 PM Subject: Hello Sir, Madam,Miss Hello Sir, Madam, Miss Sorry because Disturb your time to reading my Email i have the Question About Setting the tomcat. my Question is i have Open new Folder in ROOT Folder call Book, in this Book Folder i have Copy all the JSP File in to this Folder. after i Finish Copy, i Type http://localhost:8080/Book/AdminBook.jsp, my Browser come out this Error : The server encountered an internal error () that prevented it from fulfilling this request. What is This Means for? how to solve this Problem?? can u teach me how to Solve it? Please. Thanks for Reading my Email Wait for Reply. __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Strange Problem with Tomcat 4.1.24
Do you have the java_home variable set to ur java directory. if not that might be the problem. - Original Message - From: Roland Kaeser [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 13, 2003 12:02 PM Subject: Strange Problem with Tomcat 4.1.24 Hello I've try to move a JSP/Servlet Application from Tomcat 3.2.4 to 4.1.24. In my .jsp files I'm using a class for getting the content out of a MySQL Database. All of the needed Classes are in the CLASSPATH. The Sun JRE 1.4.1 is the same as before. But now, i get the following Output when i try to call the jsp Page: - org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 202 in the jsp file: /home.jsp Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] /usr/jakarta-tomcat-4.1.24/work/Standalone/localhost/israel/home_jsp.java:17 8: cannot resolve symbol [javac] symbol : variable IsraelMySQL [javac] location: class org.apache.jsp.home_jsp [javac] out.print( IsraelMySQL.getNews() ); [javac] ^ - But if I load the the same class from my Servlet-Application it can be loaded successfully. Can andybody help me please? This already gonna drive me crazy. Roland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Clear user session
Hi All, I just moved my webapp from jrun to tomcat. I have a method which clears the user session. The code snippet is Enumeration session_var = session.getAttributeNames(); while(session_var.hasMoreElements()) { String key=(String)session_var.nextElement(); I am getting an error here and the exception is java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry How can I resolve this error. Thanks a lot in advance shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
migration from jrun to tomcat
Hi All, I have a webapp running on Jrun and IIS. I want the app to be moved from Jrun to tomcat. I have read that tomcat with IIS has problems. It would be grateful if someone can help me with details of moving from Jrun to tomcat and issues with the migration . Thanks, shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
localization in Tomcat V4
Hi, Can we achive the localized web-resources by putting in a filter?or is there an in built support for localization in Tomcat V4? Thanks Shyam
question about classpaths in tomcat run
Hello, I specified wrapper.classpath in tomcat.properties file fora certain run and it could not findmy classes. Then I stopped tomcat and set classpath to the same destination directory and started tomcat in the same window. This time my program worked. Any clarifications about these differences -- setting classpath in properties file as opposed to setting it directly before starting tomcat ? Thanks. [EMAIL PROTECTED]
Re: need help for rmi calls from tomcat 3.2.1
I tried that but still the problem is not solved. I wonder why RMI calls are not documented anywhere in apache tomcat. There must be quite a lot of applications using RMI and IIOP from tomcat JSP server. If anyone knows any solutions pls let me know. [EMAIL PROTECTED] - Original Message - From: Francisco Areas Guimaraes To: [EMAIL PROTECTED] Sent: Monday, July 02, 2001 5:10 PM Subject: Re: need help for rmi calls from tomcat 3.2.1 Assumming you installed tomcat in "c:\tomcat", you have to copy the "getStart" directory to "c:\tomcat\webapps\ROOT", so it would end up like this "c:\tomcat\webapps\ROOT\getStart". Now your url will work. You just have to think that "c:\tomcat\webapps\ROOT" is the physical address of "localhost:8080", got it? []´s Francisco - Original Message - From: Shyam Sarkar To: [EMAIL PROTECTED] Sent: Monday, July 02, 2001 7:02 PM Subject: Re: need help for rmi calls from tomcat 3.2.1 No, I copied to a separate directory called getStart and accesing hello.html in that directory using http://loalhost:8080/getStart/hello.html. Any suggestions ? Thanks. [EMAIL PROTECTED] - Original Message - From: Francisco Areas Guimaraes To: [EMAIL PROTECTED] Sent: Monday, July 02, 2001 3:00 PM Subject: Re: need help for rmi calls from tomcat 3.2.1 Have you copied to "/webapps/ROOT" ? Francisco - Original Message - From: Shyam Sarkar To: [EMAIL PROTECTED] Sent: Monday, July 02, 2001 6:43 PM Subject: need help for rmi calls from tomcat 3.2.1 I installed rmi example problem (Helloworld) in a directory called getStartunderC:\rmi\rmi. I can start the server and the client applet as described inthe trail.Next I started tomcat server and copied getStart under webapp directory.I started rmiregistry and then the server.I tried to open hello.html from a browser with urlhttp://localhost:8080/getStart/hello.html.The frame is coming but the resultmessage is 'blank' rather than 'Hello World'. I added the wrapper classpathetc.Any suggestions what is wrong.Regards.[EMAIL PROTECTED]
need help for rmi calls from tomcat 3.2.1
I installed rmi example problem (Helloworld) in a directory called getStartunderC:\rmi\rmi. I can start the server and the client applet as described inthe trail.Next I started tomcat server and copied getStart under webapp directory.I started rmiregistry and then the server.I tried to open hello.html from a browser with urlhttp://localhost:8080/getStart/hello.html.The frame is coming but the resultmessage is 'blank' rather than 'Hello World'. I added the wrapper classpathetc.Any suggestions what is wrong.Regards.[EMAIL PROTECTED]
Re: need help for rmi calls from tomcat 3.2.1
No, I copied to a separate directory called getStart and accesing hello.html in that directory using http://loalhost:8080/getStart/hello.html. Any suggestions ? Thanks. [EMAIL PROTECTED] - Original Message - From: Francisco Areas Guimaraes To: [EMAIL PROTECTED] Sent: Monday, July 02, 2001 3:00 PM Subject: Re: need help for rmi calls from tomcat 3.2.1 Have you copied to "/webapps/ROOT" ? Francisco - Original Message - From: Shyam Sarkar To: [EMAIL PROTECTED] Sent: Monday, July 02, 2001 6:43 PM Subject: need help for rmi calls from tomcat 3.2.1 I installed rmi example problem (Helloworld) in a directory called getStartunderC:\rmi\rmi. I can start the server and the client applet as described inthe trail.Next I started tomcat server and copied getStart under webapp directory.I started rmiregistry and then the server.I tried to open hello.html from a browser with urlhttp://localhost:8080/getStart/hello.html.The frame is coming but the resultmessage is 'blank' rather than 'Hello World'. I added the wrapper classpathetc.Any suggestions what is wrong.Regards.[EMAIL PROTECTED]