> From: Mindaugas Žakšauskas [mailto:[EMAIL PROTECTED] > Subject: JNDI question/problem > > <Service ...> > <Connector.../> > > <Context path="" docBase="/path/to/my/webapp1"> > <ResourceLink global="foobar" name="local_foo" > type="java.util.Map"/> > </Context> > <Context path="" docBase="/path/to/my/webapp2"> > <ResourceLink global="foobar" name="local_bar" > type="java.util.Map"/> > </Context> > > </Service> > </Server>
You appear to be trying to define two default contexts (path=""), which is obviously incorrect, and likely conflict with Tomcat's existing default app in [appBase]/ROOT. Since you shouldn't be putting <Context> elements inside server.xml and the resource reference works when you place the <Context> elements in valid locations, your question is somewhat moot. Note that when <Context> elements are not in server.xml, the path attribute must not be used (it's usually ignored, but can cause problems). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]