Re: [NEWBIE]Tomcat 6.0.16-reboot required when changing the port number
No I'm stating that I had to reboot to get apache 'not running' on port 8080 and it seemed unusual, because I ran the shutdown scripts. Has this problem occured to anyone? 2008/9/8 Steve Ochani [EMAIL PROTECTED] 1.I´ve updated server.xml to change the default port from 8080 to 80, however, I´ve noted that restarting the server leaves apache tomcat listening on both ports 8080 and 80, until the server is rebooted. Are you stating that you have to reboot twice? Are you sure that it's tomcat that is still listening on port 8080? Try the shutdown script then run the command netstat -anp | grep 8080 as root. If nothing comes up then that is a good thing. You may end up having to post your server.xml is the problem persists. Scripts executed shutdown.sh startup.sh OS: RedHat Fedora 9 running Linux 2.6.25 2. It´s also noted that exporting the following line, makes the server crash (i.e. Gnome does not boot up and some libraries seem be corrupted during startup) export LD_ASSUME_KERNEL=2.4.1 Why? Most likely because you are running kernel 2.6 and trying to force some apps to think you are running 2.4. This will cause libc problems. Why are you doing this? Tomcat doesn't require you to do this. -Steve O. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jon Camilleri Mobile (MT): 00356 7982 7113 E-mail: [EMAIL PROTECTED] Please consider your environmental responsibility before printing this e-mail. I usually reply to e-mails within 2 business days. If it's urgent, give me a call.
Re: UnauthorizedAccessException error while running WMI in tomcat
- Original Message - From: new_bie_tomcat [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Monday, September 08, 2008 6:59 AM Subject: UnauthorizedAccessException error while running WMI in tomcat I have written the following code in Java to access registry of a remote machine. I am able to execute the program successfully when i run the program separately. But when I try to execute the code in Apache Tomcat. I am getting UnauthorizedAccessException error.The full text of error is System.UnauthorizedAccessException: Access to the registry key is denied. at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) at Microsoft.Win32.RegistryKey.OpenRemoteBaseKey(RegistryHive hKey, String machineName) at BOMInfoCollector.BOMInfoCollector.getOSVersion(StreamWriter file, String remoteName) Following is the Java code: try { String keykey = C:\\Diagnostic\\DiagnosticAssayRE\\Executable\\BOMInfoCollector.exe; String ipadddress = Remote machine's IP; String keyStr1= keykey + + ipadddress; Process p = Runtime.getRuntime().exec(keyStr1); BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream())); BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getErrorStream())); // read the output from the command while ((s = stdInput.readLine()) != null) { response = response + s +\n; } while ((s = stdError.readLine()) != null) { response = response + s +\n; System.out.println(s); }}catch(Exception e){ System.out.println(Exception occured +e); } Following is the C# code whose name is string osKeyName = SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion; try{ RegistryKey hklm = RegistryKey.OpenRemoteBaseKey( RegistryHive.LocalMachine, remoteName); RegistryKey osKey = hklm.OpenSubKey(osKeyName); if(osKey != null) { object prodName = osKey.GetValue(ProductName); Console.WriteLine(OSName= + prodName); } Console.WriteLine(Exiting getOSVersion() method); }catch(System.UnauthorizedAccessException e){ Console.WriteLine(You are not authorized to access the machine.Please check the network Privileges +e); }catch(Exception e){ Console.WriteLine(Error occured +e); } Please let me know if any configuration is needed in Tomcat to support this? -- View this message in context: http://www.nabble.com/UnauthorizedAccessException-error-while-running-WMI-in-tomcat-tp19365845p19365845.html Sent from the Tomcat - User mailing list archive at Nabble.com. Its Just a user permission thing... you starting a process in the name of System (See Tomcat service settings) and that users doesnt have permission to Access WMI... WMI priviledges can be turned off, or on... If you run Tomcat from the BAT file... it will probably work... Solution, use a user in the service that has permission to run WMI... Interesting way you using for inter-app comms ;) Sort of a Micro-Perl ;) Have fun... --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: UnauthorizedAccessException error while running WMI in tomcat
Ok, first of all, i'm quite sure that exception does not exist in Java nor in Tomcat! (as far as I know it's not in the apis), yet it does exists in .Net. So my gess is that it's a .Net exception after all and you are just reading it from the console. you may want to try giving more privileges to the tomcat service so that it run's the .net program with more privileges too. BYE! ps: excuse my english, it's not my mother's tonge. - Mensaje original De: new_bie_tomcat [EMAIL PROTECTED] Para: users@tomcat.apache.org Enviado: lunes 8 de septiembre de 2008, 1:59:04 Asunto: UnauthorizedAccessException error while running WMI in tomcat I have written the following code in Java to access registry of a remote machine. I am able to execute the program successfully when i run the program separately. But when I try to execute the code in Apache Tomcat. I am getting UnauthorizedAccessException error.The full text of error is System.UnauthorizedAccessException: Access to the registry key is denied. at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) at Microsoft.Win32.RegistryKey.OpenRemoteBaseKey(RegistryHive hKey, String machineName) at BOMInfoCollector.BOMInfoCollector.getOSVersion(StreamWriter file, String remoteName) Following is the Java code: try { String keykey = C:\\Diagnostic\\DiagnosticAssayRE\\Executable\\BOMInfoCollector.exe; String ipadddress = Remote machine's IP; String keyStr1= keykey + + ipadddress; Process p = Runtime.getRuntime().exec(keyStr1); BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream())); BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getErrorStream())); // read the output from the command while ((s = stdInput.readLine()) != null) { response = response + s +\n; } while ((s = stdError.readLine()) != null) { response = response + s +\n; System.out.println(s); }}catch(Exception e){ System.out.println(Exception occured +e); } Following is the C# code whose name is string osKeyName = SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion; try{ RegistryKey hklm = RegistryKey.OpenRemoteBaseKey( RegistryHive.LocalMachine, remoteName); RegistryKey osKey = hklm.OpenSubKey(osKeyName); if(osKey != null) { object prodName = osKey.GetValue(ProductName); Console.WriteLine(OSName= + prodName); } Console.WriteLine(Exiting getOSVersion() method); }catch(System.UnauthorizedAccessException e){ Console.WriteLine(You are not authorized to access the machine.Please check the network Privileges +e); }catch(Exception e){ Console.WriteLine(Error occured +e); } Please let me know if any configuration is needed in Tomcat to support this? -- View this message in context: http://www.nabble.com/UnauthorizedAccessException-error-while-running-WMI-in-tomcat-tp19365845p19365845.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ¡Buscá desde tu celular! Yahoo! oneSEARCH ahora está en Claro http://ar.mobile.yahoo.com/onesearch - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: UnauthorizedAccessException error while running WMI in tomcat
Hi Mark, Thanks a lot for your reply. I am not able to find out exactly where to change the permission. I am using Tomcat 5.5. I have logged in to the machine, using the same user login as the remote machine. Both of the machine are in the same domain. In tomcat Properties Log on Tab i have logged in as the same login ID of the local/ remote machine. But still i am getting the same error.Please let me know where exactly i need to configure properly. Thanks again.. Mark Thomas-18 wrote: new_bie_tomcat wrote: Please let me know if any configuration is needed in Tomcat to support this? You need to run Tomcat under a user that has the permissions to perform the action you are trying to perform. If you are running Tomcat as a service, the default LocalSystem user will not have this permission. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/UnauthorizedAccessException-error-while-running-WMI-in-tomcat-tp19365845p19366919.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: UnauthorizedAccessException error while running WMI in tomcat
Thanks for your reply.You are absolutely right. This error is a .NET Exception.I am not able to figure out exactly where in Tomcat i need to provide the priviledge.I have logged in to the machine with the same login id as the remote machine. In the Tomcat logon tab i have mentioned the same login id and password. But still i am getting the same errror.Please let me know what changes are needed to be done in tomcat. Thanks.. Mr Popo Sama wrote: Ok, first of all, i'm quite sure that exception does not exist in Java nor in Tomcat! (as far as I know it's not in the apis), yet it does exists in .Net. So my gess is that it's a .Net exception after all and you are just reading it from the console. you may want to try giving more privileges to the tomcat service so that it run's the .net program with more privileges too. BYE! ps: excuse my english, it's not my mother's tonge. - Mensaje original De: new_bie_tomcat [EMAIL PROTECTED] Para: users@tomcat.apache.org Enviado: lunes 8 de septiembre de 2008, 1:59:04 Asunto: UnauthorizedAccessException error while running WMI in tomcat I have written the following code in Java to access registry of a remote machine. I am able to execute the program successfully when i run the program separately. But when I try to execute the code in Apache Tomcat. I am getting UnauthorizedAccessException error.The full text of error is System.UnauthorizedAccessException: Access to the registry key is denied. at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) at Microsoft.Win32.RegistryKey.OpenRemoteBaseKey(RegistryHive hKey, String machineName) at BOMInfoCollector.BOMInfoCollector.getOSVersion(StreamWriter file, String remoteName) Following is the Java code: try { String keykey = C:\\Diagnostic\\DiagnosticAssayRE\\Executable\\BOMInfoCollector.exe; String ipadddress = Remote machine's IP; String keyStr1= keykey + + ipadddress; Process p = Runtime.getRuntime().exec(keyStr1); BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream())); BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getErrorStream())); // read the output from the command while ((s = stdInput.readLine()) != null) { response = response + s +\n; } while ((s = stdError.readLine()) != null) { response = response + s +\n; System.out.println(s); }}catch(Exception e){ System.out.println(Exception occured +e); } Following is the C# code whose name is string osKeyName = SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion; try{ RegistryKey hklm = RegistryKey.OpenRemoteBaseKey( RegistryHive.LocalMachine, remoteName); RegistryKey osKey = hklm.OpenSubKey(osKeyName); if(osKey != null) { object prodName = osKey.GetValue(ProductName); Console.WriteLine(OSName= + prodName); } Console.WriteLine(Exiting getOSVersion() method); }catch(System.UnauthorizedAccessException e){ Console.WriteLine(You are not authorized to access the machine.Please check the network Privileges +e); }catch(Exception e){ Console.WriteLine(Error occured +e); } Please let me know if any configuration is needed in Tomcat to support this? -- View this message in context: http://www.nabble.com/UnauthorizedAccessException-error-while-running-WMI-in-tomcat-tp19365845p19365845.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ¡Buscá desde tu celular! Yahoo! oneSEARCH ahora está en Claro http://ar.mobile.yahoo.com/onesearch - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/UnauthorizedAccessException-error-while-running-WMI-in-tomcat-tp19365845p19366950.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: UnauthorizedAccessException error while running WMI in tomcat
hi.. Thanks a lot for your reply. I am not able to figure out exactly where in Tomcat i need to provide the priviledge.I have logged in to the machine with the same login id as the remote machine. In the Tomcat logon tab i have mentioned the same login id and password. But still i am getting the same errror.Please let me know what changes are needed to be done in tomcat. How can i turn off, or on the WMI priviledges? Thanks. Johnny Kewl wrote: - Original Message - From: new_bie_tomcat [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Monday, September 08, 2008 6:59 AM Subject: UnauthorizedAccessException error while running WMI in tomcat I have written the following code in Java to access registry of a remote machine. I am able to execute the program successfully when i run the program separately. But when I try to execute the code in Apache Tomcat. I am getting UnauthorizedAccessException error.The full text of error is System.UnauthorizedAccessException: Access to the registry key is denied. at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) at Microsoft.Win32.RegistryKey.OpenRemoteBaseKey(RegistryHive hKey, String machineName) at BOMInfoCollector.BOMInfoCollector.getOSVersion(StreamWriter file, String remoteName) Following is the Java code: try { String keykey = C:\\Diagnostic\\DiagnosticAssayRE\\Executable\\BOMInfoCollector.exe; String ipadddress = Remote machine's IP; String keyStr1= keykey + + ipadddress; Process p = Runtime.getRuntime().exec(keyStr1); BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream())); BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getErrorStream())); // read the output from the command while ((s = stdInput.readLine()) != null) { response = response + s +\n; } while ((s = stdError.readLine()) != null) { response = response + s +\n; System.out.println(s); }}catch(Exception e){ System.out.println(Exception occured +e); } Following is the C# code whose name is string osKeyName = SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion; try{ RegistryKey hklm = RegistryKey.OpenRemoteBaseKey( RegistryHive.LocalMachine, remoteName); RegistryKey osKey = hklm.OpenSubKey(osKeyName); if(osKey != null) { object prodName = osKey.GetValue(ProductName); Console.WriteLine(OSName= + prodName); } Console.WriteLine(Exiting getOSVersion() method); }catch(System.UnauthorizedAccessException e){ Console.WriteLine(You are not authorized to access the machine.Please check the network Privileges +e); }catch(Exception e){ Console.WriteLine(Error occured +e); } Please let me know if any configuration is needed in Tomcat to support this? -- View this message in context: http://www.nabble.com/UnauthorizedAccessException-error-while-running-WMI-in-tomcat-tp19365845p19365845.html Sent from the Tomcat - User mailing list archive at Nabble.com. Its Just a user permission thing... you starting a process in the name of System (See Tomcat service settings) and that users doesnt have permission to Access WMI... WMI priviledges can be turned off, or on... If you run Tomcat from the BAT file... it will probably work... Solution, use a user in the service that has permission to run WMI... Interesting way you using for inter-app comms ;) Sort of a Micro-Perl ;) Have fun... --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/UnauthorizedAccessException-error-while-running-WMI-in-tomcat-tp19365845p19366973.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: UnauthorizedAccessException error while running WMI in tomcat
--- On Mon, 9/8/08, new_bie_tomcat [EMAIL PROTECTED] wrote: From: new_bie_tomcat [EMAIL PROTECTED] Subject: Re: UnauthorizedAccessException error while running WMI in tomcat To: users@tomcat.apache.org Date: Monday, September 8, 2008, 3:06 AM Hi Mark, Thanks a lot for your reply. I am not able to find out exactly where to change the permission. I am using Tomcat 5.5. I have logged in to the machine, using the same user login as the remote machine. Both of the machine are in the same domain. In tomcat Properties Log on Tab i have logged in as the same login ID of the local/ remote machine. But still i am getting the same error.Please let me know where exactly i need to configure properly. Thanks again.. Hi, Since you're in the domain and if my memory serves correctly (it's been a while since I worked w/ windows domains), you'll need to have proper access rights to access the registry. Not all WMI commands will work with User/Power User rights. You'll need full Administrator's rights on the target system if you want to use WMI to it's fullest. You may want to check your domain policy and the local systems' policy (if any is defined). Logging into a machine does not mean that account have the appropriate access rights, especially if you're trying access HKLM, HKCR, and HKUSERS. You may want to look into impersonation to lessen the security risk of unwanted full domain access ;) Regards, Tommy - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbies, becareful of pure cookie based magic... theres a few gotcha's
Hi Johny, first of all you can't force people to use their brain, if someone is building a portal or site which needs to be indexed and is using single-entry-point framework, that means he hasn't checked his requirements before he started to work or hasn't consulted the seo guys/forums/mailing lists, hence its his fault. Having said that, there are a lot of use cases where you explicitelly don't want google or anyone else to index the site, cause it contains private information, would you like to see your private emails or your health check or your account's balance sheet in google, and would you like other people to see it? For those cases it's completely irrelevant whether the site is easy-index-able or not, and doesn't influence your framework decision. Craig McClanahan once said, that probably 90% of struts applications worldwide are running behind company firewalls in intranets. How relevant is indexing for those? (And yes, I know that they can buy google appliance and index them privately :-)) For those 10% of the sites which are running publicly accessible probably half of them need at least partial indexing. Even in that case you're not done with framework alone, you need other css for indexing, you shouldn't use tables, you need another content disposition and and and ... To sum it up, there are a lot of homework you have to perform if you want your site properly indexed, and using a framework which hides everything behind one url and sends POST requests is surely contra productive. But this doesn't give you the right to bash the framework itself or warn people against its usage, since this framework have its usage outside of your scope. It's like saying don't swim in a pool, you could be attacked by piranhas. Leon P.S. and: Anyway that all I'm saying because I think after 6 months of hard work and design if developers do find themselves in this position, its a real gotcha... Probably can be avoided or done correctly in any framework... but they getting caught... thats all I'm trying to say to developers, because once there, how do you help them? Create another navigation path using filters and rewrite (internal forwards +url rewriting) rules and let google walk that path. On Mon, Sep 8, 2008 at 1:41 AM, Johnny Kewl [EMAIL PROTECTED] wrote: - Original Message - From: Leon Rosenberg [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, September 07, 2008 9:49 PM Subject: Re: Newbies, becareful of pure cookie based magic... theres a few gotcha's I think you are speaking about JSF and I think you are completely misunderstanding the concept. The diversification is done via parameters just as same as it's done via content path or 'visible' parameters in old school frameworks. The actual problem is that everything is sent via POST and that is or was a problem with google some time ago. But if you are creating a login protected site for members, why the hell should you care about google? Just separate seo-related content from the application and be happy. The seo guys are happiest with php anyway. Leon... what is it that it all done with a POST? All I've noticed is that someone is asking questions, how do I get my site onto google, how do I get the proxy server to cache, and when you try help them it becomes apparent that its all behind one url... and then I really dont know what to tell em, other that redesign your site, sorry... Its actually difficult to imagine a site built using just using TC technology having a single url, its got to be coming from one major control servlet that even does things like include static content and ajax is used incorrectly. I tend to agree with this guy for instance... http://www.webpronews.com/expertarticles/2006/11/21/ajax-and-search-engines Ajax or XMLHttpRequest can use a post, but I've never used it that way, for the most part is always a get on our stuff? Whether public or private I think anyone should be thinking about the possibility of indexing their site. I dont think its impossible at all to make a cookie driven site search engine friendly, but it doesnt seem be happening... Without even taking technology, if one minute the content behind a url is cars for sale, and the next minute its top sales man of the year, how do you index that? And if a user is wanting to pull TC apart to get at Vary: ETags... wonder why that is... maybe another single url site got em ;) Anyway that all I'm saying because I think after 6 months of hard work and design if developers do find themselves in this position, its a real gotcha... Probably can be avoided or done correctly in any framework... but they getting caught... thats all I'm trying to say to developers, because once there, how do you help them? On Sun, Sep 7, 2008 at 2:42 AM, Johnny Kewl [EMAIL PROTECTED] wrote: I see this in the Netbeans group and its popping up its ugly head and making other area's complex. It
Re: Newbies, becareful of pure cookie based magic... theres a few gotcha's
But this doesn't give you the right to bash the framework Have to agree, shouldnt have mentioned it ;) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: difference in how applications are displaying
Johnny Kewl/Len Popp You are right. It is in the html code. I was looking for differences in the code when the problem was that the code was IDENTICAL. The html was referencing a directory which did not exist on the second server. Rather than displaying an error it was behaving as if it were set up to display on mouseover or similar. Thanks for pointing me back to looking at the code again. Regards Ewan -Original Message- From: Johnny Kewl [mailto:[EMAIL PROTECTED] Sent: 06 September 2008 11:50 To: Tomcat Users List Subject: Re: difference in how applications are displaying - Original Message - From: Scott, Ewan [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Friday, September 05, 2008 1:04 PM Subject: difference in how applications are displaying Hi I think this may relate to a tomcat setting - but I may be completely wrong. I have 2 servers which should be running identical looking webapps under Apache Tomcat. Accessing the test app on server 1 from a client using IE6, within the app, next to a range of data input fields, an arrow icon permanently exists which, if you click on it, brings up a lookup table of values. Accessing the live app on server 2 from the same IE6 client, next to the range of data input fields the arrow icon only exists once you hover the mouse over the relevant area of the browser. How can I get the arrow icon to appear permanently as in test? Installed on both servers (Windows 2003): Java 2 RuntimeEnv SE v1.4.2_15 Java 2 SDX, SE v1.4.2_15 Java TM 6 Update 3 Apache Tomcat 4.1 Regards Ewan Scott - Hi Ewan... luv this question, if TC had a hall of (sh)fame, this would be in it ;) No way that TC is making a icon in a web page act weird ;) Welcome to the wonderful world of browser standards Get yourself, FireFox, and Opera, and IE... and test your web apps on every one before they go out. My guess... you using CSS, the span or div tags are not closed properly and on one browser it works and on another browser it cant see the section until the mouse goes over it. This is very common... get yourself all those browsers, or this will catch you forever ;) You cannot develop on one browser I think I heard a whole bunch of people say... especially just IE ;) have fun... --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** This email and any files transmitted with it are privileged, confidential and subject to copyright. Any unauthorised use or disclosure of any part of this email is prohibited. If you are not the intended recipient please inform the sender immediately; you should then delete the email and remove any copies from your system. The views or opinions expressed in this communication may not necessarily be those of Scottish Borders Council. Please be advised that Scottish Borders Council's incoming and outgoing email is subject to regular monitoring and any email may require to be disclosed by the Council under the provisions of the Freedom of Information (Scotland) Act 2002. ** - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SNMP tomcat 5.5!
Hi, Can anybody please tell me how I can monitor by SNMP tomcat sites without querying the admin module which I disabled for security reasons? Is there any MIBS that I can use? Thanks in advanced
Re: Tomcat loops indefinitely
On Monday 08 September 2008 04:20:31 Konstantin Kolinko wrote: What is that address? Judging from the behavior, it occurs that it makes request back to itself. That's actually a possibility. I checked the variable's value, and that had the correct value, so it shouldn't happen. What might happen is of course that some other part of the application may have overwritten something that caused it to go into that loop. This morning, I just deleted absolutely everything, checked it out from SVN again, built it, and it runs. I guess I will never figure out what actually went wrong, but the important thing is that it runs, I guess... Kind regards Kjetil Kjernsmo -- Senior Knowledge Engineer Direct: +47 6783 1136 | Mobile: +47 986 48 234 Email: [EMAIL PROTECTED] Web: http://www.computas.com/ | SHARE YOUR KNOWLEDGE | Computas AS Vollsveien 9, PO Box 482, N-1327 Lysaker | Phone:+47 6783 1000 | Fax:+47 6783 1001 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Intermitant DB Problem in tomcat:java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read
- Original Message - From: Thangavel Sankaranarayanan [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, September 08, 2008 12:49 PM Subject: Intermitant DB Problem in tomcat:java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read Hi , I am getting the following error when connecting to oracle database, Has any one seen this kind of errors before? is this the problem with tomcat in loosing the connections?? I am getting this error once in 5 hrs and i get a HTTPStatus500 error and when a user tries again it gets okay and it is working How can i resolve this Intermitant DB Problem in tomcat!!! java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read This is the Exception details in my application logs: DEBUG au.com.vodafone.mpp.bos.MPPFactory - Calling getConnection method of Datasrc Class:600991 DEBUG au.com.vodafone.mpp.da.DataSrc - Inside getConnection() method of DataScr DEBUG au.com.vodafone.mpp.da.DataSrc - About to get a Connection from SharedPoolDatasrc and return it back... ERROR au.com.vodafone.mpp.da.DataSrc - Exception while get a Datasource connection ERROR au.com.vodafone.mpp.da.DataSrc - java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read DEBUG au.com.vodafone.mpp.bos.MPPFactory - Exception:java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read WARN org.apache.struts.action.RequestProcessor - Unhandled Exception thrown: class java.sql.SQLException This is my code: static public Connection getConnection() throws Exception { theLog.debug(Inside getConnection() method of DataScr); try { if (ds == null) { theLog.debug(SharedPoolDatasrc is NULL: Serious Error ); System.out.println(SERIOUS ERROR 99); } theLog.debug(About to get a Connection from SharedPoolDatasrc and return it back...); return ds.getConnection(); } catch(Exception exp) { theLog.error(Exception while get a Datasource connection); theLog.error(exp); throw exp; } } Regards, Thangavel Sankaranarayanan Thangavel... what are the system details JRE and db driver version if you know... I've seen some wierd behaviour as well, but I think its the latest JDBC drivers on Java 6 that make a pool lose its connection... I'm not even using TC's pool, so I dont think its a TC thing, we saw something similar after upgrading Java... Stick this in your exception SQLException tmp = e; do {//Ever since Java 6 extra issues //This just to see what the hell is going on System.out.println(); System.out.println(createStatement failed: + e.toString()); tmp.printStackTrace(); tmp = tmp.getNextException(); } while (tmp != null); It will show you the exception that is causing the exception the real trouble ours was CONNECTION NOT FOUND Which means the driver is dropping connections in the pool... trouble is the pool doesnt know it... If you refresh, the pool gives you next connection, so that naturally works, until it cycles in on the bad dummy connection again... Maybe its the same thing... we went back to older drivers... other thing is that it wasnt Oracle either, but symptom is the same.. In our case exact same setup... on Java 5 perfect, on Java 6 broken... maybe? Good Luck --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Intermitant DB Problem in tomcat:java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read
Hi, If this is not a problem with tomcat and it is something to do with application (or) or with java or 0racle!!Please suggest me for some user list!!! Thanks in Advance!! Regards, Thangavel Sankaranarayanan Thangavel Sankaranarayanan/ India/[EMAIL PROTECTED] To Tomcat Users List 09/08/2008 04:19 users@tomcat.apache.org PM cc Subject Please respond to Intermitant DB Problem in Tomcat Users tomcat:java.sql.SQLException: Io List exception: Connection reset by [EMAIL PROTECTED] peer: JVM_recv in socket input che.org stream read Hi , I am getting the following error when connecting to oracle database, Has any one seen this kind of errors before? is this the problem with tomcat in loosing the connections?? I am getting this error once in 5 hrs and i get a HTTPStatus500 error and when a user tries again it gets okay and it is working How can i resolve this Intermitant DB Problem in tomcat!!! java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read This is the Exception details in my application logs: DEBUG au.com.vodafone.mpp.bos.MPPFactory - Calling getConnection method of Datasrc Class:600991 DEBUG au.com.vodafone.mpp.da.DataSrc - Inside getConnection() method of DataScr DEBUG au.com.vodafone.mpp.da.DataSrc - About to get a Connection from SharedPoolDatasrc and return it back... ERROR au.com.vodafone.mpp.da.DataSrc - Exception while get a Datasource connection ERROR au.com.vodafone.mpp.da.DataSrc - java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read DEBUG au.com.vodafone.mpp.bos.MPPFactory - Exception:java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read WARN org.apache.struts.action.RequestProcessor - Unhandled Exception thrown: class java.sql.SQLException This is my code: static public Connection getConnection() throws Exception { theLog.debug(Inside getConnection() method of DataScr); try { if (ds == null) { theLog.debug(SharedPoolDatasrc is NULL: Serious Error ); System.out.println(SERIOUS ERROR 99); } theLog.debug(About to get a Connection from SharedPoolDatasrc and return it back...); return ds.getConnection(); } catch(Exception exp) { theLog.error(Exception while get a Datasource connection); theLog.error(exp); throw exp; } } Regards, Thangavel Sankaranarayanan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Intermitant DB Problem in tomcat:java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read
Hi , I am getting the following error when connecting to oracle database, Has any one seen this kind of errors before? is this the problem with tomcat in loosing the connections?? I am getting this error once in 5 hrs and i get a HTTPStatus500 error and when a user tries again it gets okay and it is working How can i resolve this Intermitant DB Problem in tomcat!!! java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read This is the Exception details in my application logs: DEBUG au.com.vodafone.mpp.bos.MPPFactory - Calling getConnection method of Datasrc Class:600991 DEBUG au.com.vodafone.mpp.da.DataSrc - Inside getConnection() method of DataScr DEBUG au.com.vodafone.mpp.da.DataSrc - About to get a Connection from SharedPoolDatasrc and return it back... ERROR au.com.vodafone.mpp.da.DataSrc - Exception while get a Datasource connection ERROR au.com.vodafone.mpp.da.DataSrc - java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read DEBUG au.com.vodafone.mpp.bos.MPPFactory - Exception:java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read WARN org.apache.struts.action.RequestProcessor - Unhandled Exception thrown: class java.sql.SQLException This is my code: static public Connection getConnection() throws Exception { theLog.debug(Inside getConnection() method of DataScr); try { if (ds == null) { theLog.debug(SharedPoolDatasrc is NULL: Serious Error ); System.out.println(SERIOUS ERROR 99); } theLog.debug(About to get a Connection from SharedPoolDatasrc and return it back...); return ds.getConnection(); } catch(Exception exp) { theLog.error(Exception while get a Datasource connection); theLog.error(exp); throw exp; } } Regards, Thangavel Sankaranarayanan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Intermitant DB Problem in tomcat:java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read
Two questions: 1. Is the db server on the same box as the tomcat server? If not, have you ruled out network hardware issues between the db server and tomcat? 2. Does your db pool definition have the attribute validationQuery=select 1? That would pre-test your connections before returning one on ds.getConnection(), regenerating them if they fail. --David Thangavel Sankaranarayanan wrote: Hi , I am getting the following error when connecting to oracle database, Has any one seen this kind of errors before? is this the problem with tomcat in loosing the connections?? I am getting this error once in 5 hrs and i get a HTTPStatus500 error and when a user tries again it gets okay and it is working How can i resolve this Intermitant DB Problem in tomcat!!! java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read This is the Exception details in my application logs: DEBUG au.com.vodafone.mpp.bos.MPPFactory - Calling getConnection method of Datasrc Class:600991 DEBUG au.com.vodafone.mpp.da.DataSrc - Inside getConnection() method of DataScr DEBUG au.com.vodafone.mpp.da.DataSrc - About to get a Connection from SharedPoolDatasrc and return it back... ERROR au.com.vodafone.mpp.da.DataSrc - Exception while get a Datasource connection ERROR au.com.vodafone.mpp.da.DataSrc - java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read DEBUG au.com.vodafone.mpp.bos.MPPFactory - Exception:java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read WARN org.apache.struts.action.RequestProcessor - Unhandled Exception thrown: class java.sql.SQLException This is my code: static public Connection getConnection() throws Exception { theLog.debug(Inside getConnection() method of DataScr); try { if (ds == null) { theLog.debug(SharedPoolDatasrc is NULL: Serious Error ); System.out.println(SERIOUS ERROR 99); } theLog.debug(About to get a Connection from SharedPoolDatasrc and return it back...); return ds.getConnection(); } catch(Exception exp) { theLog.error(Exception while get a Datasource connection); theLog.error(exp); throw exp; } } Regards, Thangavel Sankaranarayanan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Smith Programmer/Analyst College of Agriculture and Life Sciences Cornell University B32 Morrison Hall Ithaca, NY 14853 Phone: (607) 255-4521 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can you help me to figure out what is ia64?
There is a ia64 dll for tomcat native library for a windows 64 platform. I used to know amd64 or x64, but unfamiliar with ia64. What platform is that? Thank you, Regards Nareg Garabedian
Re: Can you help me to figure out what is ia64?
This is a copy and paste from wikipedia. *Itanium* is the brand name for 64-bit Intel http://en.wikipedia.org/wiki/Intel microprocessors http://en.wikipedia.org/wiki/Microprocessor that implement the *Intel Itanium architecture* (formerly called *IA-64*). Intel has released two processor families using the brand: the original *Itanium* and the *Itanium 2*. Nar Karapetyan wrote: There is a ia64 dll for tomcat native library for a windows 64 platform. I used to know amd64 or x64, but unfamiliar with ia64. What platform is that? Thank you, Regards Nareg Garabedian -- Robert K. Vanderhoek (603) 772-2305 Computer Technician IT Department Connor Connor 16 Kingston Rd Unit #5 Exeter, NH 03833
Piggybacking HTTP with binary protocol
Last time I mailed the list, I was inquiring about implementing a custom connector or something along those lines to support a binary protocol along with HTTP. This approach proved flawed for various reasons, if not virtually impossible to do with the connector, processor, handler architecture etc.. So the approach I was wanting to try next was to amend our in-house protocol slightly and include initial HTTP headers so as to make use of the standard Http11Processor etc and then continue (after initial servlet mapping) with the current binary protocol. My question is, is this possible using say a POST to then continue comms on the input and output streams using binary? I have tried to implement this approach but any read I do from the input stream after the request is forwarded to the servlet service method, throws an EOFException, which I haven't quite figured out. I wrote a simple socket client that writes the POST, a host header, and a blank line, I then write 2 int's and a String, but I am unable to read the ints and the String from the input stream in the service method without encountering the EOFException. Does anybody know what might cause this? I can't quite isolate any code within Tomcat that might be causing this issue. - Darryl - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can you help me to figure out what is ia64?
- Original Message - From: Nar Karapetyan [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Monday, September 08, 2008 3:19 PM Subject: Can you help me to figure out what is ia64? There is a ia64 dll for tomcat native library for a windows 64 platform. I used to know amd64 or x64, but unfamiliar with ia64. What platform is that? Thank you, Regards Nareg Garabedian http://en.wikipedia.org/wiki/Itanium --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: file upload
Silvio Rainoldi wrote: When I try to write a file in a folder in the server I get this error: org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. /home/www/virtual/test/images/htdocs/ flyers/upload_1ed3f2d1_11c313f7288__8000_.tmp (Permission denied) The folder is set to chmod 777... Help please (sorry for my bad english) The issue could also be caused by any folder above the desired one having too strict access privileges. The accout under which your Tomcat is running must have effective 'x' permission for each directory level above the desired one (including the root directory, '/'). Also, it may be that the path listed above is not the physical one, but consists symbolic links making shortcuts across some of the physical directory levels. You'll need to check for that and trace the actual physical directories on the path. So, initially it looks that you'll need to check access permissions for directories / /home /home/www /home/www/virtual ... /home/www/virtual/test/images/htdocs/flyers But now, if f.ex. /home happens to be a symbolic link to /vol1/homes/w/www, you actually need to check permissions for / /vol1 /vol1/homes /vol1/homes/w /vol1/homes/w/www /vol1/homes/w/www/virtual ... /vol1/homes/w/www/virtual/test/images/htdocs/flyers (and of course, if any of the directories in this path happen to be symbolic links, you'll need to unroll them to the physical directory path just as well) -- ..Juha - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Intermitant DB Problem in tomcat:java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read
Please help me in setting up a Validation Querry!!! I am not aware of it!! Regards, Thangavel Sankaranarayanan David Smith [EMAIL PROTECTED] To Tomcat Users List 09/08/2008 06:24 users@tomcat.apache.org PM cc Subject Please respond to Re: Intermitant DB Problem in Tomcat Users tomcat:java.sql.SQLException: Io List exception: Connection reset by [EMAIL PROTECTED] peer: JVM_recv in socket input che.org stream read Two questions: 1. Is the db server on the same box as the tomcat server? If not, have you ruled out network hardware issues between the db server and tomcat? 2. Does your db pool definition have the attribute validationQuery=select 1? That would pre-test your connections before returning one on ds.getConnection(), regenerating them if they fail. --David Thangavel Sankaranarayanan wrote: Hi , I am getting the following error when connecting to oracle database, Has any one seen this kind of errors before? is this the problem with tomcat in loosing the connections?? I am getting this error once in 5 hrs and i get a HTTPStatus500 error and when a user tries again it gets okay and it is working How can i resolve this Intermitant DB Problem in tomcat!!! java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read This is the Exception details in my application logs: DEBUG au.com.vodafone.mpp.bos.MPPFactory - Calling getConnection method of Datasrc Class:600991 DEBUG au.com.vodafone.mpp.da.DataSrc - Inside getConnection() method of DataScr DEBUG au.com.vodafone.mpp.da.DataSrc - About to get a Connection from SharedPoolDatasrc and return it back... ERROR au.com.vodafone.mpp.da.DataSrc - Exception while get a Datasource connection ERROR au.com.vodafone.mpp.da.DataSrc - java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read DEBUG au.com.vodafone.mpp.bos.MPPFactory - Exception:java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read WARN org.apache.struts.action.RequestProcessor - Unhandled Exception thrown: class java.sql.SQLException This is my code: static public Connection getConnection() throws Exception { theLog.debug(Inside getConnection() method of DataScr); try { if (ds == null) { theLog.debug(SharedPoolDatasrc is NULL: Serious Error ); System.out.println(SERIOUS ERROR 99); } theLog.debug(About to get a Connection from SharedPoolDatasrc and return it back...); return ds.getConnection(); } catch(Exception exp) { theLog.error(Exception while get a Datasource connection); theLog.error(exp); throw exp; } } Regards, Thangavel Sankaranarayanan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Smith Programmer/Analyst College of Agriculture and Life Sciences Cornell University B32 Morrison Hall Ithaca, NY 14853 Phone: (607) 255-4521 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
Re: [NEWBIE]Tomcat 6.0.16-reboot required when changing the port number
On Sun, Sep 7, 2008 at 11:12 PM, Jon [EMAIL PROTECTED] wrote: No I'm stating that I had to reboot to get apache 'not running' on port 8080 and it seemed unusual, because I ran the shutdown scripts. Running the shutdown script doesn't guarantee anything -- there are any number of reasons why your Tomcat instance wouldn't shut down (or at least, not right away). Did you do a `ps` to see if the process was still active? If it is, a `kill -9` is a lot quicker than a reboot :-) FWIW, -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Intermitant DB Problem in tomcat:java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read
I've partially given it to you already. I'm assuming for the purposes of this thread you have tomcat 5.5.x or tomcat 6.0.x and are using the tomcat provided database pooling. Find the Resource ... / element in your webapp's context xml file where you defined your database pool and add an attribute named validationQuery with a value of select 1. Then restart your webapp. --David Thangavel Sankaranarayanan wrote: Please help me in setting up a Validation Querry!!! I am not aware of it!! Regards, Thangavel Sankaranarayanan David Smith [EMAIL PROTECTED] To Tomcat Users List 09/08/2008 06:24 users@tomcat.apache.org PM cc Subject Please respond to Re: Intermitant DB Problem in Tomcat Users tomcat:java.sql.SQLException: Io List exception: Connection reset by [EMAIL PROTECTED] peer: JVM_recv in socket input che.org stream read Two questions: 1. Is the db server on the same box as the tomcat server? If not, have you ruled out network hardware issues between the db server and tomcat? 2. Does your db pool definition have the attribute validationQuery=select 1? That would pre-test your connections before returning one on ds.getConnection(), regenerating them if they fail. --David Thangavel Sankaranarayanan wrote: Hi , I am getting the following error when connecting to oracle database, Has any one seen this kind of errors before? is this the problem with tomcat in loosing the connections?? I am getting this error once in 5 hrs and i get a HTTPStatus500 error and when a user tries again it gets okay and it is working How can i resolve this Intermitant DB Problem in tomcat!!! java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read This is the Exception details in my application logs: DEBUG au.com.vodafone.mpp.bos.MPPFactory - Calling getConnection method of Datasrc Class:600991 DEBUG au.com.vodafone.mpp.da.DataSrc - Inside getConnection() method of DataScr DEBUG au.com.vodafone.mpp.da.DataSrc - About to get a Connection from SharedPoolDatasrc and return it back... ERROR au.com.vodafone.mpp.da.DataSrc - Exception while get a Datasource connection ERROR au.com.vodafone.mpp.da.DataSrc - java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read DEBUG au.com.vodafone.mpp.bos.MPPFactory - Exception:java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read WARN org.apache.struts.action.RequestProcessor - Unhandled Exception thrown: class java.sql.SQLException This is my code: static public Connection getConnection() throws Exception { theLog.debug(Inside getConnection() method of DataScr); try { if (ds == null) { theLog.debug(SharedPoolDatasrc is NULL: Serious Error ); System.out.println(SERIOUS ERROR 99); } theLog.debug(About to get a Connection from SharedPoolDatasrc and return it back...); return ds.getConnection(); } catch(Exception exp) { theLog.error(Exception while get a Datasource connection); theLog.error(exp); throw exp; } } Regards, Thangavel Sankaranarayanan - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SSL https clientAuth debugging assistance
We have just started using Tomcat. We are using version 5.5.26. I was able to set up Tomcat and get it running with our application. I also have enabled SSL: Connector port=18443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=conf/keystore keyAlias=tomcat / I have one user that needs use to authenticate their client. I have this working on our development system (added their certificate to our keystore) but following the same process to our test box is failing. The client (which I don't have access to) is giving a very generic error message. Is there a way that I can see why the client is failing the connection (i.e. certificate doesn't match client, certificate expired, ...) or get more debugging information from the Tomcat side? Thanks Tim
Re: Intermitant DB Problem in tomcat:java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read
Hi David, Thanks !!! Is the validationQuery applicable to tomacat 4.x. I am using tomcat 4.x in windows2000 Regards, Thangavel Sankaranarayanan David Smith [EMAIL PROTECTED] To Tomcat Users List 09/08/2008 09:19 users@tomcat.apache.org PM cc Subject Please respond to Re: Intermitant DB Problem in Tomcat Users tomcat:java.sql.SQLException: Io List exception: Connection reset by [EMAIL PROTECTED] peer: JVM_recv in socket input che.org stream read I've partially given it to you already. I'm assuming for the purposes of this thread you have tomcat 5.5.x or tomcat 6.0.x and are using the tomcat provided database pooling. Find the Resource ... / element in your webapp's context xml file where you defined your database pool and add an attribute named validationQuery with a value of select 1. Then restart your webapp. --David Thangavel Sankaranarayanan wrote: Please help me in setting up a Validation Querry!!! I am not aware of it!! Regards, Thangavel Sankaranarayanan David Smith [EMAIL PROTECTED] To Tomcat Users List 09/08/2008 06:24 users@tomcat.apache.org PM cc Subject Please respond to Re: Intermitant DB Problem in Tomcat Users tomcat:java.sql.SQLException: Io List exception: Connection reset by [EMAIL PROTECTED] peer: JVM_recv in socket input che.org stream read Two questions: 1. Is the db server on the same box as the tomcat server? If not, have you ruled out network hardware issues between the db server and tomcat? 2. Does your db pool definition have the attribute validationQuery=select 1? That would pre-test your connections before returning one on ds.getConnection(), regenerating them if they fail. --David Thangavel Sankaranarayanan wrote: Hi , I am getting the following error when connecting to oracle database, Has any one seen this kind of errors before? is this the problem with tomcat in loosing the connections?? I am getting this error once in 5 hrs and i get a HTTPStatus500 error and when a user tries again it gets okay and it is working How can i resolve this Intermitant DB Problem in tomcat!!! java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read This is the Exception details in my application logs: DEBUG au.com.vodafone.mpp.bos.MPPFactory - Calling getConnection method of Datasrc Class:600991 DEBUG au.com.vodafone.mpp.da.DataSrc - Inside getConnection() method of DataScr DEBUG au.com.vodafone.mpp.da.DataSrc - About to get a Connection from SharedPoolDatasrc and return it back... ERROR au.com.vodafone.mpp.da.DataSrc - Exception while get a Datasource connection ERROR au.com.vodafone.mpp.da.DataSrc - java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read DEBUG au.com.vodafone.mpp.bos.MPPFactory - Exception:java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read WARN org.apache.struts.action.RequestProcessor - Unhandled Exception thrown: class java.sql.SQLException This is my code: static public Connection getConnection() throws Exception { theLog.debug(Inside getConnection() method of DataScr); try { if (ds == null) { theLog.debug(SharedPoolDatasrc is NULL: Serious Error ); System.out.println(SERIOUS ERROR 99); }
Re: Intermitant DB Problem in tomcat:java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read
I think so. Tomcat 4.1.x relies on DBCP 1.0 whose docs aren't readily available anymore. If you can find the source for DBCP 1.0, you could take a look in the source code and get that answer. Or you could just try it on your test system and see if it works. :-) The manner the validation query is added to tomat's config is different though. You add it in the ResourceParams element the same way other properties are defined in your version. --David Thangavel Sankaranarayanan wrote: Hi David, Thanks !!! Is the validationQuery applicable to tomacat 4.x. I am using tomcat 4.x in windows2000 Regards, Thangavel Sankaranarayanan David Smith [EMAIL PROTECTED] To Tomcat Users List 09/08/2008 09:19 users@tomcat.apache.org PM cc Subject Please respond to Re: Intermitant DB Problem in Tomcat Users tomcat:java.sql.SQLException: Io List exception: Connection reset by [EMAIL PROTECTED] peer: JVM_recv in socket input che.org stream read I've partially given it to you already. I'm assuming for the purposes of this thread you have tomcat 5.5.x or tomcat 6.0.x and are using the tomcat provided database pooling. Find the Resource ... / element in your webapp's context xml file where you defined your database pool and add an attribute named validationQuery with a value of select 1. Then restart your webapp. --David Thangavel Sankaranarayanan wrote: Please help me in setting up a Validation Querry!!! I am not aware of it!! Regards, Thangavel Sankaranarayanan David Smith [EMAIL PROTECTED] To Tomcat Users List 09/08/2008 06:24 users@tomcat.apache.org PM cc Subject Please respond to Re: Intermitant DB Problem in Tomcat Users tomcat:java.sql.SQLException: Io List exception: Connection reset by [EMAIL PROTECTED] peer: JVM_recv in socket input che.org stream read Two questions: 1. Is the db server on the same box as the tomcat server? If not, have you ruled out network hardware issues between the db server and tomcat? 2. Does your db pool definition have the attribute validationQuery=select 1? That would pre-test your connections before returning one on ds.getConnection(), regenerating them if they fail. --David Thangavel Sankaranarayanan wrote: Hi , I am getting the following error when connecting to oracle database, Has any one seen this kind of errors before? is this the problem with tomcat in loosing the connections?? I am getting this error once in 5 hrs and i get a HTTPStatus500 error and when a user tries again it gets okay and it is working How can i resolve this Intermitant DB Problem in tomcat!!! java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read This is the Exception details in my application logs: DEBUG au.com.vodafone.mpp.bos.MPPFactory - Calling getConnection method of Datasrc Class:600991 DEBUG au.com.vodafone.mpp.da.DataSrc - Inside getConnection() method of DataScr DEBUG au.com.vodafone.mpp.da.DataSrc - About to get a Connection from SharedPoolDatasrc and return it back... ERROR au.com.vodafone.mpp.da.DataSrc - Exception while get a Datasource connection ERROR au.com.vodafone.mpp.da.DataSrc - java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read DEBUG
Re: Intermitant DB Problem in tomcat:java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read
Hi David, In my webapps directory ,i can find Conext.xml (nameof context.xml).in my context.xml the following is defined.. where do i need to configure it ,David?? Context path=/mpp docBase=D:/projects/mpp/dealer/release071010 debug=0 privileged=true Realm className=au.com.workconsult.catalina.realm.NdsJNDIRealm debug=99 connectionName=cn=Directory Manager connectionPassword=hadepyhkl connectionURL=ldap://vanja1234:389; digest=SHA roleBase=ou=mpp,ou=Groups,dc=vodafone,dc=com,dc=au roleName=cn roleSearch=(uniquemember={0}) roleSubtree=true userPassword=userPassword userPattern=uid={0},dc=abc,dc=com,dc=in / /Context Regards, Thangavel Sankaranarayanan David Smith [EMAIL PROTECTED] To Tomcat Users List 09/08/2008 10:44 users@tomcat.apache.org PM cc Subject Please respond to Re: Intermitant DB Problem in Tomcat Users tomcat:java.sql.SQLException: Io List exception: Connection reset by [EMAIL PROTECTED] peer: JVM_recv in socket input che.org stream read I think so. Tomcat 4.1.x relies on DBCP 1.0 whose docs aren't readily available anymore. If you can find the source for DBCP 1.0, you could take a look in the source code and get that answer. Or you could just try it on your test system and see if it works. :-) The manner the validation query is added to tomat's config is different though. You add it in the ResourceParams element the same way other properties are defined in your version. --David Thangavel Sankaranarayanan wrote: Hi David, Thanks !!! Is the validationQuery applicable to tomacat 4.x. I am using tomcat 4.x in windows2000 Regards, Thangavel Sankaranarayanan David Smith [EMAIL PROTECTED] To Tomcat Users List 09/08/2008 09:19 users@tomcat.apache.org PM cc Subject Please respond to Re: Intermitant DB Problem in Tomcat Users tomcat:java.sql.SQLException: Io List exception: Connection reset by [EMAIL PROTECTED] peer: JVM_recv in socket input che.org stream read I've partially given it to you already. I'm assuming for the purposes of this thread you have tomcat 5.5.x or tomcat 6.0.x and are using the tomcat provided database pooling. Find the Resource ... / element in your webapp's context xml file where you defined your database pool and add an attribute named validationQuery with a value of select 1. Then restart your webapp. --David Thangavel Sankaranarayanan wrote: Please help me in setting up a Validation Querry!!! I am not aware of it!! Regards, Thangavel Sankaranarayanan David Smith [EMAIL PROTECTED] To Tomcat Users List 09/08/2008 06:24 users@tomcat.apache.org PM cc Subject Please respond to Re: Intermitant DB Problem in Tomcat Users tomcat:java.sql.SQLException: Io List exception: Connection reset by [EMAIL PROTECTED] peer: JVM_recv in socket input che.org stream read Two questions: 1. Is the db server on the same box as the tomcat server? If not, have you ruled out network hardware issues between the db server and tomcat? 2. Does your db pool definition have the attribute validationQuery=select 1? That would pre-test your connections before
RE: Piggybacking HTTP with binary protocol
Darryl- you're encountering a content-length restriction one workaround is to transmit as a MTOM binary attachment I believe the current hard-limit is 1GB for attachment size http://wso2.org/library/264 complete guide is available at http://ws.apache.org/axis2/1_0/mtom-guide.html HTH Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Mon, 8 Sep 2008 06:50:19 -0700 From: [EMAIL PROTECTED] Subject: Piggybacking HTTP with binary protocol To: users@tomcat.apache.org Last time I mailed the list, I was inquiring about implementing a custom connector or something along those lines to support a binary protocol along with HTTP. This approach proved flawed for various reasons, if not virtually impossible to do with the connector, processor, handler architecture etc.. So the approach I was wanting to try next was to amend our in-house protocol slightly and include initial HTTP headers so as to make use of the standard Http11Processor etc and then continue (after initial servlet mapping) with the current binary protocol. My question is, is this possible using say a POST to then continue comms on the input and output streams using binary? I have tried to implement this approach but any read I do from the input stream after the request is forwarded to the servlet service method, throws an EOFException, which I haven't quite figured out. I wrote a simple socket client that writes the POST, a host header, and a blank line, I then write 2 int's and a String, but I am unable to read the ints and the String from the input stream in the service method without encountering the EOFException. Does anybody know what might cause this? I can't quite isolate any code within Tomcat that might be causing this issue. - Darryl - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Get more out of the Web. Learn 10 hidden secrets of Windows Live. http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008
[ANN] Apache Tomcat 5.5.27 released
The Apache Tomcat team announces the immediate availability of Apache Tomcat 5.5.27 stable. Apache Tomcat 5.5.27 incorporates numerous security updates and bug fixes. Please refer to the change log for the list of changes: http://tomcat.apache.org/tomcat-5.5-doc/changelog.html Downloads: http://tomcat.apache.org/download-55.cgi Thank you, The Tomcat Team - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
stupid tomcat/eclipse question
I've had a stable development environment running Tomcat 6.0 within Eclipse 3.3. I did something stupid to configuration and now I can't get away from this error as soon as the server starts. java.lang.reflect.InvocationTargetException 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:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: java.lang.NoClassDefFoundError: javax/servlet/Servlet at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) ... In spite of trying putting everything I can think of onto the runtime classpath I can't make this go away. Where is Tomcat supposed to find javax/servlet/Servlet and why was this so easy before and so difficult now. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SSL https clientAuth debugging assistance
implement a logger so you can trace whats going on http://tomcat.apache.org/tomcat-5.5-doc/logging.html also in %TOMCAT_HOME/conf/server.xml crankup the debug attribute on your Connector statement debug=5 http://tomcat.apache.org/tomcat-4.0-doc/config/http11.html and you'll see lots of messages in tomcat console HTH Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Subject: SSL https clientAuth debugging assistance Date: Mon, 8 Sep 2008 11:49:04 -0500 From: [EMAIL PROTECTED] To: users@tomcat.apache.org We have just started using Tomcat. We are using version 5.5.26. I was able to set up Tomcat and get it running with our application. I also have enabled SSL: Connector port=18443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https secure=true clientAuth=false sslProtocol=TLS keystoreFile=conf/keystore keyAlias=tomcat / I have one user that needs use to authenticate their client. I have this working on our development system (added their certificate to our keystore) but following the same process to our test box is failing. The client (which I don't have access to) is giving a very generic error message. Is there a way that I can see why the client is failing the connection (i.e. certificate doesn't match client, certificate expired, ...) or get more debugging information from the Tomcat side? Thanks Tim _ See how Windows connects the people, information, and fun that are part of your life. http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/
Re: Need help with Tomcat MBean support
I sent this in over the weekend and didn't get a response so let me try this again a bit differently. The Sun JDK 5.0 JMX tutorial shows that it is possible and simple to create JMX client and JMX server in separate JVMs and have them talk to each other. The first article cited by Mr. Hall shows that it is possible and simple to create a JMX server running inside Tomcat and talk to it through tools such as MC4J and JManage. I need to combine the Server side approach recommended by the article (JMX server within Tomcat webapp) with the Client side approach recommended by Sun in their tutorial. So far my client-side app can connect to the MBean server inside of Tomcat and talk to it but it fails to create the MBean needed to interact with the server because of ClassLoader issues. Questions: 1. Is this even possible? It would seem to be so since MC4J and JManage know how to do it. 2. If so, how do I surmount these ClassLoader issues? Thank you very much. Steve Cohen wrote: Okay using approach of first article. The MBean server is correctly initialized and everything on the server side looks good. Now we come to the client side. The first article assumes you are just going to connect using a tool such as MC4J or JManage (monitoring tools). That is not my use case. I want to write a command-line client that can talk to the MBean (which is inside of Tomcat) and invoke an operation on the MBean. I use the Client.java sample from the Sun tutorial as a starting point. I am able to connect to the server, and get a list of MBeans, but I fail when trying to call createMBean(). I am using the simple two-parameter version of createMBean() and it always fails with javax.management.ReflectionException: The MBean class could not be loaded by the default loader repository It seems pretty clear that my client needs to use one of the other versions of createMBean(), one that specifies some other Class Loader but I have no clue what I should be using for that. H. Hall wrote: Steve Cohen wrote: Let me ask my question a little more directly: Does the presence of a descriptor cause instantiation of an instance of an MBean or do I have to write code to create a server-side instance of my MBean and if so, where should this code reside or is there some configuration artifact that causes this instantiation to happen? Why don't you take a look at these two articles: http://today.java.net/pub/a/today/2005/11/15/using-jmx-to-manage-web-applications.html?page=1 http://marxsoftware.blogspot.com/2008/07/jmx-model-mbeans-with-apache-commons.html If you use the NetBeans IDE you might be interested in the JMX plugin for NB. Here is a link to a tutorial Getting Started with JMX Monitoring in NetBeans IDE 6.0 http://www.netbeans.org/kb/60/java/jmx-getstart.html cheers, HH - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Apache Tomcat 5.5.27 released
Hi, Regarding: https://issues.apache.org/bugzilla/show_bug.cgi?id=45015 Have things like the follwoing been tested: input value=${quot;booquot;} / input value=${quot;booquot; foo's} / input value='${quot;booquot;}' / input value='${quot;booquot;} foo' / I guess I am more concerned about version 6x. Has this fix been applied to v6x? just curious, -Rob On Sep 8, 2008, at 1:36 PM, Filip Hanik - Dev Lists wrote: The Apache Tomcat team announces the immediate availability of Apache Tomcat 5.5.27 stable. Apache Tomcat 5.5.27 incorporates numerous security updates and bug fixes. Please refer to the change log for the list of changes: http://tomcat.apache.org/tomcat-5.5-doc/changelog.html Downloads: http://tomcat.apache.org/download-55.cgi Thank you, The Tomcat Team - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Apache Tomcat 5.5.27 released
Robert Koberg wrote: Hi, Regarding: https://issues.apache.org/bugzilla/show_bug.cgi?id=45015 Have things like the follwoing been tested: input value=${quot;booquot;} / input value=${quot;booquot; foo's} / input value='${quot;booquot;}' / input value='${quot;booquot;} foo' / I don't recall testign those combinations. Additionally, those might get bitten by a variation of https://issues.apache.org/bugzilla/show_bug.cgi?id=45451 I guess I am more concerned about version 6x. Has this fix been applied to v6x? Did you read the bug report? Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IIS Redirect Logging
I can not get the redirect logging coming out? I am using tomcat 5.5.26 I use redirect 1.2.26 I set up me registry using [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector] @= [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0] @= extension_uri=/jakarta/isapi_redirect.dll log_file=C:\\Program Files\\Apache Software Foundation\\Jakarta Isapi Redirector\\log\\isapi_redirect.log log_level=info worker_file=C:\\Program Files\\Apache Software Foundation\\Jakarta Isapi Redirector\\conf\\workers.properties.minimal worker_mount_file=C:\\Program Files\\Apache Software Foundation\\Jakarta Isapi Redirector\\conf\\uriworkermap.properties Any ideas? Thanks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbies, becareful of pure cookie based magic... theres a few gotcha's
Johnny Kewl wrote: Going to add this to my other no no's like those people that insist on building entire site only in JSP pages... I'm not sure I get your meaning here. Do you mean really just JSP's with no Java classes (beans or otherwise) that aren't in the JSP's themselves? Yeah. That would be bad. I've seen it too *cough*Oracle Applications*cough* - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: stupid tomcat/eclipse question
-Original Message- From: Steve Cohen [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2008 1:34 PM To: Tomcat Users List Subject: stupid tomcat/eclipse question I've had a stable development environment running Tomcat 6.0 within Eclipse 3.3. I did something stupid to configuration and now I can't get away from this error as soon as the server starts. java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja va:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: java.lang.NoClassDefFoundError: javax/servlet/Servlet at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) ... In spite of trying putting everything I can think of onto the runtime classpath I can't make this go away. The Tomcat batch files deliberately ignore the CLASSPATH environment variable because failing to do so greatly increases the odds of Tomcat not starting. Modifying the runtime classpath in Eclipse is going to have the same effect on your odds of Tomcat starting for the exact same reason. Tomcat 6.0.x only needs bootstrap.jar on the classpath. Some additional jars get added automatically by Java per the Class-Path attribute in the MANIFEST.MF found in bootstrap.jar. With this set of jars, the bootstrap process will use the common.loader property value found in the conf/catalina.properties file to create the common classloader which will contain the javax.servlet classes among many others required by the Tomcat server. Not knowing what your original Tomcat configuration was, it's hard to guess what the original change was that caused Tomcat not to start. Modifying the runtime classpath can easily result in this same symptom. You might try creating a new Tomcat server from the same Tomcat runtime in Eclipse and see if it will start. If not, it suggests you have done something to your Tomcat installation. Cheers, Larry Where is Tomcat supposed to find javax/servlet/Servlet and why was this so easy before and so difficult now. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Apache Tomcat 5.5.27 released
On Sep 8, 2008, at 1:59 PM, Mark Thomas wrote: Robert Koberg wrote: Hi, Regarding: https://issues.apache.org/bugzilla/show_bug.cgi?id=45015 Have things like the follwoing been tested: input value=${quot;booquot;} / input value=${quot;booquot; foo's} / input value='${quot;booquot;}' / input value='${quot;booquot;} foo' / I don't recall testign those combinations. Additionally, those might get bitten by a variation of https://issues.apache.org/bugzilla/show_bug.cgi?id=45451 I guess I am more concerned about version 6x. Has this fix been applied to v6x? Did you read the bug report? I thought so :) Sorry, I see it now. I make use of the above technique quite a bit to keep my source content well-formed (I generate the JSPs with XSL). E.g. input type=radio${$obj.foo eq 1 ? 'quot; checked=quot;checked' : ''}/ I will test it out when I get a chance. best, -Rob - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Intermitant DB Problem in tomcat:java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read
Actually I believe tomcat 4.1 still predominantly used server.xml for context definitions. Take a look in there for a ResourceParams ... ... /ResourceParams element under your webapp's Context ... ... /Context element. I could be wrong about that -- it's been a *very* long time since I've done anything with that version. --David Thangavel Sankaranarayanan wrote: Hi David, In my webapps directory ,i can find Conext.xml (nameof context.xml).in my context.xml the following is defined.. where do i need to configure it ,David?? Context path=/mpp docBase=D:/projects/mpp/dealer/release071010 debug=0 privileged=true Realm className=au.com.workconsult.catalina.realm.NdsJNDIRealm debug=99 connectionName=cn=Directory Manager connectionPassword=hadepyhkl connectionURL=ldap://vanja1234:389; digest=SHA roleBase=ou=mpp,ou=Groups,dc=vodafone,dc=com,dc=au roleName=cn roleSearch=(uniquemember={0}) roleSubtree=true userPassword=userPassword userPattern=uid={0},dc=abc,dc=com,dc=in / /Context Regards, Thangavel Sankaranarayanan David Smith [EMAIL PROTECTED] To Tomcat Users List 09/08/2008 10:44 users@tomcat.apache.org PM cc Subject Please respond to Re: Intermitant DB Problem in Tomcat Users tomcat:java.sql.SQLException: Io List exception: Connection reset by [EMAIL PROTECTED] peer: JVM_recv in socket input che.org stream read I think so. Tomcat 4.1.x relies on DBCP 1.0 whose docs aren't readily available anymore. If you can find the source for DBCP 1.0, you could take a look in the source code and get that answer. Or you could just try it on your test system and see if it works. :-) The manner the validation query is added to tomat's config is different though. You add it in the ResourceParams element the same way other properties are defined in your version. --David Thangavel Sankaranarayanan wrote: Hi David, Thanks !!! Is the validationQuery applicable to tomacat 4.x. I am using tomcat 4.x in windows2000 Regards, Thangavel Sankaranarayanan David Smith [EMAIL PROTECTED] To Tomcat Users List 09/08/2008 09:19 users@tomcat.apache.org PM cc Subject Please respond to Re: Intermitant DB Problem in Tomcat Users tomcat:java.sql.SQLException: Io List exception: Connection reset by [EMAIL PROTECTED] peer: JVM_recv in socket input che.org stream read I've partially given it to you already. I'm assuming for the purposes of this thread you have tomcat 5.5.x or tomcat 6.0.x and are using the tomcat provided database pooling. Find the Resource ... / element in your webapp's context xml file where you defined your database pool and add an attribute named validationQuery with a value of select 1. Then restart your webapp. --David Thangavel Sankaranarayanan wrote: Please help me in setting up a Validation Querry!!! I am not aware of it!! Regards, Thangavel Sankaranarayanan David Smith [EMAIL PROTECTED] To Tomcat Users List 09/08/2008 06:24 users@tomcat.apache.org PM cc Subject Please respond to Re: Intermitant DB Problem in
Re: [ANN] Apache Tomcat 5.5.27 released
Robert Koberg wrote: I make use of the above technique quite a bit to keep my source content well-formed (I generate the JSPs with XSL). E.g. input type=radio${$obj.foo eq 1 ? 'quot; checked=quot;checked' : ''}/ I will test it out when I get a chance. Great. If you find new failure cases please create a bugzilla entry. Cheers, Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: stupid tomcat/eclipse question
Thanks! Turned out that the problem was I had put some application jars (which were duplicated in WEB-INF/lib) on the runtime classpath. Your post got me to thinking that maybe these weren't necessary. Not only weren't they necessary but removing them made the problem go away. Addition by subtraction. D'oh! Larry Isaacs wrote: -Original Message- From: Steve Cohen [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2008 1:34 PM To: Tomcat Users List Subject: stupid tomcat/eclipse question I've had a stable development environment running Tomcat 6.0 within Eclipse 3.3. I did something stupid to configuration and now I can't get away from this error as soon as the server starts. java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja va:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: java.lang.NoClassDefFoundError: javax/servlet/Servlet at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) ... In spite of trying putting everything I can think of onto the runtime classpath I can't make this go away. The Tomcat batch files deliberately ignore the CLASSPATH environment variable because failing to do so greatly increases the odds of Tomcat not starting. Modifying the runtime classpath in Eclipse is going to have the same effect on your odds of Tomcat starting for the exact same reason. Tomcat 6.0.x only needs bootstrap.jar on the classpath. Some additional jars get added automatically by Java per the Class-Path attribute in the MANIFEST.MF found in bootstrap.jar. With this set of jars, the bootstrap process will use the common.loader property value found in the conf/catalina.properties file to create the common classloader which will contain the javax.servlet classes among many others required by the Tomcat server. Not knowing what your original Tomcat configuration was, it's hard to guess what the original change was that caused Tomcat not to start. Modifying the runtime classpath can easily result in this same symptom. You might try creating a new Tomcat server from the same Tomcat runtime in Eclipse and see if it will start. If not, it suggests you have done something to your Tomcat installation. Cheers, Larry Where is Tomcat supposed to find javax/servlet/Servlet and why was this so easy before and so difficult now. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Language/Locale processing within Tomcat
I've just realized I have a problem with my application running in Tomcat related to Spanish-language text input by the users. When running my application on an Ubuntu 7.10 platform, I have no problems with Spanish language characters. When I run the same application on the production RHEL 5 platform, I can see mangling of the accented characters in my log file and downstream at various points. Yet both platforms report LANG=en_US.UTF-8 Where else do I need to look? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[NEWBIE] Separate tomcat engines on the same physical server
It is my understanding that theoretically, separate Tomcat engines can be configured on the same server, as long as they are created within separate JVMs (is it possible to have them installed on the same physical server?!). We have an application which is currently installed within a single Tomcat instance (i.e. different sub-folders within /webapps); this would theoretically be moved within separate Tomcat instances so as to have redundancy in case one of them crashes. Since we're planning to configure clustering, this might be superfluous, but more robust anyway. Hence, is it feasible to have: - Server 1 installed with Tomcat instance #1 and Tomcat instance #2 over JVM #1 - Server 2 installed with Tomcat instance #1 and Tomcat instance #2 over JVM #2 What are your views on this? Any relevant documentation on configuring them this way? Rgds, Jonathan Camilleri Mobile (MT): 00356 7982 7113 E-mail: [EMAIL PROTECTED] - P Please consider your environmental responsibility before printing this e-mail I usually reply to e-mails within 2 business days. If it's urgent, give me a call. -
Re: Intermitant DB Problem in tomcat:java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read
David,Actually Resource element is used when we want to map a datascr to a JNDI Resource and call from aoos.But in my case there is no JNDI naming of datasource or database!! all parameters are hard coded . In that case wat can i do!!! I have modified my code slightly to look like ths!!! will this be helpfull??? catch(Exception exp) { theLog.error(Exception while getting a Datasource connection..Trying again...); theLog.error(exp); int i=1; do{ try{ return ds.getConnection(); } catch(Exception e){ theLog.error(Try:+i+Exception while getting a Datasource connection...); theLog.error(e); if(i==3) throw e; } i++ }while(i=3) } Regards, Thangavel Sankaranarayanan David Smith [EMAIL PROTECTED] To Tomcat Users List 09/08/2008 11:51 users@tomcat.apache.org PM cc Subject Please respond to Re: Intermitant DB Problem in Tomcat Users tomcat:java.sql.SQLException: Io List exception: Connection reset by [EMAIL PROTECTED] peer: JVM_recv in socket input che.org stream read Actually I believe tomcat 4.1 still predominantly used server.xml for context definitions. Take a look in there for a ResourceParams ... ... /ResourceParams element under your webapp's Context ... ... /Context element. I could be wrong about that -- it's been a *very* long time since I've done anything with that version. --David Thangavel Sankaranarayanan wrote: Hi David, In my webapps directory ,i can find Conext.xml (nameof context.xml).in my context.xml the following is defined.. where do i need to configure it ,David?? Context path=/mpp docBase=D:/projects/mpp/dealer/release071010 debug=0 privileged=true Realm className=au.com.workconsult.catalina.realm.NdsJNDIRealm debug=99 connectionName=cn=Directory Manager connectionPassword=hadepyhkl connectionURL=ldap://vanja1234:389; digest=SHA roleBase=ou=mpp,ou=Groups,dc=vodafone,dc=com,dc=au roleName=cn roleSearch=(uniquemember={0}) roleSubtree=true userPassword=userPassword userPattern=uid={0},dc=abc,dc=com,dc=in / /Context Regards, Thangavel Sankaranarayanan David Smith [EMAIL PROTECTED] To Tomcat Users List 09/08/2008 10:44 users@tomcat.apache.org PM cc Subject Please respond to Re: Intermitant DB Problem in Tomcat Users tomcat:java.sql.SQLException: Io List exception: Connection reset by [EMAIL PROTECTED] peer: JVM_recv in socket input che.org stream read I think so. Tomcat 4.1.x relies on DBCP 1.0 whose docs aren't readily available anymore. If you can find the source for DBCP 1.0, you could take a look in the source code and get that answer. Or you could just try it on your test system and see if it works. :-) The manner the validation query is added to tomat's config is different though. You add it in the ResourceParams element the same way other properties are defined in your version. --David Thangavel Sankaranarayanan wrote: Hi David, Thanks !!! Is the validationQuery applicable to tomacat 4.x. I am using tomcat 4.x in windows2000 Regards, Thangavel Sankaranarayanan
tomcat ROOT
I have apache acting as a proxy for my tomcat and I'm wondering how I can get this one application 'myapp' to show up without having the directory name in the url. So what I'm looking to do is have it as www.mysite.com instead of www.mysite.com/myapp. Thanks in advance. Markus
Re: Intermitant DB Problem in tomcat:java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read
David, Ignore the previous code!!This is the right one:will this code make the difference? catch(Exception exp) { theLog.error(Exception while getting a Datasource connection..Trying again...); theLog.error(exp); int i=1; do{ try{ return ds.getConnection(); } catch(Exception e){ theLog.error(Try:+i+Exception while getting a Datasource connection...); theLog.error(e); if(i==3) throw e; } i++ }while(i=3) } Regards, Thangavel Sankaranarayanan Thangavel Sankaranarayanan/ India/[EMAIL PROTECTED] To Tomcat Users List 09/09/2008 12:16 users@tomcat.apache.org AM cc Subject Please respond to Re: Intermitant DB Problem in Tomcat Users tomcat:java.sql.SQLException: Io List exception: Connection reset by [EMAIL PROTECTED] peer: JVM_recv in socket input che.org stream read David,Actually Resource element is used when we want to map a datascr to a JNDI Resource and call from aoos.But in my case there is no JNDI naming of datasource or database!! all parameters are hard coded . In that case wat can i do!!! I have modified my code slightly to look like ths!!! will this be helpfull??? catch(Exception exp) { theLog.error(Exception while getting a Datasource connection..Trying again...); theLog.error(exp); int i=1; do{ try{ return ds.getConnection(); } catch(Exception e){ theLog.error(Try:+i+Exception while getting a Datasource connection...); theLog.error(e); if(i==3) throw e; } i++ }while(i=3) } Regards, Thangavel Sankaranarayanan David Smith [EMAIL PROTECTED] To Tomcat Users List 09/08/2008 11:51 users@tomcat.apache.org PM cc Subject Please respond to Re: Intermitant DB Problem in Tomcat Users tomcat:java.sql.SQLException: Io List exception: Connection reset by [EMAIL PROTECTED] peer: JVM_recv in socket input che.org stream read Actually I believe tomcat 4.1 still predominantly used server.xml for context definitions. Take a look in there for a ResourceParams ... ... /ResourceParams element under your webapp's Context ... ... /Context element. I could be wrong about that -- it's been a *very* long time since I've done anything with that version. --David Thangavel Sankaranarayanan wrote: Hi David, In my webapps directory ,i can find Conext.xml (nameof context.xml).in my context.xml the following is defined.. where do i need to configure it ,David?? Context path=/mpp docBase=D:/projects/mpp/dealer/release071010 debug=0 privileged=true Realm className=au.com.workconsult.catalina.realm.NdsJNDIRealm debug=99 connectionName=cn=Directory Manager connectionPassword=hadepyhkl
Re: tomcat ROOT
Hi Markus, You can configure your worker tomcat in such a way that the needed /-worker is mapped to the desired port and server.Similarly i think you can map the Context as well!!I hope so!! Regards, Thangavel Sankaranarayanan Markus Lord [EMAIL PROTECTED] sait.ca To users@tomcat.apache.org 09/09/2008 12:21 cc AM Subject tomcat ROOT Please respond to Tomcat Users List [EMAIL PROTECTED] che.org I have apache acting as a proxy for my tomcat and I'm wondering how I can get this one application 'myapp' to show up without having the directory name in the url. So what I'm looking to do is have it as www.mysite.com instead of www.mysite.com/myapp. Thanks in advance. Markus - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Intermitant DB Problem in tomcat:java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read
any reason why you're not using DBCP ? if you dont mind using a connection pool take a look at examples provided at http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/doc/ManualPoolingDataSourceExample.java?revision=132018view=markup also if you want your instance variables to automatically map to DB columns I would suggest Hibernate http://www.ibm.com/developerworks/websphere/techjournal/0409_patil/0409_patil.html HTH Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Subject: Re: Intermitant DB Problem in tomcat:java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read To: users@tomcat.apache.org From: [EMAIL PROTECTED] Date: Tue, 9 Sep 2008 00:16:17 +0530 David,Actually Resource element is used when we want to map a datascr to a JNDI Resource and call from aoos.But in my case there is no JNDI naming of datasource or database!! all parameters are hard coded . In that case wat can i do!!! I have modified my code slightly to look like ths!!! will this be helpfull??? catch(Exception exp) { theLog.error(Exception while getting a Datasource connection..Trying again...); theLog.error(exp); int i=1; do{ try{ return ds.getConnection(); } catch(Exception e){ theLog.error(Try:+i+Exception while getting a Datasource connection...); theLog.error(e); if(i==3) throw e; } i++ }while(i=3) } Regards, Thangavel Sankaranarayanan David Smith [EMAIL PROTECTED] To Tomcat Users List 09/08/2008 11:51 users@tomcat.apache.org PM cc Subject Please respond to Re: Intermitant DB Problem in Tomcat Users tomcat:java.sql.SQLException: Io List exception: Connection reset by [EMAIL PROTECTED] peer: JVM_recv in socket input che.org stream read Actually I believe tomcat 4.1 still predominantly used server.xml for context definitions. Take a look in there for a ResourceParams ... ... /ResourceParams element under your webapp's Context ... ... /Context element. I could be wrong about that -- it's been a *very* long time since I've done anything with that version. --David Thangavel Sankaranarayanan wrote: Hi David, In my webapps directory ,i can find Conext.xml (nameof context.xml).in my context.xml the following is defined.. where do i need to configure it ,David?? Context path=/mpp docBase=D:/projects/mpp/dealer/release071010 debug=0 privileged=true Realm className=au.com.workconsult.catalina.realm.NdsJNDIRealm debug=99 connectionName=cn=Directory Manager connectionPassword=hadepyhkl connectionURL=ldap://vanja1234:389; digest=SHA roleBase=ou=mpp,ou=Groups,dc=vodafone,dc=com,dc=au roleName=cn roleSearch=(uniquemember={0}) roleSubtree=true userPassword=userPassword userPattern=uid={0},dc=abc,dc=com,dc=in / /Context Regards, Thangavel Sankaranarayanan David Smith [EMAIL
RE: Tomcat 6 and images
Can this be hacked? like http://localhost/files/../../somefile -- View this message in context: http://www.nabble.com/Tomcat-6-and-images-tp19260262p19379214.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat ROOT
Assuming you are deploying by dropping myapp.war into webapps: 1. Delete webapps/ROOT ; 2. Rename myapp.war to ROOT.war (case is important here) 3. Deploy your new ROOT.war in webapps. 4. Since ROOT is the default that tomcat will run when it can't match the incoming request, www.mysite.com will invoke ROOT which will be your myapp. --Ken On Sep 8, 2008, at 2:51 PM, Markus Lord wrote: I have apache acting as a proxy for my tomcat and I'm wondering how I can get this one application 'myapp' to show up without having the directory name in the url. So what I'm looking to do is have it as www.mysite.com instead of www.mysite.com/myapp . Thanks in advance. Markus - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ant Build.xml file
How would I add to the build.xml file so that when ant builds it, it creates this code in my web.xml file? error-page error-code404/error-code location/404.html/location /error-page Not sure if this is an element or something else and what to add it under.
Re: Intermitant DB Problem in tomcat:java.sql.SQLException: Io exception: Connection reset by peer: JVM_recv in socket input stream read
Ok. Do you hold on to your connections across requests or close them at the end? If they are held, then it'd be a good idea to fire off a cheap and easy select 1 query before doing any work. If it throws an exception, close it up and get another. If on the other hand these connections are closed down at the end of each request, you should probably look at your network hardware between tomcat and the db server. Connection reset by peer can be caused by firewall hardware or failing switches in addition to the db server. --David Thangavel Sankaranarayanan wrote: David,Actually Resource element is used when we want to map a datascr to a JNDI Resource and call from aoos.But in my case there is no JNDI naming of datasource or database!! all parameters are hard coded . In that case wat can i do!!! I have modified my code slightly to look like ths!!! will this be helpfull??? catch(Exception exp) { theLog.error(Exception while getting a Datasource connection..Trying again...); theLog.error(exp); int i=1; do{ try{ return ds.getConnection(); } catch(Exception e){ theLog.error(Try:+i+Exception while getting a Datasource connection...); theLog.error(e); if(i==3) throw e; } i++ }while(i=3) } Regards, Thangavel Sankaranarayanan David Smith [EMAIL PROTECTED] To Tomcat Users List 09/08/2008 11:51 users@tomcat.apache.org PM cc Subject Please respond to Re: Intermitant DB Problem in Tomcat Users tomcat:java.sql.SQLException: Io List exception: Connection reset by [EMAIL PROTECTED] peer: JVM_recv in socket input che.org stream read Actually I believe tomcat 4.1 still predominantly used server.xml for context definitions. Take a look in there for a ResourceParams ... ... /ResourceParams element under your webapp's Context ... ... /Context element. I could be wrong about that -- it's been a *very* long time since I've done anything with that version. --David Thangavel Sankaranarayanan wrote: Hi David, In my webapps directory ,i can find Conext.xml (nameof context.xml).in my context.xml the following is defined.. where do i need to configure it ,David?? Context path=/mpp docBase=D:/projects/mpp/dealer/release071010 debug=0 privileged=true Realm className=au.com.workconsult.catalina.realm.NdsJNDIRealm debug=99 connectionName=cn=Directory Manager connectionPassword=hadepyhkl connectionURL=ldap://vanja1234:389; digest=SHA roleBase=ou=mpp,ou=Groups,dc=vodafone,dc=com,dc=au roleName=cn roleSearch=(uniquemember={0}) roleSubtree=true userPassword=userPassword userPattern=uid={0},dc=abc,dc=com,dc=in / /Context Regards, Thangavel Sankaranarayanan David Smith [EMAIL PROTECTED] To Tomcat Users List 09/08/2008 10:44 users@tomcat.apache.org PM cc Subject Please respond to Re: Intermitant DB Problem in Tomcat Users tomcat:java.sql.SQLException: Io List exception: Connection reset by [EMAIL PROTECTED] peer: JVM_recv in socket input che.org stream read
Re: Error while trying to use trial certificate for SSL in Tomcat
Can anyone please help with the question below? I'm pretty much clueless... I think I followed the HOWTO but it seems to be not working... so I must have missed something... Thanks!! On Thu, Sep 4, 2008 at 5:22 PM, Haim Cohen [EMAIL PROTECTED] wrote: Hi I'm new to Tomcat and I'm trying to set SSL on a Tomcat server and to understand how it should be done. I started with generating key as explained in the Tomcat SSL howto and everything went well and I succeeded to connect using https to my server, of course the browser did not recognize the certificate but this is ok. Then I moved to the next phase and created a trial certificate in Verisign and followed the instructions specified in the Verisign site and in the howto. After the installation Tomcat getting to following exception: Sep 4, 2008 4:43:06 PM org.apache.tomcat.util.net.JIoEndpoint$Acceptor run SEVERE: Socket accept failed java.net.SocketException: SSL handshake errorjavax.net.ssl.SSLException: No available certificate or key corresponds to the SSL cipher suites which are enabled. at org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESocketFactory.java:150) at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:310) at java.lang.Thread.run(Unknown Source) Tomcat kept getting this exception and hunged the machine after creating a log file in the size of all the free disk space (I only had there 10GB). Can anyone help me understand where I was wrong? To enable the SSL I made the following: 1. generated trial key and got the intermediateCA from Verisign 2. run keytool to create keystore: keytool.exe -import -alias intermediateCA -keystore .\myKeystore -trustcacerts -file intermediateCA.cert keytool.exe -import -alias tomcat -keystore .\myKeystore -trustcacerts -file mine.cert 3. updated the server.xml and added a connector as following: Connector port=8443 minSpareThreads=5 maxSpareThreads=75 enableLookups=true disableUploadTimeout=true acceptCount=100 maxThreads=150 scheme=https secure=true SSLEnabled=true keystoreFile=full path to myKeystore keystorePass=123456 clientAuth=false sslProtocol=TLS/ The only difference I found was that when I listed the keys in the keystore I got PrivateKeyEntry for the generated keys and trustedCertEntry for the trial keys. can it be connected? The self generated file: Keystore type: JKS Keystore provider: SUN Your keystore contains 1 entry tomcat, Sep 3, 2008, PrivateKeyEntry, Certificate fingerprint (MD5): 6F:EC:48:31:4C:CC:2A:C3:AB:10:22:BD:A3:78:44:AF The trial file: Keystore type: JKS Keystore provider: SUN Your keystore contains 2 entries intermediateca, Sep 4, 2008, trustedCertEntry, Certificate fingerprint (MD5): 8D:E9:89:DB:7F:CC:5E:3B:FD:DE:2C:42:08:13:EF:43 tomcat, Sep 4, 2008, trustedCertEntry, Certificate fingerprint (MD5): AC:9F:D0:82:72:BC:61:26:CB:7F:44:5C:AF:06:F1:20 --- Thanks!!! Haim
Re: Need help with Tomcat MBean support - SOLVED
Finally figured out how to do what I wanted to do. Turns out I had no need at all of creating an MBean in my client. Duh! I never understood why I needed to do that but that is what the sample did. All I needed to do was call the MBeanServerConnection.invoke() method with a suitable object name and other params to invoke the operation on the MBean I had ALREADY instantiated on my server. That's what you get for slavishly following example code instead of thinking. By the way I found this out by staring at the Ant examples on http://tomcat.apache.org/tomcat-6.0-doc/monitoring.html. I finally realized that if Ant can invoke an operation, so could a non-Ant executable. From there a simple peek at the jmx ant task source code showed me what I needed to do. Voila! Gotta love open source - once you figure out where to look. Thank you to all who helped. Steve Cohen wrote: I sent this in over the weekend and didn't get a response so let me try this again a bit differently. The Sun JDK 5.0 JMX tutorial shows that it is possible and simple to create JMX client and JMX server in separate JVMs and have them talk to each other. The first article cited by Mr. Hall shows that it is possible and simple to create a JMX server running inside Tomcat and talk to it through tools such as MC4J and JManage. I need to combine the Server side approach recommended by the article (JMX server within Tomcat webapp) with the Client side approach recommended by Sun in their tutorial. So far my client-side app can connect to the MBean server inside of Tomcat and talk to it but it fails to create the MBean needed to interact with the server because of ClassLoader issues. Questions: 1. Is this even possible? It would seem to be so since MC4J and JManage know how to do it. 2. If so, how do I surmount these ClassLoader issues? Thank you very much. Steve Cohen wrote: Okay using approach of first article. The MBean server is correctly initialized and everything on the server side looks good. Now we come to the client side. The first article assumes you are just going to connect using a tool such as MC4J or JManage (monitoring tools). That is not my use case. I want to write a command-line client that can talk to the MBean (which is inside of Tomcat) and invoke an operation on the MBean. I use the Client.java sample from the Sun tutorial as a starting point. I am able to connect to the server, and get a list of MBeans, but I fail when trying to call createMBean(). I am using the simple two-parameter version of createMBean() and it always fails with javax.management.ReflectionException: The MBean class could not be loaded by the default loader repository It seems pretty clear that my client needs to use one of the other versions of createMBean(), one that specifies some other Class Loader but I have no clue what I should be using for that. H. Hall wrote: Steve Cohen wrote: Let me ask my question a little more directly: Does the presence of a descriptor cause instantiation of an instance of an MBean or do I have to write code to create a server-side instance of my MBean and if so, where should this code reside or is there some configuration artifact that causes this instantiation to happen? Why don't you take a look at these two articles: http://today.java.net/pub/a/today/2005/11/15/using-jmx-to-manage-web-applications.html?page=1 http://marxsoftware.blogspot.com/2008/07/jmx-model-mbeans-with-apache-commons.html If you use the NetBeans IDE you might be interested in the JMX plugin for NB. Here is a link to a tutorial Getting Started with JMX Monitoring in NetBeans IDE 6.0 http://www.netbeans.org/kb/60/java/jmx-getstart.html cheers, HH - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Filter cuts response in Tomcat 5.5.20
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jesse, Jesse Klaasse wrote: However, it isn't working as it should be. I actually see the PRE and POST lines in the Ajax output, however, most of the time there is nothing between them. And when I print the response length, it's 0 most of the time. This is all working fine using our old development platform (based on Resin 3.0.14), but it isn't working on the new one (based on Tomcat 5.5.20). I wonder about this method in GenericResponseWrapper.java: public PrintWriter getWriter() throws IOException { return new PrintWriter(getOutputStream(), true); } I think you want to return the same object each time you call getWriter. Perhaps you could cache the PrintWriter you create and return that each time, instead of just creating a new one each time. If you don't you could create a situation where flushing behavior might render the page in odd ways. Also, you are calling getOutputStream in this method, which is /not/ overridden in GenericResponseWrapper, which means that getWriter actually avoids your ByteArrayOutputStream altogether (which is why you have zero bytes in the output). I'm a little confused as to why no output is generated, anyway, since getOutputStream should return the same object being used by the Filter itself, so all the data should eventually make it out of there. Just to be sure: you are not using FilterServletOutputStream, right? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjFoxkACgkQ9CaO5/Lv0PBsvACgk3xqG1OpmC9uieZz/qP5dkL6 wxcAnipq/+hs5qlm5uv8BjLwel2gAd4S =a4dR -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question regarding FormAutenticator
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gregor, Gregor Schneider wrote: The only options I'm having seem to be - subclass FormAuthenticator and patch Tomcat Agreed: yuk. - use a JAAS-implementation, but I got no Idea if this will work, besides, you'll have to deal with the JAAS-implementation (i.e. JGuard, JOSS etc.) which again means to spend quite some time to understand and customize them. In Websphere f.e. you can use a filter, filtering j_securitx_check and then manipulate request / response, however, that does not work within Tomcat. A valve would work, but I doupt that I can modify request / response in such a valve. You probably can do this, but this is not particularly ideal. You could also use securityfilter (http://securityfilter.sourceforge.net), which is a bit more hackable than Tomcat itself. sf has a feature which allows you to override the URL that gets saved when a user is challenged for a login. Instead of going to the original URL, they are sent to the other URL after login, which sounds like it's exactly what you want. You'll need to get a copy from CVS, because this feature is not yet in any release version -- though the code is quite stable. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjFpxIACgkQ9CaO5/Lv0PC8fACguStHhvitjrUdgqawtad67Q0K rcMAn0ypQrcyiPU2m/ERG/7MCeayMh3Y =yEjI -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: The requested resource (/manager/) is not available.
See Thread at: http://www.techienuggets.com/Detail?tx=6039 Posted on behalf of a User try: /manager/html instead! In Response To: Hi list, I'm trying to use the manager webapp for the custom Ant tasks on Tomcat 6.0.9 with Sun Solaris 10. I've gone into the tomcat-users.xml file and created a username/password admin/admin that has the manager role. However, when I try to connect to the manager webapp by pointing my browser to http://localhost:port/manager, I get the error: _The requested resource (/manager/) is not available. _I know I must be missing something obvious. I've searched Google for suggestions and I've read the Manager How-To online but to no avail. Perhaps I am missing some directories in my Tomcat installation? When I try to navigate to http://localhost:port/tomcat-docs I receive the same error. Is it possible I have a directory in the wrong place? I doubt that would be the case because I simply downloaded the Tomcat 6.0.9 core distribution and followed the instructions. Do I need the deployer or something? Thanks, Dan - To start a new topic, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: stupid tomcat/eclipse question
The error clearly indicates that servlet-api.jar is missing from the classpath. It should be located under CATALINA_HOME\lib in case of TC 6. -Original Message- From: Steve Cohen [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Mon, 8 Sep 2008 11:03 pm Subject: stupid tomcat/eclipse question I've had a stable development environment running Tomcat 6.0 within Eclipse 3.3. I did something stupid to configuration and now I can't get away from this error as soon as the server starts. java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java :39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI mpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: java.lang.NoClassDefFoundError: javax/servlet/Servlet at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) ... In spite of trying putting everything I can think of onto the runtime classpath I can't make this go away. Where is Tomcat supposed to find javax/servlet/Servlet and why was this so easy before and so difficult now. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] You are invited to Get a Free AOL Email ID. - http://webmail.aol.in - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]