Re: 回复: 回复: tomcat 5 logs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 改变自己, On 3/20/14, 10:24 AM, 改变自己 wrote: thank you very much for your detailed explanation , now i just resolved it with another way, i used a cronlog.exe which is a executable file and can be used for produce daily files; Does it actually work? You are just using it in a piped-way like this, right? java (options) | cronolog.exe (options) For some reason, I've never trusted long-running pipes on Windows... and other configration is the same as my primary way. Glad you solved your issue. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTLIW2AAoJEBzwKT+lPKRYFrEQAMh8qgx8zR7tNvH84qI924WL ya7v1Sw3hoT5H805YIUznyR4ystq9M66dXfJrykftaeffqcl183qrBbCfO6GziqO HoQyt/l3G2wEBU5Dd5Qary17n5/di7hl0WmjQuyHu3Tyh4sxEYHAh3OOe9T5OYxO Cg1JiMoYQV25jwOYkGT8kQyTXirpP4gXJ7IiVK8x7CSNfH1QraA/8PdRWPo5w42s yJpEjNsWt+SQhWgDa/g6ACn7QcPk0vyPfxxO1v9XrFA5JHnRvWJMziRKAJ4WA3Fq YDHPzBrqjp0d11nhW1hn5KnYjFoUfdro8ez4lMqv+3vntbijQMd5Nx8oEHEKMAmA cN+ZouuEElDIduUiBRRXmFShm/9UdZGH/GI2t0E+xJMKtJkJrG5UrbgNvusVVo3A GT9i4ImsvwwG6P1QLKaRu2Zceyv6LpLvID1hVuMnNsS+eWX2cO1vGrWhG+7pJlq3 xg6zm+72LHH3b+CS/u4eS+J6HeZ6qBxtHdszH45h804bm6QS0l8xEOroFEfTfYaD aSb4Ngu3g9KvWNYPwe1B0ANPXn/dLz97vIzW84KXK96zvuyJCSgoguQvJGcTpIxS hLmhBtaJSaszuGj3E47nn5ZmnhQQDU3fLy3W7HnL4Ka0hYde97tldXGlPHNTL88S maUWwlWYH8LZ+B3625Wn =zujf -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: 回复: tomcat 5 logs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 改变自己, On 3/20/14, 12:30 AM, 改变自己 wrote: the source of my problem is that in the application ,we just used many system.out sentence as a log output instead of using log4j, because it is really a old applicaiton ; now we need to capture the the system.out information as a log; You should take a look at the swallowOutput setting for your Context element. You can find documentation about it here: https://tomcat.apache.org/tomcat-5.5-doc/config/context.html Setting swallowOutput=true will cause System.out and System.err within the application to be routed to the context-logger, which you should be able to redirect to a rotatable log file. To configure the context logger, edit Tomcat's conf/logging.properties file. There should already be some configuration like this: org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.FileHandler org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.FileHandler These lines configure loggers for specific applications: the first pair of lines set up the logger for the manager application while the second pair configure those for the host-manager application. To set up one for your own application, do the following: Create a new handler (what actually writes to a file): 10my-context-path.org.apache.juli.FileHandler.level = FINE 10my-context-path.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 10my-context-path.org.apache.juli.FileHandler.prefix = my-context-path. Configure the context to write to the handler: org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/my-context-path].handler=10my-context-path-handler.org.apache.juli.FileHandler Set the logging level: org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/my-context-path].level=INFO (or ERROR, WARN, FINE, FINEST, ALL) The above, along with swallowOutput=true will take System.out.println(Some log message) from your web application deployed to /my-context-path and put it into CATALINA_BASE/logs/my-context-path.[-MM-dd].log. The file should be automatically rotated daily. In case it's not obvious, the my-context-path text above should be replaced with whatever your webapp's context path actually is. You can call the log filename anything you want, and you can name the logger (almost) anything you want -- check the documentation[1] -- but the line with the [Catalina].[localhost].[/my-context-path] must match your Service/Host/Context names (note the leading '/' in the context path in the final portion of the logger name). Finally, you should really upgrade. Tomcat 5 has been retired quite some time ago, and Tomcat 6 will be considered for the chopping block once Tomcat 8 is released. Fortunately, all of the above logging configuration is available in Tomcat 5.5, 6.0, 7.0, and 8.0 so it should still work for you if you upgrade. Good luck, - -chris [1] https://tomcat.apache.org/tomcat-5.5-doc/logging.html#java.util.logging -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTKvb9AAoJEBzwKT+lPKRYTKwQALKn+WqCHpEZpR6u4xt78cL3 wGceVd5nofSO0AK5A+FWFp80BhMWtucObmk11F4ZkasaLokFxQxmscA6UZt6pT7+ GCgM65R9uNvUqf15c/rL6KytKpI2mXvQRc4I+/HCIwZnELIu0+2j1BVoZsrB0Ms6 rBetukD/pHdWub5lPQGmOlgwt0tlb6Yam93+h9KpAd1CZLmpAHIY6pVZeDcX1ZNC j3MqMUspQxo0+SIH+RQ0MFwbWwsZ0aPM4rulGGXDJtlVQZNpcDeL94YbucC5Remt yDnmWQOuAZ/tyXsbbAfZWLRMtAEftMEsdFnYXDqXSKv71Un6NpoLOUvsSMqHYuyh +IgiOqkpNiZUjQdJPztXZNFxOZWtlGJd3A60NGWU+5X2ZnDRfJ4dbCTBHsEFG4Fy I/YIYhQQFuEj3ANsfpTjBSRhPtpeVlR65CUcReSEaM9hkDs4DKS2HLt15gzUSUIa vRFoALkihS7esqrjhd+/Rexy/loz8kGX2tqGchj8DgENO2XL6FG/9QCu6p/Wv6kc XXVsRKBkImE45YrVqjFnQNmjDhvckXr6nL/9lKE0gOkWWPneiDu3KXK0Vb3qFtf0 ASW7nC/umCOgdm5ERyGQhYm4Jry5Lco76BaUfSvtz9lFpMaiyk3yjunNVvcG/qVe YiQQU321q/pgARYMHoMH =5dC/ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
?????? ?????? tomcat 5 logs
thank you very much for your detailed explanation , now i just resolved it with another way, i used a cronlog.exe which is a executable file and can be used for produce daily files; and other configration is the same as my primary way. thank you all the same! best regards -- -- ??: Christopher Schultz;ch...@christopherschultz.net; : 2014??3??20??(??) 10:11 ??: Tomcat Users Listusers@tomcat.apache.org; : Re: ?? tomcat 5 logs -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 , On 3/20/14, 12:30 AM, wrote: the source of my problem is that in the application ,we just used many system.out sentence as a log output instead of using log4j, because it is really a old applicaiton ; now we need to capture the the system.out information as a log; You should take a look at the swallowOutput setting for your Context element. You can find documentation about it here: https://tomcat.apache.org/tomcat-5.5-doc/config/context.html Setting swallowOutput=true will cause System.out and System.err within the application to be routed to the context-logger, which you should be able to redirect to a rotatable log file. To configure the context logger, edit Tomcat's conf/logging.properties file. There should already be some configuration like this: org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.FileHandler org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.FileHandler These lines configure loggers for specific applications: the first pair of lines set up the logger for the manager application while the second pair configure those for the host-manager application. To set up one for your own application, do the following: Create a new handler (what actually writes to a file): 10my-context-path.org.apache.juli.FileHandler.level = FINE 10my-context-path.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 10my-context-path.org.apache.juli.FileHandler.prefix = my-context-path. Configure the context to write to the handler: org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/my-context-path].handler=10my-context-path-handler.org.apache.juli.FileHandler Set the logging level: org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/my-context-path].level=INFO (or ERROR, WARN, FINE, FINEST, ALL) The above, along with swallowOutput=true will take System.out.println(Some log message) from your web application deployed to /my-context-path and put it into CATALINA_BASE/logs/my-context-path.[-MM-dd].log. The file should be automatically rotated daily. In case it's not obvious, the my-context-path text above should be replaced with whatever your webapp's context path actually is. You can call the log filename anything you want, and you can name the logger (almost) anything you want -- check the documentation[1] -- but the line with the [Catalina].[localhost].[/my-context-path] must match your Service/Host/Context names (note the leading '/' in the context path in the final portion of the logger name). Finally, you should really upgrade. Tomcat 5 has been retired quite some time ago, and Tomcat 6 will be considered for the chopping block once Tomcat 8 is released. Fortunately, all of the above logging configuration is available in Tomcat 5.5, 6.0, 7.0, and 8.0 so it should still work for you if you upgrade. Good luck, - -chris [1] https://tomcat.apache.org/tomcat-5.5-doc/logging.html#java.util.logging -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTKvb9AAoJEBzwKT+lPKRYTKwQALKn+WqCHpEZpR6u4xt78cL3 wGceVd5nofSO0AK5A+FWFp80BhMWtucObmk11F4ZkasaLokFxQxmscA6UZt6pT7+ GCgM65R9uNvUqf15c/rL6KytKpI2mXvQRc4I+/HCIwZnELIu0+2j1BVoZsrB0Ms6 rBetukD/pHdWub5lPQGmOlgwt0tlb6Yam93+h9KpAd1CZLmpAHIY6pVZeDcX1ZNC j3MqMUspQxo0+SIH+RQ0MFwbWwsZ0aPM4rulGGXDJtlVQZNpcDeL94YbucC5Remt yDnmWQOuAZ/tyXsbbAfZWLRMtAEftMEsdFnYXDqXSKv71Un6NpoLOUvsSMqHYuyh +IgiOqkpNiZUjQdJPztXZNFxOZWtlGJd3A60NGWU+5X2ZnDRfJ4dbCTBHsEFG4Fy I/YIYhQQFuEj3ANsfpTjBSRhPtpeVlR65CUcReSEaM9hkDs4DKS2HLt15gzUSUIa vRFoALkihS7esqrjhd+/Rexy/loz8kGX2tqGchj8DgENO2XL6FG/9QCu6p/Wv6kc XXVsRKBkImE45YrVqjFnQNmjDhvckXr6nL/9lKE0gOkWWPneiDu3KXK0Vb3qFtf0 ASW7nC/umCOgdm5ERyGQhYm4Jry5Lco76BaUfSvtz9lFpMaiyk3yjunNVvcG/qVe YiQQU321q/pgARYMHoMH =5dC/ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org .
tomcat 5 logs
hello ,my friends now my boss let me get the tomcat console information(including the startup information and visit information ) and store it in a file; at the same time the file must be produced automaticlly every day; now i configed the startup.bat file which can get the the information i need ,but can not automatically produced a file every day; here is the configuration : I just changed the: call %EXECUTABLE% start %CMD_LINE_ARGS% to call %EXECUTABLE% run %CMD_LINE_ARGS% ..\logs\catalina.%date:~0,10%.out best regards
Re: tomcat 5 logs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 改变自己, On 3/19/14, 6:03 AM, 改变自己 wrote: now my boss let me get the tomcat console information(including the startup information and visit information ) and store it in a file; at the same time the file must be produced automaticlly every day; Do you mean that you want to get a different file every day for catalina.out? now i configed the startup.bat file which can get the the information i need ,but can not automatically produced a file every day; here is the configuration : I just changed the: call %EXECUTABLE% start %CMD_LINE_ARGS% to call %EXECUTABLE% run %CMD_LINE_ARGS% ..\logs\catalina.%date:~0,10%.out That will only work if you re-start Tomcat every day, because the filename is only evaluated when you launch Tomcat. If you want to restart Tomcat every day, then this will work. If you want to let it run for a long time (many days), you'll need to do something different. On Windows... I'm not sure what options are available for rotating the stdout file. On *NIX, if you use jsvc, you can move the existing file and then send a signal to the jsvc process which will close and re-open the old file. Perhaps that can be done on Windows, but you can no longer use startup.bat to launch Tomcat: you'll have to use a Windows Service instead. Let me ask about the source of the problem: are you getting lots and lots of things logging to stdout / catalina.out? If so, why? There shouldn't be a lot of stuff going to that log file. Instead, the logs should be going to an application-specific log file that can be rotated more easily. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTKaFmAAoJEBzwKT+lPKRYDlcQAIsbzdHgx79hky60+i/KVXs8 Q2m+AJS7sIe31GOxYvecZRjgW3LHA2LVe0kDRk4wVZIjBBqCKpdf6i4cjrEk+WxM qlSfrCEhpi9r1C0LEG56bnUFeLjKQ050FDKKOPZgx3aokKe6B/aUp4G+YPvqTZTw YjYEMjz8Xz+dfoOSD3qYXLNxlJJ+SG3kTqEwC2FLuKVHQI6vOLeHZtVeSII6cYhD veZeSLBqg68MrgGcbF50+s4t5LMVvPC0rwV2RbEPoJzBEaeVklEVrrmBH6BSfPIc DIFU7Vk1gnYONpGXdf+ZrKQ3NGav1AiEtWGxzoTg4bzGl6N5i/Rt618sOydQfzs+ pptWb1f+7xbrq6ZSzg/3JY4eCM45/PwwLVTc8uF363t4Pk+Mjos6kM6pkhuCZd5C gLApsqFAtzS1y++0b5jvsCXHVotCkZn9RVcIcNxva0afl0I4ZwM38ASADQIFNheh iF5v0fy6EaHmvHFAnK4VXhsYC43EPf96QAg2P76U9+64Pbxa6PVqOmR4KTqLvd7r Hb89Wzc8QfJmW5C5tGEkYrphnQA5iUVq6TnwaOJf+a8c2oplzaB6Grg+i4p6XDlY ktdVYyr3ggUMKpP7i4swaBXqSuyZyggyooV/eLwXRe0Wadab2gUoNCiG7Qi2fDJc 02ciR5Tw+pUqlG3wBBWZ =1tir -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
?????? tomcat 5 logs
the source of my problem is that in the application ,we just used many system.out sentence as a log output instead of using log4j, because it is really a old applicaiton ; now we need to capture the the system.out information as a log; your answer : On Windows... I'm not sure what options are available for rotating the stdout file. On *NIX, if you use jsvc, you can move the existing file and then send a signal to the jsvc process which will close and re-open the old file. Perhaps that can be done on Windows, but you can no longer use startup.bat to launch Tomcat: you'll have to use a Windows Service instead. I know very less about *nix system. so I really can not understand the approach ; would you please be more specific? thank you -- -- ??: Christopher Schultz;ch...@christopherschultz.net; : 2014??3??19??(??) 9:53 ??: Tomcat Users Listusers@tomcat.apache.org; : Re: tomcat 5 logs -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 , On 3/19/14, 6:03 AM, wrote: now my boss let me get the tomcat console information(including the startup information and visit information ) and store it in a file; at the same time the file must be produced automaticlly every day; Do you mean that you want to get a different file every day for catalina.out? now i configed the startup.bat file which can get the the information i need ,but can not automatically produced a file every day; here is the configuration : I just changed the: call %EXECUTABLE% start %CMD_LINE_ARGS% to call %EXECUTABLE% run %CMD_LINE_ARGS% ..\logs\catalina.%date:~0,10%.out That will only work if you re-start Tomcat every day, because the filename is only evaluated when you launch Tomcat. If you want to restart Tomcat every day, then this will work. If you want to let it run for a long time (many days), you'll need to do something different. On Windows... I'm not sure what options are available for rotating the stdout file. On *NIX, if you use jsvc, you can move the existing file and then send a signal to the jsvc process which will close and re-open the old file. Perhaps that can be done on Windows, but you can no longer use startup.bat to launch Tomcat: you'll have to use a Windows Service instead. Let me ask about the source of the problem: are you getting lots and lots of things logging to stdout / catalina.out? If so, why? There shouldn't be a lot of stuff going to that log file. Instead, the logs should be going to an application-specific log file that can be rotated more easily. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTKaFmAAoJEBzwKT+lPKRYDlcQAIsbzdHgx79hky60+i/KVXs8 Q2m+AJS7sIe31GOxYvecZRjgW3LHA2LVe0kDRk4wVZIjBBqCKpdf6i4cjrEk+WxM qlSfrCEhpi9r1C0LEG56bnUFeLjKQ050FDKKOPZgx3aokKe6B/aUp4G+YPvqTZTw YjYEMjz8Xz+dfoOSD3qYXLNxlJJ+SG3kTqEwC2FLuKVHQI6vOLeHZtVeSII6cYhD veZeSLBqg68MrgGcbF50+s4t5LMVvPC0rwV2RbEPoJzBEaeVklEVrrmBH6BSfPIc DIFU7Vk1gnYONpGXdf+ZrKQ3NGav1AiEtWGxzoTg4bzGl6N5i/Rt618sOydQfzs+ pptWb1f+7xbrq6ZSzg/3JY4eCM45/PwwLVTc8uF363t4Pk+Mjos6kM6pkhuCZd5C gLApsqFAtzS1y++0b5jvsCXHVotCkZn9RVcIcNxva0afl0I4ZwM38ASADQIFNheh iF5v0fy6EaHmvHFAnK4VXhsYC43EPf96QAg2P76U9+64Pbxa6PVqOmR4KTqLvd7r Hb89Wzc8QfJmW5C5tGEkYrphnQA5iUVq6TnwaOJf+a8c2oplzaB6Grg+i4p6XDlY ktdVYyr3ggUMKpP7i4swaBXqSuyZyggyooV/eLwXRe0Wadab2gUoNCiG7Qi2fDJc 02ciR5Tw+pUqlG3wBBWZ =1tir -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org .
Re: Tomcat 5 Repository
2014-02-04 Pavneet singh Kochhar kochha...@gmail.com: On Tue, Feb 4, 2014 at 4:08 AM, Konstantin Kolinko knst.koli...@gmail.comwrote: On Wed, Jan 29, 2014 at 2:59 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: 3. What tools are you using? Do you know how to use those tools? Currently I am using SVN to examine the commit logs. 4. Tomcat 5.5 and earlier consist of several components (build, connectors, container, jasper, servletapi). Each of those was a separate project. Each of those had its own trunk/tags/branches structure Each of those has its own svn history. I am interested in commit logs related to all the components since I would want to know which files were changed during bug fixing. Two ways: a) Get log for each one and combine them b) Get log for the root ('/tomcat/') Do not forget to use '--limit' argument when using 'svn log' command. E.g. 'svn log --limit 100' (By default svn log does not have a limit, which is a burden on the server). 5. Source code for older versions of Tomcat was migrated from CVS. CVS does not save history when files are renamed or copied. Ok, is it possible to get the CVS repository or any other option where I can get commit logs. The logs are there. I am just saying that it may be a bit harder to follow those. If you are looking for an old change, you may have to look for Tomcat 4 or earlier sources for the same-named file. No, i am only interested in commit logs associated with Tomcat5. 6. All commit e-mails can be found in mailing list archives. Ok In short, I need all the commit logs (Tomcat5 only) which I can examine to find the fixes for bugs. From these fixes, I can get the information about the files changed. Thanks for the help! If you know the bug number, it is easier to search mailing list (dev@) archive for commit e-mail with that bug number. If you know the text in changelog.xml, you can search for that text. If you know in what version an issue was fixed, you can perform svn diff between versions and get a list of changed files. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 5 Repository
On Wed, Jan 29, 2014 at 2:59 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: At least you've got the right mailing list this time. No idea where you were looking, but the 5.0 and 5.5 are pretty obvious when you look in the places linked to from the Tomcat home page: http://archive.apache.org/dist/tomcat/ http://svn.apache.org/repos/asf/tomcat/archive/ 2014-02-03 Pavneet singh Kochhar kochha...@gmail.com: Thanks for the help Chuck! 1. Follow the rules http://tomcat.apache.org/lists.html#tomcat-users - 6. Do not top-post. I checked the svn repository but coudn't really figure out how to get the commit logs which shows the files changed for Tomcat5. The commits show something like r588813 | markt | 2007-10-27 08:11:17 +0800 (Sat, 27 Oct 2007) | 1 line archive prep r588811 | markt | 2007-10-27 08:10:25 +0800 (Sat, 27 Oct 2007) | 1 line Create folder for 5.0.x archive which I believe are related to adding files to archive etc. However, I require the files changed during commits. 2. What are you trying to do and why? What is your goal? 3. What tools are you using? Do you know how to use those tools? 4. Tomcat 5.5 and earlier consist of several components (build, connectors, container, jasper, servletapi). Each of those was a separate project. Each of those had its own trunk/tags/branches structure Each of those has its own svn history. 5. Source code for older versions of Tomcat was migrated from CVS. CVS does not save history when files are renamed or copied. If you are looking for an old change, you may have to look for Tomcat 4 or earlier sources for the same-named file. 6. All commit e-mails can be found in mailing list archives. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 5 Repository
On Tue, Feb 4, 2014 at 4:08 AM, Konstantin Kolinko knst.koli...@gmail.comwrote: On Wed, Jan 29, 2014 at 2:59 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: At least you've got the right mailing list this time. No idea where you were looking, but the 5.0 and 5.5 are pretty obvious when you look in the places linked to from the Tomcat home page: http://archive.apache.org/dist/tomcat/ http://svn.apache.org/repos/asf/tomcat/archive/ 2014-02-03 Pavneet singh Kochhar kochha...@gmail.com: Thanks for the help Chuck! 1. Follow the rules http://tomcat.apache.org/lists.html#tomcat-users - 6. Do not top-post. OK I checked the svn repository but coudn't really figure out how to get the commit logs which shows the files changed for Tomcat5. The commits show something like r588813 | markt | 2007-10-27 08:11:17 +0800 (Sat, 27 Oct 2007) | 1 line archive prep r588811 | markt | 2007-10-27 08:10:25 +0800 (Sat, 27 Oct 2007) | 1 line Create folder for 5.0.x archive which I believe are related to adding files to archive etc. However, I require the files changed during commits. 2. What are you trying to do and why? What is your goal? I am a researcher and want to examine the commit logs of Tomcat5. I have some bug reports associated with Tomcat5 and I wish to know which commits fixed a particular bug correspondingly which files were changed to fix that bug. 3. What tools are you using? Do you know how to use those tools? Currently I am using SVN to examine the commit logs. 4. Tomcat 5.5 and earlier consist of several components (build, connectors, container, jasper, servletapi). Each of those was a separate project. Each of those had its own trunk/tags/branches structure Each of those has its own svn history. I am interested in commit logs related to all the components since I would want to know which files were changed during bug fixing. 5. Source code for older versions of Tomcat was migrated from CVS. CVS does not save history when files are renamed or copied. Ok, is it possible to get the CVS repository or any other option where I can get commit logs. If you are looking for an old change, you may have to look for Tomcat 4 or earlier sources for the same-named file. No, i am only interested in commit logs associated with Tomcat5. 6. All commit e-mails can be found in mailing list archives. Ok In short, I need all the commit logs (Tomcat5 only) which I can examine to find the fixes for bugs. From these fixes, I can get the information about the files changed. Thanks for the help! Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 5 Repository
Thanks for the help Chuck! I checked the svn repository but coudn't really figure out how to get the commit logs which shows the files changed for Tomcat5. The commits show something like r588813 | markt | 2007-10-27 08:11:17 +0800 (Sat, 27 Oct 2007) | 1 line archive prep r588811 | markt | 2007-10-27 08:10:25 +0800 (Sat, 27 Oct 2007) | 1 line Create folder for 5.0.x archive which I believe are related to adding files to archive etc. However, I require the files changed during commits. Any help would be highly appreciated! Thanks! On Wed, Jan 29, 2014 at 2:59 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Pavneet singh Kochhar [mailto:kochha...@gmail.com] Subject: Fwd: Tomcat 5 Repository I searched the source code of Tomcat5 (git or svn repository) but could not find it in the archives. At least you've got the right mailing list this time. No idea where you were looking, but the 5.0 and 5.5 are pretty obvious when you look in the places linked to from the Tomcat home page: http://archive.apache.org/dist/tomcat/ http://svn.apache.org/repos/asf/tomcat/archive/ BTW, no one should be using Tomcat 5.0 or 5.5 anymore. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Fwd: Tomcat 5 Repository
Hello, I searched the source code of Tomcat5 (git or svn repository) but could not find it in the archives. Kindly let me know where I can get it. I need the git or svn repository since I require the commit messages as well. Thank you! Regards, Pavneet
RE: Tomcat 5 Repository
From: Pavneet singh Kochhar [mailto:kochha...@gmail.com] Subject: Fwd: Tomcat 5 Repository I searched the source code of Tomcat5 (git or svn repository) but could not find it in the archives. At least you've got the right mailing list this time. No idea where you were looking, but the 5.0 and 5.5 are pretty obvious when you look in the places linked to from the Tomcat home page: http://archive.apache.org/dist/tomcat/ http://svn.apache.org/repos/asf/tomcat/archive/ BTW, no one should be using Tomcat 5.0 or 5.5 anymore. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 7 adds jsessionid in request URI as opposed to Tomcat 5
Thanks for all the replies. I can not go cookie way because application has to work without cookies. I did lot of investigation but couldn't find why it is working in Tomcat 5 not in Tomcat 7. At the end, I circumvented this issue with help of regular expressions in urlrewrite filter. I wrote different regular expressions to identify jsessionid and converted upper case request URI to lower case and again appended jsessionid with new URI. But I have to take care of jsessionid in each of the rule I have written. Hopefully, I will be able to optimize / find out better solution for the same. Javed wrote: I was using Tomcat 5.0.28 before using Tomcat 7.0.16. The application was working perfectly fine. Recently, we have migrated from Tomcat 5 to Tomcat 7. The application works fine for most of the part but gives problem with URLRewriteFilter. I have used URLRewriteFilter to convert Capital case request URI to lowercase and SEO purpose. The capital case convert rule looks like .. -Javed Attar -- View this message in context: http://old.nabble.com/Tomcat-7-adds-jsessionid-in-request-URI-as-opposed-to-Tomcat-5-tp32192166p32448606.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: Tomcat 7 adds jsessionid in request URI as opposed to Tomcat 5
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Javed, On 9/12/2011 10:54 AM, Javed wrote: At the end, I circumvented this issue with help of regular expressions in urlrewrite filter. I wrote different regular expressions to identify jsessionid and converted upper case request URI to lower case and again appended jsessionid with new URI. But I have to take care of jsessionid in each of the rule I have written. Can't you just have one rule that normalizes the case and then other rules that do other things? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk5ugRMACgkQ9CaO5/Lv0PDbmQCguTn4xqHR9wAmc7TfITW7+73Z W7wAni+++mYb4Boax4s1M/yBqZGz2OVX =LSat -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 7 adds jsessionid in request URI as opposed to Tomcat 5
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 刘铎, On 8/4/2011 10:23 PM, 刘铎 wrote: I'm using Tomcat 6.0.24. As I know, jsessionid could be returned to the tomcat by urlrewriting or cookie. Why not use cookie instead? In this case, Tomcat cannot determine if cookies are supported, yet, so the URL will be re-written in any case. The OP will have to fix the operation of the rewrite filter. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk5AC9MACgkQ9CaO5/Lv0PCv5gCfax1IHGgEjfeLZPB+dvxZ8rwi FigAn0lls7Pv02t41zvhOVYsaPdsfoVJ =tBnA -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 7 adds jsessionid in request URI as opposed to Tomcat 5
On 4 Aug 2011, at 08:23, Javed javed.at...@gmail.com wrote: I was using Tomcat 5.0.28 before using Tomcat 7.0.16. The application was working perfectly fine. Recently, we have migrated from Tomcat 5 to Tomcat 7. The application works fine for most of the part but gives problem with URLRewriteFilter. I have used URLRewriteFilter to convert Capital case request URI to lowercase and SEO purpose. The capital case convert rule looks like rule match-type=regex nameForce URL filenames to lower case/name noteRedirect rule to convert capital case URLs to small case with parameters/note condition type=request-uri casesensitive=true next=or^/.*[A-Z].*/condition from^/(.*)\?.*/from to type=permanent-redirect last=true%{context-path}/${lower:$1}?%{query-string}/to /rule when this rule processed in Tomcat 5, it is processed against request URI //y/zz (excluding quotes) where part of request URI is in capital case i.e. During redirect URL is encoded which appends jsessionid. The redirected URL looks like //y/zz;jessionid=A226083725B7B955569D86710420D1DF When browser calls above URL after redirect the new request is processed. Now the request URI becomes //y/zz so it will not go to capital case rule and will be processed against SEO rules. In Tomcat 7 if I try the same URL which has request URI i.e. //y/zz (excluding quotes) where part of request URI is in capital case i.e. During redirect URL is encoded which appends jsessionid. The redirected URL looks like //y/zz;jessionid=BCE91A85A66AAFF384E854D59E5AC877 When browser calls above URL after redirect the new request is processed. Now the request URI becomes //y/zz;jessionid=BCE91A85A66AAFF384E854D59E5AC877 Here it breaks for me on Tomcat 7 The jsessionid is part of request URI. So, in Tomcat 7 the lowercase session id isn't being recognised and another one is appended by the URL rewrite filter, or your JSP? You could modify the regex to select just the path part of the request. p Hence it again goes to capital case rule which it shouldn't. Then again same thing happens and new jsessionid is appended to URL as shown in following URI //y/zz;jsessionid=bce91a85a66aaff384e854d59e5ac877;jsessionid=BCE91A85A66AAFF384E854D59E5AC877 This goes on happening in infinite loop and browser throws error Page isn't redirecting properly Can anybody tell me what feature/change in Tomcat 7 responsible for this behavior? I will really appreciate any help on this. Thanks in advance. -Javed Attar -- View this message in context: http://old.nabble.com/Tomcat-7-adds-jsessionid-in-request-URI-as-opposed-to-Tomcat-5-tp32192166p32192166.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 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat 7 adds jsessionid in request URI as opposed to Tomcat 5
I was using Tomcat 5.0.28 before using Tomcat 7.0.16. The application was working perfectly fine. Recently, we have migrated from Tomcat 5 to Tomcat 7. The application works fine for most of the part but gives problem with URLRewriteFilter. I have used URLRewriteFilter to convert Capital case request URI to lowercase and SEO purpose. The capital case convert rule looks like rule match-type=regex nameForce URL filenames to lower case/name noteRedirect rule to convert capital case URLs to small case with parameters/note condition type=request-uri casesensitive=true next=or^/.*[A-Z].*/condition from^/(.*)\?.*/from to type=permanent-redirect last=true%{context-path}/${lower:$1}?%{query-string}/to /rule when this rule processed in Tomcat 5, it is processed against request URI //y/zz (excluding quotes) where part of request URI is in capital case i.e. During redirect URL is encoded which appends jsessionid. The redirected URL looks like //y/zz;jessionid=A226083725B7B955569D86710420D1DF When browser calls above URL after redirect the new request is processed. Now the request URI becomes //y/zz so it will not go to capital case rule and will be processed against SEO rules. In Tomcat 7 if I try the same URL which has request URI i.e. //y/zz (excluding quotes) where part of request URI is in capital case i.e. During redirect URL is encoded which appends jsessionid. The redirected URL looks like //y/zz;jessionid=BCE91A85A66AAFF384E854D59E5AC877 When browser calls above URL after redirect the new request is processed. Now the request URI becomes //y/zz;jessionid=BCE91A85A66AAFF384E854D59E5AC877 Here it breaks for me on Tomcat 7 The jsessionid is part of request URI. Hence it again goes to capital case rule which it shouldn't. Then again same thing happens and new jsessionid is appended to URL as shown in following URI //y/zz;jsessionid=bce91a85a66aaff384e854d59e5ac877;jsessionid=BCE91A85A66AAFF384E854D59E5AC877 This goes on happening in infinite loop and browser throws error Page isn't redirecting properly Can anybody tell me what feature/change in Tomcat 7 responsible for this behavior? I will really appreciate any help on this. Thanks in advance. -Javed Attar -- View this message in context: http://old.nabble.com/Tomcat-7-adds-jsessionid-in-request-URI-as-opposed-to-Tomcat-5-tp32192166p32192166.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: Tomcat 7 adds jsessionid in request URI as opposed to Tomcat 5
I'm using Tomcat 6.0.24. As I know, jsessionid could be returned to the tomcat by urlrewriting or cookie. Why not use cookie instead? 2011/8/4 Javed javed.at...@gmail.com: I was using Tomcat 5.0.28 before using Tomcat 7.0.16. The application was working perfectly fine. Recently, we have migrated from Tomcat 5 to Tomcat 7. The application works fine for most of the part but gives problem with URLRewriteFilter. I have used URLRewriteFilter to convert Capital case request URI to lowercase and SEO purpose. The capital case convert rule looks like rule match-type=regex nameForce URL filenames to lower case/name noteRedirect rule to convert capital case URLs to small case with parameters/note condition type=request-uri casesensitive=true next=or^/.*[A-Z].*/condition from^/(.*)\?.*/from to type=permanent-redirect last=true%{context-path}/${lower:$1}?%{query-string}/to /rule when this rule processed in Tomcat 5, it is processed against request URI //y/zz (excluding quotes) where part of request URI is in capital case i.e. During redirect URL is encoded which appends jsessionid. The redirected URL looks like //y/zz;jessionid=A226083725B7B955569D86710420D1DF When browser calls above URL after redirect the new request is processed. Now the request URI becomes //y/zz so it will not go to capital case rule and will be processed against SEO rules. In Tomcat 7 if I try the same URL which has request URI i.e. //y/zz (excluding quotes) where part of request URI is in capital case i.e. During redirect URL is encoded which appends jsessionid. The redirected URL looks like //y/zz;jessionid=BCE91A85A66AAFF384E854D59E5AC877 When browser calls above URL after redirect the new request is processed. Now the request URI becomes //y/zz;jessionid=BCE91A85A66AAFF384E854D59E5AC877 Here it breaks for me on Tomcat 7 The jsessionid is part of request URI. Hence it again goes to capital case rule which it shouldn't. Then again same thing happens and new jsessionid is appended to URL as shown in following URI //y/zz;jsessionid=bce91a85a66aaff384e854d59e5ac877;jsessionid=BCE91A85A66AAFF384E854D59E5AC877 This goes on happening in infinite loop and browser throws error Page isn't redirecting properly Can anybody tell me what feature/change in Tomcat 7 responsible for this behavior? I will really appreciate any help on this. Thanks in advance. -Javed Attar -- View this message in context: http://old.nabble.com/Tomcat-7-adds-jsessionid-in-request-URI-as-opposed-to-Tomcat-5-tp32192166p32192166.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 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Enable Security Manager in Tomcat 5
Good day! For testing purposes I have setup a website to run in Tomcat 5, Tomcat 6, and Tomcat 7. The site runs on Windows Server 2008 R2, and I used the service.bat to install the windows service so that I can start and stop the site. When it came to enable the security manager, I read from the web somewhere that suggested to add the following code into service.bat: %EXECUTABLE% //US//%SERVICE_NAME% ++JvmOptions -Djava.security.manager %EXECUTABLE% //US//%SERVICE_NAME% ++JvmOptions -Djava.security.policy==c:\mywebapp\conf\catalina.policy I did accordingly for all three versions of Tomcat. This worked for my website in Tomcat 6 and 7. However, when starting the Tomcat 5 service, the service could not start. Reviewing the stderr log file I see this information: java.security.AccessControlException: access denied (java.util..PropertyPermission catalina.home read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) at java.security.AccessController.checkPermission(AccessController.java:546) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285) at java.lang.System.getProperty(System.java:650) at org.apache.catalina.startup.Bootstrap.setCatalinaHome(Bootstrap.java:478) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:210) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:410) I then tried to put the following into catalina.policy but it didn't help. grant { permission java.util.PropertyPermission catalina.home, read; }; I have tried to google further, but so far haven't found the solution. If anyone knows what I should do, it will be very much appreciated for pointing me to the right direction. Thanks in advance Conway
Re: Enable Security Manager in Tomcat 5
After a days google, trial and error, I finally realised that the person who migrated the website from linux to Windows did not change the paths in catalina.policy. I got a fresh copy of catalina.policy from Tomcat 5 installation and re-add my bits of security settings and it is working now. Conway From: Conway Liu c...@xtra.co.nz To: users@tomcat.apache.org Sent: Thu, 12 May, 2011 11:37:17 AM Subject: Enable Security Manager in Tomcat 5 Good day! For testing purposes I have setup a website to run in Tomcat 5, Tomcat 6, and Tomcat 7. The site runs on Windows Server 2008 R2, and I used the service.bat to install the windows service so that I can start and stop the site. When it came to enable the security manager, I read from the web somewhere that suggested to add the following code into service.bat: %EXECUTABLE% //US//%SERVICE_NAME% ++JvmOptions -Djava..security.manager %EXECUTABLE% //US//%SERVICE_NAME% ++JvmOptions -Djava.security.policy==c:\mywebapp\conf\catalina.policy I did accordingly for all three versions of Tomcat. This worked for my website in Tomcat 6 and 7. However, when starting the Tomcat 5 service, the service could not start. Reviewing the stderr log file I see this information: java.security.AccessControlException: access denied (java.util...PropertyPermission catalina.home read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) at java.security.AccessController.checkPermission(AccessController.java:546) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285) at java.lang.System.getProperty(System.java:650) at org.apache.catalina.startup.Bootstrap.setCatalinaHome(Bootstrap.java:478) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:210) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:410) I then tried to put the following into catalina.policy but it didn't help. grant { permission java.util.PropertyPermission catalina.home, read; }; I have tried to google further, but so far haven't found the solution. If anyone knows what I should do, it will be very much appreciated for pointing me to the right direction. Thanks in advance Conway
Re: Slow SSL connections after Tomcat 5 to 7 migration
W dniu 2011-05-05 18:50, Christopher Schultz pisze: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michał, On 5/5/2011 10:21 AM, Michał Kapituła wrote: I thought that seperate SSL Handshake could be made for each of the requests, but I can't see such behaviour in the dumps. Only one or zero threads commiting a handshake, others appear to autoaccept it (maybe not a precise term). [snip] No, nothing changed. Btw - the Tomcat version is 7.0.12 and JDK's is 6.0.14 If you are using the BIO connector (which it looks like you are due to org.apache.coyote.http11.Http11Protocol in yourConnector), then Tomcat doesn't have a great deal of control over the SSL handshake, etc. process. That's all up to the JRE itself since all of the SSL implementation comes from there. Tomcat can affect certain things like the ciphers used, etc. but basically everything is done by the runtime, not by Tomcat. Can you double-check to see if you are using the APR versions of the HTTP connectors? The best way to tell what's going on is to look at the startup messages when the connectors initialize themselves and emit a short log message to catalina.out. That will tell us what connector is actually being used. Yes, I'm positive that I'm using Java BIO connector, not the APR one (as I said before, I can't use one). I've managed to run exact copy of production system's Tomcat on my own machine, so I'll have an opportunity to run these apps in Eclipse, experiment more with NIO connector and different server configurations, look in the jdk and tomcat source and maybe I'll find what's taking so long. Still I'm open for any new ideas from anyone. Regards, Michał - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Slow SSL connections after Tomcat 5 to 7 migration
Hello, I've made some thread dumps with https connection in progress. W dniu 2011-05-04 15:49, Caldarale, Charles R pisze: From: Michał Kapituła [mailto:michal.kapit...@comarch.pl] Subject: Slow SSL connections after Tomcat 5 to 7 migration I've just tested the page generation time via local network (and browser's cache off) and the page is being fully loaded in circa 2 seconds (with Firebug on) when using http, while loading the same page using secure connection took as much as 10 times longer. If the CPU usage is not high during page generation over SSL, and the network isn't inducing delays, then the threads must be waiting for something. Can you take some thread dumps during the delay period and find out what they're stuck on? (My suspicion is reads from /dev/random, but I thought that was only during Tomcat initialization.) Really I don't know what to search for there (maybe you could give me some clues?). Could you explain why reading from /dev/random possibly could be the case here? I thought that seperate SSL Handshake could be made for each of the requests, but I can't see such behaviour in the dumps. Only one or zero threads commiting a handshake, others appear to autoaccept it (maybe not a precise term). Also, is Tomcat front-ended by anything (e.g., httpd), or are you accessing it directly? No, it isn't. Did anything else change when you upgraded Tomcat? For example, the JVM version? No, nothing changed. Btw - the Tomcat version is 7.0.12 and JDK's is 6.0.14 I'll update JDK tommorow, I'm not sure if it will change anything, but won't hurt neither... I'll appretiate any additional help from you guys. Maybe there's any additional info I could provide to make things more clear? Please let me know. Regards, Michał - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Slow SSL connections after Tomcat 5 to 7 migration
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michał, On 5/5/2011 10:21 AM, Michał Kapituła wrote: I thought that seperate SSL Handshake could be made for each of the requests, but I can't see such behaviour in the dumps. Only one or zero threads commiting a handshake, others appear to autoaccept it (maybe not a precise term). [snip] No, nothing changed. Btw - the Tomcat version is 7.0.12 and JDK's is 6.0.14 If you are using the BIO connector (which it looks like you are due to org.apache.coyote.http11.Http11Protocol in your Connector), then Tomcat doesn't have a great deal of control over the SSL handshake, etc. process. That's all up to the JRE itself since all of the SSL implementation comes from there. Tomcat can affect certain things like the ciphers used, etc. but basically everything is done by the runtime, not by Tomcat. Can you double-check to see if you are using the APR versions of the HTTP connectors? The best way to tell what's going on is to look at the startup messages when the connectors initialize themselves and emit a short log message to catalina.out. That will tell us what connector is actually being used. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3C1WgACgkQ9CaO5/Lv0PAUqQCfQ7hQtIx6VTlUTIm34BagDGMh 9gAAmwWcAqVhBhqt0CngBQT9fmwCX30I =0pxy -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Slow SSL connections after Tomcat 5 to 7 migration
From: Michał Kapituła [mailto:michal.kapit...@comarch.pl] Subject: Re: Slow SSL connections after Tomcat 5 to 7 migration Really I don't know what to search for there (maybe you could give me some clues?). Look to see what the threads are doing. Some will be waiting on monitors, some might actually be doing work, some might be stuck on I/O requests. You have to look at each call stack to see (a laborious process, unfortunately). It's often useful to take several thread dumps a few seconds apart and see what's changing and what isn't. Could you explain why reading from /dev/random possibly could be the case here? Because /dev/random (unlike /dev/urandom) can wait an arbitrarily long time to gather enough randomness before returning data. This is especially problematic on virtual machines running as servers, which have very little going on to generate entropy. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
Slow SSL connections after Tomcat 5 to 7 migration
Hi, I've been experiencing trouble after migrating our company's web application from Tomcat 5 to Tomcat 7. There's a significant slowdown with https connections after the migration. I'm aware that application has a flaw - there's a large number of http request needed for generating a page ( 100 requests), but these are mainly static content (css, js, images etc.) and only very limited (1-3) ammount of requests are for dynamically generated content. I've just tested the page generation time via local network (and browser's cache off) and the page is being fully loaded in circa 2 seconds (with Firebug on) when using http, while loading the same page using secure connection took as much as 10 times longer. It's extremely weird for me, since I haven't noticed any significant differences between Tomcat 5 and 7 approaches to SSL and the server.xml file is pretty much the same. Problems associated with server load, heavy user traffic or JVM params are rather not an option here. The memory and CPU usage constantly stays lower than with Tomcat 5. Here are crucial parts of our server.xml file: Executor name=tomcatThreadPool namePrefix=catalina-exec- maxThreads=400 minSpareThreads=300 prestartminSpareThreads=true / Connector port=80 protocol=HTTP/1.1 executor=tomcatThreadPool enableLookups=false redirectPort=443 acceptCount=200 tcpNoDelay=true connectionTimeout=2 maxKeepAliveRequests=200 disableUploadTimeout=true URIEncoding=UTF-8 compression=on compressableMimeType=application/javascript,text/html,text/xml,text/javascript,text/css,text/plain,application/json,text/json,application/xml / Connector port=443 protocol=org.apache.coyote.http11.Http11Protocol executor=tomcatThreadPool address=192.168.100.100 enableLookups=false disableUploadTimeout=true keystorePass=XXX keystoreFile=XXX acceptCount=200 scheme=https secure=true SSLEnabled=true clientAuth=true sslProtocol=TLS truststoreFile=XXX truststorePass=XXX URIEncoding=UTF-8 compression=on compressableMimeType=application/javascript,text/html,text/xml,text/javascript,text/css,text/plain,application/json,text/json,application/xml / Connector port=443 protocol=org.apache.coyote.http11.Http11Protocol executor=tomcatThreadPool enableLookups=false disableUploadTimeout=true acceptCount=200 scheme=https secure=true SSLEnabled=true address=192.168.100.101 clientAuth=true sslProtocol=TLS keystorePass=XXX keystoreFile=XXX truststoreFile=XXX truststorePass=XXX URIEncoding=UTF-8 compression=on compressableMimeType=application/javascript,text/html,text/xml,text/javascript,text/css,text/plain,application/json,text/json,application/xml / Well, except for defining global thread pool nothing really changed between our versions' configuration. I've experimented with Java Nio Blocking Connector, but haven't noticed any significant improvement. Also can't use APR Connector, because it's some kind of requirement that we must use keystore files we already have. Any ideas on how to improve SSL performance and what could possibly go wrong? Sorry for my English, for I'm not a native speaker :). Regards, MK - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Slow SSL connections after Tomcat 5 to 7 migration
From: Michał Kapituła [mailto:michal.kapit...@comarch.pl] Subject: Slow SSL connections after Tomcat 5 to 7 migration I've just tested the page generation time via local network (and browser's cache off) and the page is being fully loaded in circa 2 seconds (with Firebug on) when using http, while loading the same page using secure connection took as much as 10 times longer. If the CPU usage is not high during page generation over SSL, and the network isn't inducing delays, then the threads must be waiting for something. Can you take some thread dumps during the delay period and find out what they're stuck on? (My suspicion is reads from /dev/random, but I thought that was only during Tomcat initialization.) Also, is Tomcat front-ended by anything (e.g., httpd), or are you accessing it directly? Did anything else change when you upgraded Tomcat? For example, the JVM version? Sorry for my English, for I'm not a native speaker :). It's better than that of many who are... - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
Re: Slow SSL connections after Tomcat 5 to 7 migration
On Wed, May 4, 2011 at 15:49, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Michał Kapituła [mailto:michal.kapit...@comarch.pl] Subject: Slow SSL connections after Tomcat 5 to 7 migration I've just tested the page generation time via local network (and browser's cache off) and the page is being fully loaded in circa 2 seconds (with Firebug on) when using http, while loading the same page using secure connection took as much as 10 times longer. If the CPU usage is not high during page generation over SSL, and the network isn't inducing delays, then the threads must be waiting for something. Can you take some thread dumps during the delay period and find out what they're stuck on? (My suspicion is reads from /dev/random, but I thought that was only during Tomcat initialization.) Also, is Tomcat front-ended by anything (e.g., httpd), or are you accessing it directly? Did anything else change when you upgraded Tomcat? For example, the JVM version? Can it be the same problem that I encountered with the long deployment time of the manager webapp, which is cured by changing the entropy source file? -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Can anybody Please tell me How to Configure Tomcat 5 on Fedora 14 or refer me to relevant documentation.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Varuna, On 5/2/2011 2:19 PM, Varuna Seneviratna wrote: I wont't Tomcat5 becauseI want to study for the SWCDE Exam which uses Tomcat5 Assuming you mean SCWCD, I can tell you you're going to have a rough road ahead of you. Obtaining this certification will be tough for you if you are asking questions such as what should JAVA_HOME be set to and how do I do that?. Good luck, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3AbOsACgkQ9CaO5/Lv0PCsCQCeMXVqB8S61QCwFrX5hmSS4wGo CPoAoLjeLBkAwmJFrvEMvRY4RcUCw2XO =hCua -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Can anybody Please tell me How to Configure Tomcat 5 on Fedora 14 or refer me to relevant documentation.
Can anybody Please tell me How to Configure Tomcat 5 on Fedora 14 or refer me to relevant documentation.I am Unable to understand what is documented at http://tomcat.apache.org/tomcat-5.5-doc/setup.html and configure Tomcat in order to create a Java Servlet Development Environment for me at my home machine - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Can anybody Please tell me How to Configure Tomcat 5 on Fedora 14 or refer me to relevant documentation.
On 5/2/11 7:07 PM, Varuna Seneviratna wrote: Can anybody Please tell me How to Configure Tomcat 5 on Fedora 14 or refer me to relevant documentation.I am Unable to understand what is documented at http://tomcat.apache.org/tomcat-5.5-doc/setup.html and configure Tomcat in order to create a Java Servlet Development Environment for me at my home machine What don't you understand? p signature.asc Description: OpenPGP digital signature
Re: Can anybody Please tell me How to Configure Tomcat 5 on Fedora 14 or refer me to relevant documentation.
On 2 May 2011 23:43, Pid p...@pidster.com wrote: On 5/2/11 7:07 PM, Varuna Seneviratna wrote: Can anybody Please tell me How to Configure Tomcat 5 on Fedora 14 or refer me to relevant documentation.I am Unable to understand what is documented at http://tomcat.apache.org/tomcat-5.5-doc/setup.html and configure Tomcat in order to create a Java Servlet Development Environment for me at my home machine What don't you understand? p I don't understand How to do the following Quote Unix daemon Tomcat can be run as a daemon using the jsvc tool from the commons-daemon project. Source tarballs for jsvc are included with the Tomcat binaries, and need to be compiled. Building jsvc requires a C ANSI compiler (such as GCC), GNU Autoconf, and a JDK. Before running the script, the JAVA_HOME environment variable should be set to the base path of the JDK. Alternately, when calling the ./configure script, the path of the JDK may be specified using the --with-java parameter, such as ./configure --with-java=/usr/java. Using the following commands should result in a compiled jsvc binary, located in the $CATALINA_HOME/bin folder. This assumes that GNU TAR is used, and that CATALINA_HOME is an environment variable pointing to the base path of the Tomcat installation. Please note that you should use the GNU make (gmake) instead of the native BSD make on FreeBSD systems. cd $CATALINA_HOME/bin tar xvfz commons-deamon-native.tar.gz cd commons-daemon-1.0.x-native-src/unix ./configure make cp jsvc ../.. cd ../.. Tomcat can then be run as a daemon using the following commands. cd $CATALINA_HOME ./bin/jsvc -Djava.endorsed.dirs=./common/endorsed -cp ./bin/bootstrap.jar \ -outfile ./logs/catalina.out -errfile ./logs/catalina.err \ org.apache.catalina.startup.Bootstrap jsvc has other useful parameters, such as -user which causes it to switch to another user after the daemon initialization is complete. This allows, for example, running Tomcat as a non privileged user while still being able to use privileged ports. jsvc --help will return the full jsvc usage information. In particular, the -debug option is useful to debug issues running jsvc. The file $CATALINA_HOME/bin/commons-daemon-1.0.x-native-src/unix/native/Tomcat5.sh can be used as a template for starting Tomcat automatically at boot time from /etc/init.d. Note that the Commons-Daemon JAR file must be on your runtime classpath to run Tomcat in this manner. The Commons-Daemon JAR file is in the Class-Path entry of the bootstrap.jar manifest, but if you get a ClassNotFoundException or a NoClassDefFoundError for a Commons-Daemon class, add the Commons-Daemon JAR to the -cp argument when launching jsvc. /Quote - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Can anybody Please tell me How to Configure Tomcat 5 on Fedora 14 or refer me to relevant documentation.
Varuna Seneviratna wrote: Can anybody Please tell me How to Configure Tomcat 5 on Fedora 14 or refer me to relevant documentation.I am Unable to understand what is documented at http://tomcat.apache.org/tomcat-5.5-doc/setup.html and configure Tomcat in order to create a Java Servlet Development Environment for me at my home machine Why Tomcat 5 ? That's an old version. If you want to do development, should you not use Tomcat 7.0, which is the current version ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Can anybody Please tell me How to Configure Tomcat 5 on Fedora 14 or refer me to relevant documentation.
On 2 May 2011 23:47, André Warnier a...@ice-sa.com wrote: Varuna Seneviratna wrote: Can anybody Please tell me How to Configure Tomcat 5 on Fedora 14 or refer me to relevant documentation.I am Unable to understand what is documented at http://tomcat.apache.org/tomcat-5.5-doc/setup.html and configure Tomcat in order to create a Java Servlet Development Environment for me at my home machine Why Tomcat 5 ? That's an old version. If you want to do development, should you not use Tomcat 7.0, which is the current version ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org I wont't Tomcat5 becauseI want to study for the SWCDE Exam which uses Tomcat5 Varuna - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Can anybody Please tell me How to Configure Tomcat 5 on Fedora 14 or refer me to relevant documentation.
On Mon, May 2, 2011 at 11:16 AM, Varuna Seneviratna varunasenevira...@gmail.com wrote: I don't understand How to do the following Quote Unix daemon If you're just setting up a local dev environment, I'd suggest you don't really need to bother with jsvc -- keep it simple. -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Can anybody Please tell me How to Configure Tomcat 5 on Fedora 14 or refer me to relevant documentation.
Varuna Seneviratna wrote: On 2 May 2011 23:43, Pid p...@pidster.com wrote: On 5/2/11 7:07 PM, Varuna Seneviratna wrote: Can anybody Please tell me How to Configure Tomcat 5 on Fedora 14 or refer me to relevant documentation.I am Unable to understand what is documented at http://tomcat.apache.org/tomcat-5.5-doc/setup.html and configure Tomcat in order to create a Java Servlet Development Environment for me at my home machine What don't you understand? p I don't understand How to do the following Quote Unix daemon etc.. Yes, I understand that this is a bit intimidating for a beginner. You may have an easier choice, if the point is just to get a tomcat running on your system. I do not know Fedora, but I imagine that like other Linuxes, it has a reasonably easy to use package management system. Maybe your easiest choice here is to find the tomcat package in that packaging system, and click on the right buttons to install and run it. You may not get the latest version that way, but it is definitely easier than compiling jsvc. As a matter of fact, the tomcat package for Fedora may already have jsvc in it. If you are having trouble with that packaged tomcat, the right place to ask would be a Fedora help list. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Servlet mapping doesn't work after upgrading from Tomcat 5 to 6
Dharamshila, --- On Tue, 3/8/11 at 7:35 PM, Dharamshila Khandelwal dharmshil...@gmail.com wrote: Thanks for your response Christopher! I have structs.jar in WEB-INF/lib. I even tried putting it in CATALINA_HOME/lib, but it didn't work. I have attached the log files as you had requested. As Chris already mentioned, attachments are normally stripped and you will need to copy-paste a hopefully small relevant portion of the log file(s). - Bob
Re: Servlet mapping doesn't work after upgrading from Tomcat 5 to 6
*Localhost.log* Mar 8, 2011 10:25:32 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Mar 8, 2011 10:25:32 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Mar 8, 2011 10:25:33 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Mar 8, 2011 10:25:33 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Mar 8, 2011 10:25:34 PM org.apache.catalina.core.ApplicationContext log INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]] Mar 8, 2011 10:25:34 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Mar 8, 2011 10:25:34 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() -- *Catalina.2011.03.08.log* --- INFO: Deploying configuration descriptor uom.xml Mar 8, 2011 10:25:34 PM org.apache.catalina.startup.HostConfig deployDescriptor WARNING: A docBase /opt/hsnweb/web01d/apache-tomcat-6.0.32/webapps/uom inside the host appBase has been specified, and will be ignored --- *Catalina.out* --- Mar 8, 2011 10:25:30 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/../lib/i386:/opt/wmsutil/gcc-3.4.3-sparc64/lib:/opt/pvcs/vm/solaris/lib/sparc/native_threads:/usr/lib:/usr/local/lib:/opt/hsnweb/lib:::/usr/java/packages/lib/i386:/lib:/usr/lib Mar 8, 2011 10:25:30 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-9501 Mar 8, 2011 10:25:30 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 972 ms Mar 8, 2011 10:25:31 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Mar 8, 2011 10:25:31 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.32 Mar 8, 2011 10:25:31 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor MOVEHELP.xml Mar 8, 2011 10:25:31 PM org.apache.catalina.startup.HostConfig deployDescriptor WARNING: A docBase /opt/hsnweb/web01d/apache-tomcat-6.0.32/webapps/MOVEHELP inside the host appBase has been specified, and will be ignored Mar 8, 2011 10:25:31 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor MOVE.xml Mar 8, 2011 10:25:31 PM org.apache.catalina.startup.HostConfig deployDescriptor WARNING: A docBase /opt/hsnweb/web01d/apache-tomcat-6.0.32/webapps/MOVE inside the host appBase has been specified, and will be ignored Mar 8, 2011 10:25:32 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor tomcat-docs.xml Mar 8, 2011 10:25:32 PM org.apache.catalina.startup.HostConfig deployDescriptor WARNING: A docBase /opt/hsnweb/web01d/apache-tomcat-6.0.32/webapps/tomcat-docs inside the host appBase has been specified, and will be ignored Mar 8, 2011 10:25:32 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor webdav.xml Mar 8, 2011 10:25:32 PM org.apache.catalina.startup.HostConfig deployDescriptor WARNING: A docBase /opt/hsnweb/web01d/apache-tomcat-6.0.32/webapps/webdav inside the host appBase has been specified, and will be ignored Mar 8, 2011 10:25:32 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor jsp-examples.xml Mar 8, 2011 10:25:32 PM org.apache.catalina.startup.HostConfig deployDescriptor WARNING: A docBase /opt/hsnweb/web01d/apache-tomcat-6.0.32/webapps/jsp-examples inside the host appBase has been specified, and will be ignored Mar 8, 2011 10:25:32 PM
Re: Servlet mapping doesn't work after upgrading from Tomcat 5 to 6
Hi All, I was able to make it work. Enable Invoker Servlet Mapping in conf/web.xml. However I had to enable priveleged=true in context.xml. Do you see any flip side to it? I know that it is not the most secured way but this is my application website and runs in the intranet. Thanks all for your help! DS. On Wed, Mar 9, 2011 at 9:16 AM, Dharamshila Khandelwal dharmshil...@gmail.com wrote: *Localhost.log* Mar 8, 2011 10:25:32 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Mar 8, 2011 10:25:32 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Mar 8, 2011 10:25:33 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Mar 8, 2011 10:25:33 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Mar 8, 2011 10:25:34 PM org.apache.catalina.core.ApplicationContext log INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]] Mar 8, 2011 10:25:34 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Mar 8, 2011 10:25:34 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() -- *Catalina.2011.03.08.log* --- INFO: Deploying configuration descriptor uom.xml Mar 8, 2011 10:25:34 PM org.apache.catalina.startup.HostConfig deployDescriptor WARNING: A docBase /opt/hsnweb/web01d/apache-tomcat-6.0.32/webapps/uom inside the host appBase has been specified, and will be ignored --- *Catalina.out* --- Mar 8, 2011 10:25:30 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/../lib/i386:/opt/wmsutil/gcc-3.4.3-sparc64/lib:/opt/pvcs/vm/solaris/lib/sparc/native_threads:/usr/lib:/usr/local/lib:/opt/hsnweb/lib:::/usr/java/packages/lib/i386:/lib:/usr/lib Mar 8, 2011 10:25:30 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-9501 Mar 8, 2011 10:25:30 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 972 ms Mar 8, 2011 10:25:31 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Mar 8, 2011 10:25:31 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.32 Mar 8, 2011 10:25:31 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor MOVEHELP.xml Mar 8, 2011 10:25:31 PM org.apache.catalina.startup.HostConfig deployDescriptor WARNING: A docBase /opt/hsnweb/web01d/apache-tomcat-6.0.32/webapps/MOVEHELP inside the host appBase has been specified, and will be ignored Mar 8, 2011 10:25:31 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor MOVE.xml Mar 8, 2011 10:25:31 PM org.apache.catalina.startup.HostConfig deployDescriptor WARNING: A docBase /opt/hsnweb/web01d/apache-tomcat-6.0.32/webapps/MOVE inside the host appBase has been specified, and will be ignored Mar 8, 2011 10:25:32 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor tomcat-docs.xml Mar 8, 2011 10:25:32 PM org.apache.catalina.startup.HostConfig deployDescriptor WARNING: A docBase /opt/hsnweb/web01d/apache-tomcat-6.0.32/webapps/tomcat-docs inside the host appBase has been specified, and will be ignored Mar 8, 2011 10:25:32 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor webdav.xml Mar 8, 2011 10:25:32 PM org.apache.catalina.startup.HostConfig deployDescriptor WARNING: A docBase
Re: Servlet mapping doesn't work after upgrading from Tomcat 5 to 6
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dharamshila, On 3/9/2011 11:58 AM, Dharamshila Khandelwal wrote: I was able to make it work. Enable Invoker Servlet Mapping in conf/web.xml. That would do it, although you should enable it in your webapp's web.xml /only/ and not for the entire server if possible. However I had to enable priveleged=true in context.xml. Right. Do you see any flip side to it? Yes: remote clients can execute arbitrary servlets, potentially bypassing security constraints. I know that it is not the most secured way but this is my application website and runs in the intranet. It's better to explicitly map your servlets. It's just not that hard to do, so take an hour or so and do it. Disable the invoker and move on with your life :) - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk13tSIACgkQ9CaO5/Lv0PAIOQCdHiRHqszpx77MuBcwuvdx+Jx0 xU8An28caIrXZ/ACyna3/G3PMt3NEt/c =Tyjz -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Servlet mapping doesn't work after upgrading from Tomcat 5 to 6
From: Dharamshila Khandelwal [mailto:dharmshil...@gmail.com] Subject: Re: Servlet mapping doesn't work after upgrading from Tomcat 5 to 6 I was able to make it work. Enable Invoker Servlet Mapping in conf/web.xml. That is a really, really, really bad idea - bordering on criminal. Do it properly with explicit servlet mapping. http://wiki.apache.org/tomcat/FAQ/Miscellaneous#Q3 - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Servlet mapping doesn't work after upgrading from Tomcat 5 to 6
Hi, I have the following servlet mapping in webapps/webapp/WEB-INF/web.xml servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping This mapping worked fine with Tomcat 5, but when I am running the application with the same mapping, it is not able to load the servlet saying that the requested servlet not found. Can anyone please help? Please let me know if you have any questions. Thanks, DS.
Re: Servlet mapping doesn't work after upgrading from Tomcat 5 to 6
2011/3/9 Dharamshila Khandelwal dharmshil...@gmail.com: Hi, I have the following servlet mapping in webapps/webapp/WEB-INF/web.xml servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping This mapping worked fine with Tomcat 5, but when I am running the application with the same mapping, it is not able to load the servlet saying that the requested servlet not found. Can anyone please help? Please let me know if you have any questions. Read the Servlet spec. You must have a servlet with that name. The servlet-mapping is only half of the picture. http://wiki.apache.org/tomcat/Specifications Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Servlet mapping doesn't work after upgrading from Tomcat 5 to 6
Thanks for your response Kolinko, I tried putting the servlet-mapping inside servlet tag but it didn't work. I am attaching web.xml that I am using. On Tue, Mar 8, 2011 at 5:11 PM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2011/3/9 Dharamshila Khandelwal dharmshil...@gmail.com: Hi, I have the following servlet mapping in webapps/webapp/WEB-INF/web.xml servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping This mapping worked fine with Tomcat 5, but when I am running the application with the same mapping, it is not able to load the servlet saying that the requested servlet not found. Can anyone please help? Please let me know if you have any questions. Read the Servlet spec. You must have a servlet with that name. The servlet-mapping is only half of the picture. http://wiki.apache.org/tomcat/Specifications Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app descriptionHSN Uom/description display-nameHSN Uom/display-name servlet servlet-namebanking/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param load-on-startup1/load-on-startup /servlet servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class load-on-startup2/load-on-startup /servlet servlet-mapping servlet-namebanking/servlet-name url-pattern/action/*/url-pattern /servlet-mapping !-- Standard Action Servlet Mapping -- !-- servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping -- servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping welcome-file-listwelcome-filelogin.jsp/welcome-file/welcome-file-list taglib taglib-uri/WEB-INF/struts-html.tld/taglib-uri taglib-location/WEB-INF/struts-html.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-bean.tld/taglib-uri taglib-location/WEB-INF/struts-bean.tld/taglib-location /taglib taglib taglib-uri/WEB-INF/struts-logic.tld/taglib-uri taglib-location/WEB-INF/struts-logic.tld/taglib-location /taglib /web-app - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Servlet mapping doesn't work after upgrading from Tomcat 5 to 6
From: Dharamshila Khandelwal [mailto:dharmshil...@gmail.com] Subject: Re: Servlet mapping doesn't work after upgrading from Tomcat 5 to 6 I tried putting the servlet-mapping inside servlet tag but it didn't work. Good, since that's not syntactically correct. I am attaching web.xml that I am using. At first glance, I don't see anything wrong with it. Additional questions: 1) Exactly what URL are you using? 2) Exactly what is the response to that URL? 3) What's in the Tomcat logs? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Servlet mapping doesn't work after upgrading from Tomcat 5 to 6
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dharamshila, On 3/8/2011 5:27 PM, Dharamshila Khandelwal wrote: Thanks for your response Kolinko, I tried putting the servlet-mapping inside servlet tag but it didn't work. I am attaching web.xml that I am using. Your web.xml looks good. I also use Struts (v1) with Tomcat 6 with no problems whatsoever. If you upgraded from Tomcat 5 to 6 and things stopped working, I suspect that your TC5 environment had something that didn't properly translate into the new environment. My guess is that struts-*.jar was filed under TC5's common/lib or shared/lib directories and haven't been moved to TC6. If this is the case, I highly recommend that you put struts-*.jar into your webapp's WEB-INF/lib directory. If that's not the case, please do the following: 1. Stop Tomcat (6) 2. Delete all log files under log/* 3. Start Tomcat 4. Post logs/catalina.out and any other non-empty file back to the list (remember the lsit strips attachments, so you may have to do lots of copy-and-paste). Hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk12sF8ACgkQ9CaO5/Lv0PBpGQCfR1kZt9QFr0fWDB9n8V5q8Cxo aJ8An2IvEXnRUX3fLkE/2RHX+OnCG3Dw =XmwP -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Servlet mapping doesn't work after upgrading from Tomcat 5 to 6
Chuck, Log files are attached. From the URL http://wmsweb1.xxx.net:9501/uom/uom.do, when I click on 'Save' it invokes http://wmsweb1.hsn.net:9501/uom/servlet/uom.update, the message that I get is: HTTP Status 404 - /uom/servlet/uom.update type Status report message /uom/servlet/uom.update description The requested resource (/uom/servlet/uom.update) is not available. On Tue, Mar 8, 2011 at 5:33 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Dharamshila Khandelwal [mailto:dharmshil...@gmail.com] Subject: Re: Servlet mapping doesn't work after upgrading from Tomcat 5 to 6 I tried putting the servlet-mapping inside servlet tag but it didn't work. Good, since that's not syntactically correct. I am attaching web.xml that I am using. At first glance, I don't see anything wrong with it. Additional questions: 1) Exactly what URL are you using? 2) Exactly what is the response to that URL? 3) What's in the Tomcat logs? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org VA,VA-JWCARTSETUP,93CARTSETUP03072011A,1,,93,03072011,124909,N VA,VA-JWCARTSETUP,93CARTSETUP03072011A,1,,93,03072011,145106,N VA,VA-JWCARTSETUP,93CARTSETUP03072011B,1,,93,03072011,124910,N VA,VA-JWCARTSETUP,93CARTSETUP03072011B,1,,93,03072011,145106,N VA,VA-JWCARTSETUP,93CARTSETUP03072011C,1,,93,03072011,124910,N VA,VA-JWCARTSETUP,93CARTSETUP03072011C,1,,93,03072011,145106,N VA,VA-JWCARTSETUP,93CARTSETUP03072011D,1,,93,03072011,124910,N VA,VA-JWCARTSETUP,93CARTSETUP03072011D,1,,93,03072011,145106,N VA,VA-JWCARTSETUP,93CARTSETUP03072011E,1,,93,03072011,124910,N VA,VA-JWCARTSETUP,93CARTSETUP03072011E,1,,93,03072011,145106,N VA,VA-RTWCARTSETUP,95CARTSETUP03072011A,1,,93,03072011,145106,N VA,VA-RTWCARTSETUP,95CARTSETUP03072011A,1,,93,03072011,124908,N VA,VA-RTWCARTSETUP,95CARTSETUP03072011B,1,,93,03072011,145106,N VA,VA-RTWCARTSETUP,95CARTSETUP03072011B,1,,93,03072011,124909,N VA,VA-RTWCARTSETUP,95CARTSETUP03072011C,1,,93,03072011,145106,N VA,VA-RTWCARTSETUP,95CARTSETUP03072011C,1,,93,03072011,124909,N VA,VA-RTWCARTSETUP,95CARTSETUP03072011D,1,,93,03072011,145106,N VA,VA-RTWCARTSETUP,95CARTSETUP03072011D,1,,93,03072011,124909,N VA,VA-RTWCARTSETUP,95CARTSETUP03072011E,1,,93,03072011,145106,N VA,VA-RTWCARTSETUP,95CARTSETUP03072011E,1,,93,03072011,124909,N VA,VA-JWCHECKIN,JW-CHECKIN03072011A,1,,93,03072011,145106,N VA,VA-JWCHECKIN,JW-CHECKIN03072011A,1,,93,03072011,124909,N VA,VA-JW-POSORT,JW-POSORT03072011A,1,,93,03072011,145106,N VA,VA-JW-POSORT,JW-POSORT03072011A,1,,93,03072011,124909,N VA,VA-RTWCHECKIN,RTW-CHECKIN03072011A,1,,93,03072011,145106,N VA,VA-RTWCHECKIN,RTW-CHECKIN03072011A,1,,93,03072011,124909,N VA,VA-RTW-UNLOAD,RTW-UNLOAD03072011A,1,,93,03072011,145106,N VA,VA-RTW-UNLOAD,RTW-UNLOAD03072011A,1
Re: Servlet mapping doesn't work after upgrading from Tomcat 5 to 6
Thanks for your response Christopher! I have structs.jar in WEB-INF/lib. I even tried putting it in CATALINA_HOME/lib, but it didn't work. I have attached the log files as you had requested. On Tue, Mar 8, 2011 at 5:40 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dharamshila, On 3/8/2011 5:27 PM, Dharamshila Khandelwal wrote: Thanks for your response Kolinko, I tried putting the servlet-mapping inside servlet tag but it didn't work. I am attaching web.xml that I am using. Your web.xml looks good. I also use Struts (v1) with Tomcat 6 with no problems whatsoever. If you upgraded from Tomcat 5 to 6 and things stopped working, I suspect that your TC5 environment had something that didn't properly translate into the new environment. My guess is that struts-*.jar was filed under TC5's common/lib or shared/lib directories and haven't been moved to TC6. If this is the case, I highly recommend that you put struts-*.jar into your webapp's WEB-INF/lib directory. If that's not the case, please do the following: 1. Stop Tomcat (6) 2. Delete all log files under log/* 3. Start Tomcat 4. Post logs/catalina.out and any other non-empty file back to the list (remember the lsit strips attachments, so you may have to do lots of copy-and-paste). Hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk12sF8ACgkQ9CaO5/Lv0PBpGQCfR1kZt9QFr0fWDB9n8V5q8Cxo aJ8An2IvEXnRUX3fLkE/2RHX+OnCG3Dw =XmwP -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: undeploy failure - stack overflow tomcat 5 on RHEL 5
The version that was being used (using java -version) was an OpenJDK java version 1.6.0_0 OpenJDK Runtime Environment (IcedTea6 1.6) (rhel-1.13.b16.el5-x86_64) OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode) However as a test yesterday the most recent Sun/Oracle version was installed java version 1.6.0_21 Java(TM) SE Runtime Environment (build 1.6.0_21-b06) Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode) But using this version has not proved to fix the problem either. I also created a very simple test, a WAR with one index.jsp and its own context configured with both lock jars and lock resources off. Deployed fine. Still failed on undeploy with the same relatively nondescript error message and lengthy stack trace. If anyone has any more suggestions of things to look at I'd be glad to hear them. As a next step I am going to attempt to run a standalone program that will try and delete a copy of a tomcat unpacked war using the ExpandWar class source from 5 and see if I can recreate the problem outside tomcat. -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Tuesday, August 31, 2010 4:58 PM To: Tomcat Users List Subject: RE: undeploy failure - stack overflow tomcat 5 on RHEL 5 From: Pid [mailto:p...@pidster.com] Subject: Re: undeploy failure - stack overflow tomcat 5 on RHEL 5 Really? JVM - 1.6.0_0-b16 (Sun) You can probably find a newer JVM than that You're saying that just because 1.6.0_0 is approaching the fourth anniversary of its release? And even then it was at build 105, not 16. At best, b16 was a pre-release alpha test level. Or somebody's been fooling around with the version tag. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: 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: undeploy failure - stack overflow tomcat 5 on RHEL 5
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Maximilian, On 9/1/2010 10:08 AM, Maximilian Stocker wrote: The version that was being used (using java -version) was an OpenJDK java version 1.6.0_0 OpenJDK Runtime Environment (IcedTea6 1.6) (rhel-1.13.b16.el5-x86_64) OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode) And that was working properly? Many folks have encountered problems using OpenJDK with Tomcat and their webapps. However as a test yesterday the most recent Sun/Oracle version was installed java version 1.6.0_21 Java(TM) SE Runtime Environment (build 1.6.0_21-b06) Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode) But using this version has not proved to fix the problem either. Ok. I also created a very simple test, a WAR with one index.jsp and its own context configured with both lock jars and lock resources off. Deployed fine. Still failed on undeploy with the same relatively nondescript error message and lengthy stack trace. If anyone has any more suggestions of things to look at I'd be glad to hear them. As a next step I am going to attempt to run a standalone program that will try and delete a copy of a tomcat unpacked war using the ExpandWar class source from 5 and see if I can recreate the problem outside tomcat. I do have an idea: tell us what the full path to your WAR file is. You said it doesn't matter but it might help to know what it actually was. Also, giving us more details about the symlink layout might help. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkx+YxIACgkQ9CaO5/Lv0PC7cgCdF0IAorUrc31g09D2coK2rlzT i7wAni+RjLEIPnqFmJVsOR6vTk3NDzC3 =ZSjX -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: undeploy failure - stack overflow tomcat 5 on RHEL 5
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: undeploy failure - stack overflow tomcat 5 on RHEL 5 And that was working properly? Many folks have encountered problems using OpenJDK with Tomcat and their webapps. I don't think that's true; the problems are with gcj, not OpenJDK. OpenJDK is almost identical to the Sun download, with the exception of a few (mostly graphics) packages whose licenses do not permit them to be open-sourced. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
RE: undeploy failure - stack overflow tomcat 5 on RHEL 5
The previous Java was a different (older) build of openjdk and yes was working properly for months. I am not entirely sure when you say full path to WAR what you are looking for so I am going to list all the information. Before deploying my last test project the war was in two places (I tried both). On my local system and uploaded through the manager and on the target machine in my home directory. So I deployed using the upload and I also tried to deploy by specifying the path to the WAR locally. Both of these deployments worked. At that point I have the following /usr/share/tomcat5 Contains the below work - /var/cache/tomcat5/work webapps - /var/lib/tomcat5/webapps temp - /var/cache/tomcat5/work shared - /var/lib/tomcat5/shared server - /var/lib/tomcat5/server logs - /var/log/tomcat5 conf - /etc/tomcat5 common - /var/lib/tomcat5/webapps bin In webapps for the war in question I have the following A war file called maxtest.war and a directory called maxtest. So the path would be /var/lib/tomcat5/webapps/maxtest.war or /usr/share/tomcat5/webapps/maxtest.war Both of these have rwxrwxr-x for permissions and the owner and group is tomcat. And again this directory layout was unchanged since it worked and it was working since at least sometime last fall (I wasn't here before then so I can't speak to that) If I try and undeploy I get the error message previously described, in the log I can see the stack trace and in the webapps directory I will see that the WAR file has been deleted but the directory and all its contents are intact. In this case after the undeploy the maxtest directory contains META-INF/context.xml META-INF/MANIFEST.MF WEB-INF/web.xml WEB-INF/classes (empty directory) WEB-INF/lib (empty directory) Index.jsp In the case of any of the existing projects that actually have classes and libs they will still all be in these directories rather than empty. If this is not the information that you are looking for can you please try and restate and I will get it for you. -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Wednesday, September 01, 2010 10:29 AM To: Tomcat Users List Subject: Re: undeploy failure - stack overflow tomcat 5 on RHEL 5 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Maximilian, On 9/1/2010 10:08 AM, Maximilian Stocker wrote: The version that was being used (using java -version) was an OpenJDK java version 1.6.0_0 OpenJDK Runtime Environment (IcedTea6 1.6) (rhel-1.13.b16.el5-x86_64) OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode) And that was working properly? Many folks have encountered problems using OpenJDK with Tomcat and their webapps. However as a test yesterday the most recent Sun/Oracle version was installed java version 1.6.0_21 Java(TM) SE Runtime Environment (build 1.6.0_21-b06) Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode) But using this version has not proved to fix the problem either. Ok. I also created a very simple test, a WAR with one index.jsp and its own context configured with both lock jars and lock resources off. Deployed fine. Still failed on undeploy with the same relatively nondescript error message and lengthy stack trace. If anyone has any more suggestions of things to look at I'd be glad to hear them. As a next step I am going to attempt to run a standalone program that will try and delete a copy of a tomcat unpacked war using the ExpandWar class source from 5 and see if I can recreate the problem outside tomcat. I do have an idea: tell us what the full path to your WAR file is. You said it doesn't matter but it might help to know what it actually was. Also, giving us more details about the symlink layout might help. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkx+YxIACgkQ9CaO5/Lv0PC7cgCdF0IAorUrc31g09D2coK2rlzT i7wAni+RjLEIPnqFmJVsOR6vTk3NDzC3 =ZSjX -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: undeploy failure - stack overflow tomcat 5 on RHEL 5
From: Maximilian Stocker [mailto:m...@talentoyster.com] Subject: RE: undeploy failure - stack overflow tomcat 5 on RHEL 5 work - /var/cache/tomcat5/work temp - /var/cache/tomcat5/work That's a bit scary - those should be separate directories. I have no idea what happens when they're co-located. In webapps for the war in question I have the following A war file called maxtest.war and a directory called maxtest. Did you explicitly create the maxtest directory, or did Tomcat do so as a result of deployment? I will see that the WAR file has been deleted but the directory and all its contents are intact. Just for verification: Are there any further symbolic links underneath the maxtest directory? Have you run fsck lately? This is still looking like a loop in the directory structure. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: undeploy failure - stack overflow tomcat 5 on RHEL 5
Sorry temp is linked to temp. That was a copy and paste error from the shell to email on my part. I just double checked what I had sent and it is the only one I made a mistake on. It is Temp - /var/chache/tomcat5/temp Again sorry about that. Tomcat created the directory as a result of the deployment. There are no symbolic links in maxtest. And I looked through the other project directories and cannot find any symbolic links there. I don't know about fsck (as in when it was run) but will look into that now. -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Wednesday, September 01, 2010 11:19 AM To: Tomcat Users List Subject: RE: undeploy failure - stack overflow tomcat 5 on RHEL 5 From: Maximilian Stocker [mailto:m...@talentoyster.com] Subject: RE: undeploy failure - stack overflow tomcat 5 on RHEL 5 work - /var/cache/tomcat5/work temp - /var/cache/tomcat5/work That's a bit scary - those should be separate directories. I have no idea what happens when they're co-located. In webapps for the war in question I have the following A war file called maxtest.war and a directory called maxtest. Did you explicitly create the maxtest directory, or did Tomcat do so as a result of deployment? I will see that the WAR file has been deleted but the directory and all its contents are intact. Just for verification: Are there any further symbolic links underneath the maxtest directory? Have you run fsck lately? This is still looking like a loop in the directory structure. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: 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: undeploy failure - stack overflow tomcat 5 on RHEL 5
Sorry multiple typos. I am just going to paste the whole ls -lr output here lrwxrwxrwx 1 root root 23 Aug 27 15:53 work - /var/cache/tomcat5/work lrwxrwxrwx 1 root root 24 Aug 27 15:53 webapps -/var/lib/tomcat5/webapps lrwxrwxrwx 1 root root 23 Aug 27 15:53 temp - /var/cache/tomcat5/temp lrwxrwxrwx 1 root root 23 Aug 27 15:53 shared - /var/lib/tomcat5/shared lrwxrwxrwx 1 root root 23 Aug 27 15:53 server - /var/lib/tomcat5/server lrwxrwxrwx 1 root root 16 Aug 27 15:53 logs - /var/log/tomcat5 lrwxrwxrwx 1 root root 12 Aug 27 15:53 conf - /etc/tomcat5 lrwxrwxrwx 1 root root 23 Aug 27 15:53 common - /var/lib/tomcat5/common drwxr-xr-x 2 root root 4096 Aug 27 15:53 bin -Original Message- From: Maximilian Stocker [mailto:m...@talentoyster.com] Sent: Wednesday, September 01, 2010 11:39 AM To: 'Tomcat Users List' Subject: RE: undeploy failure - stack overflow tomcat 5 on RHEL 5 Sorry temp is linked to temp. That was a copy and paste error from the shell to email on my part. I just double checked what I had sent and it is the only one I made a mistake on. It is Temp - /var/chache/tomcat5/temp Again sorry about that. Tomcat created the directory as a result of the deployment. There are no symbolic links in maxtest. And I looked through the other project directories and cannot find any symbolic links there. I don't know about fsck (as in when it was run) but will look into that now. -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Wednesday, September 01, 2010 11:19 AM To: Tomcat Users List Subject: RE: undeploy failure - stack overflow tomcat 5 on RHEL 5 From: Maximilian Stocker [mailto:m...@talentoyster.com] Subject: RE: undeploy failure - stack overflow tomcat 5 on RHEL 5 work - /var/cache/tomcat5/work temp - /var/cache/tomcat5/work That's a bit scary - those should be separate directories. I have no idea what happens when they're co-located. In webapps for the war in question I have the following A war file called maxtest.war and a directory called maxtest. Did you explicitly create the maxtest directory, or did Tomcat do so as a result of deployment? I will see that the WAR file has been deleted but the directory and all its contents are intact. Just for verification: Are there any further symbolic links underneath the maxtest directory? Have you run fsck lately? This is still looking like a loop in the directory structure. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: undeploy failure - stack overflow tomcat 5 on RHEL 5
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 9/1/2010 10:53 AM, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: undeploy failure - stack overflow tomcat 5 on RHEL 5 And that was working properly? Many folks have encountered problems using OpenJDK with Tomcat and their webapps. I don't think that's true; the problems are with gcj, not OpenJDK. OpenJDK is almost identical to the Sun download, with the exception of a few (mostly graphics) packages whose licenses do not permit them to be open-sourced. I definitely misspoke: I was thinking gcj, not OpenJDK. Thanks for the clarification. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkx+gO4ACgkQ9CaO5/Lv0PA7zgCfbvEjmAnvNHlY3EvRUgz75K3y Dq8An286+xCn90rbKWT1kAkUusGWwjsp =3RjE -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: undeploy failure - stack overflow tomcat 5 on RHEL 5
I finally found some others with the same issue (and the same stackoverflow) https://jira.jboss.org/browse/JBPAPP-3753 The workaround to unpackWAR=false mentioned by the last commenter does resolve it at least temporarily for me at least. Looking at the stack trace posted there, I have a little bit of difference at the top but from the stackoverflow error on it's the same, including the ExpandWar.delete calls (although it is a different source slightly - different line numbers) At any rate this topic is sort of closed for me. It's not just my setup whatever the problem is and I have it working, if less than ideally now. Thanks for the suggestions etc. -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Wednesday, September 01, 2010 12:36 PM To: Tomcat Users List Subject: Re: undeploy failure - stack overflow tomcat 5 on RHEL 5 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 9/1/2010 10:53 AM, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: undeploy failure - stack overflow tomcat 5 on RHEL 5 And that was working properly? Many folks have encountered problems using OpenJDK with Tomcat and their webapps. I don't think that's true; the problems are with gcj, not OpenJDK. OpenJDK is almost identical to the Sun download, with the exception of a few (mostly graphics) packages whose licenses do not permit them to be open-sourced. I definitely misspoke: I was thinking gcj, not OpenJDK. Thanks for the clarification. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkx+gO4ACgkQ9CaO5/Lv0PA7zgCfbvEjmAnvNHlY3EvRUgz75K3y Dq8An286+xCn90rbKWT1kAkUusGWwjsp =3RjE -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
undeploy failure - stack overflow tomcat 5 on RHEL 5
I have a tomcat 5.5 running on a server with redhat enterprise linux 5 and everything has been working for the last 7 -8 months without problems. On Friday the IT department patched/upgraded the server (I believe both tomcat and java were moved up minor versions) and now any undeploy fails. The steps for me to produce are. 1. Deploy any app 2. Attempt to undeploy Fails. The message in tomcat manager is FAIL - Encountered exception javax.management.RuntimeErrorException: Error invoking method check The result of this is that the webapp disappears from the manager and is in fact no longer running. However it cannot be redeployed again because the unpacked WAR file as directory still exists. To be clear if after step 2 I look in the webapps directory the WAR file will be gone, the WAR file that tomcat unpacked will still be there. At this point attempting to deploy again will fail. If I restart tomcat then I can repeat both steps 1 and 2 again. That is after a restart I can deploy. What is in the log begins with Aug 30, 2010 1:15:23 PM org.apache.commons.modeler.BaseModelMBean invoke SEVERE: Exception invoking method check java.lang.StackOverflowError at sun.nio.cs.UTF_8.updatePositions(UTF_8.java:76) at sun.nio.cs.UTF_8$Encoder.encodeArrayLoop(UTF_8.java:411) at sun.nio.cs.UTF_8$Encoder.encodeLoop(UTF_8.java:466) at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:561) at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:258) at java.lang.StringCoding.encode(StringCoding.java:290) at java.lang.String.getBytes(String.java:954) at java.io.UnixFileSystem.getBooleanAttributes0(Native Method) at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:243) at java.io.File.isDirectory(File.java:771) at org.apache.catalina.startup.ExpandWar.delete(ExpandWar.java:360) And the last line, ExpandWar.delete continues on and on etc. So something goes wrong trying to delete the old stuff, and it ends up recursing forever (which seems odd behaviour to me but that's a different issue). But why is it having this problem? It doesn't seem to be permission based, it (Tomcat) extracts the WAR fine. And I don't see how it can be a file locking issue since (a) this isn't windows (b) there is no NFS or any other strangeness and (c) it isn't just failing to delete some jars but *everything* in the unpacked WAR directory. All the jsps, everything in WEB-INF, etc. I tried some simple things like making sure all my webapps were deployed by the current tomcat and I have been searching on both Google and the Tomcat bugdatabase to no avail. This behavior fits closest to the windows locking jars problem but again that problem I can't see being the case here. If anyone has any ideas of what this might or where to look or try next it would be greatly appreciated. Some information about the setup if it helps. OS - 2.6.18-194.11.1.el5xen JVM - 1.6.0_0-b16 (Sun) Tomcat - Apache Tomcat/5.5.23
Re: undeploy failure - stack overflow tomcat 5 on RHEL 5
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Maximilian, On 8/31/2010 2:15 PM, Maximilian Stocker wrote: I have a tomcat 5.5 running on a server with redhat enterprise linux 5 and everything has been working for the last 7 -8 months without problems. On Friday the IT department patched/upgraded the server (I believe both tomcat and java were moved up minor versions) and now any undeploy fails. The steps for me to produce are. 1. Deploy any app 2. Attempt to undeploy [snip] Aug 30, 2010 1:15:23 PM org.apache.commons.modeler.BaseModelMBean invoke SEVERE: Exception invoking method check java.lang.StackOverflowError at sun.nio.cs.UTF_8.updatePositions(UTF_8.java:76) at sun.nio.cs.UTF_8$Encoder.encodeArrayLoop(UTF_8.java:411) at sun.nio.cs.UTF_8$Encoder.encodeLoop(UTF_8.java:466) at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:561) at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:258) at java.lang.StringCoding.encode(StringCoding.java:290) at java.lang.String.getBytes(String.java:954) at java.io.UnixFileSystem.getBooleanAttributes0(Native Method) at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:243) at java.io.File.isDirectory(File.java:771) at org.apache.catalina.startup.ExpandWar.delete(ExpandWar.java:360) Looks like a JVM bug to me. And the last line, ExpandWar.delete continues on and on etc. That's weird that it would have ExpandWar.delete over and over again. The code for ExpandWar.delete is: public static boolean delete(File dir) { if (dir.isDirectory()) { return deleteDir(dir); } else { return dir.delete(); } } No recursion there at all. Are you sure you're reading it correctly? I tried some simple things like making sure all my webapps were deployed by the current tomcat and I have been searching on both Google and the Tomcat bugdatabase to no avail. This behavior fits closest to the windows locking jars problem but again that problem I can't see being the case here. If anyone has any ideas of what this might or where to look or try next it would be greatly appreciated. Some information about the setup if it helps. OS - 2.6.18-194.11.1.el5xen JVM - 1.6.0_0-b16 (Sun) Tomcat - Apache Tomcat/5.5.23 What's the name of your WAR file? How about the full path to the WAR file? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkx9V6UACgkQ9CaO5/Lv0PDf5QCfRZUWZNTUuZx/MNsUxe2FIpkk xIwAn1YeHgOsUyet3Qelw7Vw+RJEsMQI =v//+ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: undeploy failure - stack overflow tomcat 5 on RHEL 5
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: undeploy failure - stack overflow tomcat 5 on RHEL 5 Looks like a JVM bug to me. Maybe not - see below. And the last line, ExpandWar.delete continues on and on etc. That's weird that it would have ExpandWar.delete over and over again. The code for ExpandWar.delete is: public static boolean delete(File dir) { if (dir.isDirectory()) { return deleteDir(dir); } else { return dir.delete(); } } No recursion there at all. How about a symlink loop? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
RE: undeploy failure - stack overflow tomcat 5 on RHEL 5
Thanks for you reply. The JVM bug is an interesting possibility that I have also been wondering about. It was also upgraded I believe. The stack trace is a copy and paste from the log file. I looked at the source yesterday and it also made no sense to me (why it is recursing or at least seeming to in the stack trace). On a small note the source you posted I think is a more modern version of that file. The method from the source I downloaded for 5.5 yesterday reads public static boolean delete(File dir, boolean logFailure) { boolean result; if (dir.isDirectory()) { result = deleteDir(dir, logFailure); } else { if (dir.exists()) { result = dir.delete(); } else { result = true; } } if (logFailure !result) { log.error(sm.getString( expandWar.deleteFailed, dir.getAbsolutePath())); } return result; } To answer your last question anything at all. Any WAR uploaded or on the server already. And the deploy will work, just will not undeploy then. My first thought when I first had trouble was that the WAR was screwed up but no. Any WAR with any name has the same problems. I also forgot to mention previously that I tried the anti locking attributes to context and that did nothing for me either. I tried both the anti jar and anti resource locking, together and independently. -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Tuesday, August 31, 2010 3:28 PM To: Tomcat Users List Subject: Re: undeploy failure - stack overflow tomcat 5 on RHEL 5 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Maximilian, On 8/31/2010 2:15 PM, Maximilian Stocker wrote: I have a tomcat 5.5 running on a server with redhat enterprise linux 5 and everything has been working for the last 7 -8 months without problems. On Friday the IT department patched/upgraded the server (I believe both tomcat and java were moved up minor versions) and now any undeploy fails. The steps for me to produce are. 1. Deploy any app 2. Attempt to undeploy [snip] Aug 30, 2010 1:15:23 PM org.apache.commons.modeler.BaseModelMBean invoke SEVERE: Exception invoking method check java.lang.StackOverflowError at sun.nio.cs.UTF_8.updatePositions(UTF_8.java:76) at sun.nio.cs.UTF_8$Encoder.encodeArrayLoop(UTF_8.java:411) at sun.nio.cs.UTF_8$Encoder.encodeLoop(UTF_8.java:466) at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:561) at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:258) at java.lang.StringCoding.encode(StringCoding.java:290) at java.lang.String.getBytes(String.java:954) at java.io.UnixFileSystem.getBooleanAttributes0(Native Method) at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:243) at java.io.File.isDirectory(File.java:771) at org.apache.catalina.startup.ExpandWar.delete(ExpandWar.java:360) Looks like a JVM bug to me. And the last line, ExpandWar.delete continues on and on etc. That's weird that it would have ExpandWar.delete over and over again. The code for ExpandWar.delete is: public static boolean delete(File dir) { if (dir.isDirectory()) { return deleteDir(dir); } else { return dir.delete(); } } No recursion there at all. Are you sure you're reading it correctly? I tried some simple things like making sure all my webapps were deployed by the current tomcat and I have been searching on both Google and the Tomcat bugdatabase to no avail. This behavior fits closest to the windows locking jars problem but again that problem I can't see being the case here. If anyone has any ideas of what this might or where to look or try next it would be greatly appreciated. Some information about the setup if it helps. OS - 2.6.18-194.11.1.el5xen JVM - 1.6.0_0-b16 (Sun) Tomcat - Apache Tomcat/5.5.23 What's the name of your WAR file? How about the full path to the WAR file? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkx9V6UACgkQ9CaO5/Lv0PDf5QCfRZUWZNTUuZx/MNsUxe2FIpkk xIwAn1YeHgOsUyet3Qelw7Vw+RJEsMQI =v//+ -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: undeploy failure - stack overflow tomcat 5 on RHEL 5
The whole webapps folder is a symlink. But it has also been so and all the permission have not changed. Also there are no links inside the extracted WAR directory. I just checked this to make sure of my sanity. -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Tuesday, August 31, 2010 3:33 PM To: Tomcat Users List Subject: RE: undeploy failure - stack overflow tomcat 5 on RHEL 5 From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: undeploy failure - stack overflow tomcat 5 on RHEL 5 Looks like a JVM bug to me. Maybe not - see below. And the last line, ExpandWar.delete continues on and on etc. That's weird that it would have ExpandWar.delete over and over again. The code for ExpandWar.delete is: public static boolean delete(File dir) { if (dir.isDirectory()) { return deleteDir(dir); } else { return dir.delete(); } } No recursion there at all. How about a symlink loop? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: undeploy failure - stack overflow tomcat 5 on RHEL 5
On 31/08/2010 20:41, Maximilian Stocker wrote: Thanks for you reply. The JVM bug is an interesting possibility that I have also been wondering about. It was also upgraded I believe. Really? JVM - 1.6.0_0-b16 (Sun) You can probably find a newer JVM than that, unless I'm reading your numbers wrong. p 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
RE: undeploy failure - stack overflow tomcat 5 on RHEL 5
From: Pid [mailto:p...@pidster.com] Subject: Re: undeploy failure - stack overflow tomcat 5 on RHEL 5 Really? JVM - 1.6.0_0-b16 (Sun) You can probably find a newer JVM than that You're saying that just because 1.6.0_0 is approaching the fourth anniversary of its release? And even then it was at build 105, not 16. At best, b16 was a pre-release alpha test level. Or somebody's been fooling around with the version tag. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
tomcat 5
Hi, Is the 5.5 branch actively maintained? Or is it all tc6 now? Just wondering. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat 5
On 25/08/2010 18:39, Wesley Acheson wrote: Hi, Is the 5.5 branch actively maintained? Or is it all tc6 now? Just wondering. http://wiki.apache.org/tomcat/TomcatVersions Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: need help in setting up virtual url for tomcat 5 URGENT
Hi, We ar eusing the BIGIP url for this , so certificates and all will not be kept at host level. This means now do we need to only change files to use new url and port. Thanks, Vivyek kanchan -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Wednesday, April 14, 2010 6:12 PM To: Tomcat Users List Subject: Re: need help in setting up virtual url for tomcat 5 URGENT On 14/04/2010 12:10, Vivek Kanchan wrote: This is urgent please , i am new to tomcat. :( People volunteer their support here for free. If you need urgent support you may have to look for a professional. In the meantime, start reading here: http://tomcat.apache.org/tomcat-6.0-doc/index.html and then: http://tomcat.apache.org/tomcat-6.0-doc/config/index.html p Thanks, Vivyek kanchan -Original Message- From: Vivek Kanchan Sent: Wednesday, April 14, 2010 4:32 PM To: users@tomcat.apache.org Subject: need help in setting up virtual url for tomcat 5 HI, I have setup tomcat 5 for a customer, now i need to use virtual url and por= t t other than 8080 , please let me know how to do it , what files to change = for these. Thanks, Vivyek kanchan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: need help in setting up virtual url for tomcat 5 URGENT
On 15/04/2010 13:56, Vivek Kanchan wrote: hi I meant is that we are implemnting SSL at bigip level not at host level. So which files do i need to change the url and port number. is it onnly in server.xml or other files too? I don't mean to be rude Vivek, but have you actually read the documents at the links I suggested below? The link to the configuration docs explain all of this, and it'll be easier for you, than me writing several paragraphs at a time over a bunch of emails. p -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Thursday, April 15, 2010 5:54 PM To: Vivek Kanchan Subject: Re: need help in setting up virtual url for tomcat 5 URGENT On 15/04/2010 10:02, Vivek Kanchan wrote: Hi, We ar eusing the BIGIP url for this , so certificates and all will not be kept at host level. Certificates aren't kept at Host level in Tomcat. I'm not sure what you mean by that. This means now do we need to only change files to use new url and port. I'm not even sure there's a question here, perhaps you could explain? p Thanks, Vivyek kanchan -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Wednesday, April 14, 2010 6:12 PM To: Tomcat Users List Subject: Re: need help in setting up virtual url for tomcat 5 URGENT On 14/04/2010 12:10, Vivek Kanchan wrote: This is urgent please , i am new to tomcat. :( People volunteer their support here for free. If you need urgent support you may have to look for a professional. In the meantime, start reading here: http://tomcat.apache.org/tomcat-6.0-doc/index.html and then: http://tomcat.apache.org/tomcat-6.0-doc/config/index.html p Thanks, Vivyek kanchan -Original Message- From: Vivek Kanchan Sent: Wednesday, April 14, 2010 4:32 PM To: users@tomcat.apache.org Subject: need help in setting up virtual url for tomcat 5 HI, I have setup tomcat 5 for a customer, now i need to use virtual url and por= t t other than 8080 , please let me know how to do it , what files to change = for these. Thanks, Vivyek kanchan - 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 signature.asc Description: OpenPGP digital signature
need help in setting up virtual url for tomcat 5
HI, I have setup tomcat 5 for a customer, now i need to use virtual url and por= t t other than 8080 , please let me know how to do it , what files to change = for these. Thanks, Vivyek kanchan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: need help in setting up virtual url for tomcat 5 URGENT
This is urgent please , i am new to tomcat. :( Thanks, Vivyek kanchan -Original Message- From: Vivek Kanchan Sent: Wednesday, April 14, 2010 4:32 PM To: users@tomcat.apache.org Subject: need help in setting up virtual url for tomcat 5 HI, I have setup tomcat 5 for a customer, now i need to use virtual url and por= t t other than 8080 , please let me know how to do it , what files to change = for these. Thanks, Vivyek kanchan - 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: need help in setting up virtual url for tomcat 5 URGENT
On 14/04/2010 12:10, Vivek Kanchan wrote: This is urgent please , i am new to tomcat. :( People volunteer their support here for free. If you need urgent support you may have to look for a professional. In the meantime, start reading here: http://tomcat.apache.org/tomcat-6.0-doc/index.html and then: http://tomcat.apache.org/tomcat-6.0-doc/config/index.html p Thanks, Vivyek kanchan -Original Message- From: Vivek Kanchan Sent: Wednesday, April 14, 2010 4:32 PM To: users@tomcat.apache.org Subject: need help in setting up virtual url for tomcat 5 HI, I have setup tomcat 5 for a customer, now i need to use virtual url and por= t t other than 8080 , please let me know how to do it , what files to change = for these. Thanks, Vivyek kanchan - 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 signature.asc Description: OpenPGP digital signature
Apache Tomcat 5 does not work on port 80
Hi, I have tomcat 5.0 installed on a windows server 2008 machine. Tomcat is the only web server installed. When I change the port to anything other than port 80, for example 8080, I can successfully access the website, but it does not work for Port 80. I have made sure the port is open in the firewall and I can remotely telnet to port 80 with not problems. Any suggestions on what I should be testing to resolve this problem? I am a newbie to Tomcat. Thanks!! Here is the server.xml: Server port=8005 shutdown=SHUTDOWN debug=0 !-- Define the Tomcat Stand-Alone Service -- Service name=Catalina !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector port=80 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 URIEncoding=utf-8 disableUploadTimeout=true / !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=true debug=0 protocol=AJP/1.3 URIEncoding=utf-8 / !-- Define the top level container in our container hierarchy -- Engine name=Catalina defaultHost=localhost debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Host name=localhost debug=0 appBase=D:\Program Files (x86)\NetXposure\ImagePortal unpackWARs=false autoDeploy=true Valve className=org.apache.catalina.valves.AccessLogValve directory=D:\Program Files (x86)\NetXposure\ImagePortal\WEB-INF\logs prefix=access. suffix=.txt pattern=combined resolveHosts=true / Logger className=org.apache.catalina.logger.FileLogger directory=D:\Program Files (x86)\NetXposure\ImagePortal\WEB-INF\logs prefix=debug. suffix=.txt timestamp=true/ Context path= docBase=D:\Program Files (x86)\NetXposure\ImagePortal debug=0 antiJARLocking=true crossContext= true/ /Host /Engine /Service /Server
Re: Apache Tomcat 5 does not work on port 80
Check you don't already have IIS running on port 80. If you look in Tomcat's logs, there should be a bind exception if that's the case. Is there any reason you're using 5.0? It's very old, and is no longer supported. This means that, for example, it has known security holes and they will never be fixed. - Peter On 8 April 2010 16:33, Sulaiman Paperwalla s...@fiu.edu wrote: Hi, I have tomcat 5.0 installed on a windows server 2008 machine. Tomcat is the only web server installed. When I change the port to anything other than port 80, for example 8080, I can successfully access the website, but it does not work for Port 80. I have made sure the port is open in the firewall and I can remotely telnet to port 80 with not problems. Any suggestions on what I should be testing to resolve this problem? I am a newbie to Tomcat. Thanks!! Here is the server.xml: Server port=8005 shutdown=SHUTDOWN debug=0 !-- Define the Tomcat Stand-Alone Service -- Service name=Catalina !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector port=80 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 URIEncoding=utf-8 disableUploadTimeout=true / !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=true debug=0 protocol=AJP/1.3 URIEncoding=utf-8 / !-- Define the top level container in our container hierarchy -- Engine name=Catalina defaultHost=localhost debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Host name=localhost debug=0 appBase=D:\Program Files (x86)\NetXposure\ImagePortal unpackWARs=false autoDeploy=true Valve className=org.apache.catalina.valves.AccessLogValve directory=D:\Program Files (x86)\NetXposure\ImagePortal\WEB-INF\logs prefix=access. suffix=.txt pattern=combined resolveHosts=true / Logger className=org.apache.catalina.logger.FileLogger directory=D:\Program Files (x86)\NetXposure\ImagePortal\WEB-INF\logs prefix=debug. suffix=.txt timestamp=true/ Context path= docBase=D:\Program Files (x86)\NetXposure\ImagePortal debug=0 antiJARLocking=true crossContext= true/ /Host /Engine /Service /Server
Re: Apache Tomcat 5 does not work on port 80
You can telnet port 80 without any problems? Well, that means there's some application running using port 80, otherwise you wouldn't be able to telnet on port 80. What gives netstat -a? Rgds Gregor -- just because you're paranoid, don't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ skype:rc46fi - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Apache Tomcat 5 does not work on port 80
Thanks! IIS is not running on this machine. I checked the logs and they are virtually blank. The logs I checked were jacarta_service_, stderr, and stdout log files. I am using tomcat 5 because the application I am using is not supporting a higher version yet. I am working with the vendor on this but it will take some time but for the time being I'm stuck with 5.0. Let me know if you have any other suggestions I can try. Thanks for your response! -sul. -Original Message- From: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther Sent: Thursday, April 08, 2010 11:38 AM To: Tomcat Users List Subject: Re: Apache Tomcat 5 does not work on port 80 Check you don't already have IIS running on port 80. If you look in Tomcat's logs, there should be a bind exception if that's the case. Is there any reason you're using 5.0? It's very old, and is no longer supported. This means that, for example, it has known security holes and they will never be fixed. - Peter On 8 April 2010 16:33, Sulaiman Paperwalla s...@fiu.edu wrote: Hi, I have tomcat 5.0 installed on a windows server 2008 machine. Tomcat is the only web server installed. When I change the port to anything other than port 80, for example 8080, I can successfully access the website, but it does not work for Port 80. I have made sure the port is open in the firewall and I can remotely telnet to port 80 with not problems. Any suggestions on what I should be testing to resolve this problem? I am a newbie to Tomcat. Thanks!! Here is the server.xml: Server port=8005 shutdown=SHUTDOWN debug=0 !-- Define the Tomcat Stand-Alone Service -- Service name=Catalina !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector port=80 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 URIEncoding=utf-8 disableUploadTimeout=true / !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=true debug=0 protocol=AJP/1.3 URIEncoding=utf-8 / !-- Define the top level container in our container hierarchy -- Engine name=Catalina defaultHost=localhost debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Host name=localhost debug=0 appBase=D:\Program Files (x86)\NetXposure\ImagePortal unpackWARs=false autoDeploy=true Valve className=org.apache.catalina.valves.AccessLogValve directory=D:\Program Files (x86)\NetXposure\ImagePortal\WEB-INF\logs prefix=access. suffix=.txt pattern=combined resolveHosts=true / Logger className=org.apache.catalina.logger.FileLogger directory=D:\Program Files (x86)\NetXposure\ImagePortal\WEB-INF\logs prefix=debug. suffix=.txt timestamp=true/ Context path= docBase=D:\Program Files (x86)\NetXposure\ImagePortal debug=0 antiJARLocking=true crossContext= true/ /Host /Engine /Service /Server - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Apache Tomcat 5 does not work on port 80
Thanks! I did netstat -a but it does not tell me the application that is listening on port 80; I always assumed it was tomcat but I don't know for sure. Sorry I'm a newbie. Here is partial result of netstat -a: Active Connections Proto Local Address Foreign AddressState TCP0.0.0.0:80 ocean:0LISTENING TCP0.0.0.0:135ocean:0LISTENING TCP0.0.0.0:445ocean:0LISTENING TCP0.0.0.0:1311 ocean:0LISTENING TCP0.0.0.0:1433 ocean:0LISTENING TCP0.0.0.0:2382 ocean:0LISTENING TCP0.0.0.0:3389 ocean:0LISTENING TCP0.0.0.0:8081 ocean:0LISTENING TCP0.0.0.0:49152 ocean:0LISTENING TCP0.0.0.0:49153 ocean:0LISTENING TCP0.0.0.0:49154 ocean:0LISTENING TCP0.0.0.0:49159 ocean:0LISTENING TCP0.0.0.0:49196 ocean:0LISTENING TCP0.0.0.0:49211 ocean:0LISTENING TCP0.0.0.0:49542 ocean:0LISTENING TCP127.0.0.1:8005 ocean:0LISTENING TCP127.0.0.1:49547ocean:0LISTENING TCP131.94.70.192:139 ocean:0LISTENING -Original Message- From: Gregor Schneider [mailto:rc4...@googlemail.com] Sent: Thursday, April 08, 2010 11:42 AM To: Tomcat Users List Subject: Re: Apache Tomcat 5 does not work on port 80 You can telnet port 80 without any problems? Well, that means there's some application running using port 80, otherwise you wouldn't be able to telnet on port 80. What gives netstat -a? Rgds Gregor -- just because you're paranoid, don't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ skype:rc46fi - 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: Apache Tomcat 5 does not work on port 80
From: Sulaiman Paperwalla [mailto:s...@fiu.edu] Subject: RE: Apache Tomcat 5 does not work on port 80 I did netstat -a but it does not tell me the application that is listening on port 80; Use netstat -ano, note the pid, and look it up in Task Manager. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
Re: Apache Tomcat 5 does not work on port 80
On 8 April 2010 16:52, Caldarale, Charles R chuck.caldar...@unisys.comwrote: Use netstat -ano, note the pid, and look it up in Task Manager. tcpview (http://technet.microsoft.com/en-us/sysinternals/bb897437.aspx) should give you the process directly, but Chuck's suggestion is less invasive :-). - Peter
RE: Apache Tomcat 5 does not work on port 80
Hi, Thanks for the suggestion. It resulted in PID 4 which is being used by NT Kernel and System. I started randomly stopping services and it was being used by SQL Server Reporting Services. I'm now looking into how I can change this service's port to something other than port 80. Thanks for your help (and Peter) for pointing me in the right direction. All the best, -sul. -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Thursday, April 08, 2010 11:53 AM To: Tomcat Users List Subject: RE: Apache Tomcat 5 does not work on port 80 From: Sulaiman Paperwalla [mailto:s...@fiu.edu] Subject: RE: Apache Tomcat 5 does not work on port 80 I did netstat -a but it does not tell me the application that is listening on port 80; Use netstat -ano, note the pid, and look it up in Task Manager. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
what's main difference between tomcat 5 and tomcat 6
___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/
Re: what's main difference between tomcat 5 and tomcat 6
On 04/02/2010 08:05, Shixiang Wen wrote: May I draw your attention to the Tomcat website? http://tomcat.apache.org/whichversion.html p ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: what's main difference between tomcat 5 and tomcat 6
1 ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Config IIS in tomcat 5 and 6 at sane time
Hi! I´m trying to config the IIS in 2 Apache servers using the ISAPI filters. I have one server with tomcat 5.5 and other with tomcat 6 but the system don't run. -- View this message in context: http://old.nabble.com/Config-IIS-in-tomcat-5-and-6-at-sane-time-tp27165931p27165931.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: Config IIS in tomcat 5 and 6 at sane time
From: Carlox [mailto:cegh0...@gmail.com] Subject: Config IIS in tomcat 5 and 6 at sane time Hi! I´m trying to config the IIS in 2 Apache servers using the ISAPI filters. I have one server with tomcat 5.5 and other with tomcat 6 but the system don't run. http://www.catb.org/~esr/faqs/smart-questions.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
Re: Tomcat 5 vs 6 Context useNaming Behavior
Caldarale, Charles R wrote: From: Scott Dudley [mailto:sc...@telesoft.com] Subject: Tomcat 5 vs 6 Context useNaming Behavior We have a legacy application that's been running on the 5.5.X versions for several years. Under what JVM? And platform? I've tested under both Windows (2000) and a couple of current Linux variants both running a current 1.6 VM - same behavior. 5.5.X works, 6.X doesn't. The application instantiates the context, creates and binds it's own JDBC pool, etc. with no relevant edits to any of Tomcat's configuration files. What does it do with exceptions during the context instantiation? They're thrown and reported - er go the exception excerpt included in my post. In 6.0.20, no matter the setting (true/false), we get the same Exception as when useNaming is set to true in 5.5.X: What JVM for 6.0.20? As mentioned earlier, current 1.6 release. Is there a known/related useNaming bug or have I missed some new configuration nugget? Can't say. Can you post your server.xml and relevant Context element? http://sdudley.com/files/server.xml http://sdudley.com/files/accountaccess-dev.xml You'll see we use a custom ClassLoader, FileDirContext, and LifecycleListener but like XML JNDI configuration, don't want to make them part of this conversation as they're not relevant. I'm simply trying to find out why useNaming works in 5.5.X and not 6 and hoped someone was already aware of the answer. In the meantime, I'm already looking through the source and doing some testing on my own. Thanks. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Scott Dudley Senior Developer Telesoft Corp. | 3443 N. Central Ave., 18th Floor | Phoenix, AZ, 85012 o: (602) 308-1115 | f: (602) 308-1300 | w: www.telesoft.com
Tomcat 5 vs 6 Context useNaming Behavior
We have a legacy application that's been running on the 5.5.X versions for several years. This application manipulates the JNDI context in such a manner that would now be considered unusual. In a nutshell, it's because the application framework was written concurrent with and prior to development of current standards. The application instantiates the context, creates and binds it's own JDBC pool, etc. with no relevant edits to any of Tomcat's configuration files. As long as useNaming is set to false for the Context in 5.5.X, this works splendidly. In 6.0.20, no matter the setting (true/false), we get the same Exception as when useNaming is set to true in 5.5.X: javax.naming.NamingException: Name comp is not bound in this Context Relevant snippet: System.setProperty(java.naming.factory.initial, com.telesoft.naming.BasicInitCtxFactory); Context context = new InitialContext(); context.rebind(java:comp/env/appName,this.appName); Is there a known/related useNaming bug or have I missed some new configuration nugget? Many thanks in advance. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat 5 vs 6 Context useNaming Behavior
From: Scott Dudley [mailto:sc...@telesoft.com] Subject: Tomcat 5 vs 6 Context useNaming Behavior We have a legacy application that's been running on the 5.5.X versions for several years. Under what JVM? And platform? The application instantiates the context, creates and binds it's own JDBC pool, etc. with no relevant edits to any of Tomcat's configuration files. What does it do with exceptions during the context instantiation? In 6.0.20, no matter the setting (true/false), we get the same Exception as when useNaming is set to true in 5.5.X: What JVM for 6.0.20? Is there a known/related useNaming bug or have I missed some new configuration nugget? Can't say. Can you post your server.xml and relevant Context element? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Logging in Tomcat 5 (SysOut SysErr)
At present, system.out and system.err are printing in the Windows console. How can I redirect output to some file? Or even better would be to have 2 outputs: file and Windows console. I have tried to read Tomcat docs and got lost there. It mentions default catalina.log as output, but I don't have it. Nor logging.properties. Please, can someone give me short guide what I have to do to acomplish logging of system.err and system.out into the file(s)? I can not change the way applications log, apps log to system.out and doesn't use log4j. Thank you, Milan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Logging in Tomcat 5 (SysOut SysErr)
You will need some kind of logging framework to do this (e.g. Log4J). On Fri, Nov 20, 2009 at 12:26 PM, Milan Tomic tomicmi...@yahoo.com wrote: At present, system.out and system.err are printing in the Windows console. How can I redirect output to some file? Or even better would be to have 2 outputs: file and Windows console. I have tried to read Tomcat docs and got lost there. It mentions default catalina.log as output, but I don't have it. Nor logging.properties. Please, can someone give me short guide what I have to do to acomplish logging of system.err and system.out into the file(s)? I can not change the way applications log, apps log to system.out and doesn't use log4j. Thank you, Milan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Aleksandar dipl. ing. Stoisavljevic Software Developer mobile: +381 (0) 64 211 50 40 Web: http://www.staleksit.in.rs E-mail:stal...@gmail.com e-mail%3astal...@gmail.com Mail: Branislava Nusica 10, 21000 Novi Sad, Serbia
RE: Logging in Tomcat 5 (SysOut SysErr)
From: Milan Tomic [mailto:tomicmi...@yahoo.com] Subject: Logging in Tomcat 5 (SysOut SysErr) At present, system.out and system.err are printing in the Windows console. How can I redirect output to some file? The first thing you have to tell us is exactly what version of Tomcat you're using; saying Tomcat 5 is highly ambiguous. If it's a 5.0.x, that is no longer supported. Look at the swallowOutput attribute for the Context element: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html If you don't have a logging.properties file in Tomcat's conf directory, your Tomcat installation is corrupt. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Multiple Instance of Tomcat 5 on Centos 5
I have Centos 5 on which I yum installed Tomcat5. Does anyone have tips for setting up multiple instances of TC in this configuration? I have seen some how-tos with other flavors of Linux. Its it going to be a matter of copying some files around and customizing the /etc/init.d/tomcat5 script? Thanks in advance -- View this message in context: http://www.nabble.com/Multiple-Instance-of-Tomcat-5-on-Centos-5-tp25975547p25975547.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: Multiple Instance of Tomcat 5 on Centos 5
homerlex wrote: I have Centos 5 on which I yum installed Tomcat5. Does anyone have tips for setting up multiple instances of TC in this configuration? I have seen some how-tos with other flavors of Linux. Its it going to be a matter of copying some files around and customizing the /etc/init.d/tomcat5 script? Basically yes, plus changing the ports used by each instance in its own private conf/server.xml file. But that is easier said than done if you are using a pre-packaged version which sets up symlinks all over the place.. The first question that should probably be asked is whether you really need several Tomcat instances, as opposed to one instance with several Host's. That is a lot easier to achieve, and it may be enough for what you have in mind. Each such Host has a distinct DNS name, and a distinct ../webapps directory, so you can segregate things quite flexibly without going through the hassle of changing startup scripts and links. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat 5 SSL keytool error: java.lang.Exception: Public key in reply and keystore don't match
I have a tomcat 5 web server setup on CentOS, I am currently working on installing a SSL cert but don't seem to be having any luck. I get the following error: keytool error: java.lang.Exception: Public key in reply and keystore don't match I have reissued the cert through Network Solutions and followed the following instructions to generate and install the cert. I have run out of my patience with them. Is there anything else that I may be missing? Thanks http://www.networksolutions.com/support/csr-for-java-based-webservers-su ch-as-tomcat-using-keytool/ http://www.networksolutions.com/support/installation-for-java-based-webs ervers-such-as-tomcat-using-keytool/ Miguel This email and any files transmitted with it are the confidential property of Focus Holdings, LLC and its subsidiaries, and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Multiple Instance of Tomcat 5 on Centos 5
Thanks for the reply. The reason we wanted multiple instances was that hot deploy fails from time to time so we need to restart TC. We want to be able to modify 1 app without affecting the other. Anyway, we've decide to just go with a separate VM for now :-) Thanks again. awarnier wrote: homerlex wrote: I have Centos 5 on which I yum installed Tomcat5. Does anyone have tips for setting up multiple instances of TC in this configuration? I have seen some how-tos with other flavors of Linux. Its it going to be a matter of copying some files around and customizing the /etc/init.d/tomcat5 script? Basically yes, plus changing the ports used by each instance in its own private conf/server.xml file. But that is easier said than done if you are using a pre-packaged version which sets up symlinks all over the place.. The first question that should probably be asked is whether you really need several Tomcat instances, as opposed to one instance with several Host's. That is a lot easier to achieve, and it may be enough for what you have in mind. Each such Host has a distinct DNS name, and a distinct ../webapps directory, so you can segregate things quite flexibly without going through the hassle of changing startup scripts and links. - 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/Multiple-Instance-of-Tomcat-5-on-Centos-5-tp25975547p25976821.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
Tomcat 5 SSL keytool error: java.lang.Exception: Public key in reply and keystore don't match
I have a tomcat 5 web server setup on CentOS, I am currently working on installing a SSL cert but don't seem to be having any luck. I get the following error: keytool error: java.lang.Exception: Public key in reply and keystore don't match I have reissued the cert through Network Solutions and followed the following instructions to generate and install the cert. I have run out of my patience with them. Is there anything else that I may be missing? Thanks http://www.networksolutions.com/support/csr-for-java-based-webservers-su ch-as-tomcat-using-keytool/ http://www.networksolutions.com/support/installation-for-java-based-webs ervers-such-as-tomcat-using-keytool/ Miguel This email and any files transmitted with it are the confidential property of Focus Holdings, LLC and its subsidiaries, and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 5 SSL keytool error: java.lang.Exception: Public key in reply and keystore don't match
Miguel, I just installed a cert using our own CA, had a bit of trouble myself, but it worked in the end. I found comodo's and Herong Yang's instructions useful. See http://www.herongyang.com/crypto/OpenSSL_Signing_keytool_CSR.html and https://support.comodo.com/index.php?_m=knowledgebase_a=viewarticlekbarticleid=1204 One thing to note is that when you import cert, use the same certificate alias as the key's (for example, -genkey -alias tomcat followed by -import -trustcacerts -aliast tomcat) On Tuesday 20 October 2009 10:36, Miguel Ortiz wrote: I have a tomcat 5 web server setup on CentOS, I am currently working on installing a SSL cert but don't seem to be having any luck. I get the following error: keytool error: java.lang.Exception: Public key in reply and keystore don't match I have reissued the cert through Network Solutions and followed the following instructions to generate and install the cert. I have run out of my patience with them. Is there anything else that I may be missing? Thanks http://www.networksolutions.com/support/csr-for-java-based-webservers-su ch-as-tomcat-using-keytool/ http://www.networksolutions.com/support/installation-for-java-based-webs ervers-such-as-tomcat-using-keytool/ Miguel -- Nicholas Sushkin, Senior Software Engineer http://www.aggex.com http://www.wealthinformationexchange.com smime.p7s Description: S/MIME cryptographic signature
Re: Tomcat 5 SSL keytool error: java.lang.Exception: Public key in reply and keystore don't match
Nicholas, You bring up a good point about the alias. It's what I feel most people mess up on when installing SSL Certificates to a keystore. If no alias is specified upon creation of the keystore, the alias is mykey. You can import ANY certificate you want into the keystore. You don't need it's private key. So keytool will act as if nothing is wrong. It's very sneaky in this regard. One can easily see the contents of the keystore: `keytool -keystore KEYSTORE_FILE -v -list -storepass PASSWORD SOMEFILE.TXT ` and one can see the alias here if they so forget what they gave it. Miguel, In regards to your issue, make sure the CSR and Certificate's modulus match. Easiest way is via OpenSSL. Since, you're on CentOS, you probably already have this. `openssl x509 -noout -modulus -in YOUR_CERT.crt | openssl md5` and `openssl req -noout -modulus -in YOUR.CSR | openssl md5 ` Compare these two hashes. And if they're different... `openssl x509 -noout -serial -in YOUR_CERT.crt`, and verify the serial number with Network Solutions, your CA as they might have sent you the wrong certificate. Worst comes to worst, you might have to get a re-issue and make your keystore and csr have unique matching file names. On 10/20/2009 12:19 PM, Nicholas Sushkin wrote: Miguel, I just installed a cert using our own CA, had a bit of trouble myself, but it worked in the end. I found comodo's and Herong Yang's instructions useful. See http://www.herongyang.com/crypto/OpenSSL_Signing_keytool_CSR.html and https://support.comodo.com/index.php?_m=knowledgebase_a=viewarticlekbarticleid=1204 One thing to note is that when you import cert, use the same certificate alias as the key's (for example, -genkey -alias tomcat followed by -import -trustcacerts -aliast tomcat) On Tuesday 20 October 2009 10:36, Miguel Ortiz wrote: I have a tomcat 5 web server setup on CentOS, I am currently working on installing a SSL cert but don't seem to be having any luck. I get the following error: keytool error: java.lang.Exception: Public key in reply and keystore don't match I have reissued the cert through Network Solutions and followed the following instructions to generate and install the cert. I have run out of my patience with them. Is there anything else that I may be missing? Thanks http://www.networksolutions.com/support/csr-for-java-based-webservers-su ch-as-tomcat-using-keytool/ http://www.networksolutions.com/support/installation-for-java-based-webs ervers-such-as-tomcat-using-keytool/ Miguel - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
tomcat 5 clustering problems
Hi guyz I am running Linux Server,I have installed tomcat 5. I was following your Windows tomcat clustering and load balancing manual. I did follow the manual to run multiple tomcat instances. I placed the tomcat under this directory /opt/apache-tomcat-5.5.25 /opt/apache-tomcat-5.5.25_instance I have exported the following tomcat environment variable export CATALINA_HOME=/opt/apache-tomcat-5.5.25 export TOMCAT_HOME=/opt/apache-tomcat-5.5.25 export CATALINA_BASE=/opt/apache-tomcat-5.5.25_instances I exported even the tomcat PATH. For tomcat 1 :/opt/apache-tomcat-5.5.25/conf/server.xml ,I left it as it is. For tomcat 2 :/opt/apache-tomcat-5.5.25_instances/conf/server.xml I changed the following Server port=8005 shutdown=SHUTDOWN = Server port=8025 shutdown=SHUTDOWN Connector port=8080 maxHttpHeaderSize=8192 =Connector port=8010 maxHttpHeaderSize=8192 Connector port=8009 enableLookups=false redirectPort=8443 protocol=AJP/1.3 / =Connector port=8019 enableLookups=false redirectPort=8443 protocol=AJP/1.3 / I started all the tomcat I traced the catalina logs file r...@shirinda:/opt/apache-tomcat-5.5.25# tail -f logs/catalina.out 2009/08/28 6:31:48 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 9832 ms 2009/08/28 6:32:17 PM org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 2009/08/28 6:32:18 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina 2009/08/28 6:32:18 PM org.apache.coyote.http11.Http11BaseProtocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 2009/08/28 6:32:18 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: Failed shutdown of Apache Portable Runtime for tomcat 2 catalina logs file r...@shirinda:/opt/tomcat2# tail -f logs/catalina.out 2009/08/28 7:32:44 PM org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8010 2009/08/28 7:32:44 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 3244 ms 2009/08/28 7:32:44 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina 2009/08/28 7:32:44 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.25 2009/08/28 7:32:45 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled 2009/08/28 7:32:52 PM org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-8010 2009/08/28 7:32:53 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8019 2009/08/28 7:32:53 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=1/194 config=null 2009/08/28 7:32:53 PM org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource 2009/08/28 7:32:54 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 10101 ms When I browse this http://localhost:8080 is not up http://localhost:8010 is up please help me -- *** STATE INFORMATION TECHNOLOGY AGENCY *** MIYELANI GIVEN SHIRINDA. E-LEARNING CONSULTANT [SAKAI] DEPARTMENT: TECHNOLOGY LAB ___ Tel :012 470 1526 Cell:0730133879 E-Mail 1:given.shiri...@sita.co.za E-Mail 2:mgshiri...@webmail.co.za ___ Failure is simply the opportunity to begin again,this time more intelligently.
FW: Accessing Properties file located in Conf Directory of Tomcat 5.XX
_ From: Prabhakar, Kaverappa Sent: Thursday, August 20, 2009 10:20 AM To: 'users@tomcat.apache.org' Subject: Accessing Properties file located in Conf Directory of Tomcat 5.XX We have to place, as per rules set by the department, the properties file in the Conf directory of Tomcat AS. The TOMCAT does not find the properties file placed in CONF directory but it does find when placed in Common or Shared directory of TOMCAT. I tried placing the directory path in the java code of Jdeveloper (see below for variation of codes used) and created WAR file using Jdeveloper to deploy it on TOMCAT. But still it does not find it. I tried placing the directory path in the java code of Jdeveloper (see below for variation of codes used) and created WAR file using Jdeveloper to deploy it on TOMCAT. But still it does not find it. prop.load(loader.getResourceAsStream(genPricing.properties)); prop.load(loader.getResourceAsStream(/genPricing.properties)); prop.load(loader.getResourceAsStream(/conf/genPricing.properties)); prop.load(loader.getResourceAsStream(conf/genPricing.properties)); prop.load(loader.getResourceAsStream($tomcat_home\\conf\\genPricing.properties)); prop.load(loader.getResourceAsStream(${tomcat_home}/conf/genPricing.properties)); Any suggestion as to how to read the properties file located in CONF directory. Quick response would be greatly appreciated. Prabhakar
Accessing Properties file located in Conf Directory of Tomcat 5.XX
We have to place, as per rules set by the department, the properties file in the Conf directory of Tomcat AS. The TOMCAT does not find the properties file placed in CONF directory but it does find when placed in Common or Shared directory of TOMCAT. I tried placing the directory path in the java code of Jdeveloper (see below for variation of codes used) and created WAR file using Jdeveloper to deploy it on TOMCAT. But still it does not find it. I tried placing the directory path in the java code of Jdeveloper (see below for variation of codes used) and created WAR file using Jdeveloper to deploy it on TOMCAT. But still it does not find it. prop.load(loader.getResourceAsStream(genPricing.properties)); prop.load(loader.getResourceAsStream(/genPricing.properties)); prop.load(loader.getResourceAsStream(/conf/genPricing.properties)); prop.load(loader.getResourceAsStream(conf/genPricing.properties)); prop.load(loader.getResourceAsStream($tomcat_home\\conf\\genPricing.properties)); prop.load(loader.getResourceAsStream(${tomcat_home}/conf/genPricing.properties)); Any suggestion as to how to read the properties file located in CONF directory. Quick response would be greatly appreciated. Prabhakar
RE: Accessing Properties file located in Conf Directory of Tomcat 5.XX
there are at least 100 people on this list that can accomplish this requirement you will need to handle this requirement by posting a statement of work details on how to write a statement of work referenced here http://www.usability.gov/plan/sow.html 1 or more engineers will respond with a RFQ with a proposal and cost estimate. You can then select the most qualified help... let us know when you have posted your SOW __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: kaverappa.prabha...@do.treas.gov To: users@tomcat.apache.org Date: Thu, 20 Aug 2009 10:52:30 -0400 Subject: FW: Accessing Properties file located in Conf Directory of Tomcat 5.XX _ From: Prabhakar, Kaverappa Sent: Thursday, August 20, 2009 10:20 AM To: 'users@tomcat.apache.org' Subject: Accessing Properties file located in Conf Directory of Tomcat 5.XX We have to place, as per rules set by the department, the properties file in the Conf directory of Tomcat AS. The TOMCAT does not find the properties file placed in CONF directory but it does find when placed in Common or Shared directory of TOMCAT. I tried placing the directory path in the java code of Jdeveloper (see below for variation of codes used) and created WAR file using Jdeveloper to deploy it on TOMCAT. But still it does not find it. I tried placing the directory path in the java code of Jdeveloper (see below for variation of codes used) and created WAR file using Jdeveloper to deploy it on TOMCAT. But still it does not find it. prop.load(loader.getResourceAsStream(genPricing.properties)); prop.load(loader.getResourceAsStream(/genPricing.properties)); prop.load(loader.getResourceAsStream(/conf/genPricing.properties)); prop.load(loader.getResourceAsStream(conf/genPricing.properties)); prop.load(loader.getResourceAsStream($tomcat_home\\conf\\genPricing.properties)); prop.load(loader.getResourceAsStream(${tomcat_home}/conf/genPricing.properties)); Any suggestion as to how to read the properties file located in CONF directory. Quick response would be greatly appreciated. Prabhakar _ With Windows Live, you can organize, edit, and share your photos. http://www.windowslive.com/Desktop/PhotoGallery