Java Mailing List Archive

http://www.junlu.com/

Home » users-digest.tomcat »

users Digest 22 Mar 2013 08:47:41 -0000 Issue 11309

users-digest-help

2013-03-22


Author LoginPost Reply

users Digest 22 Mar 2013 08:47:41 -0000 Issue 11309

Topics (messages 240642 through 240647)

Re: My use of Spring MVC's DeferredResult class causes Tomcat 7.0.35 to crash silently
 240642 by: Julien Martin
 240643 by: Caldarale, Charles R
 240647 by: Julien Martin

I need help in configuring windows authentication in tomcat 7.0
 240644 by: Roberto Barale
 240645 by: chris derham
 240646 by: Mark Thomas

Administrivia:

---------------------------------------------------------------------
To post to the list, e-mail: users@(protected)
To unsubscribe, e-mail: users-digest-unsubscribe@(protected)
For additional commands, e-mail: users-digest-help@(protected)

----------------------------------------------------------------------


Attachment: users_240642.eml (zipped)
Chuck and Daniel,

Thanks for replying. I'll try and provide the information requested.

 - The 9th method invocation causes Tomcat to hang. When you issue
 requests after that, they also "hang".
 - Here is the connector info:

<Connector port="8080" protocol="HTTP/1.1"
         connectionTimeout="20000"
         redirectPort="8443" />

<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />


 - Jvm version:

java version "1.7.0_15"
Java(TM) SE Runtime Environment (build 1.7.0_15-b03)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)


 - My app is 1.6 compatible.
 - Platform type and version: Ubuntu 12.10


 - APR: I just connect to tomcat through port 8080

Please don't hesitate to tell me if the information provided is not
sufficient.

Regards,

Julien.


2013/3/21 Caldarale, Charles R <Chuck.Caldarale@(protected)>

> > From: Daniel Mikusa [mailto:dmikusa@(protected)]
> > Subject: Re: My use of Spring MVC's DeferredResult class causes Tomcat
> 7.0.35 to crash silently
>
> > Can you define "crash" a little better? Is the Tomcat process still
> > running? If so, is it answering any requests? If so, what happens
> > if you send a request to this resource? Do you get a 4xx / 5xx error?
> > Does it hang?
>
> > Also, what does your <Connector/> look like?
>
> And provide the bare minimum of environmental information:
>
>   exact JVM version
>   platform type and version
>   using APR or not
>
> - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail and
> its attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>
>

Attachment: users_240643.eml (zipped)
> From: Julien Martin [mailto:balteo@(protected)]
> Subject: Re: My use of Spring MVC's DeferredResult class causes Tomcat 7.0.35 to crash silently

> The 9th method invocation causes Tomcat to hang. When you issue
> requests after that, they also "hang".

That's quite different from a crash. Can you take a thread dump and a heap dump? Using VisualVM or some of the command-line tools, you can monitor the JVM and see if anything odd is going on from that perspective.

http://wiki.apache.org/tomcat/FAQ/Troubleshooting_and_Diagnostics

You may have deadlocked threads, you may be out of heap space, you may have locked up waiting for a database connection, etc. The diagnostic tools should help you figure it out.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.



Attachment: users_240647.eml (zipped)
Hi Chuck,
Thanks for the tip. Can you please confirm it is not a deadlock? All
threads appear to be waiting. I have run jstack and it did not find any
deadlock...
Regards,
Julien.

2013-03-22 08:52:59
Full thread dump Java HotSpot(TM) 64-Bit Server VM (23.7-b01 mixed mode):

"Attach Listener" daemon prio=10 tid=0x00007f68e8001000 nid=0x41bd waiting
on condition [0x0000000000000000]
 java.lang.Thread.State: RUNNABLE

 Locked ownable synchronizers:
- None

"http-bio-8080-exec-10" daemon prio=10 tid=0x00007f68840a2800 nid=0x41b5 in
Object.wait() [0x00007f690cc57000]
 java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000007e8fc4650> (a
org.apache.commons.pool.impl.GenericObjectPool$Latch)
at java.lang.Object.wait (Object.java:503)
at
org.apache.commons.pool.impl.GenericObjectPool.borrowObject (GenericObjectPool.java:1115)
- locked <0x00000007e8fc4650> (a
org.apache.commons.pool.impl.GenericObjectPool$Latch)
at
org.apache.commons.dbcp.PoolingDataSource.getConnection (PoolingDataSource.java:106)
at
org.apache.commons.dbcp.BasicDataSource.getConnection (BasicDataSource.java:1044)
at
org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider.getConnection (InjectedDataSourceConnectionProvider.java:70)
at
org.hibernate.internal.AbstractSessionImpl$NonContextualJdbcConnectionAccess.obtainConnection(AbstractSessionImpl.java:292)
at
org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:297)
at
org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.getConnection(LogicalConnectionImpl.java:169)
at
org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.doBegin(JdbcTransaction.java:67)
at
org.hibernate.engine.transaction.spi.AbstractTransactionImpl.begin(AbstractTransactionImpl.java:160)
at
org.hibernate.internal.SessionImpl.beginTransaction(SessionImpl.java:1395)
at org.hibernate.ejb.TransactionImpl.begin (TransactionImpl.java:59)
at
org.springframework.orm.jpa.DefaultJpaDialect.beginTransaction (DefaultJpaDialect.java:71)
at
org.springframework.orm.jpa.JpaTransactionManager.doBegin (JpaTransactionManager.java:378)
at
org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction (AbstractPlatformTransactionManager.java:371)
at
org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary (TransactionAspectSupport.java:335)
at
org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary (TransactionAspectSupport.java:273)
at
org.springframework.transaction.aspectj.AbstractTransactionAspect.ajc$before$org_springframework_transaction_aspectj_AbstractTransactionAspect$1$2a73e96c(AbstractTransactionAspect.aj:63)
at
com.bignibou.service.MemberServiceImpl.retrieveCurrentMember(MemberServiceImpl.java:15)
at
com.bignibou.controller.MessageController.getMessages(MessageController.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:601)
at
org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:219)
at
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
at
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
at
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:745)
at
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:686)
at
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
at
org.springframework.web.servlet.DispatcherServlet.doDispatch (DispatcherServlet.java:925)
at
org.springframework.web.servlet.DispatcherServlet.doService (DispatcherServlet.java:856)
at
org.springframework.web.servlet.FrameworkServlet.processRequest (FrameworkServlet.java:920)
at
org.springframework.web.servlet.FrameworkServlet.doGet (FrameworkServlet.java:816)
at javax.servlet.http.HttpServlet.service (HttpServlet.java:621)
at
org.springframework.web.servlet.FrameworkServlet.service (FrameworkServlet.java:801)
at javax.servlet.http.HttpServlet.service (HttpServlet.java:728)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:210)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at
org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at
org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at
org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at
org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at
org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at
org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:183)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at
org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
at
org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
at
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
at
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate (DelegatingFilterProxy.java:346)
at
org.springframework.web.filter.DelegatingFilterProxy.doFilter (DelegatingFilterProxy.java:259)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:210)
at
org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal (OpenEntityManagerInViewFilter.java:180)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter (OncePerRequestFilter.java:107)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:210)
at
org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal (HiddenHttpMethodFilter.java:77)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter (OncePerRequestFilter.java:107)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:210)
at
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal (CharacterEncodingFilter.java:88)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter (OncePerRequestFilter.java:107)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:222)
at
org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:123)
at
org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:171)
at
org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke (AccessLogValve.java:936)
at
org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:407)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
- locked <0x00000007d9c6f578> (a org.apache.tomcat.util.net.SocketWrapper)
at
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run (Thread.java:722)

 Locked ownable synchronizers:
- <0x00000007d79a5758> (a java.util.concurrent.ThreadPoolExecutor$Worker)

"http-bio-8080-exec-9" daemon prio=10 tid=0x00007f68c8426000 nid=0x41b4
waiting on condition [0x00007f690cd5b000]
 java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000007f7241b98> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:186)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
at
java.util.concurrent.LinkedBlockingQueue.take (LinkedBlockingQueue.java:442)
at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:104)
at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:32)
at
java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1068)
at
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1130)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run (Thread.java:722)

 Locked ownable synchronizers:
- None

"http-bio-8080-exec-8" daemon prio=10 tid=0x00007f68b800c000 nid=0x41b3
waiting on condition [0x00007f690cf5e000]
 java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000007f7241b98> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:186)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
at
java.util.concurrent.LinkedBlockingQueue.take (LinkedBlockingQueue.java:442)
at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:104)
at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:32)
at
java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1068)
at
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1130)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run (Thread.java:722)

 Locked ownable synchronizers:
- None

"http-bio-8080-exec-7" daemon prio=10 tid=0x00007f68b800a000 nid=0x41b2
waiting on condition [0x00007f690d05f000]
 java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000007f7241b98> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:186)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
at
java.util.concurrent.LinkedBlockingQueue.take (LinkedBlockingQueue.java:442)
at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:104)
at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:32)
at
java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1068)
at
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1130)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run (Thread.java:722)

 Locked ownable synchronizers:
- None

"http-bio-8080-exec-6" daemon prio=10 tid=0x00007f68b8008000 nid=0x41b1
waiting on condition [0x00007f690d65a000]
 java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000007f7241b98> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:186)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
at
java.util.concurrent.LinkedBlockingQueue.take (LinkedBlockingQueue.java:442)
at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:104)
at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:32)
at
java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1068)
at
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1130)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run (Thread.java:722)

 Locked ownable synchronizers:
- None

"http-bio-8080-exec-5" daemon prio=10 tid=0x00007f68b8006800 nid=0x41b0
waiting on condition [0x00007f690d75b000]
 java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000007f7241b98> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:186)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
at
java.util.concurrent.LinkedBlockingQueue.take (LinkedBlockingQueue.java:442)
at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:104)
at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:32)
at
java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1068)
at
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1130)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run (Thread.java:722)

 Locked ownable synchronizers:
- None

"http-bio-8080-exec-4" daemon prio=10 tid=0x00007f68b8005000 nid=0x41af
waiting on condition [0x00007f690d85c000]
 java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000007f7241b98> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:186)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
at
java.util.concurrent.LinkedBlockingQueue.take (LinkedBlockingQueue.java:442)
at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:104)
at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:32)
at
java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1068)
at
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1130)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run (Thread.java:722)

 Locked ownable synchronizers:
- None

"http-bio-8080-exec-3" daemon prio=10 tid=0x00007f68b8004000 nid=0x41ae
waiting on condition [0x00007f690db5f000]
 java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000007f7241b98> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:186)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
at
java.util.concurrent.LinkedBlockingQueue.take (LinkedBlockingQueue.java:442)
at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:104)
at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:32)
at
java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1068)
at
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1130)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run (Thread.java:722)

 Locked ownable synchronizers:
- None

"http-bio-8080-exec-2" daemon prio=10 tid=0x00007f68b000e000 nid=0x41ab
waiting on condition [0x00007f690d95d000]
 java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000007f7241b98> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:186)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
at
java.util.concurrent.LinkedBlockingQueue.take (LinkedBlockingQueue.java:442)
at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:104)
at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:32)
at
java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1068)
at
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1130)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run (Thread.java:722)

 Locked ownable synchronizers:
- None

"ajp-bio-8009-AsyncTimeout" daemon prio=10 tid=0x00007f69184a5000
nid=0x41aa waiting on condition [0x00007f690d160000]
 java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at
org.apache.tomcat.util.net.JIoEndpoint$AsyncTimeout.run(JIoEndpoint.java:148)
at java.lang.Thread.run (Thread.java:722)

 Locked ownable synchronizers:
- None

"ajp-bio-8009-Acceptor-0" daemon prio=10 tid=0x00007f69184a3000 nid=0x41a9
runnable [0x00007f690d261000]
 java.lang.Thread.State: RUNNABLE
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.AbstractPlainSocketImpl.accept (AbstractPlainSocketImpl.java:398)
at java.net.ServerSocket.implAccept (ServerSocket.java:522)
at java.net.ServerSocket.accept (ServerSocket.java:490)
at
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket (DefaultServerSocketFactory.java:60)
at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:216)
at java.lang.Thread.run (Thread.java:722)

 Locked ownable synchronizers:
- None

"http-bio-8080-exec-1" daemon prio=10 tid=0x00007f68b8002000 nid=0x41a8
waiting on condition [0x00007f690d362000]
 java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000007f7241b98> (a
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:186)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
at
java.util.concurrent.LinkedBlockingQueue.take (LinkedBlockingQueue.java:442)
at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:104)
at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:32)
at
java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1068)
at
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1130)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run (Thread.java:722)

 Locked ownable synchronizers:
- None

"http-bio-8080-AsyncTimeout" daemon prio=10 tid=0x00007f69184a1800
nid=0x41a7 waiting on condition [0x00007f690d463000]
 java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at
org.apache.tomcat.util.net.JIoEndpoint$AsyncTimeout.run(JIoEndpoint.java:148)
at java.lang.Thread.run (Thread.java:722)

 Locked ownable synchronizers:
- None

"http-bio-8080-Acceptor-0" daemon prio=10 tid=0x00007f691849f800 nid=0x41a6
runnable [0x00007f690e2db000]
 java.lang.Thread.State: RUNNABLE
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.AbstractPlainSocketImpl.accept (AbstractPlainSocketImpl.java:398)
at java.net.ServerSocket.implAccept (ServerSocket.java:522)
at java.net.ServerSocket.accept (ServerSocket.java:490)
at
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket (DefaultServerSocketFactory.java:60)
at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:216)
at java.lang.Thread.run (Thread.java:722)

 Locked ownable synchronizers:
- None

"ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon prio=10
tid=0x00007f691875c800 nid=0x41a5 waiting on condition [0x00007f690e3dc000]
 java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1508)
at java.lang.Thread.run (Thread.java:722)

 Locked ownable synchronizers:
- None

"Timer-0" daemon prio=10 tid=0x00007f68c4a93800 nid=0x41a4 in Object.wait()
[0x00007f690da5e000]
 java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000007f7abdda0> (a java.util.TaskQueue)
at java.util.TimerThread.mainLoop(Timer.java:552)
- locked <0x00000007f7abdda0> (a java.util.TaskQueue)
at java.util.TimerThread.run(Timer.java:505)

 Locked ownable synchronizers:
- None

"GC Daemon" daemon prio=10 tid=0x00007f691866b000 nid=0x419e in
Object.wait() [0x00007f690eb3c000]
 java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000007836c8508> (a sun.misc.GC$LatencyLock)
at sun.misc.GC$Daemon.run(GC.java:117)
- locked <0x00000007836c8508> (a sun.misc.GC$LatencyLock)

 Locked ownable synchronizers:
- None

"Service Thread" daemon prio=10 tid=0x00007f69180f0800 nid=0x419b runnable
[0x0000000000000000]
 java.lang.Thread.State: RUNNABLE

 Locked ownable synchronizers:
- None

"C2 CompilerThread1" daemon prio=10 tid=0x00007f69180ee800 nid=0x419a
waiting on condition [0x0000000000000000]
 java.lang.Thread.State: RUNNABLE

 Locked ownable synchronizers:
- None

"C2 CompilerThread0" daemon prio=10 tid=0x00007f69180eb800 nid=0x4199
waiting on condition [0x0000000000000000]
 java.lang.Thread.State: RUNNABLE

 Locked ownable synchronizers:
- None

"Signal Dispatcher" daemon prio=10 tid=0x00007f69180e9000 nid=0x4198
runnable [0x0000000000000000]
 java.lang.Thread.State: RUNNABLE

 Locked ownable synchronizers:
- None

"Finalizer" daemon prio=10 tid=0x00007f691809c000 nid=0x4197 in
Object.wait() [0x00007f690fefd000]
 java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x0000000785b731f8> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove (ReferenceQueue.java:135)
- locked <0x0000000785b731f8> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove (ReferenceQueue.java:151)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:177)

 Locked ownable synchronizers:
- None

"Reference Handler" daemon prio=10 tid=0x00007f691809a000 nid=0x4196 in
Object.wait() [0x00007f690fffe000]
 java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x0000000785b72da8> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait (Object.java:503)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:133)
- locked <0x0000000785b72da8> (a java.lang.ref.Reference$Lock)

 Locked ownable synchronizers:
- None

"main" prio=10 tid=0x00007f6918009000 nid=0x4190 runnable
[0x00007f6920b89000]
 java.lang.Thread.State: RUNNABLE
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.AbstractPlainSocketImpl.accept (AbstractPlainSocketImpl.java:398)
at java.net.ServerSocket.implAccept (ServerSocket.java:522)
at java.net.ServerSocket.accept (ServerSocket.java:490)
at org.apache.catalina.core.StandardServer.await (StandardServer.java:452)
at org.apache.catalina.startup.Catalina.await (Catalina.java:766)
at org.apache.catalina.startup.Catalina.start (Catalina.java:712)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:601)
at org.apache.catalina.startup.Bootstrap.start (Bootstrap.java:322)
at org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:456)

 Locked ownable synchronizers:
- None

"VM Thread" prio=10 tid=0x00007f6918092800 nid=0x4195 runnable

"GC task thread#0 (ParallelGC)" prio=10 tid=0x00007f6918017000 nid=0x4191
runnable

"GC task thread#1 (ParallelGC)" prio=10 tid=0x00007f6918019000 nid=0x4192
runnable

"GC task thread#2 (ParallelGC)" prio=10 tid=0x00007f691801a800 nid=0x4193
runnable

"GC task thread#3 (ParallelGC)" prio=10 tid=0x00007f691801c800 nid=0x4194
runnable

"VM Periodic Task Thread" prio=10 tid=0x00007f69180fb000 nid=0x419c waiting
on condition

JNI global references: 439


2013/3/21 Caldarale, Charles R <Chuck.Caldarale@(protected)>

> > From: Julien Martin [mailto:balteo@(protected)]
> > Subject: Re: My use of Spring MVC's DeferredResult class causes Tomcat
> 7.0.35 to crash silently
>
> > The 9th method invocation causes Tomcat to hang. When you issue
> > requests after that, they also "hang".
>
> That's quite different from a crash. Can you take a thread dump and a
> heap dump? Using VisualVM or some of the command-line tools, you can
> monitor the JVM and see if anything odd is going on from that perspective.
>
> http://wiki.apache.org/tomcat/FAQ/Troubleshooting_and_Diagnostics
>
> You may have deadlocked threads, you may be out of heap space, you may
> have locked up waiting for a database connection, etc. The diagnostic
> tools should help you figure it out.
>
> - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail and
> its attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>
>

Attachment: users_240644.eml (zipped)
I want to setup "windows authentication" in my tomcat 7.0.37
I read the user guide
http://tomcat.apache.org/tomcat-7.0-doc/windows-auth-howto.html and I
follow all the step in Domain Controller and Tomcat Instance

Then I write the $CATALINA_BASE\webapps\myappl\WEB-INF\web.xml
and the $CATALINA_BASE\webapps\myappl\META-INF\context.xml
as below

The question is:
How can I remove connectionName and connectionPassword from the
context.xml file?
Without the 2 element authentication doesn't work but in a production
environment I cannot put password in clear text

---------------- 1st file web.xml -----------------
<web-app>
<display-name>Test Appl</display-name>
<description>Written by Bob</description>
<security-constraint>
  <display-name>Bob Appl Security Constraint</display-name>
  <web-resource-collection>
<web-resource-name>Private Zone</web-resource-name>
    <url-pattern>/*</url-pattern>
  </web-resource-collection>
  <auth-constraint>
    <role-name>role1</role-name>
  </auth-constraint>
</security-constraint>
<login-config>
  <auth-method>SPNEGO</auth-method>
</login-config>
<security-role>
   <role-name>role1</role-name>
   <role-name>role2</role-name>
   <role-name>role3</role-name>
</security-role>
</web-app>

---------------- 2nd file context.xml -----------------

<Context>
<Realm   className="org.apache.catalina.realm.JNDIRealm"
   adCompat="true"
    allRolesMode="authOnly"
   referrals="follow"
  connectionURL="ldap://dc01.mydom.local:389"
  connectionName="mydom\tcuser"
connectionPassword="Pa55w0rd"
      userBase="dc=mydom,dc=local"
    userSubtree="true"
    userSearch="(sAMAccountName={0})"
      roleBase="ou=groups,ou=myappl,dc=mydom,dc=local"
      roleName="cn"
    roleSearch="(member={0})"
    roleSubtree="true"
/>
</Context>


Attachment: users_240645.eml (zipped)
> <Context>
> <Realm   className="org.apache.catalina.realm.JNDIRealm"
>     adCompat="true"
>     allRolesMode="authOnly"
>     referrals="follow"
>    connectionURL="ldap://dc01.mydom.local:389"
>   connectionName="mydom\tcuser"
> connectionPassword="Pa55w0rd"
>       userBase="dc=mydom,dc=local"
>     userSubtree="true"
>      userSearch="(sAMAccountName={0})"
>       roleBase="ou=groups,ou=myappl,dc=mydom,dc=local"
>       roleName="cn"
>      roleSearch="(member={0})"
>     roleSubtree="true"
> />
> </Context>

This has come up multiple times on the mailing list - essentially it
can not/should not be done. Please see
http://wiki.apache.org/tomcat/FAQ/Password for details

Chris


Attachment: users_240646.eml (zipped)
On 21/03/2013 23:49, chris derham wrote:
>> <Context>
>> <Realm   className="org.apache.catalina.realm.JNDIRealm"
>>     adCompat="true"
>>     allRolesMode="authOnly"
>>     referrals="follow"
>>    connectionURL="ldap://dc01.mydom.local:389"
>>   connectionName="mydom\tcuser"
>> connectionPassword="Pa55w0rd"
>>       userBase="dc=mydom,dc=local"
>>     userSubtree="true"
>>      userSearch="(sAMAccountName={0})"
>>       roleBase="ou=groups,ou=myappl,dc=mydom,dc=local"
>>       roleName="cn"
>>      roleSearch="(member={0})"
>>     roleSubtree="true"
>> />
>> </Context>
>
> This has come up multiple times on the mailing list - essentially it
> can not/should not be done. Please see
> http://wiki.apache.org/tomcat/FAQ/Password for details

While generally that is correct, JNDIRealm plus Windows authentication
is a special case.

It should be possible to remove the connectionName and
connectionPassword attributes from the above configuration. See the JNDI
docs and the useDelegatedCredential attribute in particular.

Mark


©2008 junlu.com - Jax Systems, LLC, U.S.A.