Lance,

You're advice caused gave more insight.  After putting in more code I
discovered that my app was loading once in the context I gave it in the
server.xml and loading again as the context of it's native directory.

Is there anyway to tell Tomcat to only load named contexts?

Thanks in advance for info,

Paul

-----Original Message-----
From: Lance Smith [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 11:44 AM
To: 'Tomcat Users List'
Subject: RE: Double loading of my application


Paul ( I assume ),
Had the same trble with no answers also seemed to go away when I added
a path to my context statement like:
        <Context path="/WebUI" docBase="WebUI" debug="9"
                 reloadable="true"></Context>

        <!-- DEPLOYABLE CONTEXT
        <Context path="/WebUI" docBase="WebUI" debug="0"
                 reloadable="false"></Context>
        -->
Hope this helps,
Lance

-----Original Message-----
From: Paul, Debra, & 4 Kids Mendelson
[mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 8:08 AM
To: Tomcat Users List
Subject: Double loading of my application


In my web application (described) below I am seeing my startup servlet
executing twice presumably because my application is loading twice.  Which
directive is causing my second load?

I have a Web application with a startup servlet described as follows:
        <servlet>
                <servlet-name>MyStart</servlet-name>
                <servlet-class>MyStart</servlet-class>
                <load-on-startup>0</load-on-startup>
        </servlet>

I have tried to strip down my servlet.xml file to remove potential for
double loading my applictaion:
  <Server port="8005" shutdown="SHUTDOWN" debug="0">
    <Service name="Tomcat-Standalone">
      <Connector
className="org.apache.catalina.connector.http.HttpConnector"
        port="8080" minProcessors="5" maxProcessors="75"
        enableLookups="true" redirectPort="8443"
        acceptCount="10" debug="5" connectionTimeout="60000"/>
      <Engine name="Standalone" defaultHost="localhost" debug="5">
        <Logger className="org.apache.catalina.logger.FileLogger"
          prefix="catalina_log." suffix=".txt"
          timestamp="true"/>
        <Realm className="org.apache.catalina.realm.MemoryRealm" />
        <Host name="localhost" debug="5" appBase="webapps"
unpackWARs="true">
          <Valve className="org.apache.catalina.valves.AccessLogValve"
            directory="logs"  prefix="localhost_access_log." suffix=".txt"
            pattern="common"/>
         <Logger className="org.apache.catalina.logger.FileLogger"
            directory="logs"  prefix="localhost_log." suffix=".txt"
            timestamp="true"/>
         <Context path="" docBase="myapp" debug="5"/>
       </Host>
     </Engine>
   </Service>
  </Server>




_________________________________________________________

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com




--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to