tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 25033] - After install,remove and install application the app is not available
Date Thu, 27 Nov 2003 00:09:23 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25033>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25033

After install,remove and install application the app is not available





------- Additional Comments From pr@webapp.de  2003-11-27 00:09 -------
Hello,

In my example I have installed a directory app myapps with a separate 
myapps.xml
context file. In my context I have configured three AccessLogValves. Ohh, this 
example is a demo  .

With one AccessLogValve the install,remove, install cycle work correct. 

I look at the VavleBase.createObjectName() and the see following

L 278ff
        Pipeline pipe=containerBase.getPipeline();
        Valve valves[]=pipe.getValves();

and
L311

    int seq=0;
        for( int i=0; i<valves.length; i++ ) {
            // Find other valves with the same name
            if( valves[i]!=null &&
                    valves[i].getClass() == this.getClass() &&
                    valves[i] != this ) {
                log.debug("Duplicate " + valves[i] + " " + this + " " + 
container);
                seq++;
            }
        }
        String ext="";
        if( seq > 0 ) {
            ext=",seq=" + seq;
        }

I thing the StandardPipeline has all valves at startup. This means that all 
valves registered with the seq=2 part.

With stop the StandardPipeLine the first Valve is unregistered and the next 
AccessLogValve has a probleme as reported.

Peter

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


Mime
View raw message