> From: Ani [mailto:jadhao.anirud...@gmail.com]
> Subject: Re: Tomcat 6.0 loading servlet twice
>
> I have entry in context tag of server.xml

Don't put <Context> elements in server.xml.  For webapps placed in the <Host> 
appBase directory, the <Context> element belongs in the webapp's 
META-INF/context.xml file.  For webapps placed outside of the <Host> appBase 
directory, the <Context> element must go into 
conf/Catalina/[host]/[appName].xml.  You must not use the path attribute, and 
only use the docBase attribute for the second case.

> These two web app's WEB-INF folder contains servlet-api.jar

Never, never put servlet-api.jar inside a webapp.  Don't put any other jars in 
your webapp that the container provides.

Clean up your mess, try it again, and let us know what the result is.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to