> From: Riaz, Bob [mailto:[EMAIL PROTECTED]
> Subject: RE: ContextListener executes twice
>
> > 1) Where is your webapp deployed?
> On my dev machine - localhost. Is that what you mean?

No, what directory is it in?  Is it a .war or an expanded webapp?

> > 2) Do you have a META-INF/context.xml file inside your webapp?
> <?xml version="1.0" encoding="UTF-8"?>
> <Context path="/MyWebApp"/>

The path attribute is illegal here.  You don't really need a <Context> at all.

> > 3) Do you have a conf/Catalina/[host]/[appName].xml file?
> <?xml version="1.0" encoding="UTF-8"?>
> <Context
> docBase="C:/..Path/NetBeansProjects/MyWebApp/build/web" path="/
> MyWebApp "/>

The above will override the invalid one in META-INF/context.xml.

> > 4) What is the appBase setting for each of your <Host> elements
> > in conf/server.xml?
> <Host name="localhost"  appBase="webapps"

Do you happen to have a copy of your webapp deployed under Tomcat's webapps 
directory?  If so, that would account for the double initialization.

Does the problem occur when you run Tomcat independently of NetBeans, or only 
if run through NetBeans?

 - 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]

Reply via email to