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 4797] New: - FAILED: Confguration of DefaultContext Engine and Host
Date Sun, 11 Nov 2001 18:05:30 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=4797>.
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=4797

FAILED: Confguration of DefaultContext  Engine and Host

           Summary: FAILED: Confguration of DefaultContext  Engine and Host
           Product: Tomcat 4
           Version: Nightly Build
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: pr@webapp.de


---
I scanning the source 10.11.2001 snapshot and see configuration DefaultContext.
After testing not working configuration with server.xml, I see that 
configuration changed. OK! 

But the current configuration not working with Parameter and Environment tags.

--- my current review results ---
org.apache.catalina.core.StandardEngine
org.apache.catalina.startup.Catalina

With a test as documented are the parsing from 
...
<Engine ...>
<DefaultContext>
    <Environment name="maxExemptions" type="java.lang.Integer" value="15" />
</DefaultContext>
...
</Engine>

are not working with the example JNDIServlet.

I missing the documented class org.apache.catalina.core.DefaultContext.
It is now org.apache.catalina.core.StandardDefaultContext 

Configuration tag has changed at org.apache.catalina.startup.Catalina L 351 or 
 org.apache.catalina.startup.ContextRuleSet ( L 142 )is
<Engine ...>
<Default>
    <Context>
      <Environment name="maxExemptions" type="java.lang.Integer" value="15" />
      <Parameter name="context.exmp.name" value="context.example.value" 
override="true" />
    </Context>
</Default>
...
</Engine>

Context is set with override attribute "true", but I not see parameter or 
InitialContext object.
I also not find Environment rule mapping.

Can it be that following rule is missing
       digester.addRuleSet(new 
NamingRuleSet("Server/Service/Engine/Default/Context/"));
-- got a digester processing error!
	
or that
	NamingRuleSet and ContextRuleSet has duplicated code of parts from 
Resource
	configuration.
-- test failed to copy Environment Rule to ContextRuleSet
   got a digester processing error!

Documentation not reflect current implementation !

----

Peter

---

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


Mime
View raw message