RE: Inconsistency in AprEndpoint.java and JIoEndpoint.java

2012-02-28 Thread Caldarale, Charles R
> From: Ken Cheung [mailto:msrbugzi...@gmail.com] > Subject: Re: Inconsistency in AprEndpoint.java and JIoEndpoint.java > you typecast "SocketWrapper" to "Long" and check if "socket.async" > is true while another one (JloEndpoint.java) you just typecast it > to "Socket" and execute the same piec

Re: Inconsistency in AprEndpoint.java and JIoEndpoint.java

2012-02-28 Thread Ken Cheung
Because both of them are performing the same function. However, one of them (AprEndpoint.java:1057:1058) you typecast "SocketWrapper" to "Long" and check if "socket.async" is true while another one (JloEndpoint.java) you just typecast it to "Socket" and execute the same piece of codes. The check

Re: Tomcat somtimes responses a blank page.

2012-02-28 Thread nara
Errors occurring randomly. The occurring probability was reduced when tomcat attached to apache, but this problem was remaind as same. - Nara 2012/2/29 Jordan Michaels > Can you predictably reproduce the error? (IE: first hit after a Tomcat > restart) Or is it completely random? > > -Jordan > >

Re: Create a tomcat 7 instance

2012-02-28 Thread Pid
On 28/02/2012 16:26, André Moraes wrote: > Hello everyone, can someone help me to create an instance of tomcat 7 as a > service? You could read: http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html Or you could email us your credit card details to gain access to our Platinum Servi

Re: Tomcat suddenly dies

2012-02-28 Thread Carl Kabbe
Dan, Thanks for the response. > Are you accessing any native code from Java? For example using JNI / > JNA or a third party module which requires you to set > "java.library.path"? No. Thanks, Carl On Feb 28, 2012, at 2:35 PM, Daniel Mikusa wrote: > On Tue, 2012-02-28 at 11:09 -0800, Carl

Re: Tomcat suddenly dies

2012-02-28 Thread Daniel Mikusa
On Tue, 2012-02-28 at 11:09 -0800, Carl Kabbe wrote: > Ranier, > > Thanks for your response and thoughts. > > > Are there normal shutdown messages in the Tomcat logs? > > > No, the catalina.out log has our messages but none of the normal shutdown > stuff (we see the shutdown messaging every da

Re: Tomcat suddenly dies

2012-02-28 Thread Carl Kabbe
Ranier, Thanks for your response and thoughts. > Are there normal shutdown messages in the Tomcat logs? No, the catalina.out log has our messages but none of the normal shutdown stuff (we see the shutdown messaging every day when we push changes and restart Tomcat at 4:00AM.) Thanks, Carl

Re: Tomcat suddenly dies

2012-02-28 Thread Rainer Jung
On 28.02.2012 19:47, Carl Kabbe wrote: Chuck and Chris, Thanks for your replies. Below is some information to your questions/suggestions: Check the kernel logs (e.g., /var/log/messages, /var/log/warn), not just the Tomcat ones. Also, look for a JVM dump file (hs_err_pid*.log) I have and

Re: Tomcat NTLM Authentication

2012-02-28 Thread Marcel Schoen
הילה gmail.com> writes: > -Jespa (commercial) > -Samba JCIFs (obsolete, no NTLMv2) You may try this open source Java NTLMv2 API and SSO filter: http://sourceforge.net/projects/ntlmv2auth/ It's an extension of JCIFS, based on code from the (also open source) Liferay portal.

Re: Tomcat somtimes responses a blank page.

2012-02-28 Thread Jordan Michaels
Can you predictably reproduce the error? (IE: first hit after a Tomcat restart) Or is it completely random? -Jordan On 02/28/2012 09:03 AM, nara wrote: I'm using tomcat directly and there is no log about this error in the catalina.out - Nara 2012/2/29 Jordan Michaels Are you hitting your

Re: Tomcat suddenly dies

2012-02-28 Thread Carl Kabbe
Chuck and Chris, Thanks for your replies. Below is some information to your questions/suggestions: >> Check the kernel logs (e.g., /var/log/messages, /var/log/warn), not >> just the Tomcat ones. Also, look for a JVM dump file >> (hs_err_pid*.log) I have and there is nothing in the messages f

Re: Create a tomcat 7 instance

2012-02-28 Thread Mark Thomas
On 28/02/2012 16:26, André Moraes wrote: > Hello everyone, can someone help me to create an instance of tomcat 7 as a > service? > How do I set up several instances of tomcat 7 without the installer? service.bat Mark - To unsubs

Re: Inconsistency in AprEndpoint.java and JIoEndpoint.java

2012-02-28 Thread Mark Thomas
On 28/02/2012 16:40, Ken Cheung wrote: > I observed some code clones in Tomcat and found inconsistent code. > Could anyone explain why this is not a bug? Yes. Perhaps you'd like to explain your basis for assuming it is a bug. Mark

log date formatting

2012-02-28 Thread Kari Scott
We are using Tomcat 7.0.23 with jdk1.6.0_27 on Solaris 10, mod_ajp 1.3 and Apache 2.2.21 and have a logging.properties file configured with the catalina.org.apache.juli.FileHandler set to the java.util.logging.SimpleFormatter for logging. This works fine, but to appease some old scripts I ne

Re: Inconsistency in AjpMessage.java

2012-02-28 Thread Tim Watts
On Wed, 2012-02-29 at 00:40 +0800, Ken Cheung wrote: > I observed some code clones in Tomcat and found inconsistent code. > Could anyone explain why this is not a bug? > If you think it's a bug can you explain why you think so? You may get more value out of the homework assignment by pondering th

Re: Tomcat somtimes responses a blank page.

2012-02-28 Thread nara
I'm using tomcat directly and there is no log about this error in the catalina.out - Nara 2012/2/29 Jordan Michaels > Are you hitting your pages through an external web server (Apache, IIS) or > are you hitting Tomcat (Coyote) directly? > > This sounds like a crashed thread. Any indicators in t

Inconsistency in AprEndpoint.java and JIoEndpoint.java

2012-02-28 Thread Ken Cheung
I observed some code clones in Tomcat and found inconsistent code. Could anyone explain why this is not a bug? /tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java 1048try { 1049Thread.sleep(1000); 1050} catch (Interrupted

Inconsistency in AjpMessage.java

2012-02-28 Thread Ken Cheung
I observed some code clones in Tomcat and found inconsistent code. Could anyone explain why this is not a bug? /tomcat/trunk/java/org/apache/coyote/ajp/AjpMessage.java 195if (cc == null) { 196log.error(sm.getString("ajpmessage.null"), 197new Nu

Create a tomcat 7 instance

2012-02-28 Thread André Moraes
Hello everyone, can someone help me to create an instance of tomcat 7 as a service? How do I set up several instances of tomcat 7 without the installer?

Re: Tomcat suddenly dies

2012-02-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 2/27/12 9:01 PM, Caldarale, Charles R wrote: >> From: Carl Kabbe [mailto:c...@etrak-plus.com] Subject: Tomcat >> suddenly dies > >> Starting about a month ago, Tomcat would suddenly fail, no heap >> dump, no indication of trouble in the log

Re: Tomcat somtimes responses a blank page.

2012-02-28 Thread Jordan Michaels
Are you hitting your pages through an external web server (Apache, IIS) or are you hitting Tomcat (Coyote) directly? This sounds like a crashed thread. Any indicators in the catalina.out logs? -Jordan - Original Message - From: "nara" To: "users" Sent: Tuesday, February 28, 2012 4:34

Tomcat somtimes responses a blank page.

2012-02-28 Thread nara
Server version: Apache Tomcat/7.0.26 Server built: Feb 17 2012 02:11:27 Server number: 7.0.26.0 OS Name:Linux OS Version: 2.6.32-220.2.1.el6.x86_64 Architecture: amd64 JVM Version:1.7.0_03-b04 JVM Vendor: Oracle Corporation I'm using .aspx extension for JAVA Server Pages i

Embedded tomcat does not read webapp specific context.xml

2012-02-28 Thread Kishanthan Thangarajah
Hi, I'm using embedded tomcat(7.0.14) in one of my application. I have extended Tomcat class and used that to add webapps by calling the addWebapp method. Everything works accordingly. But this way, if a webapp contains a context.xml(META-INF/context.xml) within, it is not getting read by embedded

Re: Limiting concurrent requests by user

2012-02-28 Thread Pid *
On 27 Feb 2012, at 22:26, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hernán, > > On 2/27/12 3:04 PM, hernan wrote: >> I've a web service. In order to do a request, a user specifies a >> username and password via web service parameters along with web >> servic

Re: Limiting concurrent requests by user

2012-02-28 Thread Pid *
On 27 Feb 2012, at 22:18, Hassan Schroeder wrote: > On Mon, Feb 27, 2012 at 12:04 PM, hernan wrote: > >> - how to or where to place and access an object shared by all tomcat threads >> >> And I'd like to have a solution that can be extended to many tomcat >> instances (in different servers). > >