Re: svn commit: r690600 - /tomcat/connectors/trunk/jni/native/src/address.c
[EMAIL PROTECTED] wrote: Author: markt Date: Sat Aug 30 15:52:33 2008 New Revision: 690600 URL: http://svn.apache.org/viewvc?rev=690600&view=rev Log: Fix JVM crash on Tomcat start when IPv6 is enabled -1: If won't work if the there is only one IPv6 address and I don't see how that could be the reason of the core. Cheers Jean-Frederic Modified: tomcat/connectors/trunk/jni/native/src/address.c Modified: tomcat/connectors/trunk/jni/native/src/address.c URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jni/native/src/address.c?rev=690600&r1=690599&r2=690600&view=diff == --- tomcat/connectors/trunk/jni/native/src/address.c (original) +++ tomcat/connectors/trunk/jni/native/src/address.c Sat Aug 30 15:52:33 2008 @@ -48,7 +48,7 @@ #if APR_HAVE_IPV6 if (hostname == NULL) { /* Try all address using IPV6 one */ -while (sl) { +while (sl && sl->next) { if (sl->family == APR_INET6) break; /* Done */ sl = sl->next; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: svn commit: r690600 - /tomcat/connectors/trunk/jni/native/src/address.c
[EMAIL PROTECTED] wrote: Author: markt Date: Sat Aug 30 15:52:33 2008 New Revision: 690600 URL: http://svn.apache.org/viewvc?rev=690600&view=rev Log: Fix JVM crash on Tomcat start when IPv6 is enabled Well, I was too fast in my comment... In case we don't find an IPv6 returning sa is probably better. If a null is returned TC shouldn't crash so we should prevent the crash too. Cheers Jean-Frederic Modified: tomcat/connectors/trunk/jni/native/src/address.c Modified: tomcat/connectors/trunk/jni/native/src/address.c URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jni/native/src/address.c?rev=690600&r1=690599&r2=690600&view=diff == --- tomcat/connectors/trunk/jni/native/src/address.c (original) +++ tomcat/connectors/trunk/jni/native/src/address.c Sat Aug 30 15:52:33 2008 @@ -48,7 +48,7 @@ #if APR_HAVE_IPV6 if (hostname == NULL) { /* Try all address using IPV6 one */ -while (sl) { +while (sl && sl->next) { if (sl->family == APR_INET6) break; /* Done */ sl = sl->next; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r690944 - /tomcat/current/tc5.5.x/STATUS.txt
Author: rjung Date: Mon Sep 1 04:50:48 2008 New Revision: 690944 URL: http://svn.apache.org/viewvc?rev=690944&view=rev Log: Vote and comment. Modified: tomcat/current/tc5.5.x/STATUS.txt Modified: tomcat/current/tc5.5.x/STATUS.txt URL: http://svn.apache.org/viewvc/tomcat/current/tc5.5.x/STATUS.txt?rev=690944&r1=690943&r2=690944&view=diff == --- tomcat/current/tc5.5.x/STATUS.txt (original) +++ tomcat/current/tc5.5.x/STATUS.txt Mon Sep 1 04:50:48 2008 @@ -34,6 +34,10 @@ point. You could use System.out but that is far worse than the current proposal given that this will occur once per context with a default configuration and this is not an error condition. + rjung - Is this happening when trying to read a per context logging.properties? + If so: then why don't we already have the global logging setup and can use it? + I can see, that the code in question is above the general logging setup code, + but I would expect readConfiguration() being called for the system class loader first? * Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=45576 Add support for DIGEST to the JAASRealm @@ -57,5 +61,5 @@ * Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=45666 Prevent infinite loop on include http://svn.apache.org/viewvc?rev=690781&view=rev - +1: markt + +1: markt, rjung -1: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat + SSL
Hi all; I hope that you can, help me to resolve this problem : I 'm developping web services client in java with xfire, Tomcat and eclipse3.4 and I want to enable a SSL HTTP Connectoion beethwin my client and the server : I know that there will be certificat to install but I do not how to ? I'm confused : Must I invoke https connection to the services in my client java code ?? or just I need to enable this in tomcat server. thanks in advance. best regards .
Re: tomcat + SSL
You should start by looking at the documentation here: http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html If you have additional questions, you should post those questions on the Tomcat-User list, not the tomcat-developer list. OUJGHA Radouane wrote: Hi all; I hope that you can, help me to resolve this problem : I 'm developping web services client in java with xfire, Tomcat and eclipse3.4 and I want to enable a SSL HTTP Connectoion beethwin my client and the server : I know that there will be certificat to install but I do not how to ? I'm confused : Must I invoke https connection to the services in my client java code ?? or just I need to enable this in tomcat server. thanks in advance. best regards . -- George Sexton MH Software, Inc. Voice: +1 303 438 9585 URL: http://www.mhsoftware.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: svn commit: r690600 - /tomcat/connectors/trunk/jni/native/src/address.c
jean-frederic clere wrote: > [EMAIL PROTECTED] wrote: >> Author: markt >> Date: Sat Aug 30 15:52:33 2008 >> New Revision: 690600 >> >> URL: http://svn.apache.org/viewvc?rev=690600&view=rev >> Log: >> Fix JVM crash on Tomcat start when IPv6 is enabled > > Well, I was too fast in my comment... > In case we don't find an IPv6 returning sa is probably better. > If a null is returned TC shouldn't crash so we should prevent the crash > too. If you want to fix this - go ahead. Your C is much better than mine. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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 what can be the possible problem. -- View this message in context: http://www.nabble.com/UnauthorizedAccessException-error-while-running-WMI-in-tomcat-tp19264675p19264675.html Sent from the Tomcat - Dev mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]