Doubt in threads
Is there any possibility that tomcat 6 process threads will increase even in the idle state without working on any request. since if i check the tomcat thread by *ps -C java -L -o pid,tid,pcpu,state,args | grep tomcat6 | wc -l * in cent os after few hrs it get increased. Is it tomcat's behaviour or leak in application? Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison*
Re: Tomcat 5.5.23 stops listening to requests on SSL port
Thanks for the suggestion of taking a thread dump... I think I have some instructions on how to do this on a windows server. The apache httpd server is on a different machine to Tomcat, thats how they can both listen on port 8443. - Original Message From: Christopher Schultz ch...@christopherschultz.net To: Tomcat Users List users@tomcat.apache.org Cc: p...@pidster.com Sent: Friday, 1 May, 2009 18:07:42 Subject: Re: Tomcat 5.5.23 stops listening to requests on SSL port -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rahman, On 5/1/2009 9:24 AM, Rahman Akhlaqur wrote: The SSL is terminated at the load balancers, so the request is then a http request on port 8443 to our apache webserver (we use this to resolve multiple hostnames to just a few virtual hosts) which then just proxys the http request to Tomcat. At which point we want the request to be passed on to the content server as a secure request on port 443 - to match content hosts set up on port 443. It seems to work okay as the reverse path is fine, from the content server back to the end user. This sounds fishy. You terminate SSL at your lb, so there's no SSL anymore, right? Tomcat is listening on 8443 (as per your Connector configuration) so how can your lb send the request to Apache httpd on port 8443? Maybe you just reversed the ports in your post. It sounds like you are doing this: client [HTTPS] - lb:443 [HTTP] - httpd (port?) - Tomcat:8443 (If you are expecting a previously-encrypted connection coming to Tomcat, why not set secure=true in your Connector?) There is nothing in the Tomcat logs, the request is not even logged in the localhost access log - this points to Tomcat not even listening properly on port 8443. The other port (8080) is working okay though. Have you taken a thread dump to see what is happening? Since you are running 3 connectors, you might want to use a shared executor to manage threads, though the result with no further changes will be that /all/ threads will likely be tied-up, rather than only those servicing port 8443. I highly recommend a thread dump to see what all your threads are doing. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkn7LF4ACgkQ9CaO5/Lv0PCG5ACfcuG/xvslTxhXzvfp25inr/at InMAoKOvUg5QSxowVKUhwBxk8kSft96z =VMmX -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: jk-to-tomcat multiple retries
On 01.05.2009 18:19, Dmitry Beransky wrote: We have the strangest problem started happening to us a few weeks ago (after several years of running pretty much the same configuration). 1. The problem is only happening in the production environment. We cannot reproduce it on staging, which as far as we can tell is configured identically to production. 2. The problem seems to be tied to the traffic volume and possible pattern (Hence probably why we cannot reproduce it on staging). 3. Our configuration: W2K server running IIS 6 and JK 1.2.27, Tomcat v. 5.5.12 running on the same box. The problem is as follows: some requests would result in multiple copies of the first buffer-full of expected data, ended either by a 503 error page data, a 502 error page data, or the rest of the proper page. The number of copies is directly related to the JK's number of retries setting. With the number of retries initially being set to 10, the maximum number of repeated copies in the response was 20. When we set the number of retries to 2, invalid replies contain only a single buffer-full of the page's proper data followed by an error page data. On the Tomcat side, these multiple copies show up as multiple request entries in the access log, while there is only one corresponding request entry in the IIS log. After a fresh restart of Tomcat, it takes a little while for this problem to start manifesting itself. With time, it is starting to affect increasingly more requests until finally Tomcat gets entirely locked up. At that point Tomcat needs to be restarted lather, rinse, repeat... Here's what a sample of error messages in JK's log looks like: [2760:2476] [error] jk_isapi_plugin.c (1199): WriteClient failed with 10053 (0x2745) [2760:4020] [error] jk_ajp_common.c (1726): Chunk length too large. Length of AJP message is 8188, chunk length is 8192. [2760:4020] [error] jk_ajp_common.c (2426): (default_1) connecting to tomcat failed. [2760:1104] [error] jk_ajp_common.c (1726): Chunk length too large. Length of AJP message is 8188, chunk length is 8192. [2760:1104] [error] jk_ajp_common.c (2426): (default_1) connecting to tomcat failed. [2760:1104] [error] jk_ajp_common.c (1726): Chunk length too large. Length of AJP message is 8188, chunk length is 8192. [2760:1104] [error] jk_ajp_common.c (2426): (default_1) connecting to tomcat failed. [2760:1104] [error] jk_lb_worker.c (1432): All tomcat instances failed, no more workers left [2760:1104] [error] jk_isapi_plugin.c (2199): service() failed with http error 503 [2760:3876] [error] jk_ajp_common.c (1726): Chunk length too large. Length of AJP message is 8188, chunk length is 8192. [2760:3876] [error] jk_ajp_common.c (2426): (default_1) connecting to tomcat failed. [2760:3232] [error] jk_ajp_common.c (1726): Chunk length too large. Length of AJP message is 8188, chunk length is 8192. [2760:3232] [error] jk_ajp_common.c (2426): (default_1) connecting to tomcat failed. [2760:3232] [error] jk_ajp_common.c (1726): Chunk length too large. Length of AJP message is 8188, chunk length is 8192. [2760:3232] [error] jk_ajp_common.c (2426): (default_1) connecting to tomcat failed. [2760:3232] [error] jk_lb_worker.c (1432): All tomcat instances failed, no more workers left [2760:3232] [error] jk_isapi_plugin.c (2199): service() failed with http error 503 The Chunk length messages have been in our logs forever. Yesterday I temporarily changed JK Tomcat configuration matching the packet sizes. The chunk errors went away, but the problem seemed to persist, so I put everything back the way it was. The chunk length message seems pretty weird. Looks like a protocol corruption. Those indicate, that you should really try a TC update. Concerining your restriction can't update before any other options are exhausted: there will never be any other options exhausted. But after some options are taken, the rest get more and more expensive, risky and with a low chance of success. To me this look likes some weird error condition in Tomcat has hit an obscure bug in JK whereby it doesn't clear the response buffer between retries. Has anyone encountered this issue before or is just willing to land a helping hand in troubleshooting? Not encountered this before, and I think noone reported a similar observation. Concerning retries: Could you provide your full configuration (e.g. retries for an ajp13 worker is something very different from retries of a load balancer worker). Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Need help on Custom Accesslog
On 01.05.2009 22:55, Vijay wrote: Hi, I wanted to send a application message like Application specific GUID to the accesslogs, the GUID is generated by our system and it is not general or available in the request or the response So i was wondering if there is any way where we can send that message to the logger which will add it to the Access log when it is logging the request? The problem is that i am writing a parser to view the logs using chukwa, now if i dont have this functionality, hence timing of the logging is an issue(In case I do it seperatly in a diffrent log file) I might need to wait longer to parse it. The access log allows you to log session and request attributes via an appropriate configuration of the pattern attribute: %{xxx}r xxx is an attribute in the ServletRequest %{xxx}s xxx is an attribute in the HttpSession So you can either set the GUID as an attribute to the request object via setAttribute, or put it to the session. I guess your GUID is request specific, so you should use the request way of doing it. Choose an appropriate name, that does not conflict with any other possible use, like com.mycompany.myapp.GUID for the attribute (that's the xxx above). Note: setting a request attribute has nothing to do with request headers or query parameters. Those attributes are neither received from the client, nor send to it. They are for internal processing means. Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Redurect URL From Tomcat to IIS
i have 2 web servers, one is apache tomcat v6, and the other is IIS v6, both are on the same network, the tomcat server is directly connected to the internet and also it has dhcp which assign the IIS server IP address, what am looking for is that when apache has an http request like http://tomcatserver/index.html then it will responses its index.html, but if it will receive a request like http://iisserver/index.html then tomcat should forward the request to the IIS server and then receive the response from the IIS and redirect it to client whom issued the request, so in short words, am wondering if tomcat is capable to translate the requested URLs and redirect them to a specific IP/Port, i read about connectors but am not sure if apache connectors is what really am looking for, any suggestions? -- View this message in context: http://www.nabble.com/Redurect-URL-From-Tomcat-to-IIS-tp23346521p23346521.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Redurect URL From Tomcat to IIS
akkad wrote: i have 2 web servers, one is apache tomcat v6, and the other is IIS v6, both are on the same network, the tomcat server is directly connected to the internet and also it has dhcp which assign the IIS server IP address, what am looking for is that when apache has an http request like http://tomcatserver/index.html then it will responses its index.html, but if it will receive a request like http://iisserver/index.html then tomcat should forward the request to the IIS server and then receive the response from the IIS and redirect it to client whom issued the request, so in short words, am wondering if tomcat is capable to translate the requested URLs and redirect them to a specific IP/Port, i read about connectors but am not sure if apache connectors is what really am looking for, any suggestions? I don't really understand that bit above about ..and also it has dhcp which assign the IIS server... So ignoring for the moment the part about DHCP.. What it sounds like you want to do above, is make Tomcat act as a proxy server for the IIS server. I don't think Tomcat can do that (easily), and in any case it is not something that Tomcat is really optimised to do. What you should probably use in this case, is something else that sits in front of Tomcat /and/ IIS, and distributes the requests to the appropriate back-end. You could do that easily with an Apache httpd server. client -- Apache httpd -- tomcatserver/index.html ? -- Tomcat -- iisserver/index.html ? -- IIS In Apache, you could use mod_proxy to forward what needs to be forwarded. You could also turn things around, and have your IIS server in front, forwarding to Tomcat when needed. Apache/Tomcat connectors, or IIS/Tomcat connectors, are modules that sit at the level of a HTTP server front-end (Apache or IIS), and forward requests to Tomcat (back-end). The AJP redirector (for IIS), the mod_proxy_http and mod_proxy_ajp and mod_jk modules (for Apache) are such Connectors. For example, in the schema above, they are at the level where you see tomcatserver/index.html ?. But they do not redirect from Tomcat to something else, it's the opposite. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Basic authentication without a secure connection
Hello! I'm developing a Tomcat, Struts application. I want to send credentials to the Authentication Dialog that's shown by application which is running on another server. With this idea, I'd connect 2 application: the Tomcat application should have a redirection link to the other application. If I can modify the request header, I will add row Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ== http://en.wikipedia.org/wiki/Basic_access_authentication http://en.wikipedia.org/wiki/Basic_access_authentication http://www.ietf.org/rfc/rfc2616.txt http://www.ietf.org/rfc/rfc2616.txt How can I implement this? Regards P.S. I also started this topic on: http://www.coderanch.com/t/442467/Security/Basic-authentication-without-secure-connection -- View this message in context: http://www.nabble.com/Basic-authentication-without-a-secure-connection-tp23347310p23347310.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
JDBCRealm, Tomcat and MySQL
Hi all I have a problem with authorization based on JDBCRealm. When I'm trying to get access to some html page which is store in protected directory all that I can see is just login-error.jsp page. I'm using login and password from my database. My server.xml: ?xml version='1.0' encoding='utf-8'? Server port=8005 shutdown=SHUTDOWN Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / Listener className=org.apache.catalina.core.JasperListener / Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / GlobalNamingResources Resource name=jdbc/MySQL auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/MySQL parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name value10/value /parameter parameter namemaxIdle/name value5/value /parameter parameter namevalidationQuery/name valueSELECT 1/value /parameter parameter nametestOnBorrow/name valuetrue/value /parameter parameter nametestWhileIdle/name valuetrue/value /parameter parameter nametimeBetweenEvictionRunsMillis/name value1/value /parameter parameter nameminEvictableIdleTimeMillis/name value6/value /parameter parameter nameusername/name valueroot/value /parameter parameter namepassword/name valueubk/value /parameter parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://localhost:3306/wypozyczalnia/value /parameter /ResourceParams /GlobalNamingResources Service name=Catalina Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 / Connector port=8009 protocol=AJP/1.3 redirectPort=8443 / Engine name=Catalina defaultHost=localhost Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.mysql.jdbc.Driver connectionURL=jdbc:mysql://localhost:3306/wypozyczalnia connectionName=root connectionPassword=ubk userTable=tomcat_users userNameCol=user_name userCredCol=user_pass userRoleTable=tomcat_roles roleNameCol=role_name / Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host /Engine /Service /Server My webapp web.xml: ?xml version=1.0 encoding=UTF-8? web-app version=2.5 xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; session-config session-timeout5/session-timeout /session-config welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list security-constraint display-nameWstepWzbroniony/display-name web-resource-collection web-resource-namepliki/web-resource-name url-pattern/pliki/*/url-pattern /web-resource-collection auth-constraint role-nameadmin/role-name /auth-constraint /security-constraint login-config auth-methodFORM/auth-method realm-name/ form-login-config form-login-page/login.jsp/form-login-page form-error-page/login-error.jsp/form-error-page /form-login-config /login-config security-role description/ role-nameadmin/role-name /security-role /web-app I have no idea what's wrong. It's my first time with sth bigger in webapps. I'm rookie. I'm using Netbeans. -- View this message in context: http://www.nabble.com/JDBCRealm%2C-Tomcat-and-MySQL-tp23349009p23349009.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: I have a problem with Apache, Tomcat
Hi Chris, Thanks for your reply. I have JkStripSession on and still having the issue. Any help is really appreciated. I have had this issues for a long time now and it is a Huge Issue for us !! This is my httpd.conf file. == LoadModule jk_module /usr/lib/apache2/modules/mod_jk-1.2.27-httpd-2.2.6.so JkStripSession On JkMount /*.jsp loadbalancer JkMount /*.jsf loadbalancer # JkMount /*.jsp ajp13 # JkMount /*.jsf ajp13 JkWorkersFile workers.properties JkShmFile /var/log/httpd/mod_jk.shm JkLogFile /opt/apache2log/mod_jk.log # JkLogLevelinfo JkLogLeveldebug JkOptions +ForwardURIEscaped JkOptions +ForwardDirectories FileETag None ExpiresDefault access plus 4 weeks # 480 weeks FilesMatch \.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$ Header set Cache-Control max-age=490304000, public /FilesMatch ExpiresActive On ExpiresByType image/gif A2592000 ExpiresByType image/png A2592000 ExpiresByType image/jpg A2592000 ExpiresByType image/jpeg A2592000 === end of httpd.conf === Christopher Schultz-2 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nohacks, On 4/30/2009 4:18 PM, nohacks wrote: You can see from my logs that apache returns a 200 for my login page then returns a 404 from It seems to be an issue now and then. It works for a while then it tosses a 404. Maybe after a timeout I really dont know...Hard to recreate. but my logs are full of 404 jsessionid issues... I can tell you how to recreate it: 1. Log out of your application 2. Go to the login page Result: your httpd logs are full of 404 errors for things like mystylesheet.css;jsessionid=32456789 and myloginimage.png;jsessionid=32456789. The problem is that httpd thinks the ;jsesionid is part of the path of the resource, instead of a parameter. You can fix this either with mod_rewrite (which is a bit heavy-handed) or you can use JkStripSession On if you are using a reasonably recent version of mod_jk. Hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkn7UTEACgkQ9CaO5/Lv0PDwwgCcCjjHgsZI6oSDizZPpPxgMoD7 d+4An1SWaF/2Q32jyK2DiULpvPRWB4Hn =iKFe -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://www.nabble.com/I-have-a-problem-with-Apache%2C-Tomcat-tp23322605p23349107.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Database pooling prob
from this stack trace i can find that there is no problem in Tomcat or dbcp. But when i try my postgre from outside application its working fine but when i connect from local tomcat application it not working fine. I disable the firewall and all ... but i keep on getting this stack AbandonedObjectPool is used (org.apache.tomcat.dbcp.dbcp.abandonedobjectp...@d5eb7) LogAbandoned: true RemoveAbandoned: true RemoveAbandonedTimeout: 300 org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880) When i tried the netstat to check my vista ports , at that time i found one wierd line... TCP[::1]:80 Michael:50522 ESTABLISHED TCP[::1]:50522Michael:http ESTABLISHED As my tomcat is listening to 80, i dont know why i dont get the ip address in the netstat result for port 80 alone.. It is surely my tomcat request since only when i make the request its showing... I think the problem in ip only... please any one help.. postgres and tomcat in same system and postgres is watchin to port 5432 only. Arvind * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison*
Re: Basic authentication without a secure connection
Tokajac wrote: Hello! I'm developing a Tomcat, Struts application. I want to send credentials to the Authentication Dialog that's shown by application which is running on another server. With this idea, I'd connect 2 application: the Tomcat application should have a redirection link to the other application. If I can modify the request header, I will add row Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ== http://en.wikipedia.org/wiki/Basic_access_authentication http://en.wikipedia.org/wiki/Basic_access_authentication http://www.ietf.org/rfc/rfc2616.txt http://www.ietf.org/rfc/rfc2616.txt How can I implement this? Now let us get this straight. You would like your Tomcat server to provide access to its own clients, without authentication, to a back-end service which requires authentication. Now why would you want to do that ? And if that is not what you want to do, what do you want to do ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Database pooling prob
if the client and the server are on the same machine, you would get two lines in the netstat output TCP[::1]:80 Michael:50522 ESTABLISHED TCP[::1]:50522Michael:http ESTABLISHED one line is for the server connection, and the other one is for the client connection. Filip S Arvind wrote: from this stack trace i can find that there is no problem in Tomcat or dbcp. But when i try my postgre from outside application its working fine but when i connect from local tomcat application it not working fine. I disable the firewall and all ... but i keep on getting this stack AbandonedObjectPool is used (org.apache.tomcat.dbcp.dbcp.abandonedobjectp...@d5eb7) LogAbandoned: true RemoveAbandoned: true RemoveAbandonedTimeout: 300 org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880) When i tried the netstat to check my vista ports , at that time i found one wierd line... TCP[::1]:80 Michael:50522 ESTABLISHED TCP[::1]:50522Michael:http ESTABLISHED As my tomcat is listening to 80, i dont know why i dont get the ip address in the netstat result for port 80 alone.. It is surely my tomcat request since only when i make the request its showing... I think the problem in ip only... please any one help.. postgres and tomcat in same system and postgres is watchin to port 5432 only. Arvind * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison* - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Database pooling prob
Why ip is missing??? -Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison* On Sun, May 3, 2009 at 2:42 AM, Filip Hanik - Dev Lists devli...@hanik.comwrote: if the client and the server are on the same machine, you would get two lines in the netstat output TCP[::1]:80 Michael:50522 ESTABLISHED TCP[::1]:50522Michael:http ESTABLISHED one line is for the server connection, and the other one is for the client connection. Filip S Arvind wrote: from this stack trace i can find that there is no problem in Tomcat or dbcp. But when i try my postgre from outside application its working fine but when i connect from local tomcat application it not working fine. I disable the firewall and all ... but i keep on getting this stack AbandonedObjectPool is used (org.apache.tomcat.dbcp.dbcp.abandonedobjectp...@d5eb7) LogAbandoned: true RemoveAbandoned: true RemoveAbandonedTimeout: 300 org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880) When i tried the netstat to check my vista ports , at that time i found one wierd line... TCP[::1]:80 Michael:50522 ESTABLISHED TCP[::1]:50522Michael:http ESTABLISHED As my tomcat is listening to 80, i dont know why i dont get the ip address in the netstat result for port 80 alone.. It is surely my tomcat request since only when i make the request its showing... I think the problem in ip only... please any one help.. postgres and tomcat in same system and postgres is watchin to port 5432 only. Arvind * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison* - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: OT: GoDaddy Hosting and Tomcat
This posting raises a question I've long had: What JSP-friendly hosts are to be recommended. I did some searching and came up with a large number of helpful sites, but I'd like to poll the list members on the matter.See the following: http://www.hosting-review.com/hosting-directory/top-10-lists/Top-JSP-Hosting-Companies.shtml I'm seriously consideringhttp://hostpapa.com/hr_offer_green.shtml Thank you. Please visit our website at http://www.geocities.com/evan_j_siegel Thank you. --- On Mon, 4/27/09, George Sexton geor...@mhsoftware.com wrote: From: George Sexton geor...@mhsoftware.com Subject: OT: GoDaddy Hosting and Tomcat To: Tomcat Users List users@tomcat.apache.org Date: Monday, April 27, 2009, 10:44 AM I thought I'd write up my experiences trying to get a servlet application running on GoDaddy. Perhaps it will save someone else some pain. I have a Java Servlet calendar application. It's a stable app and I've got at least a thousand of running copies. I was attempting to install it on GoDaddy's shared Linux hosting service which runs Tomcat 5.0.27. Reading the documentation on their site, it looked like all I had to do was upload the WAR file and wait until 1:00 AM Arizona time and the application should be deployed. I did this and waited. The next day, I found the application had not deployed. A call to technical support revealed that I had to go to a certain corner of the hosting control panel and enable Java language support. I did that and waited until the next day. This is one of the problems with their shared hosting account. ANY change takes until the next day to take effect. The next day, I looked, and the WAR file had been exploded but my App didn't work. Since my App has a dependency on the database, I uploaded a simple JSP to test the DB Connection. It worked. Attempts to view the error logs failed. I called GoDaddy support. The technician told me I need to enable error logging. He walked me through the control panel and I enabled error logging. I waited until the next day. The application still didn't work. When I tried to view the error logs, I got nothing. Another call to technical support revealed that the error logs I had enabled would not actually contain any Tomcat log data. I had my call escalated to a manager. I explained to him the reason I knew my application was not working. I told him the login page was not available. His response was Yeah, there's no file with that name. I told him that the URL was a virtual mapping created in the web.xml file. After literally an hour, they came back on-line and told me that they were going to open a trouble-ticket and call me back. Several hours later, I got an Email from support saying. It doesn't work because there's no file with that name. At this point, I had a funny feeling. I created a simple WAR file with one servlet and a web.xml deployment descriptor. The deployment descriptor mapped three URLs to the servlet: /MapTest.xyz /MapTest.jsp /MapTest.html I waited until the next day. Sure enough, I could access MapTest.xyz, and MapTest.jsp. Attempts to access MapTest.html generated a 404 Not Found error. This explains why my application was not running. All my servlets are mapped into URLs with extension of .html. This was a design decision because customers generally want the maximum visibility to search engines. So, what I found is that GoDaddy.com does not pass all requests into the servlet container. It attempts to service as many requests with Apache first, and then only passes the non-mapped requests into Tomcat. There are some 50 file extensions GoDaddy co-opts including .css, .xml, and .js. This configuration actually causes their deployment of Tomcat to be non-compliant with the Servlet API version 2.3 specification. Section SRV.11.2.1 says that explicit mappings in the deployment descriptor must take precedence over implicit mappings. Taken as a SYSTEM, their deployment of Apache Tomcat is non-compliant. My feeling is that ANY request that maps to a deployed context must be passed to the servlet container. Clearly, they are not doing that. So, after all the effort, I get to tell the customer that my application will not work on their hosting account. Rats. In general, even if your application isn't using servlet mapping I can't recommend them. Since it takes until the next day before you can re-deploy a WAR file, and there are no Tomcat logs available, it would be a really rotten experience. -- George Sexton MH Software, Inc. Voice: +1 303 438 9585 URL: http://www.mhsoftware.com/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Need help on Custom Accesslog
Thanks a lot Rainer, That helps Regards, /VJ On Sat, May 2, 2009 at 4:44 AM, Rainer Jung rainer.j...@kippdata.de wrote: neither received from the client, nor send to it. They are for internal processing means.