Re: Native connector startup problem
I am making a blind stab in the dark here, but it seems as though your Tomcat AJP connector is listening is on another port than what your actual AJP is running on. On 5/26/06, Fenlason, Josh [EMAIL PROTECTED] wrote: Thanks for the suggestion, but the port isn't in use. If I disable the native connector, Tomcat starts up fine. I ran netstat and nothing was using that port. Changing the AJP port to something else that I know is open doesn't fix it either. I'm pretty sure there is something fishy going on (at least from AIX's perspective) in the native code when it binds the port. However, I'm not real experienced with C, so I'm not sure what else to look at. Any familiar with the native apr connector have any suggestions? Thanks. , Josh. -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 5:15 PM To: Tomcat Users List Subject: Re: Native connector startup problem Looks more like AJP port is bound ..grep thru http*.conf , find the AJPPort specifier (usually 8009) then netstat -a | grep ThatPort (then go after the process id) If that doesnt solve it shutdown Tomcat/ shutdown Apache, and start Apache / start Tomcat If that doesnt solve it you may have to power cycle the box Anyone else ??? M- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Fenlason, Josh [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, May 25, 2006 5:44 PM Subject: Native connector startup problem I'm running into the error when I try to startup Tomcat 5.5.17 with the 1.1.3 native connector on AIX. It starts up fine on the same port when not using the native connector, so there's nothing else using the port. Has anyone else seen this? Anyone have any suggestions on what's wrong? Thanks in advance. , Josh. -bash-3.00$ LD_LIBRARY_PATH=/home/snow/jfenlason/aix/install/tomcat5.5.17/ tomcat/bin /native ./catalina.sh run Using CATALINA_BASE: /home/snow/jfenlason/aix/install/tomcat5.5.17/tomcat Using CATALINA_HOME: /home/snow/jfenlason/aix/install/tomcat5.5.17/tomcat Using CATALINA_TMPDIR: /home/snow/jfenlason/aix/install/tomcat5.5.17/tomcat/temp Using JRE_HOME: /usr/java5 May 25, 2006 4:35:02 PM org.apache.coyote.ajp.AjpAprProtocol init SEVERE: Error initializing endpoint java.lang.Exception: Socket bind failed: [22] A system call received a parameter that is not valid. at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:571) at org.apache.coyote.ajp.AjpAprProtocol.init(AjpAprProtocol.java:183) at org.apache.catalina.connector.Connector.initialize(Connector.j ava:1016) at org.apache.catalina.core.StandardService.initialize(StandardSe rvice.java :580) at org.apache.catalina.core.StandardServer.initialize(StandardSer ver.java:7 91) at org.apache.catalina.startup.Catalina.load(Catalina.java:503) at org.apache.catalina.startup.Catalina.load(Catalina.java:523) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess orImpl.jav a:64) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth odAccessor Impl.java:43) at java.lang.reflect.Method.invoke(Method.java:615) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:266) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431) May 25, 2006 4:35:02 PM org.apache.catalina.startup.Catalina load SEVERE: Catalina.start LifecycleException: Protocol handler initialization failed: java.lang.Exception: Socket bind failed: [22] A system call received a parameter that is not valid. at org.apache.catalina.connector.Connector.initialize(Connector.j ava:1018) at org.apache.catalina.core.StandardService.initialize(StandardSe rvice.java :580) at org.apache.catalina.core.StandardServer.initialize(StandardSer ver.java:7 91) at org.apache.catalina.startup.Catalina.load(Catalina.java:503) at org.apache.catalina.startup.Catalina.load(Catalina.java:523) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess orImpl.jav a:64) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth odAccessor Impl.java:43) at java.lang.reflect.Method.invoke(Method.java:615) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:266) at
Re: Native connector startup problem
Then I am way off base. On 5/26/06, Fenlason, Josh [EMAIL PROTECTED] wrote: I don't follow what you're getting at. I'm just trying to get Tomcat to startup. Apache isn't up yet. I have Tomcat's HTTP connector disabled. The only two ports that Tomcat is using is the shutdown port and the ajp port. I know that nothing else is using those ports. Thanks. , Josh. -Original Message- From: Marc Farrow [mailto:[EMAIL PROTECTED] Sent: Friday, May 26, 2006 8:08 AM To: Tomcat Users List Subject: Re: Native connector startup problem I am making a blind stab in the dark here, but it seems as though your Tomcat AJP connector is listening is on another port than what your actual AJP is running on. On 5/26/06, Fenlason, Josh [EMAIL PROTECTED] wrote: Thanks for the suggestion, but the port isn't in use. If I disable the native connector, Tomcat starts up fine. I ran netstat and nothing was using that port. Changing the AJP port to something else that I know is open doesn't fix it either. I'm pretty sure there is something fishy going on (at least from AIX's perspective) in the native code when it binds the port. However, I'm not real experienced with C, so I'm not sure what else to look at. Any familiar with the native apr connector have any suggestions? Thanks. , Josh. -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 5:15 PM To: Tomcat Users List Subject: Re: Native connector startup problem Looks more like AJP port is bound ..grep thru http*.conf , find the AJPPort specifier (usually 8009) then netstat -a | grep ThatPort (then go after the process id) If that doesnt solve it shutdown Tomcat/ shutdown Apache, and start Apache / start Tomcat If that doesnt solve it you may have to power cycle the box Anyone else ??? M- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Fenlason, Josh [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, May 25, 2006 5:44 PM Subject: Native connector startup problem I'm running into the error when I try to startup Tomcat 5.5.17 with the 1.1.3 native connector on AIX. It starts up fine on the same port when not using the native connector, so there's nothing else using the port. Has anyone else seen this? Anyone have any suggestions on what's wrong? Thanks in advance. , Josh. -bash-3.00$ LD_LIBRARY_PATH=/home/snow/jfenlason/aix/install/tomcat5.5.17/ tomcat/bin /native ./catalina.sh run Using CATALINA_BASE: /home/snow/jfenlason/aix/install/tomcat5.5.17/tomcat Using CATALINA_HOME: /home/snow/jfenlason/aix/install/tomcat5.5.17/tomcat Using CATALINA_TMPDIR: /home/snow/jfenlason/aix/install/tomcat5.5.17/tomcat/temp Using JRE_HOME: /usr/java5 May 25, 2006 4:35:02 PM org.apache.coyote.ajp.AjpAprProtocol init SEVERE: Error initializing endpoint java.lang.Exception: Socket bind failed: [22] A system call received a parameter that is not valid. at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:571) at org.apache.coyote.ajp.AjpAprProtocol.init(AjpAprProtocol.java:183) at org.apache.catalina.connector.Connector.initialize(Connector.j ava:1016) at org.apache.catalina.core.StandardService.initialize(StandardSe rvice.java :580) at org.apache.catalina.core.StandardServer.initialize(StandardSer ver.java:7 91) at org.apache.catalina.startup.Catalina.load(Catalina.java:503) at org.apache.catalina.startup.Catalina.load(Catalina.java:523) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess orImpl.jav a:64) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth odAccessor Impl.java:43) at java.lang.reflect.Method.invoke(Method.java:615) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:266) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431) May 25, 2006 4:35:02 PM org.apache.catalina.startup.Catalina load SEVERE: Catalina.start LifecycleException: Protocol handler initialization failed: java.lang.Exception: Socket bind failed: [22] A system call received a parameter that is not valid. at org.apache.catalina.connector.Connector.initialize(Connector.j
RE: jsessionid
I tried too, no success :p -Original Message- From: Marc Farrow [mailto:[EMAIL PROTECTED] Sent: May 26, 2006 9:16 AM To: Tomcat Users List Subject: Re: jsessionid Oh yeah! Parameters are case sensitive. You need to make sure the case is the same as what is produced automatically. I don't recall it being all lowercase. On 5/26/06, Gilbert, Antoine [EMAIL PROTECTED] wrote: Tried these without success http://myurl;jsessionid=xx?otherparams http://myurl?jsessionid=xxotherparams http://myurl?otherparams;jsessionid=xx -Original Message- From: Marc Farrow [mailto:[EMAIL PROTECTED] Sent: May 26, 2006 9:10 AM To: Tomcat Users List Subject: Re: jsessionid should not the jsessionid be just another parameter like the rest? have you tried this? http://myurl?jsessionid=xxotherparams On 5/26/06, Gilbert, Antoine [EMAIL PROTECTED] wrote: Hi I have a problem related to http sessions. I have an image tag in a page. Using JavaScript I change the source of the image and calling a servlet hosted by tomcat 5. In this particular case I have to specify the jsessionid in the url to bind the call to an existing session. http://myurl;jsessionid=xx?otherparams http://myurl;jsessionid=xx/?otherparams =... I don't know why, but this is not working. It seem to be on a different session than the existing one. -- Marc Farrow - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Marc Farrow - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Native connector startup problem
Good Morning Josh- You asked Yoav Shapira (from Apache) on a very similar topic and he provided a suggestion last November I would be interested to know what were the results when you followed his suggestion? Thanks, Martin -- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Fenlason, Josh [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org; Martin Gainty [EMAIL PROTECTED] Sent: Friday, May 26, 2006 9:04 AM Subject: RE: Native connector startup problem Thanks for the suggestion, but the port isn't in use. If I disable the native connector, Tomcat starts up fine. I ran netstat and nothing was using that port. Changing the AJP port to something else that I know is open doesn't fix it either. I'm pretty sure there is something fishy going on (at least from AIX's perspective) in the native code when it binds the port. However, I'm not real experienced with C, so I'm not sure what else to look at. Any familiar with the native apr connector have any suggestions? Thanks. , Josh. -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 5:15 PM To: Tomcat Users List Subject: Re: Native connector startup problem Looks more like AJP port is bound ..grep thru http*.conf , find the AJPPort specifier (usually 8009) then netstat -a | grep ThatPort (then go after the process id) If that doesnt solve it shutdown Tomcat/ shutdown Apache, and start Apache / start Tomcat If that doesnt solve it you may have to power cycle the box Anyone else ??? M- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Fenlason, Josh [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, May 25, 2006 5:44 PM Subject: Native connector startup problem I'm running into the error when I try to startup Tomcat 5.5.17 with the 1.1.3 native connector on AIX. It starts up fine on the same port when not using the native connector, so there's nothing else using the port. Has anyone else seen this? Anyone have any suggestions on what's wrong? Thanks in advance. , Josh. -bash-3.00$ LD_LIBRARY_PATH=/home/snow/jfenlason/aix/install/tomcat5.5.17/ tomcat/bin /native ./catalina.sh run Using CATALINA_BASE: /home/snow/jfenlason/aix/install/tomcat5.5.17/tomcat Using CATALINA_HOME: /home/snow/jfenlason/aix/install/tomcat5.5.17/tomcat Using CATALINA_TMPDIR: /home/snow/jfenlason/aix/install/tomcat5.5.17/tomcat/temp Using JRE_HOME: /usr/java5 May 25, 2006 4:35:02 PM org.apache.coyote.ajp.AjpAprProtocol init SEVERE: Error initializing endpoint java.lang.Exception: Socket bind failed: [22] A system call received a parameter that is not valid. at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:571) at org.apache.coyote.ajp.AjpAprProtocol.init(AjpAprProtocol.java:183) at org.apache.catalina.connector.Connector.initialize(Connector.j ava:1016) at org.apache.catalina.core.StandardService.initialize(StandardSe rvice.java :580) at org.apache.catalina.core.StandardServer.initialize(StandardSer ver.java:7 91) at org.apache.catalina.startup.Catalina.load(Catalina.java:503) at org.apache.catalina.startup.Catalina.load(Catalina.java:523) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess orImpl.jav a:64) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth odAccessor Impl.java:43) at java.lang.reflect.Method.invoke(Method.java:615) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:266) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431) May 25, 2006 4:35:02 PM org.apache.catalina.startup.Catalina load SEVERE: Catalina.start LifecycleException: Protocol handler initialization failed: java.lang.Exception: Socket bind failed: [22] A system call received a parameter that is not valid. at org.apache.catalina.connector.Connector.initialize(Connector.j ava:1018) at org.apache.catalina.core.StandardService.initialize(StandardSe rvice.java :580)
RE: Native connector startup problem
Are you talking about the thread I had started regarding build the native connector on HP? http://marc.theaimsgroup.com/?l=tomcat-devm=113156765527679w=2 If so, I don't believe that is relevant to my current issue. , Josh. -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Friday, May 26, 2006 8:26 AM To: Tomcat Users List Subject: Re: Native connector startup problem Good Morning Josh- You asked Yoav Shapira (from Apache) on a very similar topic and he provided a suggestion last November I would be interested to know what were the results when you followed his suggestion? Thanks, Martin -- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Fenlason, Josh [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org; Martin Gainty [EMAIL PROTECTED] Sent: Friday, May 26, 2006 9:04 AM Subject: RE: Native connector startup problem Thanks for the suggestion, but the port isn't in use. If I disable the native connector, Tomcat starts up fine. I ran netstat and nothing was using that port. Changing the AJP port to something else that I know is open doesn't fix it either. I'm pretty sure there is something fishy going on (at least from AIX's perspective) in the native code when it binds the port. However, I'm not real experienced with C, so I'm not sure what else to look at. Any familiar with the native apr connector have any suggestions? Thanks. , Josh. -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 5:15 PM To: Tomcat Users List Subject: Re: Native connector startup problem Looks more like AJP port is bound ..grep thru http*.conf , find the AJPPort specifier (usually 8009) then netstat -a | grep ThatPort (then go after the process id) If that doesnt solve it shutdown Tomcat/ shutdown Apache, and start Apache / start Tomcat If that doesnt solve it you may have to power cycle the box Anyone else ??? M- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Fenlason, Josh [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, May 25, 2006 5:44 PM Subject: Native connector startup problem I'm running into the error when I try to startup Tomcat 5.5.17 with the 1.1.3 native connector on AIX. It starts up fine on the same port when not using the native connector, so there's nothing else using the port. Has anyone else seen this? Anyone have any suggestions on what's wrong? Thanks in advance. , Josh. -bash-3.00$ LD_LIBRARY_PATH=/home/snow/jfenlason/aix/install/tomcat5.5.17/ tomcat/bin /native ./catalina.sh run Using CATALINA_BASE: /home/snow/jfenlason/aix/install/tomcat5.5.17/tomcat Using CATALINA_HOME: /home/snow/jfenlason/aix/install/tomcat5.5.17/tomcat Using CATALINA_TMPDIR: /home/snow/jfenlason/aix/install/tomcat5.5.17/tomcat/temp Using JRE_HOME: /usr/java5 May 25, 2006 4:35:02 PM org.apache.coyote.ajp.AjpAprProtocol init SEVERE: Error initializing endpoint java.lang.Exception: Socket bind failed: [22] A system call received a parameter that is not valid. at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:571) at org.apache.coyote.ajp.AjpAprProtocol.init(AjpAprProtocol.java:183) at org.apache.catalina.connector.Connector.initialize(Connector.j ava:1016) at org.apache.catalina.core.StandardService.initialize(StandardSe rvice.java :580) at org.apache.catalina.core.StandardServer.initialize(StandardSer ver.java:7 91) at org.apache.catalina.startup.Catalina.load(Catalina.java:503) at org.apache.catalina.startup.Catalina.load(Catalina.java:523) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess orImpl.jav a:64) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth odAccessor Impl.java:43) at java.lang.reflect.Method.invoke(Method.java:615) at
Re: problem in GC tuning
Prashant kumar wrote: Hi All, 1) Is there any means by which GC takes less CPU, I mean that it can take longer time to complete its one cycle (as memory is not a constraint) ? You've set quite a lot of heap 3400m. Do you really need that much memory? The more you set, the more the GC needs to scan. If it's unused however, try reducing Xmx and Xms to values that are sufficient for your app. Then try to size the generations to get smaller chunks to be scanned and check the survivor ratios. Give the incremental GC a try. Might get worse, but probably it works. http://java.sun.com/docs/hotspot/gc1.4.2 2) Do writing of logs at higher loads have some impact on the performance? You should definitely disable GC logging in production, if you don't need it for diagnosis anylonger. Cheers, Michael - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
can the servlet instantiation be patched?
Hi, sorry if my research hasn't been very deep, but does someone know how to patch the servlet instantiation in tomcat the easiest way? The background is, that I'd like to insert an own class (via java.lang.reflect.Proxy) between the connector and the actual servlet instance to perform some additional operations on each call to servlet (like logging, monitoring, etc). TIA regards Leon - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: [help] blank index.jsp on Tomcat 5.5.9
I tried a jsp:forward page=/welcome.jsf/ and it worked. I thought the welcome page had to be a .jsp or .html according to the servlet spec? I'll try removing the white space before the redirect or forward and see if that works. Shawn -- Forwarded message -- From: Garner Shawn [EMAIL PROTECTED] To: users@tomcat.apache.org Date: Thu, 25 May 2006 20:32:05 -0500 Subject: [help] blank index.jsp on Tomcat 5.5.9 I have an index.jsp that redirects to a jsf page. code: %response.sendRedirect(welcome.jsf);% I tested it and it works fine on my development computer with JBoss/Tomcat 5.5 I then uploaded it to my web server and now I get a blank page instead of the redirect. However I know the webapp was deployed because if I type in /welcome.jsf the page comes up. I checked the logs. No errors that I could find. Any help would be appreciated please. Shawn -- Forwarded message -- From: Hassan Schroeder [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Date: Thu, 25 May 2006 19:10:39 -0700 Subject: Re: [help] blank index.jsp on Tomcat 5.5.9 On 5/25/06, Garner Shawn [EMAIL PROTECTED] wrote: I have an index.jsp that redirects to a jsf page. %response.sendRedirect(welcome.jsf);% However I know the webapp was deployed because if I type in /welcome.jsf the page comes up. Not sure why you'd redirect to that instead of just forwarding, but have you tried `response.sendRedirect(/welcome.jsf);` ? For that matter, why not just add 'welcome.jsf' to your welcome file list? :-) Anyway -- Is it the first line in your page? No white space being sent first? -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: [help] blank index.jsp on Tomcat 5.5.9
On 5/26/06, Garner Shawn [EMAIL PROTECTED] wrote: I thought the welcome page had to be a .jsp or .html according to the servlet spec? ? Where do you see that in the spec? -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can the servlet instantiation be patched?
I'm not sure I will have control of the end of the servlet execution with the filter, would I? regards Leon On 5/26/06, Tim Funk [EMAIL PROTECTED] wrote: You might have an easier time using a Filter. But this might not offer the same amount of granularity. (Using a HttpServletRequestWrapper() might help too) -Tim Leon Rosenberg wrote: Hi, sorry if my research hasn't been very deep, but does someone know how to patch the servlet instantiation in tomcat the easiest way? The background is, that I'd like to insert an own class (via java.lang.reflect.Proxy) between the connector and the actual servlet instance to perform some additional operations on each call to servlet (like logging, monitoring, etc). - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HOWTO remove username/password from logging to tomcat logs
Are you sure this is your config? Your mail: I am using .Form Based Authentication using Memory Realm via tomcat-users.xml file Your web.xml: login-config auth-methodFORM/auth-method realm-nameJDBCRealm/realm-name also, might be good if you check / send the context.xml of your webapp. This all looks to me like a request dump valve has been installed for debugging purpose. Greetings, David Delbecq Terry Orechia a écrit : How do I control the logging of username/password in tomcat logs when a user logs into the tomcat website. There are no logging statements in my servlet to print this data and there is no code to catch the login request . Each time a user logs into the website , the username and password are logged. I am running tomcat 4.1 on debian with Tomcat/Apache JK2 Connector and log4j. I am using .Form Based Authentication using Memory Realm via tomcat-users.xml file. I have also noticed that when I upload a file using multipart/form data on http Post request to servlet, the complete contents of the file gets logged in the tomcat logs in the same way. The log entry looks lilke a dump of the http data. I have been googling the Internet trying to solve this one and looking through the tomcat docs but cannot find any place where the logging level controls this data in http content from dumping to the tomcat logs. Any ideas would be appreciated. Here is the contents of the statement I am trying to remove in my catalina.log that appears when I login as username demo and password . --- 12 34 00 21 00 1f 6a 5f 75 73 65 72 6e 61 6d 65 | .4.!..j_username 3d 64 65 6d 6f 26 6a 5f 70 61 73 73 77 6f 72 64 | =demoj_password 3d 64 64 64 64 | = -- Here is the server.xml for 4.1 Debian, vorlab is the context: server port =8005 shutdown=SHUTDOWN debug=0/ !-- Uncomment these entries to enable JMX MBeans support -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone !-- A Connector represents an endpoint by which requests are received and responses are returned. Each Connector passes requests on to the associated Container (normally an Engine) for processing. -- !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8180 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8180 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false / Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false / !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ !-- An Engine represents the entry point (within Catalina) that processes every request. The Engine implementation for Tomcat stand alone analyzes the HTTP headers included with the request, and passes them on to the appropriate Host (virtual host). -- !-- Define the top level container in our container hierarchy -- Engine name=Standalone defaultHost=localhost debug=0 !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_ suffix=.log timestamp=true/ !-- Because this Realm is here, an instance will be shared globally -- Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=0 resourceName=UserDatabase/ !-- Define the default
Re: can the servlet instantiation be patched?
Yes you will ... doFilter(...) { // log and set other timing variables try { chain.doFilter(...) } finally { /* servlet done executing - log some more */ } } If the filter is invoked on includes and forwards too - you can also get more granually logging. -Tim Leon Rosenberg wrote: I'm not sure I will have control of the end of the servlet execution with the filter, would I? regards Leon On 5/26/06, Tim Funk [EMAIL PROTECTED] wrote: You might have an easier time using a Filter. But this might not offer the same amount of granularity. (Using a HttpServletRequestWrapper() might help too) -Tim Leon Rosenberg wrote: Hi, sorry if my research hasn't been very deep, but does someone know how to patch the servlet instantiation in tomcat the easiest way? The background is, that I'd like to insert an own class (via java.lang.reflect.Proxy) between the connector and the actual servlet instance to perform some additional operations on each call to servlet (like logging, monitoring, etc). - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How do I configure Tomcast HTTP server to generate working links for French file names in Tomcat Directory Listing?
Hi, I have exposed a specific Windows file system folder on my Tomcat HTTP 5.5.9 server box's local hard drive so I can access files in that folder remotely. For simplicity, let us say I've inserted the following Context in my server.xml: Context path=/music docBase=c:\my_cds\music\ trusted=false crossContext=true debug=1 reloadable=true /Context When I use IE to browse to that URL, the Directory Listing (produced by Tomcat) displays properly. I can click on any file listed, and if the file's name is all in English characters then it downloads properly to the client machine. However, if I click on a file that contains foreign characters, such as the ç in filename Claude François - Quelquefois.mp3, the link does not function. Specifically, the link produced by Tomcat is: http://foobar.org/music/Claude%20Fran%C3%A7ois%20-%20Quelquefois.mp3 but unfortunately clicking on it produces a 404 error. The problem in this example is surely with the %C3%A7 which is a substitute for 'ç' because if I rename the file on disk to say Francois (with a plain 'c') and refresh the page in IE, it becomes accessible. Note: With the file name containing the word François, even if I manually edit the URL in the address bar and replace the %C3%A7 with ç it still doesn't work. How can I make Tomcat properly handle such file names? -- OR -- Is this a bug in Tomcat? Thanks. -Ramez - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can the servlet instantiation be patched?
Thanx tim, I have one last question, which would be probably the hardest to answer... How do I now _which_ servlet is behind me in the chain? regards Leon On 5/26/06, Tim Funk [EMAIL PROTECTED] wrote: Yes you will ... doFilter(...) { // log and set other timing variables try { chain.doFilter(...) } finally { /* servlet done executing - log some more */ } } If the filter is invoked on includes and forwards too - you can also get more granually logging. -Tim Leon Rosenberg wrote: I'm not sure I will have control of the end of the servlet execution with the filter, would I? regards Leon On 5/26/06, Tim Funk [EMAIL PROTECTED] wrote: You might have an easier time using a Filter. But this might not offer the same amount of granularity. (Using a HttpServletRequestWrapper() might help too) -Tim Leon Rosenberg wrote: Hi, sorry if my research hasn't been very deep, but does someone know how to patch the servlet instantiation in tomcat the easiest way? The background is, that I'd like to insert an own class (via java.lang.reflect.Proxy) between the connector and the actual servlet instance to perform some additional operations on each call to servlet (like logging, monitoring, etc). - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0.28 reaches OS open files limit
I have a problem with some tomcat servers that regularly start thowing exceptions about too many open files (the stacktrace is in a network socket aperture). One solution is increasing the ulimit but would disabling http keepalives reduce the open file count? Do you use Runtime.getProcess() anywhere? That opens three file handles that you have to close (stdin, stdout, stderr). I ran into this problem myself a while ago. _M_ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0.28, Socket hanging on sending 20KB data for 16 minutes -Fixed!!
OK we finally pinnned the issue down to a client's proxy server. We have few ajax refreshes happening on our html pages. Under certain conditions IE sends a RST when its unable to serve these requests (you can quickly verify this by running ethreal while viewing new Yahoo pages with real time updates on e-mail weather etc). These RST were not getting propageted by the proxy server to our server. Thus our server kept sending re-transmissions on that socket. Once the proxy was set to just do passthru , eveythign worked fine as the server received RST sent from the browser. Thanks Kumar Pandey --- Kumar Pandey [EMAIL PROTECTED] wrote: If it was synchronization issue at the code level then I should have seen the issue during load test in our env. We see the issue only for the traffic coming from this specific network even for just one user in the system. Cpu is 99% idle. Also IE just allows 2 socket connection from the browser at any given time for that instance of IE.I see upto 30 threads tied up to service one user session requests for 20KB of data. Each finally clears up after 16 minutes. Meanhile other users accessing from other networks (even from India) does not have this issue. Their request for same data is getting serviced under sub seconds. by remaining threads not tied up. Does anyone have any idea on the re-transmissions of the same packets from server tcp layer to broswer thus hanging the connection for upto 16 minutes in Linux FC4, Tomcat 5.0.28. Who is closing the connection after ~16 minutes etc. Thanks Kumar --- Rajeev Jha [EMAIL PROTECTED] wrote: looking at http://www.jfree.org/jfreechart/javadoc/ , org.jfree.chart.encoders.EncoderUtil.writeBufferedImage does not look thread-safe. try checking sun.awt.image.codec.JPEGImageEncoderImpl.encode API. Try increasing the latency by re-requesting the servlet every 30 secs/ 1 min and see if that works fine or not. Kumar Pandey wrote: Sorry I forgot to include couple of more stats Tomcat is running on linux FC4 Client browser is IE 6.0 First line of the dump is http-0.0.0.0-80-Processor99 daemon prio=1 tid=0x8b09b4b8 nid=0x46ec runnable [0x84be7000..0x84be91c0] Thx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Web admin
Hi, I have installed tomcat 5.5.17 and web administration tool. After to put login and password, I get that error: HTTP Status 403 - Access to the requested resource has been denied type Status report message Access to the requested resource has been denied description Access to the specified resource (Access to the requested resource has been denied) has been forbidden. Apache Tomcat/5.5.17 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Web admin
The admin application is by default protected by security-constraints which are defined in its web.xml file. In the delivery version, the admin application required a user with the admin role. You may remove the security constraints (not recommended except for development purposes) or create a user with the admin role. If the rest of your tomcat is still in its default configuration, you just have to add a line like the following to the file conf/tomcat-users.xml: user username=admin password=admin role=admin/ Alternatively, just add the admin role to the existing user named tomcat: user username=tomcat password=tomcat role=tomcat,admin/ After modifying tomcat-users.xml you have to restart Tomcat. Be sure not to use these default user/passwords on a server which is exposed to the internet. Georg Mario Henley Becerril Geldis wrote: Hi, I have installed tomcat 5.5.17 and web administration tool. After to put login and password, I get that error: HTTP Status 403 - Access to the requested resource has been denied type Status report message Access to the requested resource has been denied description Access to the specified resource (Access to the requested resource has been denied) has been forbidden. Apache Tomcat/5.5.17 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HOWTO remove username/password from logging to tomcat logs
this is JK/AJP connector, and it sucks, cause you can't remove it. later versions of tomcat its only logging this under debug. Filip Terry Orechia wrote: How do I control the logging of username/password in tomcat logs when a user logs into the tomcat website. There are no logging statements in my servlet to print this data and there is no code to catch the login request . Each time a user logs into the website , the username and password are logged. I am running tomcat 4.1 on debian with Tomcat/Apache JK2 Connector and log4j. I am using .Form Based Authentication using Memory Realm via tomcat-users.xml file. I have also noticed that when I upload a file using multipart/form data on http Post request to servlet, the complete contents of the file gets logged in the tomcat logs in the same way. The log entry looks lilke a dump of the http data. I have been googling the Internet trying to solve this one and looking through the tomcat docs but cannot find any place where the logging level controls this data in http content from dumping to the tomcat logs. Any ideas would be appreciated. Here is the contents of the statement I am trying to remove in my catalina.log that appears when I login as username demo and password . --- 12 34 00 21 00 1f 6a 5f 75 73 65 72 6e 61 6d 65 | .4.!..j_username 3d 64 65 6d 6f 26 6a 5f 70 61 73 73 77 6f 72 64 | =demoj_password 3d 64 64 64 64 | = -- Here is the server.xml for 4.1 Debian, vorlab is the context: server port =8005 shutdown=SHUTDOWN debug=0/ !-- Uncomment these entries to enable JMX MBeans support -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone !-- A Connector represents an endpoint by which requests are received and responses are returned. Each Connector passes requests on to the associated Container (normally an Engine) for processing. -- !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8180 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8180 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false / Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false / !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ !-- An Engine represents the entry point (within Catalina) that processes every request. The Engine implementation for Tomcat stand alone analyzes the HTTP headers included with the request, and passes them on to the appropriate Host (virtual host). -- !-- Define the top level container in our container hierarchy -- Engine name=Standalone defaultHost=localhost debug=0 !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_ suffix=.log timestamp=true/ !-- Because this Realm is here, an instance will be shared globally -- Realm className=org.apache.catalina.realm.UserDatabaseRealm debug=0 resourceName=UserDatabase/ !-- Define the default virtual host -- Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true !-- Logger shared by all Contexts related to this virtual host. -- Logger className=org.apache.catalina.logger.FileLogger directory=logs
Re: How do I configure Tomcast HTTP server to generate working links for French file names in Tomcat Directory Listing?
you can create a filter that does response.setContentType(UTF-8) or whatever encoding you need filip Ramez Ghazzaoui wrote: Hi, I have exposed a specific Windows file system folder on my Tomcat HTTP 5.5.9 server box's local hard drive so I can access files in that folder remotely. For simplicity, let us say I've inserted the following Context in my server.xml: Context path=/music docBase=c:\my_cds\music\ trusted=false crossContext=true debug=1 reloadable=true /Context When I use IE to browse to that URL, the Directory Listing (produced by Tomcat) displays properly. I can click on any file listed, and if the file's name is all in English characters then it downloads properly to the client machine. However, if I click on a file that contains foreign characters, such as the ç in filename Claude François - Quelquefois.mp3, the link does not function. Specifically, the link produced by Tomcat is: http://foobar.org/music/Claude%20Fran%C3%A7ois%20-%20Quelquefois.mp3 but unfortunately clicking on it produces a 404 error. The problem in this example is surely with the %C3%A7 which is a substitute for 'ç' because if I rename the file on disk to say Francois (with a plain 'c') and refresh the page in IE, it becomes accessible. Note: With the file name containing the word François, even if I manually edit the URL in the address bar and replace the %C3%A7 with ç it still doesn't work. How can I make Tomcat properly handle such file names? -- OR -- Is this a bug in Tomcat? Thanks. -Ramez - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Filip Hanik - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]