You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2004/07/15 21:49:52 UTC

DO NOT REPLY [Bug 30128] New: - StandardDefaultContext don't handle LifecycleListener correct

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30128>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30128

StandardDefaultContext don't handle LifecycleListener  correct

           Summary: StandardDefaultContext don't handle LifecycleListener
                    correct
           Product: Tomcat 5
           Version: Nightly Build
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: pr@objektpark.de


Hey,

I had much problems to configure Default LifecycleListener at DefaultContext.

Find to things:
a)   After restart a context the configured LifecycleListener add again
b)   I can't save LifecycleListener with the StandardServer.storeDefaultContext.
c)   at StoreContext.storeContext the DefaultContext LifecycleListener store alos
     at the Context.

I have a patch for the a) and b) and work at c)

regards
Peter

PS: DefaultContext handling is very complicated. I hope we start a talk about
cleaner and better support for 5.next release.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Re: DO NOT REPLY [Bug 30128] New: - StandardDefaultContext don't handle LifecycleListener correct

Posted by Peter Rossbach <pr...@objektpark.de>.
Hello Remy,

Yeah, good idea. I also thing it is a spezial context.xml parsing, but 
it is tricky at start/stop handling and
removed the defaults correct.  For saving a Context the current 
DefaultContext situation is more tricky.
The NamingContextListener have a very spezial handling and I see that 
LocalEjb are not well implement.

regards
peter

Remy Maucherat schrieb:

> Remy Maucherat wrote:
>
>> bugzilla@apache.org wrote:
>>
>>> PS: DefaultContext handling is very complicated. I hope we start a 
>>> talk about
>>> cleaner and better support for 5.next release.
>>
>>
>> I've been thinking about that for weeks, but I haven't found anything 
>> really simpler yet. Some solutions I've thought about include JMX 
>> tricks or adding code to the container. Still working on it.
>
>
> Thinking about it more, it seems very simple actually, if it's done 
> the same as for the default web.xml (with a separate "default" 
> context.xml associated with the host). This is doable since I'll move 
> the context.xml processing as part of the deployer refactoring, and 
> will end up with something a lot more consistent (which will be well 
> tested, since it'll use the same code as for the context.xml processing).
>
> Rémy
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
>
>


-- 
J2EE Systemarchitekt und Tomcat Experte

http://objektpark.de/
http://www.webapp.de/

Am Josephsschacht 72, 44879 Bochum, Deutschland
Telefon:  (49) 234 9413228
Mobil:    (49) 175 1660884
E-Mail:  pr@objektpark.de




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Re: DO NOT REPLY [Bug 30128] New: - StandardDefaultContext don't handle LifecycleListener correct

Posted by Remy Maucherat <re...@apache.org>.
Remy Maucherat wrote:
> bugzilla@apache.org wrote:
> 
>> PS: DefaultContext handling is very complicated. I hope we start a 
>> talk about
>> cleaner and better support for 5.next release.
> 
> I've been thinking about that for weeks, but I haven't found anything 
> really simpler yet. Some solutions I've thought about include JMX tricks 
> or adding code to the container. Still working on it.

Thinking about it more, it seems very simple actually, if it's done the 
same as for the default web.xml (with a separate "default" context.xml 
associated with the host). This is doable since I'll move the 
context.xml processing as part of the deployer refactoring, and will end 
up with something a lot more consistent (which will be well tested, 
since it'll use the same code as for the context.xml processing).

Rémy


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Re: DO NOT REPLY [Bug 30128] New: - StandardDefaultContext don't handle LifecycleListener correct

Posted by Remy Maucherat <re...@apache.org>.
bugzilla@apache.org wrote:
> PS: DefaultContext handling is very complicated. I hope we start a talk about
> cleaner and better support for 5.next release.

I've been thinking about that for weeks, but I haven't found anything 
really simpler yet. Some solutions I've thought about include JMX tricks 
or adding code to the container. Still working on it.

I'll also simplify the handling of JNDI stuff as well.

Rémy


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org