Re: ./configure --enable-ssl
Hi, I'm using OpenSSL and have no problems... PETR On 3/31/06, Indraveni [EMAIL PROTECTED] wrote: Hi friends, If we are giving the apcahe configuration command as ./configure --enable-ssl then which ssl packages does the system require. ssl support since I am facingan error saying no ssl modules - Jiyo cricket on Yahoo! India cricket Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
Re: tomcat 5.0.28 on RH 4.0
Dear saha I mentioned it on the mail that load testing is not done. I am working on actually an application which is having a web based GUI.so for us the maximum number of users online may be some 10-20 at any single point of time.but our load comes from the dynamicity of the web application eg.in each 5 seconds the client applet will query to the tomcat server about the status and tomcat has to get the data from a database and update the client. But I think u can optimize ur server to perform better in redhat and offcourse Redhat is tested and relaible regards vineesh On 3/31/06, Sanjay Saha [EMAIL PROTECTED] wrote: Thanks vinesh, but didn't mention the load on it. I compared it with my system having min 600-800 hits a day with an average minimum per day per hour 4 concurrent users and an average per hour day average maximum 20 concurrent user . On 3/31/06, vineesh kumar [EMAIL PROTECTED] wrote: Hi, I am running RHEL ES 4.0, with tomcat 5.5 (actual deployment server) and 5.0 on an experimental server for last 9 months consistantly. I am using java 1.5 and it;s showing steady performace.not much load testing done. regards vineesh On 3/31/06, Kumar, Sunitha [EMAIL PROTECTED] wrote: Hi Folks: Have anyone run tomcat successfully on RHEL AS 4.0? If yes, what version? thanks, -sunitha -- Vineesh Kumar Software Engineer ISS-RnD Department HCL infosystems Ltd Cochin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sanjay Saha System Administrator http://www.sanjaysaha.in -- Vineesh Kumar Software Engineer ISS-RnD Department HCL infosystems Ltd Cochin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad!
wow! you guys sound pretty harsh when it comes to messages to help users on simple mistakes then. I recently dropped in someone else's example app war file that had the SAME PROBLEM.latest facelets. I could not even give back information to help them debug the problem. It was standard tomcat 5.5.16. It worked on 5.0 just fine. I now know that I need to unzip their war file, remove log4j(and maybe even hope that they are using commons, because if they are not, I may be utterly screwed). Then I need to redeploy their app. I need to do all this because tomcat is unwilling to give good helpful messages as to what is going on(as seen by all the other posts that have had trouble figuring out their problems behind that error with no reponses either.I was the lucky one and finally figured out what was wrong). I can only hope others can find my solution post without wasting too much time. later, dean Remy Maucherat wrote: On 3/30/06, Markus Schönhaber [EMAIL PROTECTED] wrote: The RuntimeException is to make it more noticeable in the logs. I mean 953 hits on googling is quite alot of people having trouble. Would be nice to cut that number down with an easy log statement that tomcat could add!!! Well, if it's really that easy you should definitely provide a patch. I recommend not wasting time, as I would refuse such a nonsensical patch. The actual worakround is to learn how to properly use logging, which seems to be a useful skill. -- x Rémy Maucherat Developer Consultant JBoss Inc x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
The problem i have met
I am pretty new to tomcat. I recently read a post http://marc.theaimsgroup.com/?l=tomcat-userm=114372017420869w=2 which solved a problem I have been having for tomcat 5.5 also. I thank that person for posting the solution. I also read some of the responses from what appear to be the tomcat developers and was very dissappointed. I also think that is a usability problem for newbs. like tomcat team wants tomcat to only be usable for advanced users to me. This frankly dissapoints me. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Connector - Remote acessing
What is listening to port 80 on 192.9.200.62? What error(s) do you get when you make such a request? Are you using Apache + Tomcat? What connector? More information is required to answer your question. Tim -Original Message- From: Indraveni [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 1:37 AM To: users@tomcat.apache.org Subject: Tomcat Connector - Remote acessing Hi, I followed John Turner documentation for Connector Installation. But the problem is I am able to acess it through localhost only. When I want to access my web server from the remote system I am not able to do it. that is the jsp files which I am accessing through localhost, I want to access them from other system using my system ip address like http://192.9.200.62/examples whereas http://192.9.200.62:8080/examples is working fine in the remote system which is in LAN with my system..But I want 192.9.200.62/examples also to run. This is my immediate requirement. Please tell me what I need to do for this. Thankyou, Indraveni - Jiyo cricket on Yahoo! India cricket Yahoo! Messenger Mobile Stay in touch with your buddies all the time. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad!
Please don't think it's the whole Tomcat community Dean, there are some really helpful devs on Tomat, it's just Remy in particular has a problem being polite/arrogant about Tomcat - I guess from his privileged point of view he understands everything about Tomcat and therefore does not understand what usability is all about. All the best, AC. -Original Message- From: Dean Hiller [mailto:[EMAIL PROTECTED] Sent: 31 March 2006 11:39 To: Tomcat Users List Subject: Re: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad! wow! you guys sound pretty harsh when it comes to messages to help users on simple mistakes then. I recently dropped in someone else's example app war file that had the SAME PROBLEM.latest facelets. I could not even give back information to help them debug the problem. It was standard tomcat 5.5.16. It worked on 5.0 just fine. I now know that I need to unzip their war file, remove log4j(and maybe even hope that they are using commons, because if they are not, I may be utterly screwed). Then I need to redeploy their app. I need to do all this because tomcat is unwilling to give good helpful messages as to what is going on(as seen by all the other posts that have had trouble figuring out their problems behind that error with no reponses either.I was the lucky one and finally figured out what was wrong). I can only hope others can find my solution post without wasting too much time. later, dean Remy Maucherat wrote: On 3/30/06, Markus Schönhaber [EMAIL PROTECTED] wrote: The RuntimeException is to make it more noticeable in the logs. I mean 953 hits on googling is quite alot of people having trouble. Would be nice to cut that number down with an easy log statement that tomcat could add!!! Well, if it's really that easy you should definitely provide a patch. I recommend not wasting time, as I would refuse such a nonsensical patch. The actual worakround is to learn how to properly use logging, which seems to be a useful skill. -- x Rémy Maucherat Developer Consultant JBoss Inc x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK Disclaimer: The information contained within this e-mail is confidential and may be privileged. This email is intended solely for the named recipient only; if you are not authorised you must not disclose, copy, distribute, or retain this message or any part of it. If you have received this message in error please contact the sender at once so that we may take the appropriate action and avoid troubling you further. Any views expressed in this message are those of the individual sender. QAS Limited has the right lawfully to record, monitor and inspect messages between its employees and any third party. Your messages shall be subject to such lawful supervision as QAS Limited deems to be necessary in order to protect its information, its interests and its reputation. Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS Limited cannot guarantee that attachments are virus free or compatible with your systems and does not accept any liability in respect of viruses or computer problems experienced. /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5.0.28 on RH 4.0
We are planning to deploy (in 2 weeks actually) on RHEL 4 with Apache + 3 tomcat servers (4 x Dell 2850s w/ dual-core CPUs). Load testing (JMeter, HttpUnit playback of actual recorded requests) on this environment has revealed a marked improvement in throughput (65K request/hour with 100 clients) over the previous IIS/JRun environment (25K request/hour with 100 clients.) Tim -Original Message- From: vineesh kumar [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 4:06 AM To: Tomcat Users List Subject: Re: tomcat 5.0.28 on RH 4.0 Dear saha I mentioned it on the mail that load testing is not done. I am working on actually an application which is having a web based GUI.so for us the maximum number of users online may be some 10-20 at any single point of time.but our load comes from the dynamicity of the web application eg.in each 5 seconds the client applet will query to the tomcat server about the status and tomcat has to get the data from a database and update the client. But I think u can optimize ur server to perform better in redhat and offcourse Redhat is tested and relaible regards vineesh On 3/31/06, Sanjay Saha [EMAIL PROTECTED] wrote: Thanks vinesh, but didn't mention the load on it. I compared it with my system having min 600-800 hits a day with an average minimum per day per hour 4 concurrent users and an average per hour day average maximum 20 concurrent user . On 3/31/06, vineesh kumar [EMAIL PROTECTED] wrote: Hi, I am running RHEL ES 4.0, with tomcat 5.5 (actual deployment server) and 5.0 on an experimental server for last 9 months consistantly. I am using java 1.5 and it;s showing steady performace.not much load testing done. regards vineesh On 3/31/06, Kumar, Sunitha [EMAIL PROTECTED] wrote: Hi Folks: Have anyone run tomcat successfully on RHEL AS 4.0? If yes, what version? thanks, -sunitha -- Vineesh Kumar Software Engineer ISS-RnD Department HCL infosystems Ltd Cochin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sanjay Saha System Administrator http://www.sanjaysaha.in -- Vineesh Kumar Software Engineer ISS-RnD Department HCL infosystems Ltd Cochin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad!
thankyou, that response is much appreciated. thanks, dean Allistair Crossley wrote: Please don't think it's the whole Tomcat community Dean, there are some really helpful devs on Tomat, it's just Remy in particular has a problem being polite/arrogant about Tomcat - I guess from his privileged point of view he understands everything about Tomcat and therefore does not understand what usability is all about. All the best, AC. -Original Message- From: Dean Hiller [mailto:[EMAIL PROTECTED] Sent: 31 March 2006 11:39 To: Tomcat Users List Subject: Re: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad! wow! you guys sound pretty harsh when it comes to messages to help users on simple mistakes then. I recently dropped in someone else's example app war file that had the SAME PROBLEM.latest facelets. I could not even give back information to help them debug the problem. It was standard tomcat 5.5.16. It worked on 5.0 just fine. I now know that I need to unzip their war file, remove log4j(and maybe even hope that they are using commons, because if they are not, I may be utterly screwed). Then I need to redeploy their app. I need to do all this because tomcat is unwilling to give good helpful messages as to what is going on(as seen by all the other posts that have had trouble figuring out their problems behind that error with no reponses either.I was the lucky one and finally figured out what was wrong). I can only hope others can find my solution post without wasting too much time. later, dean Remy Maucherat wrote: On 3/30/06, Markus Schönhaber [EMAIL PROTECTED] wrote: The RuntimeException is to make it more noticeable in the logs. I mean 953 hits on googling is quite alot of people having trouble. Would be nice to cut that number down with an easy log statement that tomcat could add!!! Well, if it's really that easy you should definitely provide a patch. I recommend not wasting time, as I would refuse such a nonsensical patch. The actual worakround is to learn how to properly use logging, which seems to be a useful skill. -- x Rémy Maucherat Developer Consultant JBoss Inc x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK Disclaimer: The information contained within this e-mail is confidential and may be privileged. This email is intended solely for the named recipient only; if you are not authorised you must not disclose, copy, distribute, or retain this message or any part of it. If you have received this message in error please contact the sender at once so that we may take the appropriate action and avoid troubling you further. Any views expressed in this message are those of the individual sender. QAS Limited has the right lawfully to record, monitor and inspect messages between its employees and any third party. Your messages shall be subject to such lawful supervision as QAS Limited deems to be necessary in order to protect its information, its interests and its reputation. Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS Limited cannot guarantee that attachments are virus free or compatible with your systems and does not accept any liability in respect of viruses or computer problems experienced. /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad!
Switch places with them for a minute -- They are providing free support and pretty good support at that. Note that there are many, many basic questions that could easily be answered by reading the documentation (RTFM) or by Googling (STFW), but instead posters demand immediate help as their homework is due in 20 minutes, or their boss is sitting in the chair behind them. Now take a potshot at the most useful, widely used, and COMPLETELY FREE application server, which you paid nothing for, have no support contract for (again, you paid nothing), and occasionally someone is bound to take it a little personally. I have (casually) observed that the level of 'snippetyness' from the responder is inversely proportional to the quality of the question. On the subject of log4j.jar without log4j.properties, don't get mad at Tomcat / Tomcat developers. Get mad at the idiot developers who shipped a war file without a) knowing how to perform logging and b) performing basic testing. I help out when I can. If I'm not sure, but have a minute, *I* will often STFW and/or RTFM to make sure. If I can do it, then so can you (the royal you) and you didn't have to post. Ask intelligent questions, and you will get intelligent answers. Show an unwillingness to learn anything, and you will get snubbed. Tim -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 6:39 AM To: Tomcat Users List Subject: RE: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad! Please don't think it's the whole Tomcat community Dean, there are some really helpful devs on Tomat, it's just Remy in particular has a problem being polite/arrogant about Tomcat - I guess from his privileged point of view he understands everything about Tomcat and therefore does not understand what usability is all about. All the best, AC. -Original Message- From: Dean Hiller [mailto:[EMAIL PROTECTED] Sent: 31 March 2006 11:39 To: Tomcat Users List Subject: Re: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad! wow! you guys sound pretty harsh when it comes to messages to help users on simple mistakes then. I recently dropped in someone else's example app war file that had the SAME PROBLEM.latest facelets. I could not even give back information to help them debug the problem. It was standard tomcat 5.5.16. It worked on 5.0 just fine. I now know that I need to unzip their war file, remove log4j(and maybe even hope that they are using commons, because if they are not, I may be utterly screwed). Then I need to redeploy their app. I need to do all this because tomcat is unwilling to give good helpful messages as to what is going on(as seen by all the other posts that have had trouble figuring out their problems behind that error with no reponses either.I was the lucky one and finally figured out what was wrong). I can only hope others can find my solution post without wasting too much time. later, dean Remy Maucherat wrote: On 3/30/06, Markus Schönhaber [EMAIL PROTECTED] wrote: The RuntimeException is to make it more noticeable in the logs. I mean 953 hits on googling is quite alot of people having trouble. Would be nice to cut that number down with an easy log statement that tomcat could add!!! Well, if it's really that easy you should definitely provide a patch. I recommend not wasting time, as I would refuse such a nonsensical patch. The actual worakround is to learn how to properly use logging, which seems to be a useful skill. -- x Rémy Maucherat Developer Consultant JBoss Inc x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK Disclaimer: The information contained within this e-mail is confidential and may be privileged. This email is intended solely for the named recipient only; if you are not authorised you must not disclose, copy, distribute, or retain this message or any part of it. If you have received this message in error please contact the sender at once so that we may take the appropriate action and avoid troubling you further. Any views expressed in this message are those of the individual sender. QAS Limited has the right lawfully to record, monitor and inspect messages between its employees and any third party. Your messages shall be subject to such lawful supervision as QAS Limited deems to be necessary in order to protect its
Re: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad!
my problem is solved. I was just trying to poke tomcat team in hopes that could put something in to help the next newb. later, I think I am jumping off the list nowjust too much email on this list, dean Markus Schönhaber wrote: Dean Hiller wrote: wow! you guys sound pretty harsh when it comes to messages to help users on simple mistakes then. I recently dropped in someone else's example app war file that had the SAME PROBLEM.latest facelets. I could not even give back information to help them debug the problem. It was standard tomcat 5.5.16. It worked on 5.0 just fine. I now know that I need to unzip their war file, remove log4j(and maybe even hope that they are using commons, because if they are not, I may be utterly screwed). Then I need to redeploy their app. I need to do all this because tomcat is unwilling to give good helpful messages as to what is going on(as seen by all the other posts that have had trouble figuring out their problems behind that error with no reponses either.I was the lucky one and finally figured out what was wrong). I can only hope others can find my solution post without wasting too much time. I don't see too much harshness here. And my proposal to provide a patch wasn't meant really serious either since I strongly doubt it will be as easy as you seem to think. Also, Rémy calling such a patch - if there was one - nonsensical seems quite understandable to me since trying to work around anything a user can do to b0rk his webapp would bloat Tomcat's source code beyond all borders. OTOH if there are really so many people b0rking their webapps this particular way, then maybe this should be added to the FAQ. Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Connector - Remote acessing
Yes I am using Tomcat + Apache, using mod_jk module I connected these two servers. I am able to access the examples folder of tomcat which is having the jsp and servlet files. I am able to execute these jsp and servlet programes using localhost/examples. I dont know to which port my ip i.e 192.9.200.62 is listening to. (How to find it out?) . Localhost page that it apaceh home page I am able to see from remote system when I am givng in that systems browser my system IP i.e 192.9.200.62. But I am not able to view the jsp files from there. If need any more clarifications please let me know. I want this very urgent Thankyou. Indraveni Tim Lucia [EMAIL PROTECTED] wrote: What is listening to port 80 on 192.9.200.62? What error(s) do you get when you make such a request? Are you using Apache + Tomcat? What connector? More information is required to answer your question. Tim -Original Message- From: Indraveni [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 1:37 AM To: users@tomcat.apache.org Subject: Tomcat Connector - Remote acessing Hi, I followed John Turner documentation for Connector Installation. But the problem is I am able to acess it through localhost only. When I want to access my web server from the remote system I am not able to do it. that is the jsp files which I am accessing through localhost, I want to access them from other system using my system ip address like http://192.9.200.62/examples whereas http://192.9.200.62:8080/examples is working fine in the remote system which is in LAN with my system..But I want 192.9.200.62/examples also to run. This is my immediate requirement. Please tell me what I need to do for this. Thankyou, Indraveni - Jiyo cricket on Yahoo! India cricket Yahoo! Messenger Mobile Stay in touch with your buddies all the time. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Jiyo cricket on Yahoo! India cricket Yahoo! Messenger Mobile Stay in touch with your buddies all the time. - Jiyo cricket on Yahoo! India cricket Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
RE: Startup batch files in 5.5
Thanks Tom... I was way beyond the point of frustration by the time I wrote this email. Switching out my JDK, AppServer and IDE at once time resulted in about 25 hours of frustration (sleep is for the weak! Or so I'm told). It's all good now and thanks for the suggestion about the service, I totally spaced on that one. -C- -Original Message- From: Tim Lucia [mailto:[EMAIL PROTECTED] Sent: Thursday, March 30, 2006 10:34 PM To: 'Tomcat Users List' Subject: RE: Startup batch files in 5.5 You installed the .exe version. The .zip version (I believe) contains all the batch files. Not that you need them. You can manipulate the VM startup options via the service control (tomcat5w aka system tray monitor.) On the Java tab, simply add (each on it's own line) -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=,suspend=n See these http://debuggercore.netbeans.org/docs/VM-options.html http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/jdb.html for all the options. Tim -Original Message- From: Cord Awtry [mailto:[EMAIL PROTECTED] Sent: Thursday, March 30, 2006 10:19 PM To: users@tomcat.apache.org Subject: Startup batch files in 5.5 So I'm trying to set up Tomcat 5.5 with remote debugging because my new IDE is a complete pain in my backside, but I noticed that my new Tomcat5.5 installation that have the old familiar batch files for launching the server. all it has is 3 jar files, tomcat5.exe and tomcat5w.exe in the bin directory. What happened to all the nicely prepped and configurable batch files? -C- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad!
Too true Tim. I've been on this list since the tomcat 3 days and it never fails to impress me how many questions fall into one of three categories: 1) Questions easily answerable by reading the docs. These are the RTFM questions. 2) Repeats of previously posted and answered questions. These are the Search the Fantastic Web (STFW) questions. 3) Questions so devoid of any useful information they are completely unanswerable. The it doesn't work, please help questions. Don't get me wrong -- there are some excellent questions with even better answers. I stay on the list for those gems. For those out there who are thinking about asking questions, here's my advice: 1) Define you problem. The more detail you gather, the better for both yourself and those that help. Specifically take a look at the logs and consider the demands your webapp is making on the server. 2) If you are designing a webapp or library, insert effective logging from the beginning. With both commons-logging and log4j, the log level and classes being logged can be controlled from their respective configuration files. The logging can be left in for production, just reconfigure for error level logging and the debug stuff won't show. 3) Do a couple of searches on your favorite search engine even if all you get out of it is the proper terms to describe your issue. In the process you may also find similar posts to shed some light on your problem. 4) Take a look the online docs for the product you are using. Tomcat leverages a fair number of other projects and standards. Those docs may also apply to your problem. For instance in this thread, Commons-Logging and Log4j project docs would help. 5) Don't be shy about posting a long email. The important things are to be specific, show relevant code and complete log info. You may have been staring at your problem for two weeks -- we haven't and need the info to help. --David Tim Lucia wrote: Switch places with them for a minute -- They are providing free support and pretty good support at that. Note that there are many, many basic questions that could easily be answered by reading the documentation (RTFM) or by Googling (STFW), but instead posters demand immediate help as their homework is due in 20 minutes, or their boss is sitting in the chair behind them. Now take a potshot at the most useful, widely used, and COMPLETELY FREE application server, which you paid nothing for, have no support contract for (again, you paid nothing), and occasionally someone is bound to take it a little personally. I have (casually) observed that the level of 'snippetyness' from the responder is inversely proportional to the quality of the question. On the subject of log4j.jar without log4j.properties, don't get mad at Tomcat / Tomcat developers. Get mad at the idiot developers who shipped a war file without a) knowing how to perform logging and b) performing basic testing. I help out when I can. If I'm not sure, but have a minute, *I* will often STFW and/or RTFM to make sure. If I can do it, then so can you (the royal you) and you didn't have to post. Ask intelligent questions, and you will get intelligent answers. Show an unwillingness to learn anything, and you will get snubbed. Tim -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 6:39 AM To: Tomcat Users List Subject: RE: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad! Please don't think it's the whole Tomcat community Dean, there are some really helpful devs on Tomat, it's just Remy in particular has a problem being polite/arrogant about Tomcat - I guess from his privileged point of view he understands everything about Tomcat and therefore does not understand what usability is all about. All the best, AC. -Original Message- From: Dean Hiller [mailto:[EMAIL PROTECTED] Sent: 31 March 2006 11:39 To: Tomcat Users List Subject: Re: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad! wow! you guys sound pretty harsh when it comes to messages to help users on simple mistakes then. I recently dropped in someone else's example app war file that had the SAME PROBLEM.latest facelets. I could not even give back information to help them debug the problem. It was standard tomcat 5.5.16. It worked on 5.0 just fine. I now know that I need to unzip their war file, remove log4j(and maybe even hope that they are using commons, because if they are not, I may be utterly screwed). Then I need to redeploy their app. I need to do all this because tomcat is unwilling to give good helpful messages as to what is going on(as seen by all the other posts that have had trouble figuring out their problems behind that error with no reponses either.I was the lucky one and finally figured out what was wrong). I can only hope others can find my solution post without wasting too much time. later, dean Remy Maucherat wrote: On 3/30/06, Markus Schönhaber [EMAIL PROTECTED] wrote:
RE: getInputStream() fails intermittently
First off. Since you are catching the error properly and displaying the message, you are not seeing a stack trace. This is not necessarily bad practice. It is just that you cannot see the specifics of your error. For logging purposes, modify the code as below: try { inStream = httpConnection.getInputStream(); } catch (IOException e) { e.printStackTrace(); String sMessage = XML Regular I/O Exception - while getting the input stream from + url.toString() + | original message - + (e); throw new XMLExceptionIO(sMessage); } -Original Message- From: Ramadhenu, Giridhar (STSD) [mailto:[EMAIL PROTECTED] Sent: Thursday, March 30, 2006 6:55 PM To: users@tomcat.apache.org Subject: getInputStream() fails intermittently Hello, I am encountering IOException while getting input stream using getInputStream() method on URLConnection class while sending data to Tomcat. Error is pasted below. XML Regular I/O Exception - while getting the input stream from http://12.34.56.78:80/myApp/servlet/com.myComp.xml.CollectorServlet | original message - 2006-03-04 22:20:05.54 java.io.IOException: Server returned HTTP response code: 500 for URL: http://12.34.56.78:80/myApp/servlet/com.myComp.xml.CollectorServlet; The problem occurs after continuous operation of Tomcat server for about one month. But server does not show any exception when client encounters this problem. Please find the client code below. URLConnection httpConnection = null; //Code to open connection to URL httpConnection.setDoOutput(true); httpConnection.setDoInput(true); httpConnection.setUseCaches(false); httpConnection.setRequestProperty(Content-Type, text/xml;charset=UTF-8); httpConnection.setRequestProperty(Authorization, authString); //Code to get the output stream outStream.write(..); outStream.flush(); outStream.close(); try { inStream = httpConnection.getInputStream(); } catch (IOException e) { String sMessage = XML Regular I/O Exception - while getting the input stream from + url.toString() + | original message - + (e); throw new XMLExceptionIO(sMessage); } Thanks in advance. Giridhar. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Logging
Good Morning Joe- Im going to take a guess at context debug=0 in server.xml??? Anyone else ??? Martin-- - Original Message - From: Joe Mun [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, March 30, 2006 3:06 PM Subject: Tomcat Logging Is it possible to turn off Catalina's Commons logging (from org.apache.catalina.*) in Tomcat 5.0 without changing the debug level in log4j? Problem is I use log4j/commons for my application and don't need to bother with the tomcat logs. Unfortunately, Tomcat spits out a TON of DEBUG level messages. Therefore making it difficult to use the DEBUG level in my app. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [5.5] path specified in context.xml not being used
see also my other post in *Setting the context path for expanded WARs* On 24/03/06, Wang, Hansen [EMAIL PROTECTED] wrote: The path is ignored when you deploy webapps this way. Tomcat will use the basename of the war file as the context path. If you want to use something different than that, you can create a context.xml and put in under the virtual host's conf direction (e.g. CATALINA_HOME/conf/Catalina/localhost). In this context.xml, you can specify the context path and docBase. Hi Nic and Hansen, thanks for this info, it's really useful. Is this actually documented on the Tomcat site? I couldn't find anything about it (in particular the renaming of context.xml to my#nested#path.xml) Cheers, Phil Wilson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad!
I was never mad. sorry to give you that impression. I may have not come across the right way in my first few posts, but I was just trying to suggest a usability improvement. I support 4 open source projects myself. I googled the hell out of that question without finding an answer starting with what I was given by tomcat. it wasn't much. The only reason I probably got through it was persistence which most newbs I know give up. I expect users of my open source projects to poke me once in a while with usability suggestions, and that is all I was doing on this list. Sorry to imply I was mad(I wasn't), just surprised at the reaction to a suggestion that would help people who ran into the same situation.though hopefully those users will find my solution postthough that could be a needle in a haystack :). thanks, dean Tim Lucia wrote: Switch places with them for a minute -- They are providing free support and pretty good support at that. Note that there are many, many basic questions that could easily be answered by reading the documentation (RTFM) or by Googling (STFW), but instead posters demand immediate help as their homework is due in 20 minutes, or their boss is sitting in the chair behind them. Now take a potshot at the most useful, widely used, and COMPLETELY FREE application server, which you paid nothing for, have no support contract for (again, you paid nothing), and occasionally someone is bound to take it a little personally. I have (casually) observed that the level of 'snippetyness' from the responder is inversely proportional to the quality of the question. On the subject of log4j.jar without log4j.properties, don't get mad at Tomcat / Tomcat developers. Get mad at the idiot developers who shipped a war file without a) knowing how to perform logging and b) performing basic testing. I help out when I can. If I'm not sure, but have a minute, *I* will often STFW and/or RTFM to make sure. If I can do it, then so can you (the royal you) and you didn't have to post. Ask intelligent questions, and you will get intelligent answers. Show an unwillingness to learn anything, and you will get snubbed. Tim -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 6:39 AM To: Tomcat Users List Subject: RE: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad! Please don't think it's the whole Tomcat community Dean, there are some really helpful devs on Tomat, it's just Remy in particular has a problem being polite/arrogant about Tomcat - I guess from his privileged point of view he understands everything about Tomcat and therefore does not understand what usability is all about. All the best, AC. -Original Message- From: Dean Hiller [mailto:[EMAIL PROTECTED] Sent: 31 March 2006 11:39 To: Tomcat Users List Subject: Re: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad! wow! you guys sound pretty harsh when it comes to messages to help users on simple mistakes then. I recently dropped in someone else's example app war file that had the SAME PROBLEM.latest facelets. I could not even give back information to help them debug the problem. It was standard tomcat 5.5.16. It worked on 5.0 just fine. I now know that I need to unzip their war file, remove log4j(and maybe even hope that they are using commons, because if they are not, I may be utterly screwed). Then I need to redeploy their app. I need to do all this because tomcat is unwilling to give good helpful messages as to what is going on(as seen by all the other posts that have had trouble figuring out their problems behind that error with no reponses either.I was the lucky one and finally figured out what was wrong). I can only hope others can find my solution post without wasting too much time. later, dean Remy Maucherat wrote: On 3/30/06, Markus Schönhaber [EMAIL PROTECTED] wrote: The RuntimeException is to make it more noticeable in the logs. I mean 953 hits on googling is quite alot of people having trouble. Would be nice to cut that number down with an easy log statement that tomcat could add!!! Well, if it's really that easy you should definitely provide a patch. I recommend not wasting time, as I would refuse such a nonsensical patch. The actual worakround is to learn how to properly use logging, which seems to be a useful skill. -- x Rémy Maucherat Developer Consultant JBoss Inc x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Registered in
Re: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad!
Those things I didyou can read my previous posts. warning though: newbs have a hard time doing this, so go easy on us. I had no idea what to include from the beginning. I had to search my way through it. thanks, dean David Smith wrote: Too true Tim. I've been on this list since the tomcat 3 days and it never fails to impress me how many questions fall into one of three categories: 1) Questions easily answerable by reading the docs. These are the RTFM questions. 2) Repeats of previously posted and answered questions. These are the Search the Fantastic Web (STFW) questions. 3) Questions so devoid of any useful information they are completely unanswerable. The it doesn't work, please help questions. Don't get me wrong -- there are some excellent questions with even better answers. I stay on the list for those gems. For those out there who are thinking about asking questions, here's my advice: 1) Define you problem. The more detail you gather, the better for both yourself and those that help. Specifically take a look at the logs and consider the demands your webapp is making on the server. 2) If you are designing a webapp or library, insert effective logging from the beginning. With both commons-logging and log4j, the log level and classes being logged can be controlled from their respective configuration files. The logging can be left in for production, just reconfigure for error level logging and the debug stuff won't show. 3) Do a couple of searches on your favorite search engine even if all you get out of it is the proper terms to describe your issue. In the process you may also find similar posts to shed some light on your problem. 4) Take a look the online docs for the product you are using. Tomcat leverages a fair number of other projects and standards. Those docs may also apply to your problem. For instance in this thread, Commons-Logging and Log4j project docs would help. 5) Don't be shy about posting a long email. The important things are to be specific, show relevant code and complete log info. You may have been staring at your problem for two weeks -- we haven't and need the info to help. --David Tim Lucia wrote: Switch places with them for a minute -- They are providing free support and pretty good support at that. Note that there are many, many basic questions that could easily be answered by reading the documentation (RTFM) or by Googling (STFW), but instead posters demand immediate help as their homework is due in 20 minutes, or their boss is sitting in the chair behind them. Now take a potshot at the most useful, widely used, and COMPLETELY FREE application server, which you paid nothing for, have no support contract for (again, you paid nothing), and occasionally someone is bound to take it a little personally. I have (casually) observed that the level of 'snippetyness' from the responder is inversely proportional to the quality of the question. On the subject of log4j.jar without log4j.properties, don't get mad at Tomcat / Tomcat developers. Get mad at the idiot developers who shipped a war file without a) knowing how to perform logging and b) performing basic testing. I help out when I can. If I'm not sure, but have a minute, *I* will often STFW and/or RTFM to make sure. If I can do it, then so can you (the royal you) and you didn't have to post. Ask intelligent questions, and you will get intelligent answers. Show an unwillingness to learn anything, and you will get snubbed. Tim -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 6:39 AM To: Tomcat Users List Subject: RE: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad! Please don't think it's the whole Tomcat community Dean, there are some really helpful devs on Tomat, it's just Remy in particular has a problem being polite/arrogant about Tomcat - I guess from his privileged point of view he understands everything about Tomcat and therefore does not understand what usability is all about. All the best, AC. -Original Message- From: Dean Hiller [mailto:[EMAIL PROTECTED] Sent: 31 March 2006 11:39 To: Tomcat Users List Subject: Re: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad! wow! you guys sound pretty harsh when it comes to messages to help users on simple mistakes then. I recently dropped in someone else's example app war file that had the SAME PROBLEM.latest facelets. I could not even give back information to help them debug the problem. It was standard tomcat 5.5.16. It worked on 5.0 just fine. I now know that I need to unzip their war file, remove log4j(and maybe even hope that they are using commons, because if they are not, I may be utterly screwed). Then I need to redeploy their app. I need to do all this because tomcat is unwilling to give good helpful messages as to what is going on(as seen by all the other posts that have had trouble figuring out their problems behind that error with no reponses
Re: The problem i have met
On 31 Mar 2006 at 19:34, Jay wrote: I am pretty new to tomcat. I recently read a post http://marc.theaimsgroup.com/?l=tomcat-userm=114372017420869w=2 which solved a problem I have been having for tomcat 5.5 also. I thank that person for posting the solution. I also read some of the responses from what appear to be the tomcat developers and was very dissappointed. I also think that is a usability problem for newbs. like tomcat team wants tomcat to only be usable for advanced users to me. This frankly dissapoints me. I disagree. I don't know too many software products and their developers that help out regularly on their support forums and e-mail lists. Personally speaking (writing), as a developer (not for tomcat) and systems admin I notice that most new people do not try to help themselves first. They don't bother to read any documentation/instructions or hardly any at all and they don't bother to use a search engine as google. On top of that a lot of these people, when they post questions, they do not contain enough clear information for other people to help them. -Steve O. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: The problem i have met
this problem didn't have much to do with having servlet knowledge so I am confused here. It had to do with setting up logging for servlets which AFAIK, they don't teach in a servlet tutorial, so if you knew servlets, it was not enough :( just as in my case. dean David Delbecq wrote: Jay a écrit : I am pretty new to tomcat. I recently read a post http://marc.theaimsgroup.com/?l=tomcat-userm=114372017420869w=2 which solved a problem I have been having for tomcat 5.5 also. I thank that person for posting the solution. I also read some of the responses from what appear to be the tomcat developers and was very dissappointed. I also think that is a usability problem for newbs. like tomcat team wants tomcat to only be usable for advanced users to me. This frankly dissapoints me. I think tomcat doc just aims at people having minimum knowledges background in java, servlet, j2ee specs. Teaching this background knowledge is in no point the purpose of tomcat docs. Thought the docs is not always complete, it generally provide enough information to do what you need to do, once again assuming you have that background knowledge. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
thanks very much Filip
BTW, I was pretty much stuck until you responded to my post like alot of the others I have seen with a similar post and no answer. If you had not responded, I would probably still be stuck and still googling, reading, trying to solve it. I really really appreciate your help. I could not find anything through google, or tomcat docs based on the info I had from tomcat logs. I was utterly lost until you prodded me(and that gave me some ideas). thanks, dean Filip Hanik - Dev Lists wrote: ok, that was fairly easy, the error gets logged to the TOMCAT_HOME/logs/localhost.2006-03-29.log this is on the default install, no loggers modified so are you still having a problem? Mar 29, 2006 9:12:47 AM 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 29, 2006 9:12:47 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Mar 29, 2006 9:12:47 AM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class listeners.ContextListener java.lang.RuntimeException: sdadasda at listeners.ContextListener.contextInitialized(ContextListener.java:114) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Mar 29, 2006 9:12:47 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Mar 29, 2006 9:12:47 AM org.apache.catalina.core.ApplicationContext log Dean Hiller wrote: thanks for the link. I need that too. Regardless of logging thought, quickly add this to any serlvetlistener public void contextInitialized(ServletContextEvent evt) { throw new RuntimeException(asdfsf); } Run it, and enjoy not being able to know what the heck went wrong with your app like I have seen many have done on the posts already. ie. Tomcat used to log the stack trace, but in 5.5 does not, and that should be high enough warning level that config of logs don't matter. Making the problem even harder. On a second note, I have fooled around with logging and it works fine in my app, and I could configure it and such(with 5.5) and my logging.properties file in WEB-INF. I could never get my servletlistener to log any statements(making the problem doubly hard). thanks, dean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:
Re: The problem i have met
hard to do when the only error in the logs is was two words. not much to google on. dean Steve Ochani wrote: On 31 Mar 2006 at 19:34, Jay wrote: I am pretty new to tomcat. I recently read a post http://marc.theaimsgroup.com/?l=tomcat-userm=114372017420869w=2 which solved a problem I have been having for tomcat 5.5 also. I thank that person for posting the solution. I also read some of the responses from what appear to be the tomcat developers and was very dissappointed. I also think that is a usability problem for newbs. like tomcat team wants tomcat to only be usable for advanced users to me. This frankly dissapoints me. I disagree. I don't know too many software products and their developers that help out regularly on their support forums and e-mail lists. Personally speaking (writing), as a developer (not for tomcat) and systems admin I notice that most new people do not try to help themselves first. They don't bother to read any documentation/instructions or hardly any at all and they don't bother to use a search engine as google. On top of that a lot of these people, when they post questions, they do not contain enough clear information for other people to help them. -Steve O. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: The problem i have met
Hi, I agree that a lot of people don't make much effort to solve their own problem before posting; however, there are a few good reasons for it. First of all, humans are social by nature; and, for most humans a mailing list or discussion group is first, and foremost, a social activity. Secondly, many of the solutions I find on the Web *before* posting are, in fact, postings started by such people along with the posted answer. Thirdly, much of the documentation on the Web is poorly written--if not incomprehensible. And, there is simply too little context for most documentation. Often, *simple* step-by-step instructions actually leave out critical steps. And, many people post poor descriptions of their problems; because, they don't understand the problem and, thus, do not know which information is germane. Having said that, I do wish people would *try* to find their solution before posting. Will Wagers C# Online.NET http://wiki.csharp-online.net/ http://blog.csharp-online.net/ http://forum.csharp-online.net/ -Original Message- From: Steve Ochani [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 8:26 AM To: users@tomcat.apache.org; Jay Subject: Re: The problem i have met On 31 Mar 2006 at 19:34, Jay wrote: I am pretty new to tomcat. I recently read a post http://marc.theaimsgroup.com/?l=tomcat-userm=114372017420869w=2 which solved a problem I have been having for tomcat 5.5 also. I thank that person for posting the solution. I also read some of the responses from what appear to be the tomcat developers and was very dissappointed. I also think that is a usability problem for newbs. like tomcat team wants tomcat to only be usable for advanced users to me. This frankly dissapoints me. I disagree. I don't know too many software products and their developers that help out regularly on their support forums and e-mail lists. Personally speaking (writing), as a developer (not for tomcat) and systems admin I notice that most new people do not try to help themselves first. They don't bother to read any documentation/instructions or hardly any at all and they don't bother to use a search engine as google. On top of that a lot of these people, when they post questions, they do not contain enough clear information for other people to help them. -Steve O. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: The problem i have met
Hmmm There must be some special pitfall you folk are hitting that I don't even see... I am using log4j in my web app (quite extensively) and see loads of log messages. Could this be an odd combination of including log4j and trying to use java.util.logging? That should work (and the Tomcat dev folk know a reason it should not then they should fix this as there are cases where a library in your web app insists on one logging approach and another library on another...), but I do not do this myself -- I stick to log4j logging which is why I include log4j. Come to think of it, I seem to recall having issues getting java.util.logging output from Tomcat when I tried it once [from a low-level library where I wanted no commons or log4j dependencies]. -- Jess Holle Dean Hiller wrote: this problem didn't have much to do with having servlet knowledge so I am confused here. It had to do with setting up logging for servlets which AFAIK, they don't teach in a servlet tutorial, so if you knew servlets, it was not enough :( just as in my case. dean David Delbecq wrote: Jay a écrit : I am pretty new to tomcat. I recently read a post http://marc.theaimsgroup.com/?l=tomcat-userm=114372017420869w=2 which solved a problem I have been having for tomcat 5.5 also. I thank that person for posting the solution. I also read some of the responses from what appear to be the tomcat developers and was very dissappointed. I also think that is a usability problem for newbs. like tomcat team wants tomcat to only be usable for advanced users to me. This frankly dissapoints me. I think tomcat doc just aims at people having minimum knowledges background in java, servlet, j2ee specs. Teaching this background knowledge is in no point the purpose of tomcat docs. Thought the docs is not always complete, it generally provide enough information to do what you need to do, once again assuming you have that background knowledge. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad!
Then you are most definitely one of the better posters to the list. I hope you don't take my message too personally. I was really responding to Tim's comments. Overall it looks like logging is an area where someone might want to volunteer a documentation patch to tomcat. --David Dean Hiller wrote: Those things I didyou can read my previous posts. warning though: newbs have a hard time doing this, so go easy on us. I had no idea what to include from the beginning. I had to search my way through it. thanks, dean David Smith wrote: Too true Tim. I've been on this list since the tomcat 3 days and it never fails to impress me how many questions fall into one of three categories: 1) Questions easily answerable by reading the docs. These are the RTFM questions. 2) Repeats of previously posted and answered questions. These are the Search the Fantastic Web (STFW) questions. 3) Questions so devoid of any useful information they are completely unanswerable. The it doesn't work, please help questions. Don't get me wrong -- there are some excellent questions with even better answers. I stay on the list for those gems. For those out there who are thinking about asking questions, here's my advice: 1) Define you problem. The more detail you gather, the better for both yourself and those that help. Specifically take a look at the logs and consider the demands your webapp is making on the server. 2) If you are designing a webapp or library, insert effective logging from the beginning. With both commons-logging and log4j, the log level and classes being logged can be controlled from their respective configuration files. The logging can be left in for production, just reconfigure for error level logging and the debug stuff won't show. 3) Do a couple of searches on your favorite search engine even if all you get out of it is the proper terms to describe your issue. In the process you may also find similar posts to shed some light on your problem. 4) Take a look the online docs for the product you are using. Tomcat leverages a fair number of other projects and standards. Those docs may also apply to your problem. For instance in this thread, Commons-Logging and Log4j project docs would help. 5) Don't be shy about posting a long email. The important things are to be specific, show relevant code and complete log info. You may have been staring at your problem for two weeks -- we haven't and need the info to help. --David Tim Lucia wrote: Switch places with them for a minute -- They are providing free support and pretty good support at that. Note that there are many, many basic questions that could easily be answered by reading the documentation (RTFM) or by Googling (STFW), but instead posters demand immediate help as their homework is due in 20 minutes, or their boss is sitting in the chair behind them. Now take a potshot at the most useful, widely used, and COMPLETELY FREE application server, which you paid nothing for, have no support contract for (again, you paid nothing), and occasionally someone is bound to take it a little personally. I have (casually) observed that the level of 'snippetyness' from the responder is inversely proportional to the quality of the question. On the subject of log4j.jar without log4j.properties, don't get mad at Tomcat / Tomcat developers. Get mad at the idiot developers who shipped a war file without a) knowing how to perform logging and b) performing basic testing. I help out when I can. If I'm not sure, but have a minute, *I* will often STFW and/or RTFM to make sure. If I can do it, then so can you (the royal you) and you didn't have to post. Ask intelligent questions, and you will get intelligent answers. Show an unwillingness to learn anything, and you will get snubbed. Tim -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 6:39 AM To: Tomcat Users List Subject: RE: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad! Please don't think it's the whole Tomcat community Dean, there are some really helpful devs on Tomat, it's just Remy in particular has a problem being polite/arrogant about Tomcat - I guess from his privileged point of view he understands everything about Tomcat and therefore does not understand what usability is all about. All the best, AC. -Original Message- From: Dean Hiller [mailto:[EMAIL PROTECTED] Sent: 31 March 2006 11:39 To: Tomcat Users List Subject: Re: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad! wow! you guys sound pretty harsh when it comes to messages to help users on simple mistakes then. I recently dropped in someone else's example app war file that had the SAME PROBLEM.latest facelets. I could not even give back information to help them debug the problem. It was standard tomcat 5.5.16. It worked on 5.0 just fine. I now know that I need
Re: The problem i have met
Steve Ochani wrote: On 31 Mar 2006 at 19:34, Jay wrote: I am pretty new to tomcat. I recently read a post http://marc.theaimsgroup.com/?l=tomcat-userm=114372017420869w=2 which solved a problem I have been having for tomcat 5.5 also. I thank that person for posting the solution. I also read some of the responses from what appear to be the tomcat developers and was very dissappointed. I also think that is a usability problem for newbs. like tomcat team wants tomcat to only be usable for advanced users to me. This frankly dissapoints me. I disagree. I don't know too many software products and their developers that help out regularly on their support forums and e-mail lists. Personally speaking (writing), as a developer (not for tomcat) and systems admin I notice that most new people do not try to help themselves first. They don't bother to read any documentation/instructions or hardly any at all and they don't bother to use a search engine as google. On top of that a lot of these people, when they post questions, they do not contain enough clear information for other people to help them. Hopefully I don't fall into these types of newbies; I try to give as much information as I can when asking a question. I also spend a lot of time googling and reading the Tomcat docs before asking here, but I find that the tomcat docs are far too general for a newbie like me to get anything useful out of them. Also, in many cases, they talk more about how things have changed from previous versions than they do about how to use the current version. That's fine if you are used to an older version, but someone who started with a recent version doesn't have much of a starting place. I guess this post is mostly a request for more description in the Tomcat docs, particulaly of the type If you want to do this, here's what settings you put in and where, or If you set this setting to this value, here's what it does, and this is why you might (and might not) want do to it that way. Sometimes, just an additional sentence or two in the docs would have saved me hours of work and searching. For a specific example, a few weeks ago I was asking about the caseInsensitive settings for contexts. After much digging, I finally figured out that it only applied to the individual resource name, and not the context path; the fact that context paths are *always* case-sensitive (and in fact, that is part of the spec) is never mentioned anywhere. Thanks for listening, Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: thanks very much Filip
you're welcome, just doing what I can in the time I have allotted :) Dean Hiller wrote: BTW, I was pretty much stuck until you responded to my post like alot of the others I have seen with a similar post and no answer. If you had not responded, I would probably still be stuck and still googling, reading, trying to solve it. I really really appreciate your help. I could not find anything through google, or tomcat docs based on the info I had from tomcat logs. I was utterly lost until you prodded me(and that gave me some ideas). thanks, dean Filip Hanik - Dev Lists wrote: ok, that was fairly easy, the error gets logged to the TOMCAT_HOME/logs/localhost.2006-03-29.log this is on the default install, no loggers modified so are you still having a problem? Mar 29, 2006 9:12:47 AM 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 29, 2006 9:12:47 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Mar 29, 2006 9:12:47 AM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class listeners.ContextListener java.lang.RuntimeException: sdadasda at listeners.ContextListener.contextInitialized(ContextListener.java:114) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Mar 29, 2006 9:12:47 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Mar 29, 2006 9:12:47 AM org.apache.catalina.core.ApplicationContext log Dean Hiller wrote: thanks for the link. I need that too. Regardless of logging thought, quickly add this to any serlvetlistener public void contextInitialized(ServletContextEvent evt) { throw new RuntimeException(asdfsf); } Run it, and enjoy not being able to know what the heck went wrong with your app like I have seen many have done on the posts already. ie. Tomcat used to log the stack trace, but in 5.5 does not, and that should be high enough warning level that config of logs don't matter. Making the problem even harder. On a second note, I have fooled around with logging and it works fine in my app, and I could configure it and such(with 5.5) and my logging.properties file in WEB-INF. I could never get my servletlistener to log any statements(making the problem doubly hard). thanks, dean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getInputStream() fails intermittently
You need to bounce tomcat occasioally We server a lot of content and we bounce tomcat every morning. Might not need it that often, but better safe than sorry. We use tomcat 4.xx Ramadhenu, Giridhar (STSD) wrote: Hello, I am encountering IOException while getting input stream using getInputStream() method on URLConnection class while sending data to Tomcat. Error is pasted below. XML Regular I/O Exception - while getting the input stream from http://12.34.56.78:80/myApp/servlet/com.myComp.xml.CollectorServlet | original message - 2006-03-04 22:20:05.54 java.io.IOException: Server returned HTTP response code: 500 for URL: http://12.34.56.78:80/myApp/servlet/com.myComp.xml.CollectorServlet; The problem occurs after continuous operation of Tomcat server for about one month. But server does not show any exception when client encounters this problem. Please find the client code below. URLConnection httpConnection = null; //Code to open connection to URL httpConnection.setDoOutput(true); httpConnection.setDoInput(true); httpConnection.setUseCaches(false); httpConnection.setRequestProperty(Content-Type, text/xml;charset=UTF-8); httpConnection.setRequestProperty(Authorization, authString); //Code to get the output stream outStream.write(..); outStream.flush(); outStream.close(); try { inStream = httpConnection.getInputStream(); } catch (IOException e) { String sMessage = XML Regular I/O Exception - while getting the input stream from + url.toString() + | original message - + (e); throw new XMLExceptionIO(sMessage); } Thanks in advance. Giridhar. -- Mike Sabroff Web Services Developer [EMAIL PROTECTED] 920-568-8379 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [5.5] path specified in context.xml not being used
It is mentioned here that if you want to use something different, to create a context.xml file specifying the path and docBase attributes. What if you want 2 applications to have different docBases? Ritchie Programmer Analyst [EMAIL PROTECTED] 31/03/2006 10:09 am see also my other post in *Setting the context path for expanded WARs* On 24/03/06, Wang, Hansen [EMAIL PROTECTED] wrote: The path is ignored when you deploy webapps this way. Tomcat will use the basename of the war file as the context path. If you want to use something different than that, you can create a context.xml and put in under the virtual host's conf direction (e.g. CATALINA_HOME/conf/Catalina/localhost). In this context.xml, you can specify the context path and docBase. Hi Nic and Hansen, thanks for this info, it's really useful. Is this actually documented on the Tomcat site? I couldn't find anything about it (in particular the renaming of context.xml to my#nested#path.xml) Cheers, Phil Wilson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JNDI in embedded tomcat
My question is similar but slightly different. I am running my own custom Spring-like container with an embedded version of Tomcat 5.5. I have my own JNDI Context object configured in my application that I bind objects to. However all those objects in that Context are not available to my web applications because Tomcat is using it's own Context: Context ctx = new InitialContext(); DataSource myDS = (DataSource) ctx.lookup( java:/myDataSource ); javax.naming.NameNotFoundException: Name myDataSource is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:769) at org.apache.naming.NamingContext.lookup(NamingContext.java:152) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:136) at javax.naming.InitialContext.lookup(InitialContext.java:347) I am starting up my application as per this article: http://www.vsj.co.uk/articles/display.asp?id=319. All the documentation I've seen has been using the server.xml which is not available to me as I'm using the Embedded tomcat. If I can use server.xml with Embedded.java, please let me know. Thanks -- View this message in context: http://www.nabble.com/JNDI-in-embedded-tomcat-t1306622.html#a3691348 Sent from the Tomcat - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JNDI in embedded tomcat
Hi, Check out the META-INF/context.xml method for configuring data sources for your web app. http://tomcat.apache.org/tomcat-5.5-doc/config/context.html Allistair -Original Message- From: slashny [mailto:[EMAIL PROTECTED] Sent: 31 March 2006 16:26 To: users@tomcat.apache.org Subject: RE: JNDI in embedded tomcat My question is similar but slightly different. I am running my own custom Spring-like container with an embedded version of Tomcat 5.5. I have my own JNDI Context object configured in my application that I bind objects to. However all those objects in that Context are not available to my web applications because Tomcat is using it's own Context: Context ctx = new InitialContext(); DataSource myDS = (DataSource) ctx.lookup( java:/myDataSource ); javax.naming.NameNotFoundException: Name myDataSource is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:769) at org.apache.naming.NamingContext.lookup(NamingContext.java:152) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:136) at javax.naming.InitialContext.lookup(InitialContext.java:347) I am starting up my application as per this article: http://www.vsj.co.uk/articles/display.asp?id=319. All the documentation I've seen has been using the server.xml which is not available to me as I'm using the Embedded tomcat. If I can use server.xml with Embedded.java, please let me know. Thanks -- View this message in context: http://www.nabble.com/JNDI-in-embedded-tomcat-t1306622.html#a3691348 Sent from the Tomcat - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK Disclaimer: The information contained within this e-mail is confidential and may be privileged. This email is intended solely for the named recipient only; if you are not authorised you must not disclose, copy, distribute, or retain this message or any part of it. If you have received this message in error please contact the sender at once so that we may take the appropriate action and avoid troubling you further. Any views expressed in this message are those of the individual sender. QAS Limited has the right lawfully to record, monitor and inspect messages between its employees and any third party. Your messages shall be subject to such lawful supervision as QAS Limited deems to be necessary in order to protect its information, its interests and its reputation. Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS Limited cannot guarantee that attachments are virus free or compatible with your systems and does not accept any liability in respect of viruses or computer problems experienced. /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Architecture
We are writing webapps for a call center based on a propietary framework that works very good. We have the case where we need to install in the same tomcat server 2 webapps, WEBAPP1 and WEBAPP2, the core framework is exactly the same, but some implementation classes ans JSP are different. After a few months I could separate the global variables per webapp, but now there is some distrubution things that bothers me. The core framework lets says, core.jar resides into the web-inf/lib of each webapp because sometimes we migrate to a new version in one webapp and not in the other. But the core print reports, run processes, call webservices, receives xml, send emails, send faxes, query legacy systems and also make sweet coffee :), all these things need third party libraries. Today all that third party library resides in TOMCAT/common/lib , mail.jar, smtp.jar, axis.jar, etc. Should that libraries be in each web-inf/lib if versions changes ? Other thing, we are working with required libraries as log4j, commons-digester, commons. Etc, I saw that tomcat 5.0 and 5.5 has some of these libraries. Should be a conflict with my libraries ?? Thanks a lot Rodrigo Asensio Gilbarco Veeder Root Fuel Management Services phone: +1 336 547 5023 This message (including any attachments) contains confidential and/or proprietary information intended only for the addressee. Any unauthorized disclosure, copying, distribution or reliance on the contents of this information is strictly prohibited and may constitute a violation of law. If you are not the intended recipient, please notify the sender immediately by responding to this e-mail, and delete the message from your system. If you have any questions about this e-mail please notify the sender immediately. Ce message (ainsi que les eventuelles pieces jointes) est exclusivement adresse au destinataire et contient des informations confidentielles. La copie, la communication ou la distribution du contenu de ce message sans l'accord prealable de l'expediteur sont strictement interdits et peuvent constituer un delit. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Si vous avez des questions se rapportant a ce courrier electronique, merci de bien vouloir notifier l'expediteur immediatement. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ./configure --enable-ssl
Hi, I just installed the Fedora 5 and when I installed the httpd 2.2.0 with configure ssl, I am also facing the same problem. Is it possible to let us know which rpms should be installed? For the moment, I take out the ssl and the installation of httpd continues smoothly. rgds, --- Hadraba Petr [EMAIL PROTECTED] wrote: Hi, I'm using OpenSSL and have no problems... PETR On 3/31/06, Indraveni [EMAIL PROTECTED] wrote: Hi friends, If we are giving the apcahe configuration command as ./configure --enable-ssl then which ssl packages does the system require. ssl support since I am facingan error saying no ssl modules - Jiyo cricket on Yahoo! India cricket Yahoo! Messenger Mobile Stay in touch with your buddies all the time. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk disabled directive - how to change at runtime?
Finally figured how to use this: httpd.conf: JkMount /jkstatus/* status worker.properties: worker.list=loadbalancer,status worker.status.type=status URL: http://localhost/jkstatus/ -- View this message in context: http://www.nabble.com/mod_jk-disabled-directive---how-to-change-at-runtime--t1349688.html#a3691953 Sent from the Tomcat - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat - Axis webservices with Client Certificate Authentication
Anyone who has developed a secuired web service using a client certificate over HTTPS? Appreaciate any development guidelines Thx KHL __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sending large amount of data
We are trying to send from the client browser a huge xml (105kb) as a parameter in the request, obviously GET will not work , instead we are using POST. But we are using AJAX and we are getting the error Permission Denied in the Internet Explorer 6, any clue ? Rodrigo Asensio Gilbarco Veeder Root Fuel Management Services phone: +1 336 547 5023 This message (including any attachments) contains confidential and/or proprietary information intended only for the addressee. Any unauthorized disclosure, copying, distribution or reliance on the contents of this information is strictly prohibited and may constitute a violation of law. If you are not the intended recipient, please notify the sender immediately by responding to this e-mail, and delete the message from your system. If you have any questions about this e-mail please notify the sender immediately. Ce message (ainsi que les eventuelles pieces jointes) est exclusivement adresse au destinataire et contient des informations confidentielles. La copie, la communication ou la distribution du contenu de ce message sans l'accord prealable de l'expediteur sont strictement interdits et peuvent constituer un delit. Si vous n'etes pas destinataire de ce message, merci de le detruire et d'avertir l'expediteur. Si vous avez des questions se rapportant a ce courrier electronique, merci de bien vouloir notifier l'expediteur immediatement. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Does Tomcat provide support for PHP scripts
Hi all, Does Tomcat provide support for php scripting language? I have not seen anything in Tomcat documentation that indicates that it does, I would appreciate it if I could be pointed to any documentation regarding tomcat support for php. Thanks, Ike
Re: Does Tomcat provide support for PHP scripts
I tried it too in the past , but could not get it working. Here is a link to some documentation - http://www.alexander-merz.com/print_21.html Let me know if you can get it working. On 3/31/06, Ikonne, Ike [EMAIL PROTECTED] wrote: Hi all, Does Tomcat provide support for php scripting language? I have not seen anything in Tomcat documentation that indicates that it does, I would appreciate it if I could be pointed to any documentation regarding tomcat support for php. Thanks, Ike
RE: mod_jk 1.2.15 - is this a solution for High Availability Clustering?
I pretty much use the same configuration. Except that mod_jk doesn't detect a hung application, but it does recognize a hung tomcat. The workaround I have for the time being. I have a separate monitor program which detects the hung application and then it modifies which is the active node using http://localhost/jkstatus/ -- View this message in context: http://www.nabble.com/mod_jk-1.2.15---is-this-a-solution-for-High-Availability-Clustering--t1352358.html#a3692466 Sent from the Tomcat - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does Tomcat provide support for PHP scripts
JBossWeb does. Soon to be released. With Best Regards Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 |-+--- | | Developer | | | Developer | | | [EMAIL PROTECTED]| | | ail.com| | | | | | 31.03.06 18:27 | | | Please respond | | | to Tomcat Users| | | List | | | | |-+--- --| | | |To: Tomcat Users List users@tomcat.apache.org | |cc: | |Subject: Re: Does Tomcat provide support for PHP scripts | | | |Distribute: | |Personal? |---| | || [ ] x | | ||---| | | | --| I tried it too in the past , but could not get it working. Here is a link to some documentation - http://www.alexander-merz.com/print_21.html Let me know if you can get it working. On 3/31/06, Ikonne, Ike [EMAIL PROTECTED] wrote: Hi all, Does Tomcat provide support for php scripting language? I have not seen anything in Tomcat documentation that indicates that it does, I would appreciate it if I could be pointed to any documentation regarding tomcat support for php. Thanks, Ike LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly confidential and they may not be used or disclosed by someone who is not a named recipient. If you have received this email in error please notify the sender by replying to this email inserting the word misdirected as the message and delete this e-mail from your system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JNDI in embedded tomcat
Thanks for the reply and pointing me in the right direction. I just wanted to complete the circle regarding the resolution. I prevented Tomcat from using creating its own JNDI Context (and having new InitialContext() resolve to a preexisting Context), by setting the StandardContext.setUseNaming(false), which can be done in code or I guess through the context.xml file as well. Thanks again -- View this message in context: http://www.nabble.com/JNDI-in-embedded-tomcat-t1306622.html#a3692505 Sent from the Tomcat - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does Tomcat provide support for PHP scripts
Ikonne, Ike wrote: Does Tomcat provide support for php scripting language? I have not seen anything in Tomcat documentation that indicates that it does, I would appreciate it if I could be pointed to any documentation regarding tomcat support for php. Not by default. I seem to remember having read about including PHP into Tomcat via CGI. Whether or not that's a good thing to do - I don't know. If you really need both PHP and Servlet/JSP capabilities, the canonical way would be to put an Apache httpd in front of Tomcat and let httpd serve PHP stuff and Tomcat Servlet/JSP stuff: http://tomcat.apache.org/connectors-doc/ Alternatively you could take a look at this: http://jboss.com/products/jbossweb Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5.15 - HTTPS hanging and intermittent Page Cannot be Displayed problems
We upgraded our internet-facing web server from Tomcat 5.5.9 to 5.5.15 this weekend and have run into a number of intermittent connectivity problems which have resulted in rolling back to 5.5.9. We use the Tomcat HTTPS connector (without an intermediate web server between the clients and Tomcat) with all of the default configuration. Issue 1: A couple of our clients have experienced intermittent connectivity problems (where approximately 1 out of every 20 page loads results in an immediate Page Cannot Be Displayed error in Internet Explorer - it appears that Tomcat immediately rejects the connection). Issue 2: Also, during peak loading (although we're only talking about 30 to 40 concurrent users here) Tomcat appears to hang for a while and make new connections wait for up to 1 minute before returning a page. Throughout this time processor load has been consistently 20%. (The server is a dual Xeon processor, dual core machine, running Windows 2003 Server). The first problem we've seen before when we used to use Apache (with the JK connector) to deliver the HTTPS pages - I suspect the compatibility with Apache/OpenSSL's implementation of SSL and Internet Explorer's implementation of SSL are still slightly incompatible. (I believe this is a known issue on a Windows platform but has never been resolved). The second problem (with Tomcat not responding to new HTTPS requests quickly under moderate load) is new on me. I'm not really able to submit this as a bug to the Tomcat team as out-of-hours we've been unable to recreate this (even simulating a high load using JMeter), and the Page Cannot Be Displayed issue only occurs with certain brands of proxy server (Secure Computing's Sidewinder seems particuiarly sensitive to this). Also, there's no errors The only conclusion I can draw right now is that if you want to use Tomcat to deliver HTTPS content from a Windows-based server, stick with Tomcat 5.5.9. Has anyone else had a similar experience? Richard ___ Richard Mundell The Roberts Group Market Data Expertise that FITS. +1 212 499 2680 x20 (office) www.trgrp.com
RE: Does Tomcat provide support for PHP scripts
From: Ikonne, Ike [mailto:[EMAIL PROTECTED] Does Tomcat provide support for php scripting language? Yes, you could build PHP as a CGI program and run it using Tomcat's CGI support, but this would be pretty slow. There is no facility that I know of to integrate PHP with Tomcat. Otherwise, as Markus suggests, run Apache, run PHP inside Apache and use a connector to link Apache and Tomcat. Be aware that connecting Apache and Tomcat seems to be a somewhat fraught operation! - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does Tomcat provide support for PHP scripts
On 3/31/06, Bruno Georges [EMAIL PROTECTED] wrote: JBossWeb does. Soon to be released. We're distributing a package for Tomcat too, but it's not fully tested yet. http://labs.jboss.com/portal/index.html?ctrl:id=page.default.downloadsproject=jbossweb -- x Rémy Maucherat Developer Consultant JBoss Inc x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Does Tomcat provide support for PHP scripts
Hi Bruno, Thanks, will try it. Ike -Original Message- From: Bruno Georges [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 10:30 AM To: Tomcat Users List Cc: Tomcat Users List Subject: Re: Does Tomcat provide support for PHP scripts JBossWeb does. Soon to be released. With Best Regards Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 |-+--- | | Developer | | | Developer | | | [EMAIL PROTECTED]| | | ail.com| | | | | | 31.03.06 18:27 | | | Please respond | | | to Tomcat Users| | | List | | | | |-+--- --- ---| | | |To: Tomcat Users List users@tomcat.apache.org | |cc: | |Subject: Re: Does Tomcat provide support for PHP scripts | | | |Distribute: | |Personal? |---| | || [ ] x | | ||---| | | | --- ---| I tried it too in the past , but could not get it working. Here is a link to some documentation - http://www.alexander-merz.com/print_21.html Let me know if you can get it working. On 3/31/06, Ikonne, Ike [EMAIL PROTECTED] wrote: Hi all, Does Tomcat provide support for php scripting language? I have not seen anything in Tomcat documentation that indicates that it does, I would appreciate it if I could be pointed to any documentation regarding tomcat support for php. Thanks, Ike LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly confidential and they may not be used or disclosed by someone who is not a named recipient. If you have received this email in error please notify the sender by replying to this email inserting the word misdirected as the message and delete this e-mail from your system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does Tomcat provide support for PHP scripts
fraught operation?? A lot of people seem to have problems with this, but I have had few problems with it. A bit time consuming to set up initially, but there is enough documentation to do it fairly easily. I think that the reason there seems to be so many posts here is because some people are not willing to spend a reasonable amount of time in the process before posting fer help. Mike Peter Crowther wrote: From: Ikonne, Ike [mailto:[EMAIL PROTECTED] Does Tomcat provide support for php scripting language? Yes, you could build PHP as a CGI program and run it using Tomcat's CGI support, but this would be pretty slow. There is no facility that I know of to integrate PHP with Tomcat. Otherwise, as Markus suggests, run Apache, run PHP inside Apache and use a connector to link Apache and Tomcat. Be aware that connecting Apache and Tomcat seems to be a somewhat fraught operation! - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Mike Sabroff Web Services Developer [EMAIL PROTECTED] 920-568-8379 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
is it possible to determin the requested resource when using realm authentication?
I believe that I already know the answer to this. But, if possible, it would be nice to have some confirmation. I have an application that uses JAASRealm for authentication. Within my LoginModule class, is it possible to determine which resource the user is currently trying to access? My current interpretation of the documentation is that the authentication module simply knows who you are and what your credential (password) is. Upon successful authentication, the module returns with success/fail and the roles associated with that user. It's then up to the application itself to determine if the user's role has access to the requested resource. (this is usually declaratively stated, either through the web.xml configuration, or the struts configuration). Is my interpretation of things correct? Thanks. -- Jay Dickon Glanville - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
list of applications
Hello, I have tomcat setup with a couple applications running in the server.xml.is there a way to get a list of these from within a filter or a servlet or a jsp? Is there access to the container higher then application? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
classCastException while deploying a web service using netbeans 5.0 and Tomcat 5.5.X
I'm developing a web service to deploy on Tomcat 5.5.X using netbeans 5.0but i get a ClassCastException when i try to deploy. I have been searching through google for a solution and the only solution i found was removing the jsp-api.jar file from the projects lib directory but i have no such .jar in the directory. Any suggestions? Here is the stack trace: Mar 31, 2006 11:49:34 AM org.apache.catalina.core.ApplicationContext log INFO: Marking servlet WSServlet_cedarWS as unavailable Mar 31, 2006 11:49:34 AM org.apache.catalina.core.StandardContextloadOnStartup SEVERE: Servlet /cedarWS threw load() exception java.lang.ClassCastException: webservice.cedarWSImpl at org.apache.catalina.core.StandardWrapper.loadServlet( StandardWrapper.java:1048) at org.apache.catalina.core.StandardWrapper.load( StandardWrapper.java:925) at org.apache.catalina.core.StandardContext.loadOnStartup( StandardContext.java:3857) at org.apache.catalina.core.StandardContext.start( StandardContext.java:4118) at org.apache.catalina.core.ContainerBase.addChildInternal( ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.access$000( ContainerBase.java:121) at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run( ContainerBase.java:143) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ContainerBase.addChild( ContainerBase.java:737) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java :524) at org.apache.catalina.startup.HostConfig.deployDescriptor( HostConfig.java:589) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java :494) at org.apache.catalina.startup.HostConfig.check(HostConfig.java :1179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.commons.modeler.BaseModelMBean.invoke( BaseModelMBean.java:503) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke( DynamicMetaDataImpl.java:213) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java :220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke( DefaultMBeanServerInterceptor.java:815) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java :784) at org.apache.catalina.manager.ManagerServlet.check( ManagerServlet.java:1377) at org.apache.catalina.manager.ManagerServlet.deploy( ManagerServlet.java:814) at org.apache.catalina.manager.ManagerServlet.doGet( ManagerServlet.java:343) at javax.servlet.http.HttpServlet.service(HttpServlet.java:747) at javax.servlet.http.HttpServlet.service(HttpServlet.java:860) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java :243) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) at org.apache.catalina.security.SecurityUtil.execute( SecurityUtil.java:275) at org.apache.catalina.security.SecurityUtil.doAsPrivilege( SecurityUtil.java:161) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:245) at org.apache.catalina.core.ApplicationFilterChain.access$000( ApplicationFilterChain.java:50) at org.apache.catalina.core.ApplicationFilterChain$1.run( ApplicationFilterChain.java:156) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:152) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter( MonitorFilter.java:168) at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java :243) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) at org.apache.catalina.security.SecurityUtil.execute( SecurityUtil.java:275) at org.apache.catalina.security.SecurityUtil.doAsPrivilege( SecurityUtil.java:217) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
Question: Accessing connector/connection thread statistics from within a JSP (plus example memory monitoring code)
We have a application monitoring page which includes, amongst other application-specific data, Java memory usage statistics. (To share with the group I've included the example code below!) I want to include connection statistics for each connector, in particular the information that the manager app shows (number of connection, threads in use, number kept alive, etc) and also (if it's stored somewhere) the peak number of connections since Tomcat was started. Does anyone have some example JSP code they could share? Thanks Richard ___ Richard Mundell The Roberts Group Market Data Expertise that FITS. +1 212 499 2680 x20 (office) www.trgrp.com EXAMPLE CODE FOR MEMORY MONITORING: %@ page import=java.sql.* % %@ page import=java.util.* % %@ page import=java.lang.management.* % % // MEMORY USAGE Iterator iter2 = ManagementFactory.getMemoryPoolMXBeans().iterator(); float max; float used; float heapmax=0; float heapused=0; float heappeak=0; String paddedName=; String memoryString=; String heapMemory=; int problem=0; while (iter2.hasNext()) { MemoryPoolMXBean item2 = (MemoryPoolMXBean) iter2.next(); if (item2.getType().toString().toUpperCase().equals(NON-HEAP MEMORY)) { paddedName=item2.getName().toString(); while (paddedName.length()18) { paddedName+= ; } memoryString+=paddedName + \t; max = new Long(item2.getUsage().getMax()).floatValue(); used = new Long(item2.getUsage().getUsed()).floatValue(); memoryString+=new Float(max/1048576).shortValue() + MB max, ; memoryString+=new Float((max-used)/1048576).shortValue() + MB; memoryString+=( + new Float(((max-used)/max)*100).shortValue()+%) free, ; memoryString+=new Float(item2.getPeakUsage().getUsed()/1048576).shortValue() +MB peak usage\n; if (new Float(((max-used)/max)*100).shortValue()20) { problem=1; memoryString+=FONT COLOR=REDBWARNING: + item2.getName()+ IS 20%/FONT\n; } } else { heapmax += item2.getUsage().getMax(); heapused += item2.getUsage().getUsed(); heappeak += item2.getPeakUsage().getUsed(); } } String heapmemory; heapmemory=Main memory (heap)\t; heapmemory+=new Float(heapmax/1048576).shortValue() + MB max, ; heapmemory+=new Float((heapmax-heapused)/1048576).shortValue() + MB; heapmemory+=( + new Float(((heapmax-heapused)/heapmax)*100).shortValue()+%) free, ; heapmemory+=new Float(heappeak/1048576).shortValue() +MB peak usage\n; if (new Float(((heapmax-heapused)/heapmax)*100).shortValue()20) { problem=1; heapmemory+=FONT COLOR=REDBWARNING: Main Memory (heap) IS 20%/FONT\n; } memoryString=heapmemory+memoryString; out.print(PRE + memoryString); %
Re: classCastException while deploying a web service using netbeans 5.0 and Tomcat 5.5.X
my guess is that the class webservice.cedarWSImpl does NOT implement the servlet interface, yet you are trying to declare it as a servlet in web.xml Filip colin holloway wrote: I'm developing a web service to deploy on Tomcat 5.5.X using netbeans 5.0but i get a ClassCastException when i try to deploy. I have been searching through google for a solution and the only solution i found was removing the jsp-api.jar file from the projects lib directory but i have no such .jar in the directory. Any suggestions? Here is the stack trace: Mar 31, 2006 11:49:34 AM org.apache.catalina.core.ApplicationContext log INFO: Marking servlet WSServlet_cedarWS as unavailable Mar 31, 2006 11:49:34 AM org.apache.catalina.core.StandardContextloadOnStartup SEVERE: Servlet /cedarWS threw load() exception java.lang.ClassCastException: webservice.cedarWSImpl at org.apache.catalina.core.StandardWrapper.loadServlet( StandardWrapper.java:1048) at org.apache.catalina.core.StandardWrapper.load( StandardWrapper.java:925) at org.apache.catalina.core.StandardContext.loadOnStartup( StandardContext.java:3857) at org.apache.catalina.core.StandardContext.start( StandardContext.java:4118) at org.apache.catalina.core.ContainerBase.addChildInternal( ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.access$000( ContainerBase.java:121) at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run( ContainerBase.java:143) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ContainerBase.addChild( ContainerBase.java:737) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java :524) at org.apache.catalina.startup.HostConfig.deployDescriptor( HostConfig.java:589) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java :494) at org.apache.catalina.startup.HostConfig.check(HostConfig.java :1179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.commons.modeler.BaseModelMBean.invoke( BaseModelMBean.java:503) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke( DynamicMetaDataImpl.java:213) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java :220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke( DefaultMBeanServerInterceptor.java:815) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java :784) at org.apache.catalina.manager.ManagerServlet.check( ManagerServlet.java:1377) at org.apache.catalina.manager.ManagerServlet.deploy( ManagerServlet.java:814) at org.apache.catalina.manager.ManagerServlet.doGet( ManagerServlet.java:343) at javax.servlet.http.HttpServlet.service(HttpServlet.java:747) at javax.servlet.http.HttpServlet.service(HttpServlet.java:860) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java :243) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) at org.apache.catalina.security.SecurityUtil.execute( SecurityUtil.java:275) at org.apache.catalina.security.SecurityUtil.doAsPrivilege( SecurityUtil.java:161) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:245) at org.apache.catalina.core.ApplicationFilterChain.access$000( ApplicationFilterChain.java:50) at org.apache.catalina.core.ApplicationFilterChain$1.run( ApplicationFilterChain.java:156) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:152) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter( MonitorFilter.java:168) at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java :243) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) at org.apache.catalina.security.SecurityUtil.execute( SecurityUtil.java:275)
RE: [5.5] path specified in context.xml not being used
The following links are related to the topic: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html Hansen -Original Message- From: Phil Wilson [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 7:09 AM To: Tomcat Users List Subject: Re: [5.5] path specified in context.xml not being used see also my other post in *Setting the context path for expanded WARs* On 24/03/06, Wang, Hansen [EMAIL PROTECTED] wrote: The path is ignored when you deploy webapps this way. Tomcat will use the basename of the war file as the context path. If you want to use something different than that, you can create a context.xml and put in under the virtual host's conf direction (e.g. CATALINA_HOME/conf/Catalina/localhost). In this context.xml, you can specify the context path and docBase. Hi Nic and Hansen, thanks for this info, it's really useful. Is this actually documented on the Tomcat site? I couldn't find anything about it (in particular the renaming of context.xml to my#nested#path.xml) Cheers, Phil Wilson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: list of applications
You can do a URL request to tomcat's manager application to get a listing. To see it in action go to http://localhost:8080/manager/html Here is documentation. http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html hth -Original Message- From: John Powers [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 12:18 PM To: Tomcat Users List Subject: list of applications Hello, I have tomcat setup with a couple applications running in the server.xml.is there a way to get a list of these from within a filter or a servlet or a jsp? Is there access to the container higher then application? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can I generate JSP pages on the fly using this mechanism?
Are you wanting to define the jsp page in memory or physically create it on disk defined in that context? As a side: you can use the jsp Servlet mapping to map any file with any file extension to go through the jsp Servlet. Not sure if this is something you want to do. -Original Message- From: Gabriel Belingueres [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 1:21 PM To: users@tomcat.apache.org Subject: Can I generate JSP pages on the fly using this mechanism? Hi, I'd like to write an application that, instead of deploying .JSP pages into a context, I could deploy, let's say .xyz pages into a context and add the necessary configuration to Tomcat that, when it receives a request for an .xyz page, it will compile it and execute it as any jsp page. However, instead of generating a response (which is what would normally do a jsp page), it will generate a .jsp page on the fly on that context, which will be available upon request like any other jsp page. I other words, I'd like to add the necessary mechanisms to Tomcat to generate jsp pages on the fly. Does anyone knows if this could be done? (without violently modifying Tomcat's source code of course) Regards, Gabriel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can I generate JSP pages on the fly using this mechanism?
On 3/31/06, Gabriel Belingueres [EMAIL PROTECTED] wrote: Hi, I'd like to write an application that, instead of deploying .JSP pages into a context, I could deploy, let's say .xyz pages into a context and add the necessary configuration to Tomcat that, when it receives a request for an .xyz page, it will compile it and execute it as any jsp page. However, instead of generating a response (which is what would normally do a jsp page), it will generate a .jsp page on the fly on that context, which will be available upon request like any other jsp page. I other words, I'd like to add the necessary mechanisms to Tomcat to generate jsp pages on the fly. Does anyone knows if this could be done? (without violently modifying Tomcat's source code of course) Yep, called servlet. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can I generate JSP pages on the fly using this mechanism?
You don't want to use JSP for something like this. It be much easier to use a templating language such as Freemarker or Velocity. -Tim Gabriel Belingueres wrote: Hi, I'd like to write an application that, instead of deploying .JSP pages into a context, I could deploy, let's say .xyz pages into a context and add the necessary configuration to Tomcat that, when it receives a request for an .xyz page, it will compile it and execute it as any jsp page. However, instead of generating a response (which is what would normally do a jsp page), it will generate a .jsp page on the fly on that context, which will be available upon request like any other jsp page. I other words, I'd like to add the necessary mechanisms to Tomcat to generate jsp pages on the fly. Does anyone knows if this could be done? (without violently modifying Tomcat's source code of course) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: getInputStream() fails intermittently
Hello Mike Sabroff, Thanks for the information. This seems to be a good option. Any pointers to Apache Tomcat group documentation that recommends restart of Tomcat after some time period with recommendations for time periods would be of great help. Thanks. -Original Message- From: Mike Sabroff [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 7:35 AM To: Tomcat Users List Subject: Re: getInputStream() fails intermittently You need to bounce tomcat occasioally We server a lot of content and we bounce tomcat every morning. Might not need it that often, but better safe than sorry. We use tomcat 4.xx Ramadhenu, Giridhar (STSD) wrote: Hello, I am encountering IOException while getting input stream using getInputStream() method on URLConnection class while sending data to Tomcat. Error is pasted below. XML Regular I/O Exception - while getting the input stream from http://12.34.56.78:80/myApp/servlet/com.myComp.xml.CollectorServlet | original message - 2006-03-04 22:20:05.54 java.io.IOException: Server returned HTTP response code: 500 for URL: http://12.34.56.78:80/myApp/servlet/com.myComp.xml.CollectorServlet; The problem occurs after continuous operation of Tomcat server for about one month. But server does not show any exception when client encounters this problem. Please find the client code below. URLConnection httpConnection = null; //Code to open connection to URL httpConnection.setDoOutput(true); httpConnection.setDoInput(true); httpConnection.setUseCaches(false); httpConnection.setRequestProperty(Content-Type, text/xml;charset=UTF-8); httpConnection.setRequestProperty(Authorization, authString); //Code to get the output stream outStream.write(..); outStream.flush(); outStream.close(); try { inStream = httpConnection.getInputStream(); } catch (IOException e) { String sMessage = XML Regular I/O Exception - while getting the input stream from + url.toString() + | original message - + (e); throw new XMLExceptionIO(sMessage); } Thanks in advance. Giridhar. -- Mike Sabroff Web Services Developer [EMAIL PROTECTED] 920-568-8379 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FarmWarDeployer ROOT.war - / - How to?
Hi All, (This one is probably a Filip question...) I have a 3-node cluster on Red Hat (2.6.9+ kernel) and I wish to use the FarmWarDeployer. I have (of course!) RTFM and STFW and both have been extremely helpful. I did note an old (2004-ish) post to this list from Filip saying that the deployDir SHOULD NOT be the host's appBase [http://servlets.com/archive/servlet/ReadMsg?msgId=486921listName=tomcat-us er] From: Filip Hanik - Dev [EMAIL PROTECTED] Subject: Re: cluster FarmWarDeployer Date: Fri, 17 Sep 2004 16:32:27 -0500 - should the deploy dir point to the webapp directory? no it should not, cause you would double deploy your app, and that is why you get an error but that seemed to only copy the war no, it deployed it, just didn't expand it, there is no reason to expand it Filip and a more recent post from Peter Rossbach saying that it SHOULD be the appBase. [http://marc.theaimsgroup.com/?l=tomcat-userm=113828526109819w=2] On Thursday 26 Jan 2006 11:33, Peter Rossbach wrote: Please, set the deployDir to your webapps dir. Peter The latter appears to work for wars named other then ROOT.war. Of course ROOT.war works properly when autoDeploy'ed via copying directly into appBase, or when uploading via the manager. I can successfully deploy an application named 'tim.war' across my cluster by dropping it into /tmp/war-listen on the node with watchEnabled=true. My problem comes when trying to perform a cluster-wide deployment of the default application. If I name it ROOT.war, I get / on the master, and / + /ROOT on each of the slaves. One other suggestion was to simply name it .war [http://marc.theaimsgroup.com/?l=tomcat-userm=111768929520032w=2] but this caused the following: 2006-03-31 15:10:02,446 [org.apache.catalina.cluster.tcp.TcpReplicationThread[2]] INFO HostConfig : Deploying web application archive .war 2006-03-31 15:10:02,491 [org.apache.catalina.cluster.tcp.TcpReplicationThread[2]] INFO ContextConfig : Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/] Which is no good either. Here is my Deployer element, if it matters at all (this is from a slave) Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/usr/local/tomcat/webapps/ watchDir=/tmp/war-listen/ watchEnabled=false/ What's the official party line on deploying in this manner to /? Thanks, Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FarmWarDeployer ROOT.war - / - How to?
That's what I am saying. I have a context.xml in my META-INF -- it looks like this: Context reloadable=true !-- Define the admin2 database as a JNDI-enabled DataSource. -- Resource name=jdbc/admin2 type=javax.sql.DataSource driverClassName=oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:@blah.blah.blah:1521:admin2 username=blah password=blah validationQuery=SELECT COUNT(*) FROM DUAL initialSize=10 defaultCatalog=admin2 maxIdle=20 maxWait=5000 maxActive=50/ Environment description=Host name (FQDN) of blah Server name=host override=false type=java.lang.String value=blah.blah.blah/ /Context I forgot to mention - tomcat 5.5.12 / JDK 1.5.0_06 -- I am leery of moving forward given the recent banter about .16... Oh, and while I am at it, undeploying the context (empty) created by deploying .war DELETES MY webapps DIRECTORY! That can't be good either. Thanks, Tim -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 3:35 PM To: Tomcat Users List Subject: Re: FarmWarDeployer ROOT.war - / - How to? so you are saying its all working except that on a slave you get two contexts, / and /ROOT? have you tried putting a context.xml inside the META-INF directory? maybe that will solve the problem? otherwise, I am sure its a bug and I would have to research it a little bit further. Filip Tim Lucia wrote: Hi All, (This one is probably a Filip question...) I have a 3-node cluster on Red Hat (2.6.9+ kernel) and I wish to use the FarmWarDeployer. I have (of course!) RTFM and STFW and both have been extremely helpful. I did note an old (2004-ish) post to this list from Filip saying that the deployDir SHOULD NOT be the host's appBase [http://servlets.com/archive/servlet/ReadMsg?msgId=486921listName=tom cat-us er] From: Filip Hanik - Dev [EMAIL PROTECTED] Subject: Re: cluster FarmWarDeployer Date: Fri, 17 Sep 2004 16:32:27 -0500 - should the deploy dir point to the webapp directory? no it should not, cause you would double deploy your app, and that is why you get an error but that seemed to only copy the war no, it deployed it, just didn't expand it, there is no reason to expand it Filip and a more recent post from Peter Rossbach saying that it SHOULD be the appBase. [http://marc.theaimsgroup.com/?l=tomcat-userm=113828526109819w=2] On Thursday 26 Jan 2006 11:33, Peter Rossbach wrote: Please, set the deployDir to your webapps dir. Peter The latter appears to work for wars named other then ROOT.war. Of course ROOT.war works properly when autoDeploy'ed via copying directly into appBase, or when uploading via the manager. I can successfully deploy an application named 'tim.war' across my cluster by dropping it into /tmp/war-listen on the node with watchEnabled=true. My problem comes when trying to perform a cluster-wide deployment of the default application. If I name it ROOT.war, I get / on the master, and / + /ROOT on each of the slaves. One other suggestion was to simply name it .war [http://marc.theaimsgroup.com/?l=tomcat-userm=111768929520032w=2] but this caused the following: 2006-03-31 15:10:02,446 [org.apache.catalina.cluster.tcp.TcpReplicationThread[2]] INFO HostConfig : Deploying web application archive .war 2006-03-31 15:10:02,491 [org.apache.catalina.cluster.tcp.TcpReplicationThread[2]] INFO ContextConfig : Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/] Which is no good either. Here is my Deployer element, if it matters at all (this is from a slave) Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/usr/local/tomcat/webapps/ watchDir=/tmp/war-listen/ watchEnabled=false/ What's the official party line on deploying in this manner to /? Thanks, Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FarmWarDeployer ROOT.war - / - How to?
I saw that one as suggestion (.war) in this group ;-) There was also an article about the path being ignored. As I understand it, the path should be ignored for a tim.war, and it should be deployed as /tim. Adding path= to the context does not change the behavior. Tim -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 4:04 PM To: Tomcat Users List Subject: Re: FarmWarDeployer ROOT.war - / - How to? two things: 1. I don't see that you specified path= in your Context element, I would try that. 2. Deleting a .war deletes webapps directory, yeah, you can call that a pretty big oops! if you open a bugzilla item I will be happy to fix that, I of course never thought anyone would use .war as an actual deployed file. Filip Tim Lucia wrote: That's what I am saying. I have a context.xml in my META-INF -- it looks like this: Context reloadable=true !-- Define the admin2 database as a JNDI-enabled DataSource. -- Resource name=jdbc/admin2 type=javax.sql.DataSource driverClassName=oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:@blah.blah.blah:1521:admin2 username=blah password=blah validationQuery=SELECT COUNT(*) FROM DUAL initialSize=10 defaultCatalog=admin2 maxIdle=20 maxWait=5000 maxActive=50/ Environment description=Host name (FQDN) of blah Server name=host override=false type=java.lang.String value=blah.blah.blah/ /Context I forgot to mention - tomcat 5.5.12 / JDK 1.5.0_06 -- I am leery of moving forward given the recent banter about .16... Oh, and while I am at it, undeploying the context (empty) created by deploying .war DELETES MY webapps DIRECTORY! That can't be good either. Thanks, Tim -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 3:35 PM To: Tomcat Users List Subject: Re: FarmWarDeployer ROOT.war - / - How to? so you are saying its all working except that on a slave you get two contexts, / and /ROOT? have you tried putting a context.xml inside the META-INF directory? maybe that will solve the problem? otherwise, I am sure its a bug and I would have to research it a little bit further. Filip Tim Lucia wrote: Hi All, (This one is probably a Filip question...) I have a 3-node cluster on Red Hat (2.6.9+ kernel) and I wish to use the FarmWarDeployer. I have (of course!) RTFM and STFW and both have been extremely helpful. I did note an old (2004-ish) post to this list from Filip saying that the deployDir SHOULD NOT be the host's appBase [http://servlets.com/archive/servlet/ReadMsg?msgId=486921listName=to m cat-us er] From: Filip Hanik - Dev [EMAIL PROTECTED] Subject: Re: cluster FarmWarDeployer Date: Fri, 17 Sep 2004 16:32:27 -0500 - should the deploy dir point to the webapp directory? no it should not, cause you would double deploy your app, and that is why you get an error but that seemed to only copy the war no, it deployed it, just didn't expand it, there is no reason to expand it Filip and a more recent post from Peter Rossbach saying that it SHOULD be the appBase. [http://marc.theaimsgroup.com/?l=tomcat-userm=113828526109819w=2] On Thursday 26 Jan 2006 11:33, Peter Rossbach wrote: Please, set the deployDir to your webapps dir. Peter The latter appears to work for wars named other then ROOT.war. Of course ROOT.war works properly when autoDeploy'ed via copying directly into appBase, or when uploading via the manager. I can successfully deploy an application named 'tim.war' across my cluster by dropping it into /tmp/war-listen on the node with watchEnabled=true. My problem comes when trying to perform a cluster-wide deployment of the default application. If I name it ROOT.war, I get / on the master, and / + /ROOT on each of the slaves. One other suggestion was to simply name it .war [http://marc.theaimsgroup.com/?l=tomcat-userm=111768929520032w=2] but this caused the following: 2006-03-31 15:10:02,446 [org.apache.catalina.cluster.tcp.TcpReplicationThread[2]] INFO HostConfig : Deploying web application archive .war 2006-03-31 15:10:02,491 [org.apache.catalina.cluster.tcp.TcpReplicationThread[2]] INFO ContextConfig : Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/] Which is no good either. Here is my Deployer element, if it matters at all (this is from a slave) Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/usr/local/tomcat/webapps/ watchDir=/tmp/war-listen/
Re: FarmWarDeployer ROOT.war - / - How to?
Ok, thanks. After re-reading this thread again, I had just figured that out and was going to post a Never mind message, but you beat me to it... Filip Hanik - Dev Lists wrote: what you are missing is the complete file name being .war ie, only a suffix, no actual file name Filip David Kerber wrote: Filip Hanik - Dev Lists wrote: two things: 1. I don't see that you specified path= in your Context element, I would try that. 2. Deleting a .war deletes webapps directory, yeah, you can call that a pretty big oops! if you open a bugzilla item I will be happy to fix that, I of course never thought anyone would use .war as an actual deployed file. Jumping in here: Huh? I thought the .war was the normal way of deploying an app. Unless I'm missing something in this thread... Dave Filip Tim Lucia wrote: That's what I am saying. I have a context.xml in my META-INF -- it looks like this: Context reloadable=true !-- Define the admin2 database as a JNDI-enabled DataSource. -- Resource name=jdbc/admin2 type=javax.sql.DataSource driverClassName=oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:@blah.blah.blah:1521:admin2 username=blah password=blah validationQuery=SELECT COUNT(*) FROM DUAL initialSize=10 defaultCatalog=admin2 maxIdle=20 maxWait=5000 maxActive=50/ Environment description=Host name (FQDN) of blah Server name=host override=false type=java.lang.String value=blah.blah.blah/ /Context I forgot to mention - tomcat 5.5.12 / JDK 1.5.0_06 -- I am leery of moving forward given the recent banter about .16... Oh, and while I am at it, undeploying the context (empty) created by deploying .war DELETES MY webapps DIRECTORY! That can't be good either. Thanks, Tim -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 3:35 PM To: Tomcat Users List Subject: Re: FarmWarDeployer ROOT.war - / - How to? so you are saying its all working except that on a slave you get two contexts, / and /ROOT? have you tried putting a context.xml inside the META-INF directory? maybe that will solve the problem? otherwise, I am sure its a bug and I would have to research it a little bit further. Filip Tim Lucia wrote: Hi All, (This one is probably a Filip question...) I have a 3-node cluster on Red Hat (2.6.9+ kernel) and I wish to use the FarmWarDeployer. I have (of course!) RTFM and STFW and both have been extremely helpful. I did note an old (2004-ish) post to this list from Filip saying that the deployDir SHOULD NOT be the host's appBase [http://servlets.com/archive/servlet/ReadMsg?msgId=486921listName=tom cat-us er] From: Filip Hanik - Dev [EMAIL PROTECTED] Subject: Re: cluster FarmWarDeployer Date: Fri, 17 Sep 2004 16:32:27 -0500 - should the deploy dir point to the webapp directory? no it should not, cause you would double deploy your app, and that is why you get an error but that seemed to only copy the war no, it deployed it, just didn't expand it, there is no reason to expand it Filip and a more recent post from Peter Rossbach saying that it SHOULD be the appBase. [http://marc.theaimsgroup.com/?l=tomcat-userm=113828526109819w=2] On Thursday 26 Jan 2006 11:33, Peter Rossbach wrote: Please, set the deployDir to your webapps dir. Peter The latter appears to work for wars named other then ROOT.war. Of course ROOT.war works properly when autoDeploy'ed via copying directly into appBase, or when uploading via the manager. I can successfully deploy an application named 'tim.war' across my cluster by dropping it into /tmp/war-listen on the node with watchEnabled=true. My problem comes when trying to perform a cluster-wide deployment of the default application. If I name it ROOT.war, I get / on the master, and / + /ROOT on each of the slaves. One other suggestion was to simply name it .war [http://marc.theaimsgroup.com/?l=tomcat-userm=111768929520032w=2] but this caused the following: 2006-03-31 15:10:02,446 [org.apache.catalina.cluster.tcp.TcpReplicationThread[2]] INFO HostConfig : Deploying web application archive .war 2006-03-31 15:10:02,491 [org.apache.catalina.cluster.tcp.TcpReplicationThread[2]] INFO ContextConfig : Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/] Which is no good either. Here is my Deployer element, if it matters at all (this is from a slave) Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/usr/local/tomcat/webapps/ watchDir=/tmp/war-listen/ watchEnabled=false/ What's the official party line on deploying in this
Re: FarmWarDeployer ROOT.war - / - How to?
I currently look inside the FarmWarDeployer code and it seems that the ROOT case is not handle really well. OK, I have tomorrow time to make a really introspection and a test the case. Regards Peter Am 31.03.2006 um 23:04 schrieb Filip Hanik - Dev Lists: two things: 1. I don't see that you specified path= in your Context element, I would try that. 2. Deleting a .war deletes webapps directory, yeah, you can call that a pretty big oops! if you open a bugzilla item I will be happy to fix that, I of course never thought anyone would use .war as an actual deployed file. Filip Tim Lucia wrote: That's what I am saying. I have a context.xml in my META-INF -- it looks like this: Context reloadable=true !-- Define the admin2 database as a JNDI-enabled DataSource. -- Resource name=jdbc/admin2 type=javax.sql.DataSource driverClassName=oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:@blah.blah.blah:1521:admin2 username=blah password=blah validationQuery=SELECT COUNT(*) FROM DUAL initialSize=10 defaultCatalog=admin2 maxIdle=20 maxWait=5000 maxActive=50/ Environment description=Host name (FQDN) of blah Server name=host override=false type=java.lang.String value=blah.blah.blah/ /Context I forgot to mention - tomcat 5.5.12 / JDK 1.5.0_06 -- I am leery of moving forward given the recent banter about .16... Oh, and while I am at it, undeploying the context (empty) created by deploying .war DELETES MY webapps DIRECTORY! That can't be good either. Thanks, Tim -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 3:35 PM To: Tomcat Users List Subject: Re: FarmWarDeployer ROOT.war - / - How to? so you are saying its all working except that on a slave you get two contexts, / and /ROOT? have you tried putting a context.xml inside the META-INF directory? maybe that will solve the problem? otherwise, I am sure its a bug and I would have to research it a little bit further. Filip Tim Lucia wrote: Hi All, (This one is probably a Filip question...) I have a 3-node cluster on Red Hat (2.6.9+ kernel) and I wish to use the FarmWarDeployer. I have (of course!) RTFM and STFW and both have been extremely helpful. I did note an old (2004-ish) post to this list from Filip saying that the deployDir SHOULD NOT be the host's appBase [http://servlets.com/archive/servlet/ReadMsg? msgId=486921listName=tom cat-us er] From: Filip Hanik - Dev [EMAIL PROTECTED] Subject: Re: cluster FarmWarDeployer Date: Fri, 17 Sep 2004 16:32:27 -0500 - should the deploy dir point to the webapp directory? no it should not, cause you would double deploy your app, and that is why you get an error but that seemed to only copy the war no, it deployed it, just didn't expand it, there is no reason to expand it Filip and a more recent post from Peter Rossbach saying that it SHOULD be the appBase. [http://marc.theaimsgroup.com/?l=tomcat-userm=113828526109819w=2] On Thursday 26 Jan 2006 11:33, Peter Rossbach wrote: Please, set the deployDir to your webapps dir. Peter The latter appears to work for wars named other then ROOT.war. Of course ROOT.war works properly when autoDeploy'ed via copying directly into appBase, or when uploading via the manager. I can successfully deploy an application named 'tim.war' across my cluster by dropping it into /tmp/war-listen on the node with watchEnabled=true. My problem comes when trying to perform a cluster-wide deployment of the default application. If I name it ROOT.war, I get / on the master, and / + /ROOT on each of the slaves. One other suggestion was to simply name it .war [http://marc.theaimsgroup.com/?l=tomcat- userm=111768929520032w=2] but this caused the following: 2006-03-31 15:10:02,446 [org.apache.catalina.cluster.tcp.TcpReplicationThread[2]] INFO HostConfig : Deploying web application archive .war 2006-03-31 15:10:02,491 [org.apache.catalina.cluster.tcp.TcpReplicationThread[2]] INFO ContextConfig : Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/] Which is no good either. Here is my Deployer element, if it matters at all (this is from a slave) Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/usr/local/tomcat/webapps/ watchDir=/tmp/war-listen/ watchEnabled=false/ What's the official party line on deploying in this manner to /? Thanks, Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL
Re: FarmWarDeployer ROOT.war - / - How to?
Tim Lucia Wrote: and a more recent post from Peter Rossbach saying that it SHOULD be the appBase. [http://marc.theaimsgroup.com/?l=tomcat-userm=113828526109819w=2] On Thursday 26 Jan 2006 11:33, Peter Rossbach wrote: Please, set the deployDir to your webapps dir. Peter ha ha, :) Peter has a habit of changing underlying functionality to new functionality, but provide no backwards compatibility. Earlier, the FarmWarDeploy used to deploy remote .war files that were located in any directory. (ie deployDir) Peter has changed this functionlity, that you now must deploy into the appBase dir, definitely a functionality I don't like and would have -1 if I had caught the change. Filip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
getsession if you know the id?
If you know the id of a session is there anyway to get it out of the application? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
session object holds session as an attribute
If we have a sessionObject that holds a reference to the httpsession.. that sessionobject is set in the httpsession as an attribute. Would this effect garbage collection of that session? Once it times out, it gets marked as invalid, correct?If it gets collected, then all its attributes would be collected, so its not an issue. But can it get marked as garbage if someone else is holding a reference to it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
session GC
How do you know when a session is garbage collected? You can write a sessionlistener for when it gets deleted out of tomcat, but after that, when do you know if its garbage collected? I currently do not think my sessions are being collected. Within a day 500M of memory get eaten up and I can't collect them manually even. So I want to know when/if the sessions are being collected. If I wrote a subclass to httpsession, how could get tomcat to use it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SSL truststore
Hello, I'm configuring SSL on Tomcat. I would like to use truststore of PKCS type (it reads in documentation that it is possible), but I don't know how to generate the Tomcat-compatible truststore using openssl. So far I have generated the keystore of JKS type using keytool. It works fine but I would like handle all the work using openssl only. Could you give me some hints? I've searched the web with no effects. Best ragards, Konrad Billewicz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: session GC
easiest way to make sure they are GC'd is to set session time-outs. -Original Message- From: John Powers [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 6:07 PM To: Tomcat Users List Subject: session GC How do you know when a session is garbage collected? You can write a sessionlistener for when it gets deleted out of tomcat, but after that, when do you know if its garbage collected? I currently do not think my sessions are being collected. Within a day 500M of memory get eaten up and I can't collect them manually even. So I want to know when/if the sessions are being collected. If I wrote a subclass to httpsession, how could get tomcat to use it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: session GC
If you would like something simple and intuitive, you can create a class and overwrite the finalized() method to print out simple log. Then, create a separate object of your class for each httpsession and add it as an attribute of the httpsession. Of cause you want to make sure that you do not keep other references to this object and keep the log simple. Hansen -Original Message- From: John Powers [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 4:07 PM To: Tomcat Users List Subject: session GC How do you know when a session is garbage collected? You can write a sessionlistener for when it gets deleted out of tomcat, but after that, when do you know if its garbage collected? I currently do not think my sessions are being collected. Within a day 500M of memory get eaten up and I can't collect them manually even. So I want to know when/if the sessions are being collected. If I wrote a subclass to httpsession, how could get tomcat to use it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with URL Format ;jessionid with mod_jk
Hi all. I have somewhat of a perplexing problem. My site uses Apache 2.0 with mod_jk1.2 to connect to a Tomcat application. The Tomcat app uses a session ID on the URL line. Apache is configured to log in combined log format. In the URL in the POST , I see /myapplication/page.jsp;jsessionid=KJHDFSALKJHBFBFLKBF My log analysis product, Deepmetrix Livestats cannot handle the ; in this entry and is recording each session as a unique file extension. Anyone know how I might get around this? David Morrow Technical Systems Lead Autodata Solutions Company [EMAIL PROTECTED] http://www.autodatasolutions.com http://www.autodatasolutions.com/ Tel: (519) 963-3020 Fax: (519) 451-6615 Lead, follow or get out of the way! This message has originated from Autodata Solutions. The attached material is the Confidential and Proprietary Information of Autodata Solutions. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please delete this message and notify the Autodata system administrator at [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
RE: session GC
thats not what i'm talking about. after a session times out... tomcat removes it from its list of sessions. a session listener will show that it leaves. however, a GC then needs to see if its available for collection on the next go around of the GC.if i force the GC, or whenever it decides to happen, my objects under the session aren't being collected. so then. how can you know when the session itself is collected (not timed out) -Original Message- From: Farrow, Marc [mailto:[EMAIL PROTECTED] Sent: Fri 3/31/2006 5:36 PM To: Tomcat Users List Subject: RE: session GC easiest way to make sure they are GC'd is to set session time-outs. -Original Message- From: John Powers [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 6:07 PM To: Tomcat Users List Subject: session GC How do you know when a session is garbage collected? You can write a sessionlistener for when it gets deleted out of tomcat, but after that, when do you know if its garbage collected? I currently do not think my sessions are being collected. Within a day 500M of memory get eaten up and I can't collect them manually even. So I want to know when/if the sessions are being collected. If I wrote a subclass to httpsession, how could get tomcat to use it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: session GC
i did that and they aren't getting finalized. i made some garbage/tmp objects and they get finalized when the GC runs. any ideas how we can know when the session itself is finalized? and/or GC'd? any way to have tomcat use a custom httpsession subclass? so that i could write the finalize method in it? -Original Message- From: Wang, Hansen [mailto:[EMAIL PROTECTED] Sent: Fri 3/31/2006 5:38 PM To: Tomcat Users List Subject: RE: session GC If you would like something simple and intuitive, you can create a class and overwrite the finalized() method to print out simple log. Then, create a separate object of your class for each httpsession and add it as an attribute of the httpsession. Of cause you want to make sure that you do not keep other references to this object and keep the log simple. Hansen -Original Message- From: John Powers [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 4:07 PM To: Tomcat Users List Subject: session GC How do you know when a session is garbage collected? You can write a sessionlistener for when it gets deleted out of tomcat, but after that, when do you know if its garbage collected? I currently do not think my sessions are being collected. Within a day 500M of memory get eaten up and I can't collect them manually even. So I want to know when/if the sessions are being collected. If I wrote a subclass to httpsession, how could get tomcat to use it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ant reload issue
Hi. When I compile some classes using the ant task ReloadTask from the sample build.xml, it doesn't reload the new compiled classes in tomcat. The only way that I found it does that is when I remove and reinstall the app. Is that the normal behaviour, or am I doing something wrong. Thanks
RE: list of applications
http://localhost:8080/manager/list (no html) give you a simple list, if that is more to your liking. Not sure if the manager/list comes in an XML variant, like manager/status?XML=true does - doesn't appear to. Tim -Original Message- From: Farrow, Marc [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 12:47 PM To: Tomcat Users List Subject: RE: list of applications You can do a URL request to tomcat's manager application to get a listing. To see it in action go to http://localhost:8080/manager/html Here is documentation. http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html hth -Original Message- From: John Powers [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 12:18 PM To: Tomcat Users List Subject: list of applications Hello, I have tomcat setup with a couple applications running in the server.xml.is there a way to get a list of these from within a filter or a servlet or a jsp? Is there access to the container higher then application? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: session GC
John, The simple and intuitive solution that Hansen provided can be used to log when an HttpSession instance is GC'd since the objects that instance holds *unique* references to will also be GC'd. So, the question becomes, which classes are holding references to HttpSession objects and preventing them from being GC'd? We used a tool years ago to analyze the heap when we were tracking down some elusive memory issues. Heap Analysis Tool: https://hat.dev.java.net/ -Bob --- John Powers [EMAIL PROTECTED] wrote: thats not what i'm talking about. after a session times out... tomcat removes it from its list of sessions. a session listener will show that it leaves. however, a GC then needs to see if its available for collection on the next go around of the GC.if i force the GC, or whenever it decides to happen, my objects under the session aren't being collected. so then. how can you know when the session itself is collected (not timed out) -Original Message- From: Farrow, Marc [mailto:[EMAIL PROTECTED] Sent: Fri 3/31/2006 5:36 PM To: Tomcat Users List Subject: RE: session GC easiest way to make sure they are GC'd is to set session time-outs. -Original Message- From: John Powers [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 6:07 PM To: Tomcat Users List Subject: session GC How do you know when a session is garbage collected? You can write a sessionlistener for when it gets deleted out of tomcat, but after that, when do you know if its garbage collected? I currently do not think my sessions are being collected. Within a day 500M of memory get eaten up and I can't collect them manually even. So I want to know when/if the sessions are being collected. If I wrote a subclass to httpsession, how could get tomcat to use it? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]