Re: Tomcat doesn't stop

Mathieu Larchet <[email protected]>
Newsgroups gmane.comp.jakarta.slide.devel
Message-ID <[email protected]>
My problem has nothing to do with this bug, my NotificationTrigger is 
commented out for a long time now.
We don't use JNDIPrincipalStore in a particular way, here is my 
configuration :

<store name="users">
  <nodestore classname="org.apache.slide.store.txjndi.JNDIPrincipalStore">
    <parameter name="cache.refresh.checkrate">21600</parameter>
    <parameter name="cache.refresh.rate">86000</parameter>
    <parameter name="cache.refresh.threshold">2000</parameter>

    <parameter 
name="jndi.container">ou=people,dc=univ-nancy2,dc=fr</parameter>
    <parameter name="jndi.attributes.rdn">uid</parameter>
    <parameter 
name="jndi.search.filter">(objectclass=n2classpersonnel)</parameter>
    <parameter name="jndi.search.scope">SUBTREE_SCOPE</parameter>
    <parameter name="jndi.search.attributes">uid,displayName</parameter>
    <parameter 
name="java.naming.provider.url">ldap://ldap1.univ-nancy2.fr:392</parameter>
    <parameter 
name="java.naming.factory.initial">com.sun.jndi.ldap.LdapCtxFactory</parameter>
    <parameter name="java.naming.security.principal"></parameter>
    <parameter name="java.naming.security.authentication">simple</parameter>
    <parameter name="java.naming.security.credentials"></parameter>

  </nodestore>
  <securitystore>
    <reference store="nodestore"/>
  </securitystore>
  <lockstore>
    <reference store="nodestore"/>
  </lockstore>
  <revisiondescriptorsstore>
    <reference store="nodestore"/>
  </revisiondescriptorsstore>
  <revisiondescriptorstore>
    <reference store="nodestore"/>
  </revisiondescriptorstore>
  <contentstore>
    <reference store="nodestore"/>
  </contentstore>
</store>


David Delbecq a écrit :
> Using slide 2.1, was reported about 1 year ago or alike, not sure, and
> was supposed to be fixed in source repository a bit later. I checked the
> code in source repository, and it was indeed fixed at that time. So if
> you have problems with latest source slide, it doesn't come from there.
>
> Here is my relevant Domain.xml entry:
>
>         <!-- This one prevent tomcat from stopping!!!
>         <listener
> classname="org.apache.slide.webdav.event.NotificationTrigger">
>             <configuration>
>                 <notification include-events="false" />
>                 <persist-subscriptions filename="subscriptions.xml" />
>             </configuration>
>         </listener>-->
> Antoine Levy-Lambert a écrit :
>   
>> Hello David and Mathieu,
>>
>> I have experienced a similar problem too. I have tomcat with the newest
>> version of slide built from sources.
>> When I stop tomcat on my PC using the services applet, I am told that
>> the stop fails. The process stops however,
>> but there must be something unclean.
>>
>> So David if you can be more specific about the listener that you
>> commented out and perhaps file a bug report,
>> we could sometime fix this issue.
>>
>> Regards,
>>
>> Antoine
>>
>> David Delbecq wrote:
>>   
>>     
>>> Hi,
>>> am using slide with JNDIPrincipalStore. It uses Threads indeed, but i
>>> never encountered it preventing stopping of webapp. However, in the
>>> past, i had a problem with a listener configured in the Domain that was
>>> preventing shutdow. I just commented out this listener. (It's WEBDav
>>> notifier or something alike i don't remember, it was using a non daemon
>>> Timer to work on a regular basis)
>>>
>>> It can be interresting however to look at what it waits, maybe you have
>>> a jndi ressource in a deadlock somewhere.
>>>
>>> Mathieu Larchet a écrit :
>>>   
>>>     
>>>       
>>>> I have a problem with Slide, when I call shutdown.sh Tomcat doen't stop.
>>>> I'have done a thread dump to identify threads running and it seems
>>>> JNDIPrincipalStore is the main cause :
>>>>
>>>> "RefreshThread-" prio=1 tid=0x087643c8 nid=0x5d5d waiting on condition
>>>> [0x4d7ff000..0x4d7ff228]
>>>>        at java.lang.Thread.sleep(Native Method)
>>>>        at
>>>> org.apache.slide.store.txjndi.JNDIPrincipalStore$RefreshThread.run(JNDIPrincipalStore.java:1301)
>>>>
>>>>
>>>> "RefreshThread-" prio=1 tid=0x4ee83610 nid=0x5d56 waiting on condition
>>>> [0x4dded000..0x4dded228]
>>>>        at java.lang.Thread.sleep(Native Method)
>>>>        at
>>>> org.apache.slide.store.txjndi.JNDIPrincipalStore$RefreshThread.run(JNDIPrincipalStore.java:1301)
>>>>
>>>>
>>>> Is it a known bug and is there some workaround ?
>>>>
>>>> Thanks
>>>>
>>>>     
>>>>       
>>>>         
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>   
>>     
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>   

-- 
Mathieu Larchet
Centre de Ressources Informatiques
Université Nancy 2
[email protected]
03-54-00-11-07
http://www.univ-nancy2.fr/ANNUAIRE/PERS/detail_pres.php?uid=mlarchet
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.