Re: maxProcessors vs maxThreads
Oh, come on, get real :). The Jk-Coyote docs are probably second to the mod_jk2 docs for being the most incomplete. While (as Remy has stated), you can perfectly happily set this on the Connector, the jk2.properties syntax is: container.maxThreads=value Shapira, Yoav [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Howdy, thanks yoav, i noticed that but then does that mean that there is no method to specify max threads/processors for the coyote ajp connector? that sounds a bit strange If it's not documented, then there's no configurable way to do it. Of course, you can always subclass/extend a connector just like any other tomcat element to add the behavior you want. how does tomcat behave with the ajp connector? does it indefinitely spawn threads to handle requests until it bombs out of memory? or is there behaviour as specified by the acceptcount/max processors for the http connector buried in the code of the ajp connector that can't be modified? I don't use the AJP connector, so I can't answer that one, but the code is open for you to inspect at your leisure... Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk load balancing question
Rahul Kuchhal wrote, On 1/19/2004 3:25 PM: Hi! I have a question about the load balancing capabilities of JK connector. If this is not the correct forum to ask this please let me know. We have been using a single apache load balanced equally between two Tomcat machines, using JK connector. Now during load tests on one of the installation the load is getting distributed evenly but on another installation (different machines and different application) the load distribution is very uneven. It always favors one Tomcat machine over the other in the ratio of 5:1. We have checked everything including the load factor etc. But the Tomcat sessions on one machine is 50 and on another one they are only 10. Is there a place where I can get more information about the load balancing algorithm? Any thing we can do to figure out why it is behaving in such a way? This is a known issue with the JK connector. The problem (as it was described to me) is that each Apache process does not communicate with the others regarding what tomcat workers it has sent requests to (the load balancing information). This leads to the Apache processes choosing the same worker frequenty to do the work. One work around is to use Apache2's worker MPM which is multi threaded. Threads will share the load-balancing information, so requests will be spread out a lot more evenly. Unfortunately, the threaded MPM isn't stable for all workloads so you'll have to test it to see if it works for you. Another work around is to tweak the lbfactor values in your workers.properties files until the load is distributed fairly evenly. This is process would have to be done through trial and error. I've looked at the load balancing code in mod_jk, it seems horribly complex for what probably should be a rather simple algorithm. It was also designed to have the load-balancing information shared between processes, but that portion of the code was never written. I'm sure the developers would welcome patches! ;-) -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TC5 won't start on Xeon | severe error
I removed completely my content. The error remains. Kostas Harvatis - National Center for Social Research - Directorate of Research Support www.ekke.gr - Original Message - From: Sanjeev Kumar [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 6:53 AM Subject: RE: TC5 won't start on Xeon | severe error What is the error now? 20 -ܺ 2004 9:29:29 ¿¹ org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 20 -ܺ 2004 9:29:29 ¿¹ org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1547 ms 20 -ܺ 2004 9:29:29 ¿¹ org.apache.catalina.core.StandardService start INFO: Starting service Catalina 20 -ܺ 2004 9:29:29 ¿¹ org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.16 20 -ܺ 2004 9:29:29 ¿¹ org.apache.catalina.core.StandardHost start INFO: XML validation disabled 20 -ܺ 2004 9:29:29 ¿¹ org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) 20 -ܺ 2004 9:29:29 ¿¹ org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\Program Files\Apache Gro up\Tomcat 5.0\conf\Catalina\localhost\admin.xml 20 -ܺ 2004 9:29:30 ¿¹ org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\Program Files\Apache Gro up\Tomcat 5.0\conf\Catalina\localhost\balancer.xml 20 -ܺ 2004 9:29:30 ¿¹ org.apache.catalina.core.StandardContext start SEVERE: Error filterStart 20 -ܺ 2004 9:29:30 ¿¹ org.apache.catalina.core.StandardContext start SEVERE: Context startup failed due to previous errors 20 -ܺ 2004 9:29:30 ¿¹ org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\Program Files\Apache Gro up\Tomcat 5.0\conf\Catalina\localhost\manager.xml 20 -ܺ 2004 9:29:31 ¿¹ org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /jsp-examples from URL file:C:\ Program Files\Apache Group\Tomcat 5.0\webapps\jsp-examples 20 -ܺ 2004 9:29:31 ¿¹ org.apache.catalina.core.StandardContext start SEVERE: Error filterStart 20 -ܺ 2004 9:29:31 ¿¹ org.apache.catalina.core.StandardContext start SEVERE: Context startup failed due to previous errors 20 -ܺ 2004 9:29:31 ¿¹ org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path from URL file:C:\Program Files \Apache Group\Tomcat 5.0\webapps\ROOT 20 -ܺ 2004 9:29:31 ¿¹ org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /servlets-examples from URL fil e:C:\Program Files\Apache Group\Tomcat 5.0\webapps\servlets-examples 20 -ܺ 2004 9:29:31 ¿¹ org.apache.catalina.core.StandardContext start SEVERE: Error filterStart 20 -ܺ 2004 9:29:31 ¿¹ org.apache.catalina.core.StandardContext start SEVERE: Context startup failed due to previous errors 20 -ܺ 2004 9:29:31 ¿¹ org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /tomcat-docs from URL file:C:\P rogram Files\Apache Group\Tomcat 5.0\webapps\tomcat-docs 20 -ܺ 2004 9:29:31 ¿¹ org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 20 -ܺ 2004 9:29:32 ¿¹ org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 20 -ܺ 2004 9:29:32 ¿¹ org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/15 config=C:\Program Files\Apache Group\Tomcat 5.0 \conf\jk2.properties 20 -ܺ 2004 9:29:32 ¿¹ org.apache.catalina.startup.Catalina start INFO: Server startup in 2734 ms - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat - Automatically writes a session?
You have to specify it on the JSP pages. I can't remember it properly, but it must be something like: @page session=false @ Google for it on the Tomcat site. I think you will find it. Antonio Fiol Neal wrote: Someone just pointed out that my JSPs are have this in the header: Set-Cookie: JSESSIONID=97C8777F16379B8EC2CD17273CE35C3C; Path=/ The problem is that I'm not setting any sessions or cookies from the page so I have no idea what's going on. Is there some reason this is there? Is there some setting in the Web.xml and/or server.xml file that I must tweak? PS - I use Tomcat has my http server, not apache (in case that's meaningful). Thanks. Neal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
RE: Tomcat - Automatically writes a session?
You're kidding? So, by default, I'm writing a freaking session for every single page? That sounds like a colossal waist of resources. Thanks though for the tip! Neal -Original Message- From: Antonio Fiol Bonnín [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 11:46 PM To: Tomcat Users List Subject: Re: Tomcat - Automatically writes a session? You have to specify it on the JSP pages. I can't remember it properly, but it must be something like: @page session=false @ Google for it on the Tomcat site. I think you will find it. Antonio Fiol Neal wrote: Someone just pointed out that my JSPs are have this in the header: Set-Cookie: JSESSIONID=97C8777F16379B8EC2CD17273CE35C3C; Path=/ The problem is that I'm not setting any sessions or cookies from the page so I have no idea what's going on. Is there some reason this is there? Is there some setting in the Web.xml and/or server.xml file that I must tweak? PS - I use Tomcat has my http server, not apache (in case that's meaningful). Thanks. Neal - 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 - Automatically writes a session?
I used the tag [EMAIL PROTECTED] session=false% which does appear correct, but I'm still seeing that header: Set-Cookie: JSESSIONID=97C8777F16379B8EC2CD17273CE35C3C; Path=/ There are two reasons why I want to get rid of this: 1. I assume I'm waiting server resources holding open a session for every user, unnecessarily. 2. I've been told this may prevent Google from properly spidering the site. Can you please shed any more light on how to fix this potential issue? Thanks. N -Original Message- From: Antonio Fiol Bonnín [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 11:46 PM To: Tomcat Users List Subject: Re: Tomcat - Automatically writes a session? You have to specify it on the JSP pages. I can't remember it properly, but it must be something like: @page session=false @ Google for it on the Tomcat site. I think you will find it. Antonio Fiol Neal wrote: Someone just pointed out that my JSPs are have this in the header: Set-Cookie: JSESSIONID=97C8777F16379B8EC2CD17273CE35C3C; Path=/ The problem is that I'm not setting any sessions or cookies from the page so I have no idea what's going on. Is there some reason this is there? Is there some setting in the Web.xml and/or server.xml file that I must tweak? PS - I use Tomcat has my http server, not apache (in case that's meaningful). Thanks. Neal - 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 - Automatically writes a session?
Unreal I've done everything I can think of and I'm still seeing a JSession cookie in the header of my pages: I've tried: 1. server.xml file - host/@cookies=false 2. [EMAIL PROTECTED] session=false% as the first line of the JSP. 3. Restarted application numerous times. 4. Absolutely no code to write a cookie or a session ANYWHERE in the entire applcation. Any ideas??! Here's the Header being returned: Server Response: http://www.travelusa.com/hotels.jsp?2 Status: HTTP/1.1 200 OK Set-Cookie: JSESSIONID=FC6ECEFBABA482AE6707EC400E229FB1; Path=/ Content-Type: text/html;charset=ISO-8859-1 Transfer-Encoding: chunked Date: Tue, 20 Jan 2004 10:44:21 GMT Server: Apache Coyote/1.0 Thanks. N -Original Message- From: Neal [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 11:53 PM To: 'Tomcat Users List' Subject: RE: Tomcat - Automatically writes a session? You're kidding? So, by default, I'm writing a freaking session for every single page? That sounds like a colossal waist of resources. Thanks though for the tip! Neal -Original Message- From: Antonio Fiol Bonnín [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 11:46 PM To: Tomcat Users List Subject: Re: Tomcat - Automatically writes a session? You have to specify it on the JSP pages. I can't remember it properly, but it must be something like: @page session=false @ Google for it on the Tomcat site. I think you will find it. Antonio Fiol Neal wrote: Someone just pointed out that my JSPs are have this in the header: Set-Cookie: JSESSIONID=97C8777F16379B8EC2CD17273CE35C3C; Path=/ The problem is that I'm not setting any sessions or cookies from the page so I have no idea what's going on. Is there some reason this is there? Is there some setting in the Web.xml and/or server.xml file that I must tweak? PS - I use Tomcat has my http server, not apache (in case that's meaningful). Thanks. Neal - 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]
Linking tomcat with apache
Hi I had the same problem regarding linking tomcat with apache, i found this great site by John Turner http://johnturner.com/howto/apache-tomcat-howto.html It talks about all possible configurations of tomcat and apache linking on all platoforms, by far the best link i have seen :) thanks ananth
Re: Linking tomcat with apache
and if u r working on AIX u have to look at http://apache.org/~trawick/tomcataix.html Pavan Kumar Tata Consultancy Services mailto: [EMAIL PROTECTED] [EMAIL PROTECTED]DISCLAIMER: The information contained in this message is intended only and solely for the addressed individual or entity indicated in this message and for the exclusive use of the said addressed individual or entity indicated in this message (or responsible for delivery of the message to such person) and may contain legally privileged and confidential information belonging to Tata Consultancy Services. It must not be printed, read, copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person other than the addressee. Unauthorized use, disclosure or copying is strictly prohibited and may constitute unlawful act and can possibly attract legal action, civil and/or criminal. The contents of this message need not necessarily reflect or endorse the views of Tata Consultancy Services on any subject matter. Any action taken or omitted to be taken based on this message is entirely at your risk and neither the originator of this message nor Tata Consultancy Services takes any responsibility or liability towards the same. Opinions, conclusions and any other information contained in this message that do not relate to the official business of Tata Consultancy Services shall be understood as neither given nor endorsed by Tata Consultancy Services or any affiliate of Tata Consultancy Services. If you have received this message in error, you should destroy this message and may please notify the sender by e-mail. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
request.getRemoteUser() is NULL
I have made a new installation of Tomcat 4.1.29 on my new DELL laptop running XP. I have copied the project to the new laptop and try set it up to work as on my work machine. I am not able to get the login to work. I am using the security-constraint in my web.xml. At first I could not get the FORM login to work only BASIC. Then I changed the FORM action to %= response.encodeURL(j_security_check) %, and I was able use FORM login. The next problem is that the auth is only accepted for the page that activated the FORM page. For example url-pattern/public/*/url-pattern contains test.jsp and test2.jsp and when I link to test.jsp the FORM page is called. When succesfully logged in the request.getRemoteUser() is correct. But when I then link from there to test2.jsp the request.getRemoteUser() is NULL and the FORM page is called again. If you have any ideas that will get me in the right direction, please let me know. BR. Soren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Linking tomcat with apache
Hi Ananthram, The link you provided is real help Cheers, Purvee -Original Message- From: Anantharam S [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 5:42 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Linking tomcat with apache Hi I had the same problem regarding linking tomcat with apache, i found this great site by John Turner http://johnturner.com/howto/apache-tomcat-howto.html It talks about all possible configurations of tomcat and apache linking on all platoforms, by far the best link i have seen :) thanks ananth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: request.getRemoteUser() is NULL
If FORM authentication only works after encoding the url then the browser is probably rejecting the cookie (JSessionId) that is normally used to maintain a session. If this is the case then every link should also be encoded. Actually, this is good practise anyway (encodeURL does nothing if cookies ARE being used to maintain state). If tomcat can't use cookies and the url isn't encoded there is no way for session info to be retained between requests and a new (unauthenticated) session is started. This seems to be what you see when you hit test2.jsp. HTH, Jon Søren Blidorf wrote: I have made a new installation of Tomcat 4.1.29 on my new DELL laptop running XP. I have copied the project to the new laptop and try set it up to work as on my work machine. I am not able to get the login to work. I am using the security-constraint in my web.xml. At first I could not get the FORM login to work only BASIC. Then I changed the FORM action to %= response.encodeURL(j_security_check) %, and I was able use FORM login. The next problem is that the auth is only accepted for the page that activated the FORM page. For example url-pattern/public/*/url-pattern contains test.jsp and test2.jsp and when I link to test.jsp the FORM page is called. When succesfully logged in the request.getRemoteUser() is correct. But when I then link from there to test2.jsp the request.getRemoteUser() is NULL and the FORM page is called again. If you have any ideas that will get me in the right direction, please let me know. BR. Soren - 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: Eclipse+Ant+Tomcat 5 - problems
Since you are using Eclipse, why not try out the Sysdeo Tomcat plugin? -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: 19 January 2004 23:09 To: [EMAIL PROTECTED] Subject: Eclipse+Ant+Tomcat 5 - problems I'm starting to try out Tomcat 5 in our development environment, which has been running Tomcat 4.1.x to-date. Preface: our IDE is Eclipse, I use Ant with the catalina-ant tasks to install/remove our web-app from a local Tomcat installation. Everything has worked fine, though I've noticed that after my first install (once I start Eclipse and Tomcat) - anytime I remove/install the web-app, the install appears to init the app twice (my load-on-init servlet's are called twice, etc.) I never figured out what caused this, but it didn't negatively impact anything, so I didn't care. Now, with Tomcat 5 ... after a little tweaking, to my Eclipse environment, I was able to get my same install/remove task working with Ant. The only problem now is that after the initial install, when I do a remove/install, it seems to still init the app twice, only on the second init, it crokes. Talks about a property string that it can't find and then that it can't find the deployment directory for the app (the app is installed from a .WAR) Not good. So, I did some googling - found that apparent install/remove has been deprecated in favor of deploy/undeploy. Fine - so I tried using the deploy task. Apparently, ant doesn't have enough memory to deploy my 90MB+ .WAR (installing never seemed to be a problem) - and when I looked for threads on the DeployTask generating OutOfMemory exceptions, it said to increase ant's memory ... which I can't, for the life of myself, figure out how to do with Eclipse. I've previously gone done the path of having ant fork, but it caused so many problems with our builds, I'd rather not revisit that. Does anybody have anything that can help me? I'm trying out Tomcat 5 because Tomcat 4.1.x appears to have some pretty severe memory leaks with its install/remove operations - if I install/remove my web-app more than 2-3 times, Tomcat (not the Ant task and not Eclipse) runs OutOfMemory ... other users have reported that Tomcat 5 does much better in this arena. Advise on any of these issues is much appreciated!! Respectfully, Brice Ruth Brice D. Ruth Sr. IT Analyst Fiskars Brands, Inc. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. Note:__ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs.
SV: request.getRemoteUser() is NULL
That did the trick. Thanks a lot. Is there a setting on my laptop I can change, so that I do not have to change all the links? BR Soren -Oprindelig meddelelse- Fra: Jon Wingfield [mailto:[EMAIL PROTECTED] Sendt: 20. januar 2004 11:42 Til: Tomcat Users List Emne: Re: request.getRemoteUser() is NULL If FORM authentication only works after encoding the url then the browser is probably rejecting the cookie (JSessionId) that is normally used to maintain a session. If this is the case then every link should also be encoded. Actually, this is good practise anyway (encodeURL does nothing if cookies ARE being used to maintain state). If tomcat can't use cookies and the url isn't encoded there is no way for session info to be retained between requests and a new (unauthenticated) session is started. This seems to be what you see when you hit test2.jsp. HTH, Jon Søren Blidorf wrote: I have made a new installation of Tomcat 4.1.29 on my new DELL laptop running XP. I have copied the project to the new laptop and try set it up to work as on my work machine. I am not able to get the login to work. I am using the security-constraint in my web.xml. At first I could not get the FORM login to work only BASIC. Then I changed the FORM action to %= response.encodeURL(j_security_check) %, and I was able use FORM login. The next problem is that the auth is only accepted for the page that activated the FORM page. For example url-pattern/public/*/url-pattern contains test.jsp and test2.jsp and when I link to test.jsp the FORM page is called. When succesfully logged in the request.getRemoteUser() is correct. But when I then link from there to test2.jsp the request.getRemoteUser() is NULL and the FORM page is called again. If you have any ideas that will get me in the right direction, please let me know. BR. Soren - 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: Running multiple JVMs
Don't know as we use a hardware load balancer. Donie -Original Message- From: Brennon Obst [mailto:[EMAIL PROTECTED] Sent: 19 January 2004 23:30 To: 'Tomcat Users List' Subject: RE: Running multiple JVMs How do you run multiple instances of tomcat with an apache front/balancer? /Brennon -Original Message- From: Donie Kelly [mailto:[EMAIL PROTECTED] Sent: Tuesday, 20 January 2004 3:03 AM To: 'Tomcat Users List' Subject: RE: Running multiple JVMs Or you can have one IP and get multiple tomcat's listening on different ports and get your balancer to route to each of them. Multiple IP's are not necessary if you need to use a balancer. Donie -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: 19 January 2004 16:52 To: Tomcat Users List Subject: RE: Running multiple JVMs An additional remark: Only one process can listen on port 80 at a time on the !!! same IP !!!. You can define several IP's on one machine and thus can have several services that listen on port 80. (One for each IP) -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 5:42 PM To: Tomcat Users List Subject: RE: Running multiple JVMs Only one process can listen on port 80 at a time. - 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: SV: request.getRemoteUser() is NULL
In IE: ToolsInternet Options...Privacy Tab Play with setting slider. On my dev machine mine's set to Medium and TC's cookies are accepted fine. In Mozilla: Either EditPreferences...Privacy Security category or ToolsCookie Manager Jon Søren Blidorf wrote: That did the trick. Thanks a lot. Is there a setting on my laptop I can change, so that I do not have to change all the links? BR Soren -Oprindelig meddelelse- Fra: Jon Wingfield [mailto:[EMAIL PROTECTED] Sendt: 20. januar 2004 11:42 Til: Tomcat Users List Emne: Re: request.getRemoteUser() is NULL If FORM authentication only works after encoding the url then the browser is probably rejecting the cookie (JSessionId) that is normally used to maintain a session. If this is the case then every link should also be encoded. Actually, this is good practise anyway (encodeURL does nothing if cookies ARE being used to maintain state). If tomcat can't use cookies and the url isn't encoded there is no way for session info to be retained between requests and a new (unauthenticated) session is started. This seems to be what you see when you hit test2.jsp. HTH, Jon Søren Blidorf wrote: I have made a new installation of Tomcat 4.1.29 on my new DELL laptop running XP. I have copied the project to the new laptop and try set it up to work as on my work machine. I am not able to get the login to work. I am using the security-constraint in my web.xml. At first I could not get the FORM login to work only BASIC. Then I changed the FORM action to %= response.encodeURL(j_security_check) %, and I was able use FORM login. The next problem is that the auth is only accepted for the page that activated the FORM page. For example url-pattern/public/*/url-pattern contains test.jsp and test2.jsp and when I link to test.jsp the FORM page is called. When succesfully logged in the request.getRemoteUser() is correct. But when I then link from there to test2.jsp the request.getRemoteUser() is NULL and the FORM page is called again. If you have any ideas that will get me in the right direction, please let me know. BR. Soren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Please help, I have a headache .. servlet init troubles
Just for curiosity, try to put a breakpoint in your IQActionServlet:init and tell us is the two callers are the same. -- De: Allistair Crossley[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: segunda-feira, 19 de janeiro de 2004 13:44 Para: Tomcat Users List Assunto: RE: Please help, I have a headache .. servlet init troubles no, it's one host, Cheers, ADC -Original Message- From: James Neville [mailto:[EMAIL PROTECTED] Sent: 19 January 2004 16:31 To: Tomcat Users List Subject: Re: Please help, I have a headache .. servlet init troubles Allistair Crossley wrote: Do you know why my servlet initalises twice? That's my remaining issue.. If you are specifying multiple hosts, all running from the same appBase, then each web application will be deployed to each host. If this is the case, run each host from a different appBase so that you don't double deploy. James. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What does this mean? ajp13.service() Error sending initial post -1 0 0
Hi I am running tomcat 4.1.29 on IIS 5.0 and j2k 2.0.2 (have also tried older versions) Sometimes I get this error in the j2k.log: [Tue Jan 20 13:03:18 2004] (error ) [jk_worker_ajp13.c (380)] ajp13.service() Error sending initial post -1 0 0 the log continues: [Tue Jan 20 13:03:18 2004] (debug ) [jk_handler_response.c (155)] handler.response() Header[0] [Content-Encoding] = [gzip] [Tue Jan 20 13:03:18 2004] (debug ) [jk_handler_response.c (155)] handler.response() Header[1] [Content-Type] = [text/xml;charset=ISO-8859-1] [Tue Jan 20 13:03:18 2004] (debug ) [jk_handler_response.c (155)] handler.response() Header[2] [Content-Length] = [199] [Tue Jan 20 13:03:18 2004] (debug ) [jk_handler_response.c (172)] handler.response(): status=200 headers=3 [Tue Jan 20 13:03:18 2004] (debug ) [jk_service_iis.c (93)] Into jk_ws_service_t::head [Tue Jan 20 13:03:18 2004] (debug ) [jk_service_iis.c (227)] Into jk_ws_service_t::write [Tue Jan 20 13:03:18 2004] (debug ) [jk_isapi_plugin.c (516)] HttpExtensionProc service() returned OK But the request is not passed to Tomcat, and a response i never sent to the browser!! Anya ideas? Thanks, Rasmus
RE: Please help, I have a headache .. servlet init troubles
Tell us, if you use these parameters for a simple connection, do you really connect to SQLServer? I think that your real problem is to create a JNDI datasource. -- De: Allistair Crossley[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: segunda-feira, 19 de janeiro de 2004 13:35 Para: Tomcat Users List Assunto: RE: Please help, I have a headache .. servlet init troubles Hi, Yes I have the jdbc driver in common/lib - like I say ... it does connect but I do not know why it gives this error! I just removed trying to get the JNDI data source in my controller servlet init() and moved it to the classes that need a connection. There are now no errors. Therefore it seems almost that init() is too quick to try and get the JNDI resource before it has managed to load the servlet.xml?? Do you know why my servlet initalises twice? That's my remaining issue.. Cheers, ADC -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: 19 January 2004 17:22 To: 'Tomcat Users List' Subject: RE: Please help, I have a headache .. servlet init troubles To solve your problem with JDBC Driver, you must put the JDBC driver inside $TOMCAT_HOME/common/lib, try this first the other errors we will see if happens again. -- De: Allistair Crossley[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada:segunda-feira, 19 de janeiro de 2004 12:56 Para: TOMCAT USER (E-mail) Assunto:Please help, I have a headache .. servlet init troubles I am having the biggest headache ever with this. When I start Tomcat 1) Why is my controller servlet always initialised twice?? That is, as soon as all my logging has finished for one init, it all comes out again a second time! 2) In the init I get the following error when it tries to look at my JNDI datasource... 2004-01-19 15:35:28,764 INFO com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) : dataSource: done 2004-01-19 15:35:28,764 ERROR com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) : Init could not acquire connection from DataSource: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause: null Cannot create JDBC driver of class '' for connect URL 'null' Yet shortly after it seems to have found my datasource perfectly ok because calls work... 2004-01-19 15:36:44,828 DEBUG com.qas.newmedia.intranet.iq.base.navigation.NavigationManager.init(Unknow n Source) : CONNECTIOINIT [EMAIL PROTECTED] My JNDI resouce is below (clearly a URL DOES exist). Thank you all! ADC -- snip -- Resource name=jdbc/iqdb auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/iqdb parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter parameter nameurl/name valuejdbc:microsoft:sqlserver://server:1433/value /parameter parameter nameusername/name valuesa/value /parameter parameter namepassword/name valuepass/value /parameter parameter namemaxActive/name value50/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value1/value /parameter parameter namevalidationQuery/name valueSELECT 1 + 1/value
Re: Clustering question...
As of now I don' think the Tomcat clustering code of Filip supports any of what you ask. The only thing replicated is the session and the date within. The principal is not replicated as of yet. (I think Filip is working on that) You will have to find another centralized spot to store those data for each node to access. Jean-Philippe Bélanger CGI Rick Szeto wrote: Hi All, I have question about synchronizing data within the application context. If the data of a webapp's application context changes within one of the nodes in the cluster, how does the other nodes get the updated application context data? Is it handle the same way as user session data(via some session manager implementation)? Or does the change(s) get distributed? Thanks for any help you can give, Rick Szeto - 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]
rfc2822 clarification on date headers
Hi allJavamail generates a date in the format: Date: Tue, 20 Jan 2004 11:57:37 + (GMT)The spec below implies that the timezone is either a numeric offset or the timezone is specified like Date: Fri, 23 Jan 2004 11:57:24 GMTCan somebody clarify why javamail uses both forms?Extract from rfc2822 belowThanksDonie3.3. Date and Time Specification Date and time occur in several header fields. This section specifies the syntax for a full date and time specification. Though folding white space is permitted throughout the date-time specification, it is RECOMMENDED that a single space be used in each place that FWS appears (whether it is required or optional); some older implementations may not interpret other occurrences of folding white space correctly.date-time = [ day-of-week , ] date FWS time [CFWS]day-of-week = ([FWS] day-name) / obs-day-of-weekday-name = Mon / Tue / Wed / Thu / Fri / Sat / Sundate = day month yearyear = 4*DIGIT / obs-yearmonth = (FWS month-name FWS) / obs-monthmonth-name = Jan / Feb / Mar / Apr / May / Jun / Jul / Aug / Sep / Oct / Nov / Decday = ([FWS] 1*2DIGIT) / obs-daytime = time-of-day FWS zonetime-of-day = hour : minute [ : second ]hour = 2DIGIT / obs-hourminute = 2DIGIT / obs-minutesecond = 2DIGIT / obs-secondzone = (( + / - ) 4DIGIT) / obs-zone The day is the numeric day of the month. The year is any numeric year 1900 or later. The time-of-day specifies the number of hours, minutes, and optionally seconds since midnight of the date indicated. The date and time-of-day SHOULD express local time. The zone specifies the offset from Coordinated Universal Time (UTC, formerly referred to as Greenwich Mean Time) that the date and time-of-day represent. The + or - indicates whether the time-of-day is ahead of (i.e., east of) or behind (i.e., west of) Universal Time. The first two digits indicate the number of hours difference from Universal Time, and the last two digits indicate the number of minutes difference from Universal Time. (Hence, +hhmm means +(hh * 60 + mm) minutes, and -hhmm means -(hh * 60 + mm) minutes). The form + SHOULD be used to indicate a time zone at Universal Time. Though - also indicates Universal Time, it is used to indicate that the time was generated on a system that may be in a local time zone other than Universal Time and therefore indicates that the date-time contains no information about the local time zone. A date-time specification MUST be semantically valid. That is, the day-of-the-week (if included) MUST be the day implied by the date, the numeric day-of-month MUST be between 1 and the number of days allowed for the specified month (in the specified year), the time-of-day MUST be in the range 00:00:00 through 23:59:60 (the number of seconds allowing for a leap second; see [STD12]), and the zone MUST be within the range -9959 through +9959. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Please help, I have a headache .. servlet init troubles
I have solved the JNDI resource by removing the call to the Context out of the init method and into the classes that wish to connect. And yes I do use a JNDI properly as my application is working using dataSource.getConnection(). The only time my dataSource.getConnection does not work is when I try to get the JNDI resource in the servlet init method. -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: 20 January 2004 13:07 To: 'Tomcat Users List' Subject: RE: Please help, I have a headache .. servlet init troubles Tell us, if you use these parameters for a simple connection, do you really connect to SQLServer? I think that your real problem is to create a JNDI datasource. -- De: Allistair Crossley[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: segunda-feira, 19 de janeiro de 2004 13:35 Para: Tomcat Users List Assunto: RE: Please help, I have a headache .. servlet init troubles Hi, Yes I have the jdbc driver in common/lib - like I say ... it does connect but I do not know why it gives this error! I just removed trying to get the JNDI data source in my controller servlet init() and moved it to the classes that need a connection. There are now no errors. Therefore it seems almost that init() is too quick to try and get the JNDI resource before it has managed to load the servlet.xml?? Do you know why my servlet initalises twice? That's my remaining issue.. Cheers, ADC -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: 19 January 2004 17:22 To: 'Tomcat Users List' Subject: RE: Please help, I have a headache .. servlet init troubles To solve your problem with JDBC Driver, you must put the JDBC driver inside $TOMCAT_HOME/common/lib, try this first the other errors we will see if happens again. -- De: Allistair Crossley[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada:segunda-feira, 19 de janeiro de 2004 12:56 Para: TOMCAT USER (E-mail) Assunto:Please help, I have a headache .. servlet init troubles I am having the biggest headache ever with this. When I start Tomcat 1) Why is my controller servlet always initialised twice?? That is, as soon as all my logging has finished for one init, it all comes out again a second time! 2) In the init I get the following error when it tries to look at my JNDI datasource... 2004-01-19 15:35:28,764 INFO com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) : dataSource: done 2004-01-19 15:35:28,764 ERROR com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) : Init could not acquire connection from DataSource: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause: null Cannot create JDBC driver of class '' for connect URL 'null' Yet shortly after it seems to have found my datasource perfectly ok because calls work... 2004-01-19 15:36:44,828 DEBUG com.qas.newmedia.intranet.iq.base.navigation.NavigationManager.init(Unknow n Source) : CONNECTIOINIT [EMAIL PROTECTED] My JNDI resouce is below (clearly a URL DOES exist). Thank you all! ADC -- snip -- Resource name=jdbc/iqdb auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/iqdb parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter parameter nameurl/name valuejdbc:microsoft:sqlserver://server:1433/value /parameter parameter nameusername/name valuesa/value /parameter parameter namepassword/name valuepass/value /parameter parameter namemaxActive/name value50/value /parameter parameter
[OT] rfc2822 clarification on date headers
Sorry guys, this was supposed to go to the JavaMail mailing list. Sorry. -Original Message- From: Donie Kelly [mailto:[EMAIL PROTECTED] Sent: 20 January 2004 12:15 To: Tomcat Users List (E-mail) Subject: rfc2822 clarification on date headers Hi all Javamail generates a date in the format: Date: Tue, 20 Jan 2004 11:57:37 + (GMT) The spec below implies that the timezone is either a numeric offset or the timezone is specified like Date: Fri, 23 Jan 2004 11:57:24 GMT Can somebody clarify why javamail uses both forms? Extract from rfc2822 below Thanks Donie 3.3. Date and Time Specification Date and time occur in several header fields. This section specifies the syntax for a full date and time specification. Though folding white space is permitted throughout the date-time specification, it is RECOMMENDED that a single space be used in each place that FWS appears (whether it is required or optional); some older implementations may not interpret other occurrences of folding white space correctly. date-time = [ day-of-week , ] date FWS time [CFWS] day-of-week = ([FWS] day-name) / obs-day-of-week day-name= Mon / Tue / Wed / Thu / Fri / Sat / Sun date= day month year year= 4*DIGIT / obs-year month = (FWS month-name FWS) / obs-month month-name = Jan / Feb / Mar / Apr / May / Jun / Jul / Aug / Sep / Oct / Nov / Dec day = ([FWS] 1*2DIGIT) / obs-day time= time-of-day FWS zone time-of-day = hour : minute [ : second ] hour= 2DIGIT / obs-hour minute = 2DIGIT / obs-minute second = 2DIGIT / obs-second zone= (( + / - ) 4DIGIT) / obs-zone The day is the numeric day of the month. The year is any numeric year 1900 or later. The time-of-day specifies the number of hours, minutes, and optionally seconds since midnight of the date indicated. The date and time-of-day SHOULD express local time. The zone specifies the offset from Coordinated Universal Time (UTC, formerly referred to as Greenwich Mean Time) that the date and time-of-day represent. The + or - indicates whether the time-of-day is ahead of (i.e., east of) or behind (i.e., west of) Universal Time. The first two digits indicate the number of hours difference from Universal Time, and the last two digits indicate the number of minutes difference from Universal Time. (Hence, +hhmm means +(hh * 60 + mm) minutes, and -hhmm means -(hh * 60 + mm) minutes). The form + SHOULD be used to indicate a time zone at Universal Time. Though - also indicates Universal Time, it is used to indicate that the time was generated on a system that may be in a local time zone other than Universal Time and therefore indicates that the date-time contains no information about the local time zone. A date-time specification MUST be semantically valid. That is, the day-of-the-week (if included) MUST be the day implied by the date, the numeric day-of-month MUST be between 1 and the number of days allowed for the specified month (in the specified year), the time-of-day MUST be in the range 00:00:00 through 23:59:60 (the number of seconds allowing for a leap second; see [STD12]), and the zone MUST be within the range -9959 through +9959.
SV: SV: request.getRemoteUser() is NULL
Mine is Set to Medium as well, and does not work. When I set it to Accept all it does not work either. Any ideas? Soren -Oprindelig meddelelse- Fra: Jon Wingfield [mailto:[EMAIL PROTECTED] Sendt: 20. januar 2004 12:48 Til: Tomcat Users List Emne: Re: SV: request.getRemoteUser() is NULL In IE: ToolsInternet Options...Privacy Tab Play with setting slider. On my dev machine mine's set to Medium and TC's cookies are accepted fine. In Mozilla: Either EditPreferences...Privacy Security category or ToolsCookie Manager Jon Søren Blidorf wrote: That did the trick. Thanks a lot. Is there a setting on my laptop I can change, so that I do not have to change all the links? BR Soren -Oprindelig meddelelse- Fra: Jon Wingfield [mailto:[EMAIL PROTECTED] Sendt: 20. januar 2004 11:42 Til: Tomcat Users List Emne: Re: request.getRemoteUser() is NULL If FORM authentication only works after encoding the url then the browser is probably rejecting the cookie (JSessionId) that is normally used to maintain a session. If this is the case then every link should also be encoded. Actually, this is good practise anyway (encodeURL does nothing if cookies ARE being used to maintain state). If tomcat can't use cookies and the url isn't encoded there is no way for session info to be retained between requests and a new (unauthenticated) session is started. This seems to be what you see when you hit test2.jsp. HTH, Jon Søren Blidorf wrote: I have made a new installation of Tomcat 4.1.29 on my new DELL laptop running XP. I have copied the project to the new laptop and try set it up to work as on my work machine. I am not able to get the login to work. I am using the security-constraint in my web.xml. At first I could not get the FORM login to work only BASIC. Then I changed the FORM action to %= response.encodeURL(j_security_check) %, and I was able use FORM login. The next problem is that the auth is only accepted for the page that activated the FORM page. For example url-pattern/public/*/url-pattern contains test.jsp and test2.jsp and when I link to test.jsp the FORM page is called. When succesfully logged in the request.getRemoteUser() is correct. But when I then link from there to test2.jsp the request.getRemoteUser() is NULL and the FORM page is called again. If you have any ideas that will get me in the right direction, please let me know. BR. Soren - 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: Please help, I have a headache .. servlet init troubles
Right, usually we get a dataSource in doGet or doPost method. -- De: Allistair Crossley[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 20 de janeiro de 2004 9:22 Para: Tomcat Users List Assunto: RE: Please help, I have a headache .. servlet init troubles I have solved the JNDI resource by removing the call to the Context out of the init method and into the classes that wish to connect. And yes I do use a JNDI properly as my application is working using dataSource.getConnection(). The only time my dataSource.getConnection does not work is when I try to get the JNDI resource in the servlet init method. -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: 20 January 2004 13:07 To: 'Tomcat Users List' Subject: RE: Please help, I have a headache .. servlet init troubles Tell us, if you use these parameters for a simple connection, do you really connect to SQLServer? I think that your real problem is to create a JNDI datasource. -- De: Allistair Crossley[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada:segunda-feira, 19 de janeiro de 2004 13:35 Para: Tomcat Users List Assunto:RE: Please help, I have a headache .. servlet init troubles Hi, Yes I have the jdbc driver in common/lib - like I say ... it does connect but I do not know why it gives this error! I just removed trying to get the JNDI data source in my controller servlet init() and moved it to the classes that need a connection. There are now no errors. Therefore it seems almost that init() is too quick to try and get the JNDI resource before it has managed to load the servlet.xml?? Do you know why my servlet initalises twice? That's my remaining issue.. Cheers, ADC -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: 19 January 2004 17:22 To: 'Tomcat Users List' Subject: RE: Please help, I have a headache .. servlet init troubles To solve your problem with JDBC Driver, you must put the JDBC driver inside $TOMCAT_HOME/common/lib, try this first the other errors we will see if happens again. -- De: Allistair Crossley[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: segunda-feira, 19 de janeiro de 2004 12:56 Para: TOMCAT USER (E-mail) Assunto: Please help, I have a headache .. servlet init troubles I am having the biggest headache ever with this. When I start Tomcat 1) Why is my controller servlet always initialised twice?? That is, as soon as all my logging has finished for one init, it all comes out again a second time! 2) In the init I get the following error when it tries to look at my JNDI datasource... 2004-01-19 15:35:28,764 INFO com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) : dataSource: done 2004-01-19 15:35:28,764 ERROR com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) : Init could not acquire connection from DataSource: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause: null Cannot create JDBC driver of class '' for connect URL 'null' Yet shortly after it seems to have found my datasource perfectly ok because calls work... 2004-01-19 15:36:44,828 DEBUG com.qas.newmedia.intranet.iq.base.navigation.NavigationManager.init(Unknow n Source) : CONNECTIOINIT [EMAIL PROTECTED] My JNDI resouce is below (clearly a URL DOES exist). Thank you all! ADC -- snip -- Resource name=jdbc/iqdb auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/iqdb parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter parameter nameurl/name valuejdbc:microsoft:sqlserver://server:1433/value /parameter parameter nameusername/name valuesa/value /parameter parameter namepassword/name
upgrading java version
Hello all, I looked through the list archives and the jakarta docs, but didn't find any info. What changes, if any, do i have to make to my tomcat configuration if i want to upgrade my java SDK. I would like to do this because of the verisign root certificate expiration. my versions: j2sdk1.4.0_01 jakarta-tomcat-4.0.4 apache 1.3.20 dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problems with javascript utf-8 with tomcat 4.1.29
Since I have upgraded to tomcat 4.1.29 (from 4.1.27), my javascript pages containing UTF-8 characters are interpreted as ISO-8859-1 in Mozilla and OPera, but not IE 5.5 My JSP pages are properly declared UTF-8 : %@ page contentType=text/html;charset=UTF-8 pageEncoding=UTF-8 % My HTML page also: meta http-equiv=Content-Type content=text/html; charset=UTF-8 So is my javascript file : script type=text/javascript src=javascript/menu.js charset=UTF-8/script The javascript files are used to contain the translations of the menus, now I have A@ instead of é in my menus... Any ideas ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: upgrading java version
Hello all, hi david... I looked through the list archives and the jakarta docs, but didn't find any info. What changes, if any, do i have to make to my tomcat configuration if i want to upgrade my java SDK. I would like to do this because of the verisign root certificate expiration. don't see any changes to these configurations... on Unix using the magical symbolic links, change the link, stop tomcat, restart that's it!!! beware not having done ugly libraries copying to the JRE/JDK libs folder... if you use it in the good way (not changing config or librairies) no stuff required...otheriwse beware of copying libs config files (orb.properties e.g) for a good application work... HTH Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
very basic question
Hello folks, i´m trying to create some session attributes in my web.xml, i know only context-param and for this one i need ContextServlet.getInitParameter( ), i´d like to use HttpSession.getAttribute( ). Is possible to define session attributes in web.xml? Regards, Edson
RE: What does this mean? ajp13.service() Error sending initial p ost -1 0 0
What happens if you type ( http://127.0.0.1/index.jsp ) in your browser? -- De: Rasmus Munk[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 20 de janeiro de 2004 9:06 Para: 'Tomcat Users List' Assunto: What does this mean? ajp13.service() Error sending initial post -1 0 0 Hi I am running tomcat 4.1.29 on IIS 5.0 and j2k 2.0.2 (have also tried older versions) Sometimes I get this error in the j2k.log: [Tue Jan 20 13:03:18 2004] (error ) [jk_worker_ajp13.c (380)] ajp13.service() Error sending initial post -1 0 0 the log continues: [Tue Jan 20 13:03:18 2004] (debug ) [jk_handler_response.c (155)] handler.response() Header[0] [Content-Encoding] = [gzip] [Tue Jan 20 13:03:18 2004] (debug ) [jk_handler_response.c (155)] handler.response() Header[1] [Content-Type] = [text/xml;charset=ISO-8859-1] [Tue Jan 20 13:03:18 2004] (debug ) [jk_handler_response.c (155)] handler.response() Header[2] [Content-Length] = [199] [Tue Jan 20 13:03:18 2004] (debug ) [jk_handler_response.c (172)] handler.response(): status=200 headers=3 [Tue Jan 20 13:03:18 2004] (debug ) [jk_service_iis.c (93)] Into jk_ws_service_t::head [Tue Jan 20 13:03:18 2004] (debug ) [jk_service_iis.c (227)] Into jk_ws_service_t::write [Tue Jan 20 13:03:18 2004] (debug ) [jk_isapi_plugin.c (516)] HttpExtensionProc service() returned OK But the request is not passed to Tomcat, and a response i never sent to the browser!! Anya ideas? Thanks, Rasmus
Re: very basic question
Context initialization only occurs when the servlet is first instanciated. So... no it is not possible to set session information in web.xml. You can create a param for the entire application (context) or you can create a parameter for a particular servlet. On Tuesday 20 January 2004 09:03 am, Edson Alves Pereira wrote: Hello folks, i´m trying to create some session attributes in my web.xml, i know only context-param and for this one i need ContextServlet.getInitParameter( ), i´d like to use HttpSession.getAttribute( ). Is possible to define session attributes in web.xml? Regards, Edson -- Ben Souther F.W. Davison Company, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: very basic question
Sorry I meant Context initialization occurs when application is deployed. InitParams are set when a servlet is instanicated. On Tuesday 20 January 2004 08:25 am, Ben Souther wrote: Context initialization only occurs when the servlet is first instanciated. So... no it is not possible to set session information in web.xml. You can create a param for the entire application (context) or you can create a parameter for a particular servlet. On Tuesday 20 January 2004 09:03 am, Edson Alves Pereira wrote: Hello folks, i´m trying to create some session attributes in my web.xml, i know only context-param and for this one i need ContextServlet.getInitParameter( ), i´d like to use HttpSession.getAttribute( ). Is possible to define session attributes in web.xml? Regards, Edson -- Ben Souther F.W. Davison Company, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with WEB-INF/classes
Hi! I have a little problem with my classpath. I've just downloaded Tomcat 5 and I've created a simple new webapp ($TOMCAT_HOME/webapps/myapp). I've compiled a class into myapp/WEB-INF/classes/ and I've writen a simple JSP page that uses this class. When I access the JSP page I get a compilation error (ClassNotFound). I've been reading Tomcat Website's documentation and WEB-INF/classes is supposed to be the place to put compiled classes. I've downloaded and installed Tomcat 4 and I have the same problem, but I can access /myapp context and static pages are properly served with both servers. I'm using Sun's JDK 1.4.2_03 on Debian. Could anybody help me, please? Thanks in advance. Best greetings. -- Paco Ros. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with WEB-INF/classes
Put you're classes in a package. On Tuesday 20 January 2004 08:31 am, Paco Ros wrote: Hi! I have a little problem with my classpath. I've just downloaded Tomcat 5 and I've created a simple new webapp ($TOMCAT_HOME/webapps/myapp). I've compiled a class into myapp/WEB-INF/classes/ and I've writen a simple JSP page that uses this class. When I access the JSP page I get a compilation error (ClassNotFound). I've been reading Tomcat Website's documentation and WEB-INF/classes is supposed to be the place to put compiled classes. I've downloaded and installed Tomcat 4 and I have the same problem, but I can access /myapp context and static pages are properly served with both servers. I'm using Sun's JDK 1.4.2_03 on Debian. Could anybody help me, please? Thanks in advance. Best greetings. -- Ben Souther F.W. Davison Company, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: very basic question
But can i get these parameters any time in my application? -- De: Ben Souther[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 20 de janeiro de 2004 10:29 Para: Tomcat Users List Assunto: Re: very basic question Sorry I meant Context initialization occurs when application is deployed. InitParams are set when a servlet is instanicated. On Tuesday 20 January 2004 08:25 am, Ben Souther wrote: Context initialization only occurs when the servlet is first instanciated. So... no it is not possible to set session information in web.xml. You can create a param for the entire application (context) or you can create a parameter for a particular servlet. On Tuesday 20 January 2004 09:03 am, Edson Alves Pereira wrote: Hello folks, i´m trying to create some session attributes in my web.xml, i know only context-param and for this one i need ContextServlet.getInitParameter( ), i´d like to use HttpSession.getAttribute( ). Is possible to define session attributes in web.xml? Regards, Edson -- Ben Souther F.W. Davison Company, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: very basic question
Yes On Tuesday 20 January 2004 09:29 am, Edson Alves Pereira wrote: But can i get these parameters any time in my application? -- De: Ben Souther[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada:terça-feira, 20 de janeiro de 2004 10:29 Para: Tomcat Users List Assunto:Re: very basic question Sorry I meant Context initialization occurs when application is deployed. InitParams are set when a servlet is instanicated. On Tuesday 20 January 2004 08:25 am, Ben Souther wrote: Context initialization only occurs when the servlet is first instanciated. So... no it is not possible to set session information in web.xml. You can create a param for the entire application (context) or you can create a parameter for a particular servlet. On Tuesday 20 January 2004 09:03 am, Edson Alves Pereira wrote: Hello folks, i´m trying to create some session attributes in my web.xml, i know only context-param and for this one i need ContextServlet.getInitParameter( ), i´d like to use HttpSession.getAttribute( ). Is possible to define session attributes in web.xml? Regards, Edson -- Ben Souther F.W. Davison Company, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Souther F.W. Davison Company, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: very basic question
Thank you. -- De: Ben Souther[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 20 de janeiro de 2004 10:38 Para: Tomcat Users List Assunto: Re: very basic question Yes On Tuesday 20 January 2004 09:29 am, Edson Alves Pereira wrote: But can i get these parameters any time in my application? -- De: Ben Souther[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 20 de janeiro de 2004 10:29 Para: Tomcat Users List Assunto: Re: very basic question Sorry I meant Context initialization occurs when application is deployed. InitParams are set when a servlet is instanicated. On Tuesday 20 January 2004 08:25 am, Ben Souther wrote: Context initialization only occurs when the servlet is first instanciated. So... no it is not possible to set session information in web.xml. You can create a param for the entire application (context) or you can create a parameter for a particular servlet. On Tuesday 20 January 2004 09:03 am, Edson Alves Pereira wrote: Hello folks, i´m trying to create some session attributes in my web.xml, i know only context-param and for this one i need ContextServlet.getInitParameter( ), i´d like to use HttpSession.getAttribute( ). Is possible to define session attributes in web.xml? Regards, Edson -- Ben Souther F.W. Davison Company, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Souther F.W. Davison Company, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: very basic question
Yes, context params can be accessed from any servlet/JSP. Servlet init params can be accessed only from the particular servlet they were assigned to. On Tuesday 20 January 2004 09:29 am, Edson Alves Pereira wrote: But can i get these parameters any time in my application? -- De: Ben Souther[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada:terça-feira, 20 de janeiro de 2004 10:29 Para: Tomcat Users List Assunto:Re: very basic question Sorry I meant Context initialization occurs when application is deployed. InitParams are set when a servlet is instanicated. On Tuesday 20 January 2004 08:25 am, Ben Souther wrote: Context initialization only occurs when the servlet is first instanciated. So... no it is not possible to set session information in web.xml. You can create a param for the entire application (context) or you can create a parameter for a particular servlet. On Tuesday 20 January 2004 09:03 am, Edson Alves Pereira wrote: Hello folks, i´m trying to create some session attributes in my web.xml, i know only context-param and for this one i need ContextServlet.getInitParameter( ), i´d like to use HttpSession.getAttribute( ). Is possible to define session attributes in web.xml? Regards, Edson -- Ben Souther F.W. Davison Company, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Souther F.W. Davison Company, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: very basic question
yep. httpSession.getServletContext().getInitParameter(stuff); Edson Alves Pereira wrote: But can i get these parameters any time in my application? -- De: Ben Souther[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada:terça-feira, 20 de janeiro de 2004 10:29 Para: Tomcat Users List Assunto:Re: very basic question Sorry I meant Context initialization occurs when application is deployed. InitParams are set when a servlet is instanicated. On Tuesday 20 January 2004 08:25 am, Ben Souther wrote: Context initialization only occurs when the servlet is first instanciated. So... no it is not possible to set session information in web.xml. You can create a param for the entire application (context) or you can create a parameter for a particular servlet. On Tuesday 20 January 2004 09:03 am, Edson Alves Pereira wrote: Hello folks, i´m trying to create some session attributes in my web.xml, i know only context-param and for this one i need ContextServlet.getInitParameter( ), i´d like to use HttpSession.getAttribute( ). Is possible to define session attributes in web.xml? Regards, Edson -- Ben Souther F.W. Davison Company, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with WEB-INF/classes
I've just downloaded Tomcat 5 and I've created a simple new webapp ($TOMCAT_HOME/webapps/myapp). I've compiled a class into myapp/WEB-INF/classes/ and I've writen a simple JSP page that uses this class. When I access the JSP page I get a compilation error (ClassNotFound). [] [] put the class under a package and try redeploying [] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: very basic question
httpSession.getServletContext().getInitParameter(stuff); From a servlet, it's not necessary to get the session. Just call: getServletContext().getInitParameter(stuff) or: this.getServletContext().getInitParameter(stuff) On Tuesday 20 January 2004 08:43 am, Jon Wingfield wrote: yep. httpSession.getServletContext().getInitParameter(stuff); Edson Alves Pereira wrote: But can i get these parameters any time in my application? -- De: Ben Souther[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada:terça-feira, 20 de janeiro de 2004 10:29 Para: Tomcat Users List Assunto:Re: very basic question Sorry I meant Context initialization occurs when application is deployed. InitParams are set when a servlet is instanicated. On Tuesday 20 January 2004 08:25 am, Ben Souther wrote: Context initialization only occurs when the servlet is first instanciated. So... no it is not possible to set session information in web.xml. You can create a param for the entire application (context) or you can create a parameter for a particular servlet. On Tuesday 20 January 2004 09:03 am, Edson Alves Pereira wrote: Hello folks, i´m trying to create some session attributes in my web.xml, i know only context-param and for this one i need ContextServlet.getInitParameter( ), i´d like to use HttpSession.getAttribute( ). Is possible to define session attributes in web.xml? Regards, Edson -- Ben Souther F.W. Davison Company, Inc. - 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] -- Ben Souther F.W. Davison Company, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with WEB-INF/classes
El Martes, 20 de Enero de 2004 14:37, Ben Souther escribió: Put you're classes in a package. Yes. I do :-) wanda:/opt/jakarta-tomcat-5.0.16/webapps/multimedia/WEB-INF/classes# tree . `-- es `-- uib `-- ein `-- multimedia |-- Base64$InputStream.class |-- Base64$OutputStream.class |-- Base64.class |-- Instruccio.class |-- Media.class |-- Missatge.class |-- Usuari.class `-- Xat.class wanda:/opt/jakarta-tomcat-5.0.16/webapps/multimedia/accions# cat login.jsp [EMAIL PROTECTED] contentType=text/html% [EMAIL PROTECTED] import=java.util.*, es.uib.ein.multimedia % % Usuari usuari = new Usuari(); usuari.setDarrerAcces(System.currentTimeMillis()); usuari.setNom(request.getParameter(usuari)); if (usuari.getNom() == null) response.sendRedirect(/multimedia/login.html); else{ Xat.afegirUsuari(usuari); response.sendRedirect(/multimedia/xat.html); } % This is login.jsp output... An error occurred at line: 2 in the jsp file: /accions/login.jsp Generated servlet error: [javac] Compiling 1 source file /opt/jakarta-tomcat-4.1.29/work/Standalone/localhost/multimedia/accions/login_jsp.java:8: package es.uib.ein does not exist import es.uib.ein.multimedia; Thanks for your response. Greetings. -- Arrgg!! que metida de pata!!! Me he equivocado haciendo click!! Perdonad las molestias. .: Bulmailing :. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Keeping servlet thread awake
Howdy, This is not a good design to start with. However, let's address your immediate issue first: how do you know that tomcat kills the thread? How do you start the thread? Yoav Shapira Millennium ChemInformatics -Original Message- From: Allan Bruce [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 6:58 PM To: [EMAIL PROTECTED] Subject: Keeping servlet thread awake I have a servlet running under tomcat4.1.24. I want the servlet to sleep for 30 minutes and sync with another servlet hosted by one of my friends, but it seems that tomcat kills the thread, and wont let it run every 30 mins. Is there something I can do to ensure tomcat doesnt kill the thread? It works fine on my friends machine (not tomcat). Thanks Allan - 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]
RE: long startup time with JDK1.4
Howdy, Nothing else changed, just the JDK? I.e. no new web applications, listeners, filters, valve, load-on-startup servlets? Yoav Shapira Millennium ChemInformatics -Original Message- From: Roland Knor [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 9:13 PM To: [EMAIL PROTECTED] Subject: long startup time with JDK1.4 I am Using Tomcat V 3.2.3. I have encountered a strange behaviour of Tomcat when switching from JDK 1.3.1 to 1.4.2. The time until the server is bound to its listening port has increased from a few seconds up to 3 (!!!)minutes. All contexts are added within a second, however after adding the contexts, it seems that the server runs into a kind of timeout before it finally binds to its port (during this 3 minutes the server is idle). The same behaviour has been reached with the latest tomcat-Version (5.0.16). Any Guesses will be appreciated! Thanks in advance for any help! Roland This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with WEB-INF/classes
Replace the line [EMAIL PROTECTED] import=java.util.*, es.uib.ein.multimedia % with [EMAIL PROTECTED] import=java.util.*, es.uib.ein.multimedia.* % - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maxProcessors vs maxThreads
Howdy, Oh, come on, get real :). The Jk-Coyote docs are probably second to the mod_jk2 docs for being the most incomplete. We should probably do something about that, then ;) I've paid much more attention to the tomcat (core) docs rather than the connector-related stuff, naturally, as I don't use the connectors ;) If people have doc patches/suggestions for the connectors as well as anything else in tomcat, I'm always happy to review/commit/maybe address them. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with WEB-INF/classes
El Martes, 20 de Enero de 2004 14:52, Paco Ros escribió: wanda:/opt/jakarta-tomcat-5.0.16/webapps/multimedia/accions# cat login.jsp [EMAIL PROTECTED] contentType=text/html% [EMAIL PROTECTED] import=java.util.*, es.uib.ein.multimedia % ^ Oh my God!!! I feel terribly stupid. [EMAIL PROTECTED] import=java.util.*, es.uib.ein.multimedia.* % It's working just now :-) Thanks all for your help. Greetings. -- Llámame paranoico si quieres pero estoy convencido de que Guillem hubiera dicho lo mismo. .: Bulmailing :. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maxProcessors vs maxThreads
Hi Yoav, You seem to know what you are talking about and it amuses me everyday you come on at the same sort of time and bang off all the answers :) (although regrettably I was hoping you would answer my Tomcat and Clusters one yesterday). Anyways, if someone like you is not using the connectors, is that because there is something better to use? ADC -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 20 January 2004 13:57 To: Tomcat Users List Subject: RE: maxProcessors vs maxThreads Howdy, Oh, come on, get real :). The Jk-Coyote docs are probably second to the mod_jk2 docs for being the most incomplete. We should probably do something about that, then ;) I've paid much more attention to the tomcat (core) docs rather than the connector-related stuff, naturally, as I don't use the connectors ;) If people have doc patches/suggestions for the connectors as well as anything else in tomcat, I'm always happy to review/commit/maybe address them. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat - Automatically writes a session?
Howdy, Are you authenticating users accessing your application? To address some of your other concerns: - Cookies will not prevent google from indexing your site, you can test that pretty easily. - Maintaining a session per user is not a big deal, as these are tiny objects by default. They only get big if you put big attributes in them. Yoav Shapira Millennium ChemInformatics -Original Message- From: Neal [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 1:53 AM To: 'Tomcat Users List' Subject: Tomcat - Automatically writes a session? Someone just pointed out that my JSPs are have this in the header: Set-Cookie: JSESSIONID=97C8777F16379B8EC2CD17273CE35C3C; Path=/ The problem is that I'm not setting any sessions or cookies from the page so I have no idea what's going on. Is there some reason this is there? Is there some setting in the Web.xml and/or server.xml file that I must tweak? PS - I use Tomcat has my http server, not apache (in case that's meaningful). Thanks. Neal - 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]
Re: Problem with WEB-INF/classes
El Martes, 20 de Enero de 2004 14:56, Sanjeev Kumar escribió: Replace the line [EMAIL PROTECTED] import=java.util.*, es.uib.ein.multimedia % with [EMAIL PROTECTED] import=java.util.*, es.uib.ein.multimedia.* % Yes, yes. 4 years woring with J2EE stuff and I already write so stupid things like this. Thank you very much for your help. Best greetings -- Paco. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat - Automatically writes a session?
[] - Maintaining a session per user is not a big deal, as these are [] - tiny [] - objects by default. They only get big if you put big attributes [] - in [] - them. Make sure sessiontimeout is not -1 Someone just pointed out that my JSPs are have this in the header: Set-Cookie: JSESSIONID=97C8777F16379B8EC2CD17273CE35C3C; Path=/ The problem is that I'm not setting any sessions or cookies from the page so I have no idea what's going on. Is there some reason this is there? Is there some setting in the Web.xml and/or server.xml file That [] Wonder !!! why [EMAIL PROTECTED] session=false % not doing the act - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Keeping servlet thread awake
Howdy, This is not a good design to start with. However, let's address your immediate issue first: how do you know that tomcat kills the thread? How do you start the thread? Yoav Shapira Millennium ChemInformatics I dont know that tomcat kills it as such, but I do know there is a problem. The problem is only apparent if I compile the file on my linux machine (the same one that tomcat runs on). If I compile the file on my windows machine and transfer it across, everything runs fine. Let me try to explain what my servlet is trying to accomplish. At start of day, during init() the servelet loads the necessary config and spawns a thread which is used purely for synchronising the servlet with others that are specified in the config. This thread is the one that I am requesting to sleep for 30 minutes at a time. Meanwhile, the servlet processes any requests as normal. During creating this separate thread synchronized(sSema4) is called to ensure that the contents of the data are not altered during the synchronising process (awkward naming!). sSema4 is a static Object() passed to the synchronized() method. There is no error, but when compiled on my linux machine the thread hangs when calling synchronized(sSema4). I hope I have managed to explain things a little better now. Thanks for the help Allan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Keeping servlet thread awake
Hi There, It sounds to me like you have deadlock, not that tomcat is killing your thread Can your post the source so that I can take a look at it. Thanks Pete -Original Message- From: Allan Bruce [mailto:[EMAIL PROTECTED] Sent: 20 January 2004 14:08 To: Tomcat Users List Subject: Re: Keeping servlet thread awake Howdy, This is not a good design to start with. However, let's address your immediate issue first: how do you know that tomcat kills the thread? How do you start the thread? Yoav Shapira Millennium ChemInformatics I dont know that tomcat kills it as such, but I do know there is a problem. The problem is only apparent if I compile the file on my linux machine (the same one that tomcat runs on). If I compile the file on my windows machine and transfer it across, everything runs fine. Let me try to explain what my servlet is trying to accomplish. At start of day, during init() the servelet loads the necessary config and spawns a thread which is used purely for synchronising the servlet with others that are specified in the config. This thread is the one that I am requesting to sleep for 30 minutes at a time. Meanwhile, the servlet processes any requests as normal. During creating this separate thread synchronized(sSema4) is called to ensure that the contents of the data are not altered during the synchronising process (awkward naming!). sSema4 is a static Object() passed to the synchronized() method. There is no error, but when compiled on my linux machine the thread hangs when calling synchronized(sSema4). I hope I have managed to explain things a little better now. Thanks for the help Allan - 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: What does this mean? ajp13.service() Error sending initial post -1 0 0
Nothing happens, but i guess that is because I have no mapping for the root! The strange thing about my error is this: It happens only somtimes. It seems like I caused by the folowing conditions: 1. The size of the POST is something like 10k or bigger. 2. The last call to tomcat is more than 2 minutes old!! I know it sounds incredible, but this is what I have come to to after several days of testing. As I cannot make the connector work, does anyone know if it is possible to run tomcat in-process, thereby passing the requests from IIS using som sort of other technique than the HTTP redirecting? -Rasmus -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: 20. januar 2004 15:12 To: 'Tomcat Users List' Subject: RE: What does this mean? ajp13.service() Error sending initial post -1 0 0 What happens if you type ( http://127.0.0.1/index.jsp ) in your browser? -- De: Rasmus Munk[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: tera-feira, 20 de janeiro de 2004 9:06 Para: 'Tomcat Users List' Assunto: What does this mean? ajp13.service() Error sending initial post -1 0 0 Hi I am running tomcat 4.1.29 on IIS 5.0 and j2k 2.0.2 (have also tried older versions) Sometimes I get this error in the j2k.log: [Tue Jan 20 13:03:18 2004] (error ) [jk_worker_ajp13.c (380)] ajp13.service() Error sending initial post -1 0 0 the log continues: [Tue Jan 20 13:03:18 2004] (debug ) [jk_handler_response.c (155)] handler.response() Header[0] [Content-Encoding] = [gzip] [Tue Jan 20 13:03:18 2004] (debug ) [jk_handler_response.c (155)] handler.response() Header[1] [Content-Type] = [text/xml;charset=ISO-8859-1] [Tue Jan 20 13:03:18 2004] (debug ) [jk_handler_response.c (155)] handler.response() Header[2] [Content-Length] = [199] [Tue Jan 20 13:03:18 2004] (debug ) [jk_handler_response.c (172)] handler.response(): status=200 headers=3 [Tue Jan 20 13:03:18 2004] (debug ) [jk_service_iis.c (93)] Into jk_ws_service_t::head [Tue Jan 20 13:03:18 2004] (debug ) [jk_service_iis.c (227)] Into jk_ws_service_t::write [Tue Jan 20 13:03:18 2004] (debug ) [jk_isapi_plugin.c (516)] HttpExtensionProc service() returned OK But the request is not passed to Tomcat, and a response i never sent to the browser!! Anya ideas? Thanks, Rasmus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: upgrading java version
From: jerome moliere [EMAIL PROTECTED] To: David Evans [EMAIL PROTECTED] Subject: Re: upgrading java version Date: 20 Jan 2004 14:48:50 +0100 Thanks for the reply. I understand what you're saying about the symbolic links, but i'm not currently one. I guess the real question is how does tomcat know where java is? where is its $JAVA_HOME set? it's a typical environment variable, so it's set everywhere you can set it!!! for bash powered Unix machines, .bashrc is a good place or /etc/profile may be ? for windows machine you may use either batch files or the GUI (system properties somewhere in the windows menus) on Unix please use symbolic links because setting a JAVA_HOME in your .bashrc (e.g) is something like this: export JAVA_HOME=/usr/local/java where this file is just a symlink pointing to thje real path-- /usr/local/j2sdk1.4.1_03 so upgrading this link with the new java version all your system will transparently (english word ??? :) )use this new version... HTH Jerome dave On Tue, 2004-01-20 at 08:04, jerome moliere wrote: Hello all, hi david... I looked through the list archives and the jakarta docs, but didn't find any info. What changes, if any, do i have to make to my tomcat configuration if i want to upgrade my java SDK. I would like to do this because of the verisign root certificate expiration. don't see any changes to these configurations... on Unix using the magical symbolic links, change the link, stop tomcat, restart that's it!!! beware not having done ugly libraries copying to the JRE/JDK libs folder... if you use it in the good way (not changing config or librairies) no stuff required...otheriwse beware of copying libs config files (orb.properties e.g) for a good application work... HTH Jerome - 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]
Documentation
Hi All, Could some body tell me where to find documentation for - 1.Realm 2.Filter 3.Valve 4.Container 5.Connector 6.MBean 7.Pipeline 8.LifeCycle 9.Jasper Thanks in advance, Gaurav Kadyan
Re: Documentation
http://jakarta.apache.org/tomcat/ Gaurav Kadyan wrote: Hi All, Could some body tell me where to find documentation for - 1.Realm 2.Filter 3.Valve 4.Container 5.Connector 6.MBean 7.Pipeline 8.LifeCycle 9.Jasper Thanks in advance, Gaurav Kadyan *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. *** For any information on the Quinn Group of Companies please visit :- http://www.quinn-group.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Eclipse+Ant+Tomcat 5 - problems
Try installing Tomcat 5.0.18. Tomcat 5.0.16 has a memory leak. Not sure in which version this leak first appeared. Derek -Original Message- From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED] Sent: January 20, 2004 5:47 AM To: 'Tomcat Users List' Subject: RE: Eclipse+Ant+Tomcat 5 - problems Since you are using Eclipse, why not try out the Sysdeo Tomcat plugin? -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: 19 January 2004 23:09 To: [EMAIL PROTECTED] Subject: Eclipse+Ant+Tomcat 5 - problems I'm starting to try out Tomcat 5 in our development environment, which has been running Tomcat 4.1.x to-date. Preface: our IDE is Eclipse, I use Ant with the catalina-ant tasks to install/remove our web-app from a local Tomcat installation. Everything has worked fine, though I've noticed that after my first install (once I start Eclipse and Tomcat) - anytime I remove/install the web-app, the install appears to init the app twice (my load-on-init servlet's are called twice, etc.) I never figured out what caused this, but it didn't negatively impact anything, so I didn't care. Now, with Tomcat 5 ... after a little tweaking, to my Eclipse environment, I was able to get my same install/remove task working with Ant. The only problem now is that after the initial install, when I do a remove/install, it seems to still init the app twice, only on the second init, it crokes. Talks about a property string that it can't find and then that it can't find the deployment directory for the app (the app is installed from a .WAR) Not good. So, I did some googling - found that apparent install/remove has been deprecated in favor of deploy/undeploy. Fine - so I tried using the deploy task. Apparently, ant doesn't have enough memory to deploy my 90MB+ .WAR (installing never seemed to be a problem) - and when I looked for threads on the DeployTask generating OutOfMemory exceptions, it said to increase ant's memory ... which I can't, for the life of myself, figure out how to do with Eclipse. I've previously gone done the path of having ant fork, but it caused so many problems with our builds, I'd rather not revisit that. Does anybody have anything that can help me? I'm trying out Tomcat 5 because Tomcat 4.1.x appears to have some pretty severe memory leaks with its install/remove operations - if I install/remove my web-app more than 2-3 times, Tomcat (not the Ant task and not Eclipse) runs OutOfMemory ... other users have reported that Tomcat 5 does much better in this arena. Advise on any of these issues is much appreciated!! Respectfully, Brice Ruth Brice D. Ruth Sr. IT Analyst Fiskars Brands, Inc. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. Note:__ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse+Ant+Tomcat 5 - problems
Actually, we're using the MyEclipse Enterprise Workbench set of plug-ins, which also handles deploying to Tomcat, but right now, I still need to deploy with Ant. Yiannis Mavroukakis wrote: Since you are using Eclipse, why not try out the Sysdeo Tomcat plugin? -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: 19 January 2004 23:09 To: [EMAIL PROTECTED] Subject: Eclipse+Ant+Tomcat 5 - problems I'm starting to try out Tomcat 5 in our development environment, which has been running Tomcat 4.1.x to-date. Preface: our IDE is Eclipse, I use Ant with the catalina-ant tasks to install/remove our web-app from a local Tomcat installation. Everything has worked fine, though I've noticed that after my first install (once I start Eclipse and Tomcat) - anytime I remove/install the web-app, the install appears to init the app twice (my load-on-init servlet's are called twice, etc.) I never figured out what caused this, but it didn't negatively impact anything, so I didn't care. Now, with Tomcat 5 ... after a little tweaking, to my Eclipse environment, I was able to get my same install/remove task working with Ant. The only problem now is that after the initial install, when I do a remove/install, it seems to still init the app twice, only on the second init, it crokes. Talks about a property string that it can't find and then that it can't find the deployment directory for the app (the app is installed from a .WAR) Not good. So, I did some googling - found that apparent install/remove has been deprecated in favor of deploy/undeploy. Fine - so I tried using the deploy task. Apparently, ant doesn't have enough memory to deploy my 90MB+ .WAR (installing never seemed to be a problem) - and when I looked for threads on the DeployTask generating OutOfMemory exceptions, it said to increase ant's memory ... which I can't, for the life of myself, figure out how to do with Eclipse. I've previously gone done the path of having ant fork, but it caused so many problems with our builds, I'd rather not revisit that. Does anybody have anything that can help me? I'm trying out Tomcat 5 because Tomcat 4.1.x appears to have some pretty severe memory leaks with its install/remove operations - if I install/remove my web-app more than 2-3 times, Tomcat (not the Ant task and not Eclipse) runs OutOfMemory ... other users have reported that Tomcat 5 does much better in this arena. Advise on any of these issues is much appreciated!! Respectfully, Brice Ruth Brice D. Ruth Sr. IT Analyst Fiskars Brands, Inc. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. Note:__ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. -- Brice D. Ruth Sr. IT Analyst Fiskars Brands, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse+Ant+Tomcat 5 - problems
Weird ... I just downloaded Tomcat 5 yesterday ... I wonder why I didn't grab the latest release. Derek Mahar wrote: Try installing Tomcat 5.0.18. Tomcat 5.0.16 has a memory leak. Not sure in which version this leak first appeared. Derek -Original Message- From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED] Sent: January 20, 2004 5:47 AM To: 'Tomcat Users List' Subject: RE: Eclipse+Ant+Tomcat 5 - problems Since you are using Eclipse, why not try out the Sysdeo Tomcat plugin? -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: 19 January 2004 23:09 To: [EMAIL PROTECTED] Subject: Eclipse+Ant+Tomcat 5 - problems I'm starting to try out Tomcat 5 in our development environment, which has been running Tomcat 4.1.x to-date. Preface: our IDE is Eclipse, I use Ant with the catalina-ant tasks to install/remove our web-app from a local Tomcat installation. Everything has worked fine, though I've noticed that after my first install (once I start Eclipse and Tomcat) - anytime I remove/install the web-app, the install appears to init the app twice (my load-on-init servlet's are called twice, etc.) I never figured out what caused this, but it didn't negatively impact anything, so I didn't care. Now, with Tomcat 5 ... after a little tweaking, to my Eclipse environment, I was able to get my same install/remove task working with Ant. The only problem now is that after the initial install, when I do a remove/install, it seems to still init the app twice, only on the second init, it crokes. Talks about a property string that it can't find and then that it can't find the deployment directory for the app (the app is installed from a .WAR) Not good. So, I did some googling - found that apparent install/remove has been deprecated in favor of deploy/undeploy. Fine - so I tried using the deploy task. Apparently, ant doesn't have enough memory to deploy my 90MB+ .WAR (installing never seemed to be a problem) - and when I looked for threads on the DeployTask generating OutOfMemory exceptions, it said to increase ant's memory ... which I can't, for the life of myself, figure out how to do with Eclipse. I've previously gone done the path of having ant fork, but it caused so many problems with our builds, I'd rather not revisit that. Does anybody have anything that can help me? I'm trying out Tomcat 5 because Tomcat 4.1.x appears to have some pretty severe memory leaks with its install/remove operations - if I install/remove my web-app more than 2-3 times, Tomcat (not the Ant task and not Eclipse) runs OutOfMemory ... other users have reported that Tomcat 5 does much better in this arena. Advise on any of these issues is much appreciated!! Respectfully, Brice Ruth Brice D. Ruth Sr. IT Analyst Fiskars Brands, Inc. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. Note:__ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Brice D. Ruth Sr. IT Analyst Fiskars Brands, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jk2 for Apache 2.0.43 (and only 2.0.43)
Brennon Obst wrote: Why does it say the following. start This is the 2.0.2 release of JK2 You'll find here binaries for Apache 1.3, 2.0 and IIS. Build under Windows XP, Apache 1.3.27 and 2.0.43, IIS 5.1 * isapi_redirector2.dll is for Microsoft's IIS web server * mod_jk2-1.3.27.dll is for Apache 1.3.x * mod_jk2-1.3.27-jni.dll is for Apache 1.3.x with JNI supported * mod_jk2-2.0.43.dll is for Apache 2.0.43 (and only 2.0.43) end When the main releases for Apache are 2.0.47 and .48 ? The JTC connectors, as I recall (it may have changed), are user contributed. I've often wondered about this myself, the mod_jk2 builds lag several Apache releases behind. Possibly because experience proves out my own and while the statement and only 2.0.43 makes an admin question its use, it acts maybe as a disclaimer. The JTC maintainers may be able to elaborate. My current experience is has been the x.42 builds will work in x.47+ of Apache (I'm using x.42 on my Windoze boxes with success against x.48 of Apache currently). If I had VC++ and some Windoze dev. experience I might try a newer build and submit. But I have neither, the tools or the dev. experience. Is this random or does that mean it wont work for my version of Apache ? Brennon Obst HTH, Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse+Ant+Tomcat 5 - problems
Ruth, Brice wrote: I'm starting to try out Tomcat 5 in our development environment, which has been running Tomcat 4.1.x to-date. Preface: our IDE is Eclipse, I use Ant with the catalina-ant tasks to install/remove our web-app from a local Tomcat installation. Everything has worked fine, though I've noticed that after my first install (once I start Eclipse and Tomcat) - anytime I remove/install the web-app, the install appears to init the app twice (my load-on-init servlet's are called twice, etc.) I never figured out what caused this, but it didn't negatively impact anything, so I didn't care. Now, with Tomcat 5 ... after a little tweaking, to my Eclipse environment, I was able to get my same install/remove task working with Ant. The only problem now is that after the initial install, when I do a remove/install, it seems to still init the app twice, only on the second init, it crokes. Talks about a property string that it can't find and then that it can't find the deployment directory for the app (the app is installed from a .WAR) Not good. So, I did some googling - found that apparent install/remove has been deprecated in favor of deploy/undeploy. Fine - so I tried using the deploy task. Apparently, ant doesn't have enough memory to deploy my 90MB+ .WAR (installing never seemed to be a problem) - and when I looked for threads on the DeployTask generating OutOfMemory exceptions, it said to increase ant's memory ... which I can't, for the life of myself, figure out how to do with Eclipse. I've previously gone done the path of having ant fork, but it caused so many problems with our builds, I'd rather not revisit that. Does anybody have anything that can help me? I'm trying out Tomcat 5 because Tomcat 4.1.x appears to have some pretty severe memory leaks with its install/remove operations - if I install/remove my web-app more than 2-3 times, Tomcat (not the Ant task and not Eclipse) runs OutOfMemory ... other users have reported that Tomcat 5 does much better in this arena. Advise on any of these issues is much appreciated!! deploy isn't exactly the same as install. Use the localWar attribute for local deployment. I don't quite understand why the client would use so much memory when uploading. There's no buffering in the code, or anything like that. -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Keeping servlet thread awake
- Original Message - From: Peter Guyatt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 2:18 PM Subject: RE: Keeping servlet thread awake Hi There, It sounds to me like you have deadlock, not that tomcat is killing your thread Can your post the source so that I can take a look at it. Thanks Pete The code is below Thanks Allan import java.util.*; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import java.net.*; // WinGalagaHST implements the Online High Score Table for WinGalaga // // WinGalaga uses two data files: // WinGalagaHST.dat holds the high score data // WinGalagaHST.ini holds configuration parameters. See that file for //descriptions of the parameters final public class WinGalagaHST extends HttpServlet { // Constructor does nothing public WinGalagaHST() {} // Semaphore to prevent concurrent access to the HST data private static Object sSema4 = new Object(); // Signal semaphore to kick the sync thread (if running) private static Object sSyncSema4 = new Object(); // Context for logging ServletContext mLogger = null; // Constants for the operation type private static final int ID_OP_SETONESCORE = 1; private static final int ID_OP_SETALLSCORE = 2; private static final int ID_OP_GETHTML = 3; private static final int ID_OP_SYNCOHST = 4; // To keep the number of classes down, we just implement the HST data as parallel // arrays. (Creating even an inner class for this means another .class file) private static String[] sName= new String[20]; private static long[] sScore = new long[20]; private static String[] sDate= new String[20]; private static String[] sLevel = new String[20]; private static String[] sRatio = new String[20]; private static String[] sVersion = new String[20]; // Current configuration parameters, loaded at start of day private static String sStylesheet = null; private static String sBackground = null; private static String sLink1 = null; private static String sText1 = null; private static String sTarg1 = null; private static String sLink2 = null; private static String sText2 = null; private static String sTarg2 = null; private static String sServers = null; private static boolean sSync = false; private static long sSyncPeriod = 60 * 60; // Debug setting private static boolean sDebug = false; // Concrete implementation of the EDSServlet doGet() function public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException { // Get a writer for writing the output PrintWriter mOut = new PrintWriter(res.getOutputStream()); // Flush the output stream mOut.flush(); // Get the requested operation. int lop = 0; boolean lReadVarg = false; try { String lopstr = req.getParameter(Op); if (lopstr == null) { throw new ServletException(Error in WIngalagaHST: no op param!); } if (lopstr.equals(SetScores)) { lop = ID_OP_SETALLSCORE; lReadVarg = true; } else if (lopstr.equals(SetScore)) { lop = ID_OP_SETONESCORE; lReadVarg = true; } else if (lopstr.equals(GetHTML)) { lop = ID_OP_GETHTML; } else if (lopstr.equals(SyncOHST)) { lop = ID_OP_SYNCOHST; synchronized(sSyncSema4) { mLogger.log(WinGalagaHST Servlet: Got request to sync the OHST...); sSyncSema4.notifyAll(); } } else { throw new ServletException(Error in WIngalagaHST: unrecognosed op: + lopstr); } } catch (ServletException e) { throw e; } catch (Exception e) { throw new ServletException(e.toString()); } // This tokenizer holds any values in the request StringTokenizer lst = null; if ((lop == ID_OP_SETONESCORE) || (lop == ID_OP_SETALLSCORE)) { // If this is a SetScrore or SetScores request, we need to read the 'V' argument String lv = req.getParameter(V); if (lv == null) { throw new ServletException(Error in WinGalagaHST: No V parameter value!); } // Replace all occurrences of __ (i.e. no name) with a single : (i.e. null names // get turned into single spaces boolean ldoneit = false; while (!ldoneit) { int lpos = lv.indexOf(__); if (lpos = 0) { lv = lv.substring(0, lpos + 1) + ':' + lv.substring(lpos + 1); } else { ldoneit = true; } } // Set up the tokenizer for later lst = new StringTokenizer(lv, _); } // If this was a sync, massage it to a GET_HTML // It doesn't matter if we run before the sync is complete - the sync is a 'push' // not 'pull' model if (lop == ID_OP_SYNCOHST) { lop = ID_OP_GETHTML; } // Synchronise access to the HST data while we perform the request synchronized(sSema4) { if (lop == ID_OP_SETALLSCORE) { // Read in the scores (they come in ten at a time!) for (int i = 0; i 10; i ++) { // The format is Name_Score_Level_Ratio_Version_Date String lname = lst.nextToken();
Tomcat 5.0.18 and jsvc
The version of jsvc bundled with Tomcat 5.0.18 does not build successfully. There is a syntax error on line 110 in /bin/jsvc-src/native/home.c. The line is missing a semicolon. - Derek Mahar Software Developer Penson Financial Services Canada 360 St-Jacques St West, 12th Floor Montreal QC H2Y 1P5 514.841.9665 x212 Phone 514.841.3750 Fax - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jsvc INSTALL.txt
INSTALL.txt in jsvc bundled with Tomcat 5.0.18 states that it creates ./java/service.jar and ./native/jsvc. My build instead created ./jsvc and didn't create ./java/service.jar. Have I done something wrong? Derek - Derek Mahar Software Developer Penson Financial Services Canada 360 St-Jacques St West, 12th Floor Montreal QC H2Y 1P5 514.841.9665 x212 Phone 514.841.3750 Fax - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Please help, I have a headache .. servlet init troubles
Howdy, Yeah, it's not good practice to get a connection (or other resource) and in the init method hold on it until the destroy method. Pools make getting a connection quick, so you can keep the connection for as little time as possible. That aside, what tomcat version are you using? Yoav Shapira Millennium ChemInformatics -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 8:25 AM To: 'Tomcat Users List' Subject: RE: Please help, I have a headache .. servlet init troubles Right, usually we get a dataSource in doGet or doPost method. -- De: Allistair Crossley[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada: terça-feira, 20 de janeiro de 2004 9:22 Para:Tomcat Users List Assunto: RE: Please help, I have a headache .. servlet init troubles I have solved the JNDI resource by removing the call to the Context out of the init method and into the classes that wish to connect. And yes I do use a JNDI properly as my application is working using dataSource.getConnection(). The only time my dataSource.getConnection does not work is when I try to get the JNDI resource in the servlet init method. -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: 20 January 2004 13:07 To: 'Tomcat Users List' Subject: RE: Please help, I have a headache .. servlet init troubles Tell us, if you use these parameters for a simple connection, do you really connect to SQLServer? I think that your real problem is to create a JNDI datasource. -- De:Allistair Crossley[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada: segunda-feira, 19 de janeiro de 2004 13:35 Para: Tomcat Users List Assunto: RE: Please help, I have a headache .. servlet init troubles Hi, Yes I have the jdbc driver in common/lib - like I say ... it does connect but I do not know why it gives this error! I just removed trying to get the JNDI data source in my controller servlet init() and moved it to the classes that need a connection. There are now no errors. Therefore it seems almost that init() is too quick to try and get the JNDI resource before it has managed to load the servlet.xml?? Do you know why my servlet initalises twice? That's my remaining issue.. Cheers, ADC -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: 19 January 2004 17:22 To: 'Tomcat Users List' Subject: RE: Please help, I have a headache .. servlet init troubles To solve your problem with JDBC Driver, you must put the JDBC driver inside $TOMCAT_HOME/common/lib, try this first the other errors we will see if happens again. -- De: Allistair Crossley[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada: segunda-feira, 19 de janeiro de 2004 12:56 Para:TOMCAT USER (E-mail) Assunto: Please help, I have a headache .. servlet init troubles I am having the biggest headache ever with this. When I start Tomcat 1) Why is my controller servlet always initialised twice?? That is, as soon as all my logging has finished for one init, it all comes out again a second time! 2) In the init I get the following error when it tries to look at my JNDI datasource... 2004-01-19 15:35:28,764 INFO com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) : dataSource: done 2004-01-19 15:35:28,764 ERROR com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) : Init could not acquire connection from DataSource: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause: null Cannot create JDBC driver of class '' for connect URL 'null' Yet shortly after it seems to have found my datasource perfectly ok because calls work... 2004-01-19 15:36:44,828 DEBUG com.qas.newmedia.intranet.iq.base.navigation.NavigationManager.init(Unknow n Source) : CONNECTIOINIT [EMAIL PROTECTED] My JNDI resouce is below (clearly a URL DOES exist). Thank you all! ADC -- snip -- Resource name=jdbc/iqdb auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/iqdb parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter parameter nameurl/name valuejdbc:microsoft:sqlserver://server:1433/value /parameter
RE: Please help, I have a headache .. servlet init troubles
Hey, The following is what I was doing in init ... private static DataSource dataSource; /** Initialisation */ public void init(ServletConfig config) throws ServletException { super.init(config); logger.info(initialising iQ2); try { Context ctx = new InitialContext(); dataSource = (DataSource) ctx.lookup(java:comp/env/jdbc/sysdb); if (dataSource == null) { throw new ServletException(The iQ2 database could not be loaded.); } } catch (NamingException nE) { throw new ServletException(The iQ2 database could not be loaded.); } logger.debug(init: setting up navigation tree); NavigationManager navigation = null; try { navigation = new NavigationManager(dataSource.getConnection()); } catch (SQLException sqlE) { logger.error(navigation: + sqlE.getMessage()); throw new ServletException(navigation: failed); } // add a reference to the navigation in application scope getServletContext().setAttribute(navigation, navigation); } The NavigationManager closes the connection off. This was causing the problems. Now I put the JNDI block in the NavigationManager constructor and it works just fine!? I am using Tomcat 5.0.16. I dont want to get into compiling 5.0.18 so will wait for a binary! :) Cheers ADC -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 20 January 2004 15:37 To: Tomcat Users List Subject: RE: Please help, I have a headache .. servlet init troubles Howdy, Yeah, it's not good practice to get a connection (or other resource) and in the init method hold on it until the destroy method. Pools make getting a connection quick, so you can keep the connection for as little time as possible. That aside, what tomcat version are you using? Yoav Shapira Millennium ChemInformatics -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 8:25 AM To: 'Tomcat Users List' Subject: RE: Please help, I have a headache .. servlet init troubles Right, usually we get a dataSource in doGet or doPost method. -- De: Allistair Crossley[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada: terça-feira, 20 de janeiro de 2004 9:22 Para:Tomcat Users List Assunto: RE: Please help, I have a headache .. servlet init troubles I have solved the JNDI resource by removing the call to the Context out of the init method and into the classes that wish to connect. And yes I do use a JNDI properly as my application is working using dataSource.getConnection(). The only time my dataSource.getConnection does not work is when I try to get the JNDI resource in the servlet init method. -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: 20 January 2004 13:07 To: 'Tomcat Users List' Subject: RE: Please help, I have a headache .. servlet init troubles Tell us, if you use these parameters for a simple connection, do you really connect to SQLServer? I think that your real problem is to create a JNDI datasource. -- De:Allistair Crossley[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada: segunda-feira, 19 de janeiro de 2004 13:35 Para: Tomcat Users List Assunto: RE: Please help, I have a headache .. servlet init troubles Hi, Yes I have the jdbc driver in common/lib - like I say ... it does connect but I do not know why it gives this error! I just removed trying to get the JNDI data source in my controller servlet init() and moved it to the classes that need a connection. There are now no errors. Therefore it seems almost that init() is too quick to try and get the JNDI resource before it has managed to load the servlet.xml?? Do you know why my servlet initalises twice? That's my remaining issue.. Cheers, ADC -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: 19 January 2004 17:22 To: 'Tomcat Users List' Subject: RE: Please help, I have a headache .. servlet init troubles To solve your problem with JDBC Driver, you must put the JDBC driver inside $TOMCAT_HOME/common/lib, try this first the other errors we will see if happens again. -- De: Allistair Crossley[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada: segunda-feira, 19 de janeiro de 2004 12:56 Para:TOMCAT USER (E-mail) Assunto: Please help, I have a headache .. servlet init troubles I am having the biggest headache ever with this. When I start Tomcat 1) Why is my controller servlet always initialised twice?? That is, as soon as all my logging has finished for one init, it all comes out again a second
RE: maxProcessors vs maxThreads
Is there a similar setting for jk2 under 4.1.29? -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Tuesday, January 20, 2004 2:16 AM To: [EMAIL PROTECTED] Subject: Re: maxProcessors vs maxThreads Oh, come on, get real :). The Jk-Coyote docs are probably second to the mod_jk2 docs for being the most incomplete. While (as Remy has stated), you can perfectly happily set this on the Connector, the jk2.properties syntax is: container.maxThreads=value Shapira, Yoav [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Howdy, thanks yoav, i noticed that but then does that mean that there is no method to specify max threads/processors for the coyote ajp connector? that sounds a bit strange If it's not documented, then there's no configurable way to do it. Of course, you can always subclass/extend a connector just like any other tomcat element to add the behavior you want. how does tomcat behave with the ajp connector? does it indefinitely spawn threads to handle requests until it bombs out of memory? or is there behaviour as specified by the acceptcount/max processors for the http connector buried in the code of the ajp connector that can't be modified? I don't use the AJP connector, so I can't answer that one, but the code is open for you to inspect at your leisure... Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upgrading Java Version
David Evans [EMAIL PROTECTED] wrote: Hello all, I looked through the list archives and the jakarta docs, but didn't find any info. What changes, if any, do i have to make to my tomcat configuration if i want to upgrade my java SDK. I would like to do this because of the verisign root certificate expiration. my versions: j2sdk1.4.0_01 jakarta-tomcat-4.0.4 apache 1.3.20 dave David, First - for your specific versions, all you have to do is upgrade java. Once that works, you're in business - no changes to Tomcat. This is because the changes between JDK 1.4.0_01 and 1.4.2_01 should not have an impact on libraries used by Tomcat. HOWEVER, the prudent action when upgrading any part of your enterprise system is to do the upgrade on some other system first, and get all the kinks out before you upgrade a production environment. Just last week I went through the very same process, triggered by a bug in an older version of MySQL. The bug was identified and fixed in more recent versions, but I had not kept up-to-date. Worse, my development environment had become much newer (though not fully up-to-date) than my production environment... Time to upgrade both! (NOTE: production is on a Sun server running Solaris, Devel is on a Win-XP box. MySQL, Tomcat and Java have versions for both, and my code can compile on one and run on the other with no problems.) First, I upgraded the devel system. Since this system is not mission critical on a daily basis, and since it is the devel environment, it was a good candidate. It was also almost current, so (hopefully) few changes. MySQL upgraded seamlessly (backup database, archive old version, unzip new version, restore database). Java also upgraded seamlessly (uninstall old version, install new version). I got the newest version of what used to be called the MM JDBC jar file, and was fine. Tomcat was more of a challenge. I was a few versions old, so server.xml had changed quite a bit. It had trouble initially finding my .keystore file, but I asked on this list and got that working. *this is why upgrading on a non-critical system is so essential. Had I started on the production machine, I would have been down for a week*. I also had to make some changes to the way the manager application worked (old vs. new), but once that was done I was fine. The big problem with Tomcat upgrades is making sure it all runs. Most critical are the Java libraries (jar files) for special things. I had to be sure poi.jar (Java excell spreadsheet support), mysql.jar (the JDBC driver), activation.jar and mail.jar (the Java mail API) were all correct for both compile and Tomcat. I usually use a server upgrade as a time to upgrade and test newest versions of these support libraries as well. Once that was done, I tested the application on the devel machine. Once the tests all run, I simply repeat the process on the devel server. I keep notes on what I do (or have done) when building / upgrading my server, so installing new versions is rarely a big problem. Finally, you can upgrade in parallel. That is, before you turn off or remove the old versions of this stuff, you can often install and run the new version to test that it works. Certainly I have been able to do that on my Sun box with MySQL. Java is tougher - I find it's just better to install the new version and go. Likewise, Tomcat's use of ports prevents parallel operation on the same port, but my server runs only SSL (port 443 with all other ports disabled), so the default install of Tomcat (port 8080) will work in parallel. I hope this helps, -Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Keeping servlet thread awake
Howdy, You've explained things much better now. That was a big and unfounded leap you made to concluding tomcat was killing your thread. Check the threading library and/or compiler settings on your linux box. Other people have reported problem with NPTL on recent linux kernels, so you can search this list's archives for more information in this area. Yoav Shapira Millennium ChemInformatics -Original Message- From: Allan Bruce [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 9:08 AM To: Tomcat Users List Subject: Re: Keeping servlet thread awake Howdy, This is not a good design to start with. However, let's address your immediate issue first: how do you know that tomcat kills the thread? How do you start the thread? Yoav Shapira Millennium ChemInformatics I dont know that tomcat kills it as such, but I do know there is a problem. The problem is only apparent if I compile the file on my linux machine (the same one that tomcat runs on). If I compile the file on my windows machine and transfer it across, everything runs fine. Let me try to explain what my servlet is trying to accomplish. At start of day, during init() the servelet loads the necessary config and spawns a thread which is used purely for synchronising the servlet with others that are specified in the config. This thread is the one that I am requesting to sleep for 30 minutes at a time. Meanwhile, the servlet processes any requests as normal. During creating this separate thread synchronized(sSema4) is called to ensure that the contents of the data are not altered during the synchronising process (awkward naming!). sSema4 is a static Object() passed to the synchronized() method. There is no error, but when compiled on my linux machine the thread hangs when calling synchronized(sSema4). I hope I have managed to explain things a little better now. Thanks for the help Allan - 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]
Catalina as a Service
Tomcat Users Help, I am trying to find out if there is way to start CATALINA.BAT START as an NT Service. I am using Apache 1.3.29, JDK 1.3.1 and Tomcat 4.0.6. I am currently starting CATALINA.BAT START at a dos prompt. I wanted to start Tomcat in Catalina mode as a service. Please help Thanks Kindly Ajay Gupta - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JK2: Cannot configure to use port other than 8009
I've been having trouble configuring JK2 (version 2.0.2) to connect to a Jetty server on any port other than 8009. I'm including the workers2.properties file and the jk2.log. I've had similar results on both IIS and Apache 1.3. Has anyone had any luck running on other ports? The log below shows that it first tries to connect using port 8009 and gets a Connection refused even though the configuration file specifies another port (50101). It then shows it trying to connect to the correct port and still getting a Connection refused, but I'm pretty sure that is bogus because I can telnet to that port and get a response. When I start Jetty on port 8009 instead (even with the below configuration) everything works fine. Any ideas? Am I missing some configuration parameters? Thanks, Jonathan workers2.properties [logger:] level=INFO [shm:] file=${serverRoot}/logs/jk2.shm size=1048576 [lb:load_balancer] [channel.socket:172.18.1.115:50101] port=50101 host=172.18.1.115 group=load_balancer lb_factor=1 [uri:/test/*] group=lb:load_balancer jk2.log [Tue Jan 20 02:38:40 2004] (error) [jk_channel_socket.c (335)]: channelSocket.open() connect failed 172.18.1.115:8009 146 Connection refused [Tue Jan 20 02:38:40 2004] (error) [jk_worker_ajp13.c (247)]: ajp13.connect() failed ajp13:172.18.1.115:50101 [Tue Jan 20 02:38:40 2004] (error) [jk_worker_ajp13.c (322)]: ajp13.service() failed to connect endpoint errno=146 Connection refused [Tue Jan 20 02:38:40 2004] (error) [jk_worker_ajp13.c (512)]: ajp13.service() Error forwarding ajp13:172.18.1.115:50101 1 1 [Tue Jan 20 02:38:40 2004] ( info) [jk_worker_ajp13.c (552)]: ajp13.done() close endpoint ajp13:172.18.1.115:50101 error_state 1 [Tue Jan 20 02:38:40 2004] (error) [jk_worker_lb.c (402)]: lb.service() worker failed 21000 for ajp13:172.18.1.115:50101 [Tue Jan 20 02:38:40 2004] ( info) [jk_worker_lb.c (217)]: lb.getWorker() All workers in error state, use the one with oldest error [Tue Jan 20 02:38:40 2004] (error) [jk_channel_socket.c (335)]: channelSocket.open() connect failed 172.18.1.115:8009 146 Connection refused [Tue Jan 20 02:38:40 2004] (error) [jk_worker_ajp13.c (247)]: ajp13.connect() failed ajp13:172.18.1.115:50101 [Tue Jan 20 02:38:40 2004] (error) [jk_worker_ajp13.c (322)]: ajp13.service() failed to connect endpoint errno=146 Connection refused [Tue Jan 20 02:38:40 2004] (error) [jk_worker_ajp13.c (512)]: ajp13.service() Error forwarding ajp13:172.18.1.115:50101 1 1 [Tue Jan 20 02:38:40 2004] ( info) [jk_worker_ajp13.c (552)]: ajp13.done() close endpoint ajp13:172.18.1.115:50101 error_state 1 [Tue Jan 20 02:38:40 2004] (error) [jk_worker_lb.c (402)]: lb.service() worker failed 21000 for ajp13:172.18.1.115:50101 [Tue Jan 20 02:38:40 2004] ( info) [jk_worker_lb.c (217)]: lb.getWorker() All workers in error state, use the one with oldest error [Tue Jan 20 02:38:40 2004] ( info) [jk_worker_lb.c (248)]: lb.getWorker() We tried all possible workers 2 [Tue Jan 20 02:38:40 2004] (error) [jk_worker_lb.c (348)]: lb_worker.service() all workers in error or disabled state [Tue Jan 20 02:38:40 2004] (error) [mod_jk2.c (427)]: mod_jk.handler() Error connecting to tomcat 21000 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maxProcessors vs maxThreads
Howdy, You seem to know what you are talking about and it amuses me everyday you come on at the same sort of time and bang off all the answers :) (although regrettably I was hoping you would answer my Tomcat and Clusters one yesterday). I work normal hours, roughly 8:30-4:30 at my day job, US Eastern time zone (I live in Boston), so yeah it's about the same time every day ;) Anyways, if someone like you is not using the connectors, is that because there is something better to use? Tomcat standalone. I have yet to find a single production system that required apache in front of tomcat, and I've put more systems than I care to count in production for various clients in various industries and technical environments. And every time, the simplicity, ease of deployment, and ease of maintenance added significant value that can be measured in $$$. Most of these apps had strict contractually-defined performance goals, and in those cases we tested rigorously to make sure tomcat by itself performs well enough to handle the expected maximum loads. And that's why I don't bother to keep up with the connectors, their configuration, deployment, architecture, supported features, etc. If I ever find a system that requires them, I might give it a shot then. But this is why I laugh when people start off when a setup involving apache and connectors without making sure they really need them ;) Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maxProcessors vs maxThreads
It depends on your needs and requirements. If you don't need apache in front of tomcat, then you just need a http connector. -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 3:00 PM To: Tomcat Users List Subject: RE: maxProcessors vs maxThreads Hi Yoav, Anyways, if someone like you is not using the connectors, is that because there is something better to use? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upgrading Java Version
On Tue, 2004-01-20 at 10:58, Richard S. Huntrods wrote: David, First - for your specific versions, all you have to do is upgrade java. Once that works, you're in business - no changes to Tomcat. This is because the changes between JDK 1.4.0_01 and 1.4.2_01 should not have an impact on libraries used by Tomcat. HOWEVER, the prudent action when upgrading any part of your enterprise system is to do the upgrade on some other system first, and get all the kinks out before you upgrade a production environment. Thanks for the info and the reminder for prudence. I'll take that advice. dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Please help, I have a headache .. servlet init troubles
Howdy, The NavigationManager closes the connection off. This was causing the problems. Now I put the JNDI block in the NavigationManager constructor and it works just fine!? So the lookup code worked fine, you got a connection, and then closing the connection raised the exception? As an aside, consider overriding init() rather than init(ServletConfig) as with the former you don't have to remember to call super.init(ServletConfig). I am using Tomcat 5.0.16. I dont want to get into compiling 5.0.18 so will wait for a binary! :) There's a binary here: http://www.apache.org/dist/jakarta/tomcat-5/ which of course everyone is welcome to download/test/use. I don't think it has any changes relevant to this issue. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maxProcessors vs maxThreads
Hm, we have setup IIS in front of Tomcat so it can serve off the static content, I thought that was the conventional wisdom. We're looking at about 300+ users of which maybe lets say 20 concurrent at quiet times, probably approaching 100+ when we announce something. Would you say Tomcat can handle that fairly well including the static stuff? Would I just need to look at server.xml to get more performance from Tomcat (exluding the JProfiler run) or is a cluster a really good idea too. If a cluster is a good idea I'd be eternally grateful for some pointers on good docs to set a TC5 cluster up and a free stable load balancer to work with that. I think Professonal Tomcat 5 comes out in May but that's too late for me ;) Regards, ADC. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 20 January 2004 15:58 To: Tomcat Users List Subject: RE: maxProcessors vs maxThreads Howdy, You seem to know what you are talking about and it amuses me everyday you come on at the same sort of time and bang off all the answers :) (although regrettably I was hoping you would answer my Tomcat and Clusters one yesterday). I work normal hours, roughly 8:30-4:30 at my day job, US Eastern time zone (I live in Boston), so yeah it's about the same time every day ;) Anyways, if someone like you is not using the connectors, is that because there is something better to use? Tomcat standalone. I have yet to find a single production system that required apache in front of tomcat, and I've put more systems than I care to count in production for various clients in various industries and technical environments. And every time, the simplicity, ease of deployment, and ease of maintenance added significant value that can be measured in $$$. Most of these apps had strict contractually-defined performance goals, and in those cases we tested rigorously to make sure tomcat by itself performs well enough to handle the expected maximum loads. And that's why I don't bother to keep up with the connectors, their configuration, deployment, architecture, supported features, etc. If I ever find a system that requires them, I might give it a shot then. But this is why I laugh when people start off when a setup involving apache and connectors without making sure they really need them ;) Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Catalina as a Service
Return Receipt Your Catalina as a Service document : was Norbert G Vogl/Watson/IBM received by: at: 01/20/2004 11:08:02 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maxProcessors vs maxThreads
Howdy, Hm, we have setup IIS in front of Tomcat so it can serve off the static content, I thought that was the conventional wisdom. Conventional and/or outdated. Or is the more likely operator in the previous sentence. We're looking at about 300+ users of which maybe lets say 20 concurrent at quiet times, probably approaching 100+ when we announce something. Would you say Tomcat can handle that fairly well including the static stuff? Yeah, I would, but the specifics depend on your application, your hardware, your OS. It's not hard to test: put together a JMeter (or AB, or Grinder, or whatever tool you like) test plan that simulates however many concurrent users you expect, run it on tomcat standalone, on tomcat with IIS, on a cluster, iteratively tune the system, and see what happens. Would I just need to look at server.xml to get more performance from Tomcat (exluding the JProfiler run) or is a cluster a really good idea too. If a Again, depends on your requirements. Clusters increase setup and maintenance costs, but can also increase reliability and possibly performance if you balance the load in the cluster. Read Filip Hanik's various docs and articles on tomcat clustering. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse+Ant+Tomcat 5 - problems
Remy Maucherat wrote: Ruth, Brice wrote: I'm starting to try out Tomcat 5 in our development environment, which has been running Tomcat 4.1.x to-date. Preface: our IDE is Eclipse, I use Ant with the catalina-ant tasks to install/remove our web-app from a local Tomcat installation. Everything has worked fine, though I've noticed that after my first install (once I start Eclipse and Tomcat) - anytime I remove/install the web-app, the install appears to init the app twice (my load-on-init servlet's are called twice, etc.) I never figured out what caused this, but it didn't negatively impact anything, so I didn't care. Now, with Tomcat 5 ... after a little tweaking, to my Eclipse environment, I was able to get my same install/remove task working with Ant. The only problem now is that after the initial install, when I do a remove/install, it seems to still init the app twice, only on the second init, it crokes. Talks about a property string that it can't find and then that it can't find the deployment directory for the app (the app is installed from a .WAR) Not good. So, I did some googling - found that apparent install/remove has been deprecated in favor of deploy/undeploy. Fine - so I tried using the deploy task. Apparently, ant doesn't have enough memory to deploy my 90MB+ .WAR (installing never seemed to be a problem) - and when I looked for threads on the DeployTask generating OutOfMemory exceptions, it said to increase ant's memory ... which I can't, for the life of myself, figure out how to do with Eclipse. I've previously gone done the path of having ant fork, but it caused so many problems with our builds, I'd rather not revisit that. Does anybody have anything that can help me? I'm trying out Tomcat 5 because Tomcat 4.1.x appears to have some pretty severe memory leaks with its install/remove operations - if I install/remove my web-app more than 2-3 times, Tomcat (not the Ant task and not Eclipse) runs OutOfMemory ... other users have reported that Tomcat 5 does much better in this arena. Advise on any of these issues is much appreciated!! deploy isn't exactly the same as install. Use the localWar attribute for local deployment. I don't quite understand why the client would use so much memory when uploading. There's no buffering in the code, or anything like that. I googled for localWar and found a previous post to tomcat-user detailing what I believe I need to do! I'm hoping for the best :) Btw, on the install task - any idea why this results in the application being init'd twice? This behaviour didn't seem to change between 4.1.x and 5.x, though in 5.x (as detailed above), it apparently crashed the application. -- Brice D. Ruth Sr. IT Analyst Fiskars Brands, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Location of external schema file for a webapp in Tomcat
Hi I'm writing a web app in Tomcat, which uses a SAX Parser for parsing an XML. I'm specifying the Schema file (ConfigUpdate.xsd)to the SAX Parser by setting a property as follows: parser.setProperty(SCHEMA_LOCATION_PROPERTY_ID, SCHEMA_LOCATION_PROPERTY_VALUE ); where SCHEMA_LOCATION_PROPERTY_ID is "http://apache.org/xml/properties/schema/external-schemaLocation" and SCHEMA_LOCATION_PROPERTY_VALUEis "http://www.xyz.com ConfigUpdate.xsd" However, parser is not able to find the xsd file at the run time. Where should I put the xsd file in Tomcat, so that SAX Parser can read it at run time? thanks, Naresh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to customize tomcat /?
Hi All, Could someone tell me how should i go about customizing tomcat to my needs. I need that the protocols that are being handled should response to my plugin and then my plugin will response back to the tomcat. Thanks in advance, Gaurav Kadyan
RE: maxProcessors vs maxThreads
Thanks Yoav. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 20 January 2004 16:12 To: Tomcat Users List Subject: RE: maxProcessors vs maxThreads Howdy, Hm, we have setup IIS in front of Tomcat so it can serve off the static content, I thought that was the conventional wisdom. Conventional and/or outdated. Or is the more likely operator in the previous sentence. We're looking at about 300+ users of which maybe lets say 20 concurrent at quiet times, probably approaching 100+ when we announce something. Would you say Tomcat can handle that fairly well including the static stuff? Yeah, I would, but the specifics depend on your application, your hardware, your OS. It's not hard to test: put together a JMeter (or AB, or Grinder, or whatever tool you like) test plan that simulates however many concurrent users you expect, run it on tomcat standalone, on tomcat with IIS, on a cluster, iteratively tune the system, and see what happens. Would I just need to look at server.xml to get more performance from Tomcat (exluding the JProfiler run) or is a cluster a really good idea too. If a Again, depends on your requirements. Clusters increase setup and maintenance costs, but can also increase reliability and possibly performance if you balance the load in the cluster. Read Filip Hanik's various docs and articles on tomcat clustering. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TomCat isn't extracting all my files from WAR
Hi, I have an application which runs fine as long as I let the Ant script create the directory structure below webapps. It fails as soon as I try to deploy from a WAR file. I have tried two different approaches of creating the WAR file. First, I have added the directory WEB-INF (which contains my whole application) to a ZIP file with paths like WEB-INF/autoUpdate, WEB-INF/bausteine, WEB-INF/classes, WEB-INF/lib, and so on. However, as soon as I drop the archive into the webapps directory, only a part gets extracted. TomCat's log files looks as follows: HostConfig[localhost]: Deploying web application directory test StandardHost[localhost]: Installing web application at context path /test from URL file:C:\Prg\Tomcat4.1\webapps\test WebappLoader[/test]: Deploying class repositories to work directory C:\Prg\Tomcat4.1\work\Standalone\localhost\test ContextConfig[/test]: Missing application web.xml, using defaults only StandardManager[/test]: Seeding random number generator class java.security.SecureRandom StandardManager[/test]: Seeding of random number generator has been completed StandardWrapper[/test:default]: Loading container servlet default StandardWrapper[/test:invoker]: Loading container servlet invoker Note the message concerning the missing web.xml: It is wrong, the second entry in my archive is web-inf/web.xml (do not ask me where the lower case characters may arise from). The second approach is to use Ant's war task, like this: war destfile=${dist}/${war}.war duplicate=fail webxml=${ressources}/web.xml encoding=ISO-8859-1 classes dir=${build.classes} includes=**/*.properties/ lib dir=${dist} includes=justus.jar/ lib dir=${preqs} includes=*.jar/ webinf dir=${build.templates}/ zipfileset prefix=WEB-INF/bausteine dir=bausteine/ zipfileset prefix=WEB-INF/autoUpdate/stylesheet dir=stylesheets/ zipfileset prefix=WEB-INF/autoUpdate/dcom dir=dcom/ /war Note the encoding, which is the only thing I find unusual. Again, this time only a part gets extracted, in particular the directory WEB-INF/autoUpdate is missing. This time an error message can be seen: java.lang.NullPointerException at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:275) at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:226) at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:140) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:490) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:400) at org.apache.catalina.startup.HostConfig.run(HostConfig.java:851) at java.lang.Thread.run(Unknown Source) I am using TomCat 4.1.29. Any ideas what might be wrong? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: long startup time with JDK1.4
No, not anything. I just changed the symbolic link to the java-directory (its on a linux system), so that the new JDK is active! Any idea? -Ursprüngliche Nachricht- Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 20. Jänner 2004 14:54 An: Tomcat Users List Betreff: RE: long startup time with JDK1.4 Howdy, Nothing else changed, just the JDK? I.e. no new web applications, listeners, filters, valve, load-on-startup servlets? Yoav Shapira Millennium ChemInformatics -Original Message- From: Roland Knor [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 9:13 PM To: [EMAIL PROTECTED] Subject: long startup time with JDK1.4 I am Using Tomcat V 3.2.3. I have encountered a strange behaviour of Tomcat when switching from JDK 1.3.1 to 1.4.2. The time until the server is bound to its listening port has increased from a few seconds up to 3 (!!!)minutes. All contexts are added within a second, however after adding the contexts, it seems that the server runs into a kind of timeout before it finally binds to its port (during this 3 minutes the server is idle). The same behaviour has been reached with the latest tomcat-Version (5.0.16). Any Guesses will be appreciated! Thanks in advance for any help! Roland 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: Mozilla showing JSP source code
Getting off the topic of visible JSP source here, but ... Note that an HTTP redirect isn't just an additional header, it also means a different response status (302 Moved Temporarily instead of 200 OK). I was under the impression that calling response.sendRedirect cleared the buffer and caused the reponse to be committed, and that further attempts to write to the response would throw an IllegalStateException. Is this not the case? I'm quite certain that it's not possible to do a response.sendRedirect if any of the body has been written to the client (this results, IIRC, in IllegalStateException: response already committed). So does the security issue mentioned below really exist? -john. -Original Message- From: Sean Utt [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 11:27 PM To: Tomcat Users List Subject: Re: Mozilla showing JSP source code Hi, I used to see this when doing a response.sendRedirect() without following it with a return(), but didn't see jsp source, just html source. I did have a problem with mod_jk showing .jsp source when the URI contained a // in the path like http://dom.ain/context//file.jsp, but that sounds like a different problem and an upgrade of mod_jk fixed that. The redirect without return was a common problem in dreamweaver ultradev 4. response.sendRedirect() does not terminate execution of the servlet/jsp (nor should it), it just adds header content to the output. I.E. is being 'nice' by painting over the html of the page that sent the redirect with the html of the redirected page, but netscape/mozilla leaves the html from the redirecting page in the browser. A more serious issue is that if you are using response.sendRedirect() to send an unauthorized user to a login page, you are sending them the content you were trying to protect, and then telling them they need to log in to see it. Not at all secure. Though this is an overly simplistic analogy, think of a servlet/jsp as a dynamically loaded function being called by tomcat. This is why you can't call system.exit() in a servlet without terminating tomcat itself. Unless you tell the servlet to cease processing, it will happily continue doing what it does best -- outputting html. bottom line: if (not authorized) { response.sendRedirect(some location); return; // don't bother doing anything else } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What does this mean? ajp13.service() Error sending initial post -1 0 0
Not sure about your problem, but I recently ran across this URL: http://jspisapi.neurospeech.com/ Anyone have any experience with this product? Coincidently I'm having some weird problems using 4.1.29, IIS 5, and JK2. If a user goes to a jsp page, it takes a really long time initially (~10 seconds for a simple page). They can click on other pages that pop up immediately, but if they wait for a while, the next page request takes a long time. If I look at the NT event log there are a lot of application warnings from Apache Jakarta Connector2. I was going to ask the list about it but I wanted to see if TC5 fixes the problem. Interestingly the problem only appeared on my production server, never on my dev server. -Original Message- From: Rasmus Munk [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 9:22 AM To: 'Tomcat Users List' Subject: RE: What does this mean? ajp13.service() Error sending initial post -1 0 0 Nothing happens, but i guess that is because I have no mapping for the root! The strange thing about my error is this: It happens only somtimes. It seems like I caused by the folowing conditions: 1. The size of the POST is something like 10k or bigger. 2. The last call to tomcat is more than 2 minutes old!! I know it sounds incredible, but this is what I have come to to after several days of testing. As I cannot make the connector work, does anyone know if it is possible to run tomcat in-process, thereby passing the requests from IIS using som sort of other technique than the HTTP redirecting? -Rasmus -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: 20. januar 2004 15:12 To: 'Tomcat Users List' Subject: RE: What does this mean? ajp13.service() Error sending initial post -1 0 0 What happens if you type ( http://127.0.0.1/index.jsp ) in your browser? -- De: Rasmus Munk[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 20 de janeiro de 2004 9:06 Para: 'Tomcat Users List' Assunto: What does this mean? ajp13.service() Error sending initial post -1 0 0 Hi I am running tomcat 4.1.29 on IIS 5.0 and j2k 2.0.2 (have also tried older versions) Sometimes I get this error in the j2k.log: [Tue Jan 20 13:03:18 2004] (error ) [jk_worker_ajp13.c (380)] ajp13.service() Error sending initial post -1 0 0 the log continues: [Tue Jan 20 13:03:18 2004] (debug ) [jk_handler_response.c (155)] handler.response() Header[0] [Content-Encoding] = [gzip] [Tue Jan 20 13:03:18 2004] (debug ) [jk_handler_response.c (155)] handler.response() Header[1] [Content-Type] = [text/xml;charset=ISO-8859-1] [Tue Jan 20 13:03:18 2004] (debug ) [jk_handler_response.c (155)] handler.response() Header[2] [Content-Length] = [199] [Tue Jan 20 13:03:18 2004] (debug ) [jk_handler_response.c (172)] handler.response(): status=200 headers=3 [Tue Jan 20 13:03:18 2004] (debug ) [jk_service_iis.c (93)] Into jk_ws_service_t::head [Tue Jan 20 13:03:18 2004] (debug ) [jk_service_iis.c (227)] Into jk_ws_service_t::write [Tue Jan 20 13:03:18 2004] (debug ) [jk_isapi_plugin.c (516)] HttpExtensionProc service() returned OK But the request is not passed to Tomcat, and a response i never sent to the browser!! Anya ideas? Thanks, Rasmus - 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: Urgent-Java webservers on iSeries and other platforms
That sounds a bit odd to me. A well designed webapp or ejb shouldn't have horrible performance for 10 concurrent users. If you're using stateful EJB's you may want to profile it first. Without knowledge of what the app does, my first guess is something in the app is eating up all the CPU and memory. If the app has been profiled aggressively and you know it's not the app itself, i would say install the app on JBoss and compare the performance. If you have hard numbers with the same app, it is much easier to get people to listen. you can also d/l weblogic and see how it performs. keep in mind weblogic has a limit of 10 concurrent connections, so if you need to load test with more than 10 connections, you'll have to smooze the BEA sales guys. You should be able to get them to give you a temporary one month license with unlimited connections, since they are trying to win customers from IBM. there are several old benchmarks comparing various servlet containers, which may or may not help. If you use ejb, those results won't do much for you. if you provide more details, you'll get better help :) peter lin Peter Stokes [EMAIL PROTECTED] wrote: Hi, I'm on a site where a third party application has been put on WebSphere 4.0.5 on an iSeries 820/V5R2. We have had horrendous performance / stability problems even with 10 users and even IBM cannot seem to help. Production is currently sitting pretty on a rushed install of SuSE 9 on a Dell desktop with 1gig RAM and Tomcat. What I am after is opinions / a comparason someone has done (weblink?) / docco about Java webservers performance looking at iSeries, Intel, Sparcs etc. They are into the iSeries/WebSphere 4.0.5 mindset, but no one can answer why this was the recommended setup and they seem to be fixed on this route, but no-one can make it work! There is nothing else on WebSphere other than this app, so if I can get some info, I then actually have some stats / papers to help recommendations, if IBM cannot fix this in the next couple of days (they've had level 1 guys on it for 6 weeks). Anything would be a great help. Pete. *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. *** For any information on the Quinn Group of Companies please visit :- http://www.quinn-group.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
RE: long startup time with JDK1.4
Howdy, Strange ;) I don't have any magic bullet idea ;) Does your app do a lot of XML parsing or manipulation on startup? Does it depend on some jars you added to $JAVA_HOME/jre/ext? Yoav Shapira Millennium ChemInformatics -Original Message- From: Roland Knor [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 9:44 AM To: 'Tomcat Users List' Subject: AW: long startup time with JDK1.4 No, not anything. I just changed the symbolic link to the java-directory (its on a linux system), so that the new JDK is active! Any idea? -Ursprüngliche Nachricht- Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 20. Jänner 2004 14:54 An: Tomcat Users List Betreff: RE: long startup time with JDK1.4 Howdy, Nothing else changed, just the JDK? I.e. no new web applications, listeners, filters, valve, load-on-startup servlets? Yoav Shapira Millennium ChemInformatics -Original Message- From: Roland Knor [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 9:13 PM To: [EMAIL PROTECTED] Subject: long startup time with JDK1.4 I am Using Tomcat V 3.2.3. I have encountered a strange behaviour of Tomcat when switching from JDK 1.3.1 to 1.4.2. The time until the server is bound to its listening port has increased from a few seconds up to 3 (!!!)minutes. All contexts are added within a second, however after adding the contexts, it seems that the server runs into a kind of timeout before it finally binds to its port (during this 3 minutes the server is idle). The same behaviour has been reached with the latest tomcat-Version (5.0.16). Any Guesses will be appreciated! Thanks in advance for any help! Roland 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat webapp welcome file
The easiest way to do this would probably be to use hidden html frames. This might help: http://insights.iwarp.com/advanced/hiddenframe.html That way no matter where a user goes in your site, all they see in the address bar is http://localhost. -Original Message- From: Denis [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 9:25 PM To: [EMAIL PROTECTED] Subject: tomcat webapp welcome file Hi: I created a webapp as ROOT under tomcat 4.1.27, and set the welcome file as index.jsp for the webapp. And I start the tomcat server and open my IE go to localhost. In the IE address bar, it changes to http://localhost/index.jsp. Is there a way to config the tomcat to let it not display index.jsp and just display http://localhost? Thanks in advance. - Denis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to customize tomcat /?
Howdy, Could someone tell me how should i go about customizing tomcat to my needs. I need that the protocols that are being handled should response to my plugin and then my plugin will response back to the tomcat. To get specific help you will need to be more specific in your requests. Almost all aspects of tomcat are customizable, as the source is freely and openly available, so you can modify or enhance any of it. Tomcat (5.x) supports the HTTP protocol in the Coyote connector. It also supports the AJP protocol for communication with other web servers such as Apache httpd. You can read the configuration reference for either of these or just look at their source code in the jakarta-tomcat-catalina repository on cvs.apache.org. Beyond that, you will need to explain what your plugin does/should do and how tomcat should interact with your plugin in order for us to be more helpful. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat webapp welcome file
Howdy, The knock on that is that users can't bookmark their exact page. It may not be an issue for you but some users hate this ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Hooper, Brian [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 11:21 AM To: Tomcat Users List Subject: RE: tomcat webapp welcome file The easiest way to do this would probably be to use hidden html frames. This might help: http://insights.iwarp.com/advanced/hiddenframe.html That way no matter where a user goes in your site, all they see in the address bar is http://localhost. -Original Message- From: Denis [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 9:25 PM To: [EMAIL PROTECTED] Subject: tomcat webapp welcome file Hi: I created a webapp as ROOT under tomcat 4.1.27, and set the welcome file as index.jsp for the webapp. And I start the tomcat server and open my IE go to localhost. In the IE address bar, it changes to http://localhost/index.jsp. Is there a way to config the tomcat to let it not display index.jsp and just display http://localhost? Thanks in advance. - Denis - 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]
RE: tomcat webapp welcome file
Actually Yoav, more like *visceral hatred and copious bilious rage* ;) -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 10:24 AM To: Tomcat Users List Subject: RE: tomcat webapp welcome file Howdy, The knock on that is that users can't bookmark their exact page. It may not be an issue for you but some users hate this ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Hooper, Brian [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 11:21 AM To: Tomcat Users List Subject: RE: tomcat webapp welcome file The easiest way to do this would probably be to use hidden html frames. This might help: http://insights.iwarp.com/advanced/hiddenframe.html That way no matter where a user goes in your site, all they see in the address bar is http://localhost. -Original Message- From: Denis [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 9:25 PM To: [EMAIL PROTECTED] Subject: tomcat webapp welcome file Hi: I created a webapp as ROOT under tomcat 4.1.27, and set the welcome file as index.jsp for the webapp. And I start the tomcat server and open my IE go to localhost. In the IE address bar, it changes to http://localhost/index.jsp. Is there a way to config the tomcat to let it not display index.jsp and just display http://localhost? Thanks in advance. - Denis - 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: What does this mean? ajp13.service() Error sending initial p ost -1 0 0
Could the 10 second delay be caused by tomcat recompiling your jsp? -Original Message- From: Hooper, Brian [mailto:[EMAIL PROTECTED] Sent: 20 January 2004 16:16 To: Tomcat Users List Subject: RE: What does this mean? ajp13.service() Error sending initial post -1 0 0 Not sure about your problem, but I recently ran across this URL: http://jspisapi.neurospeech.com/ Anyone have any experience with this product? Coincidently I'm having some weird problems using 4.1.29, IIS 5, and JK2. If a user goes to a jsp page, it takes a really long time initially (~10 seconds for a simple page). They can click on other pages that pop up immediately, but if they wait for a while, the next page request takes a long time. If I look at the NT event log there are a lot of application warnings from Apache Jakarta Connector2. I was going to ask the list about it but I wanted to see if TC5 fixes the problem. Interestingly the problem only appeared on my production server, never on my dev server. -Original Message- From: Rasmus Munk [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 9:22 AM To: 'Tomcat Users List' Subject: RE: What does this mean? ajp13.service() Error sending initial post -1 0 0 Nothing happens, but i guess that is because I have no mapping for the root! The strange thing about my error is this: It happens only somtimes. It seems like I caused by the folowing conditions: 1. The size of the POST is something like 10k or bigger. 2. The last call to tomcat is more than 2 minutes old!! I know it sounds incredible, but this is what I have come to to after several days of testing. As I cannot make the connector work, does anyone know if it is possible to run tomcat in-process, thereby passing the requests from IIS using som sort of other technique than the HTTP redirecting? -Rasmus -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: 20. januar 2004 15:12 To: 'Tomcat Users List' Subject: RE: What does this mean? ajp13.service() Error sending initial post -1 0 0 What happens if you type ( http://127.0.0.1/index.jsp ) in your browser? -- De: Rasmus Munk[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 20 de janeiro de 2004 9:06 Para: 'Tomcat Users List' Assunto: What does this mean? ajp13.service() Error sending initial post -1 0 0 Hi I am running tomcat 4.1.29 on IIS 5.0 and j2k 2.0.2 (have also tried older versions) Sometimes I get this error in the j2k.log: [Tue Jan 20 13:03:18 2004] (error ) [jk_worker_ajp13.c (380)] ajp13.service() Error sending initial post -1 0 0 the log continues: [Tue Jan 20 13:03:18 2004] (debug ) [jk_handler_response.c (155)] handler.response() Header[0] [Content-Encoding] = [gzip] [Tue Jan 20 13:03:18 2004] (debug ) [jk_handler_response.c (155)] handler.response() Header[1] [Content-Type] = [text/xml;charset=ISO-8859-1] [Tue Jan 20 13:03:18 2004] (debug ) [jk_handler_response.c (155)] handler.response() Header[2] [Content-Length] = [199] [Tue Jan 20 13:03:18 2004] (debug ) [jk_handler_response.c (172)] handler.response(): status=200 headers=3 [Tue Jan 20 13:03:18 2004] (debug ) [jk_service_iis.c (93)] Into jk_ws_service_t::head [Tue Jan 20 13:03:18 2004] (debug ) [jk_service_iis.c (227)] Into jk_ws_service_t::write [Tue Jan 20 13:03:18 2004] (debug ) [jk_isapi_plugin.c (516)] HttpExtensionProc service() returned OK But the request is not passed to Tomcat, and a response i never sent to the browser!! Anya ideas? Thanks, Rasmus - 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: how to customize tomcat /?
It will be like this client-- plugin at client --- plugin at server -- tomcat http http Thanks - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 9:52 PM Subject: RE: how to customize tomcat /? Howdy, Could someone tell me how should i go about customizing tomcat to my needs. I need that the protocols that are being handled should response to my plugin and then my plugin will response back to the tomcat. To get specific help you will need to be more specific in your requests. Almost all aspects of tomcat are customizable, as the source is freely and openly available, so you can modify or enhance any of it. Tomcat (5.x) supports the HTTP protocol in the Coyote connector. It also supports the AJP protocol for communication with other web servers such as Apache httpd. You can read the configuration reference for either of these or just look at their source code in the jakarta-tomcat-catalina repository on cvs.apache.org. Beyond that, you will need to explain what your plugin does/should do and how tomcat should interact with your plugin in order for us to be more helpful. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: long startup time with JDK1.4
Is tomcat starting with the java -server param? server vm is new to 1.4 (Sun) and has a longer startup time. Shapira, Yoav wrote: Howdy, Strange ;) I don't have any magic bullet idea ;) Does your app do a lot of XML parsing or manipulation on startup? Does it depend on some jars you added to $JAVA_HOME/jre/ext? Yoav Shapira Millennium ChemInformatics -Original Message- From: Roland Knor [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 9:44 AM To: 'Tomcat Users List' Subject: AW: long startup time with JDK1.4 No, not anything. I just changed the symbolic link to the java-directory (its on a linux system), so that the new JDK is active! Any idea? -Ursprüngliche Nachricht- Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 20. Jänner 2004 14:54 An: Tomcat Users List Betreff: RE: long startup time with JDK1.4 Howdy, Nothing else changed, just the JDK? I.e. no new web applications, listeners, filters, valve, load-on-startup servlets? Yoav Shapira Millennium ChemInformatics -Original Message- From: Roland Knor [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 9:13 PM To: [EMAIL PROTECTED] Subject: long startup time with JDK1.4 I am Using Tomcat V 3.2.3. I have encountered a strange behaviour of Tomcat when switching from JDK 1.3.1 to 1.4.2. The time until the server is bound to its listening port has increased from a few seconds up to 3 (!!!)minutes. All contexts are added within a second, however after adding the contexts, it seems that the server runs into a kind of timeout before it finally binds to its port (during this 3 minutes the server is idle). The same behaviour has been reached with the latest tomcat-Version (5.0.16). Any Guesses will be appreciated! Thanks in advance for any help! Roland 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] 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] -- Daniel Schmitt http://www.shiftomat.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Mozilla showing JSP source code
Sean Utt wrote: Hi, I used to see this when doing a response.sendRedirect() without following it with a return(), but didn't see jsp source, just html source. I did have a problem with mod_jk showing .jsp source when the URI contained a // in the path like http://dom.ain/context//file.jsp, but that sounds like a different problem and an upgrade of mod_jk fixed that. Sean, thanks for the reply. Now that you mention it, I am indeed seeing HTML source, not JSP source. We do a *pretty* good job of putting returns after our redirects, though I find an occasional missing return. On all the pages I'm investigating, sendRedirect is followed by a return. And of course there is always the problem of Tomcat not *allowing* you to put a return if the sendRedirect is the last statement on the page; you get a code not reachable on the curly brace that follows it grr. Were you able to resolve the showing of the HTML source? Sean Web Solutions That Work Developing custom web solutions designed specifically to accomplish the unique objectives of our clients. Phone 503-639-2727 Fax 503-639-0807 - Original Message - From: Guy Rouillier [mailto:[EMAIL PROTECTED] Sent: Monday, January 19, 2004 5:36 PM To: Tomcat Users List Subject: Mozilla showing JSP source code [snip] (4) The most reliable way to see this fail is via a redirect. This happens most frequently on the secure half of our website (https). On those pages, we have an authentication header at the top of each page: %@ include file=/includes/authenheader.jspf % Inside this file, we check some session variables, and if they don't have the right set of values (or those values don't exist) we response.sendRedirect() to a login page. During this redirect, I *always* see the source for the login page - the login page has not come up cleanly one time. This page is very small, and neither the buffer or timeout changes help. If anyone has any ideas on how to address this problem, I'm willing to try anything. I really am out of ideas and don't know where to go next. Thanks for any help. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat webapp welcome file
Howdy, The knock on that is that users can't bookmark their exact page. It may not be an issue for you but some users hate this ;) Actually Yoav, more like *visceral hatred and copious bilious rage* ;) Ain't that the truth... ;) It's amazing how often basic things (from the user's perspective) like bookmarking or the back button functioning properly are overlooked by the designers/developers. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Urgent-Java webservers on iSeries and other platforms
The app is really a basic war file - it uses JTOpen to connect to iSeries. Nothing fancy, a few patterns used, no EJBs etc. Production was rushed onto Tomcat 5.0.16 on a standard Dell desktop with 1gig RAM running SuSE 9, load tested to 150 users. It flies! Page to page times (DB everytime) are incrediblely fast, basically instant even under 150 user load test. On the iSeries, we get over (live objects) 2million Vector object, 2million PCMLDocuments, and a whole host of other big figures. I used JProfiler on the app (Tomcat) and we get nothing like that. IBM seem now to say that we need to *dedicate* 2 processors, 4-6gig of RAM to continue to test the app on an iSeries (820). We are also totally patched up on the iSeries. Interesting figure is that when the iSeries/WebSphere hangs, we shut off the load test and it recovers after 20-30mins with a collected object gc figure of 25million+ compared to a normal 5million. The gc cycles also intermingle. GC cycle 19 starts, and GC 20 then starts before 19 has finished. I have collected loads of info - if you need anything else give me a shout. Regards, Pete. Peter Lin wrote: That sounds a bit odd to me. A well designed webapp or ejb shouldn't have horrible performance for 10 concurrent users. If you're using stateful EJB's you may want to profile it first. Without knowledge of what the app does, my first guess is something in the app is eating up all the CPU and memory. If the app has been profiled aggressively and you know it's not the app itself, i would say install the app on JBoss and compare the performance. If you have hard numbers with the same app, it is much easier to get people to listen. you can also d/l weblogic and see how it performs. keep in mind weblogic has a limit of 10 concurrent connections, so if you need to load test with more than 10 connections, you'll have to smooze the BEA sales guys. You should be able to get them to give you a temporary one month license with unlimited connections, since they are trying to win customers from IBM. there are several old benchmarks comparing various servlet containers, which may or may not help. If you use ejb, those results won't do much for you. if you provide more details, you'll get better help :) peter lin Peter Stokes [EMAIL PROTECTED] wrote: Hi, I'm on a site where a third party application has been put on WebSphere 4.0.5 on an iSeries 820/V5R2. We have had horrendous performance / stability problems even with 10 users and even IBM cannot seem to help. Production is currently sitting pretty on a rushed install of SuSE 9 on a Dell desktop with 1gig RAM and Tomcat. What I am after is opinions / a comparason someone has done (weblink?) / docco about Java webservers performance looking at iSeries, Intel, Sparcs etc. They are into the iSeries/WebSphere 4.0.5 mindset, but no one can answer why this was the recommended setup and they seem to be fixed on this route, but no-one can make it work! There is nothing else on WebSphere other than this app, so if I can get some info, I then actually have some stats / papers to help recommendations, if IBM cannot fix this in the next couple of days (they've had level 1 guys on it for 6 weeks). Anything would be a great help. Pete. *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. *** For any information on the Quinn Group of Companies please visit :- http://www.quinn-group.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. *** For any information on the Quinn Group of Companies please visit :- http://www.quinn-group.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK2: Cannot configure to use port other than 8009
That's the way I do it and It Works For Me (tm) [channel.socket:localhost:8019] host=localhost port=8019 [channel.socket:localhost:8020] host=localhost port=8020 [ajp13:localhost:8020] channel=channel.socket:localhost:8020 [ajp13:localhost:8019] channel=channel.socket:localhost:8019 Yiannis. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 20 January 2004 03:00 To: [EMAIL PROTECTED] Subject: JK2: Cannot configure to use port other than 8009 I've been having trouble configuring JK2 (version 2.0.2) to connect to a Jetty server on any port other than 8009. I'm including the workers2.properties file and the jk2.log. I've had similar results on both IIS and Apache 1.3. Has anyone had any luck running on other ports? The log below shows that it first tries to connect using port 8009 and gets a Connection refused even though the configuration file specifies another port (50101). It then shows it trying to connect to the correct port and still getting a Connection refused, but I'm pretty sure that is bogus because I can telnet to that port and get a response. When I start Jetty on port 8009 instead (even with the below configuration) everything works fine. Any ideas? Am I missing some configuration parameters? Thanks, Jonathan workers2.properties [logger:] level=INFO [shm:] file=${serverRoot}/logs/jk2.shm size=1048576 [lb:load_balancer] [channel.socket:172.18.1.115:50101] port=50101 host=172.18.1.115 group=load_balancer lb_factor=1 [uri:/test/*] group=lb:load_balancer jk2.log [Tue Jan 20 02:38:40 2004] (error) [jk_channel_socket.c (335)]: channelSocket.open() connect failed 172.18.1.115:8009 146 Connection refused [Tue Jan 20 02:38:40 2004] (error) [jk_worker_ajp13.c (247)]: ajp13.connect() failed ajp13:172.18.1.115:50101 [Tue Jan 20 02:38:40 2004] (error) [jk_worker_ajp13.c (322)]: ajp13.service() failed to connect endpoint errno=146 Connection refused [Tue Jan 20 02:38:40 2004] (error) [jk_worker_ajp13.c (512)]: ajp13.service() Error forwarding ajp13:172.18.1.115:50101 1 1 [Tue Jan 20 02:38:40 2004] ( info) [jk_worker_ajp13.c (552)]: ajp13.done() close endpoint ajp13:172.18.1.115:50101 error_state 1 [Tue Jan 20 02:38:40 2004] (error) [jk_worker_lb.c (402)]: lb.service() worker failed 21000 for ajp13:172.18.1.115:50101 [Tue Jan 20 02:38:40 2004] ( info) [jk_worker_lb.c (217)]: lb.getWorker() All workers in error state, use the one with oldest error [Tue Jan 20 02:38:40 2004] (error) [jk_channel_socket.c (335)]: channelSocket.open() connect failed 172.18.1.115:8009 146 Connection refused [Tue Jan 20 02:38:40 2004] (error) [jk_worker_ajp13.c (247)]: ajp13.connect() failed ajp13:172.18.1.115:50101 [Tue Jan 20 02:38:40 2004] (error) [jk_worker_ajp13.c (322)]: ajp13.service() failed to connect endpoint errno=146 Connection refused [Tue Jan 20 02:38:40 2004] (error) [jk_worker_ajp13.c (512)]: ajp13.service() Error forwarding ajp13:172.18.1.115:50101 1 1 [Tue Jan 20 02:38:40 2004] ( info) [jk_worker_ajp13.c (552)]: ajp13.done() close endpoint ajp13:172.18.1.115:50101 error_state 1 [Tue Jan 20 02:38:40 2004] (error) [jk_worker_lb.c (402)]: lb.service() worker failed 21000 for ajp13:172.18.1.115:50101 [Tue Jan 20 02:38:40 2004] ( info) [jk_worker_lb.c (217)]: lb.getWorker() All workers in error state, use the one with oldest error [Tue Jan 20 02:38:40 2004] ( info) [jk_worker_lb.c (248)]: lb.getWorker() We tried all possible workers 2 [Tue Jan 20 02:38:40 2004] (error) [jk_worker_lb.c (348)]: lb_worker.service() all workers in error or disabled state [Tue Jan 20 02:38:40 2004] (error) [mod_jk2.c (427)]: mod_jk.handler() Error connecting to tomcat 21000 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. Note:__ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity.