Thanks Chuck's reply. However, there was no such myapp.xml file there. In fact, I manually copied my context.xml into localhost and renamed it to myapp.xml and it did not work either.
Is there a simple way to check whether the context.xml is loaded or not at all? Zhiyong ----- Original Message ----- From: Charles R Caldarale <[EMAIL PROTECTED]> To: Tomcat Users List <users@tomcat.apache.org> Sent: Tuesday, June 19, 2007 5:47:14 o'clock PM GMT-0500 Auto-Detected Subject: RE: Cannot load customized valve and realm from META-INF/context.xml > From: Zhiyong Liu [mailto:[EMAIL PROTECTED] > Subject: Cannot load customized valve and realm from > META-INF/context.xml > > I tried to move the context.html to conf/Catalina/localhost > and the jar file to server/lib then everything went well. Is it possible you already had a myapp.xml in conf/Catalina/localhost? (Tomcat sometimes creates one there during deployment.) If so, that would have overridden the webapps/myapp/META-INF/context.xml values. - 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] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]