Are you deploying the "myapp" as a war? Maybe your answer lies here:
http://localhost:8080/tomcat-docs/config/host.html#Automatic%20Application%20Deployment
and
http://localhost:8080/tomcat-docs/appdev/deployment.html

RS





"Paul, Debra, & 4 Kids Mendelson" <[EMAIL PROTECTED]> on
03/15/2002 08:07:36 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   "Tomcat Users List" <[EMAIL PROTECTED]>
cc:

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

Reply via email to