Bcz if no resourcelink into my webapp, the global resource will not be visible. And I tried to remove it, my jsp only got env-entry value from web.xml. In online help: The GlobalNamingResources Component It said like this: ************************** The GlobalNamingResources element defines the global JNDI resources for the Server. These resources are listed in the server's global JNDI resource context. This context is distinct from the per-web-application JNDI contexts described in the JNDI Resources HOW-TO. The resources defined in this element are not visible in the per-web-application contexts unless you explicitly link them with <ResourceLink> elements. ***************************
-----邮件原件----- 发件人: Mark Thomas [mailto:[EMAIL PROTECTED] 发送时间: 2008年8月28日 3:13 收件人: Tomcat Users List 主题: Re: Failed to override global naming resources in specific app! William wrote: > Hi, > > description > webapp definition cannot override global one, even though override > attribute set to true. > Why? > Is that the right way to define resource for common use and redefine > it within specific webapp? > > scenario > version: 5.5.20 > global definition in conf/server.xml: > > <GlobalNamingResources> > <Environment name="maxTTL" value="500" > type="java.lang.Integer" override="true"/> > </GlobalNamingResources> > > webapp definition in WEB-INF/web.xml: > > <env-entry> > <env-entry-name>maxTTL</env-entry-name> > <env-entry-value>800</env-entry-value> > <env-entry-type>java.lang.Integer</env-entry-type> > </env-entry> > > webapp reference of global in META-INF/context.xml: > <Context docBase="helloapp2" debug="5" reloadable="true"> > <ResourceLink name="maxTTL" global="maxTTL" type="java.lang.Integer"> > </ResourceLink> </Context> Why the ResourceLink? What happens if you remove this? Mark --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]