-----Original Message----- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2008 11:12 AM To: Tomcat Users List Subject: RE: ContextListener executes twice
> From: Riaz, Bob [mailto:[EMAIL PROTECTED] > Subject: RE: ContextListener executes twice > INFO: The listener "MyContextListener" is > already configured for this context. The > duplicate definition has been ignored. That's a purely cosmetic error in the current 6.0 version; fixed in 6.0.17, whenever it gets released. > Default settings from context.xml: That looks like the global <Context> settings, not the one for your webapp. 1) Where is your webapp deployed? >>On my dev machine - localhost. Is that what you mean? 2) Do you have a META-INF/context.xml file inside your webapp? If so, what's in it? >> <?xml version="1.0" encoding="UTF-8"?> <Context path="/MyWebApp"/> >> 3) Do you have a conf/Catalina/[host]/[appName].xml file? If so, what's in it? >><?xml version="1.0" encoding="UTF-8"?> <Context docBase="C:/..Path/NetBeansProjects/MyWebApp/build/web" path="/ MyWebApp "/> 4) What is the appBase setting for each of your <Host> elements in conf/server.xml? >> <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <!-- SingleSignOn valve, share authentication between web applications Documentation at: /docs/config/valve.html --> <!-- <Valve className="org.apache.catalina.authenticator.SingleSignOn" /> --> <!-- Access log processes all example. Documentation at: /docs/config/valve.html --> <!-- <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/> --> </Host> >> 5) Do you have any <Context> elements in server.xml? (You shouldn't.) >>I don't. - 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]