tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Bernardo <BBerna...@abilizer.com>
Subject RE: Servlet init() callin twice on startup. PLease help.
Date Mon, 29 Apr 2002 18:52:17 GMT
How about you give a little background info?  If you are using webappdeploy
in apache, the comment out the below line in your server.xml file:


   <Context path=""
            docBase="../../../../webapp"
            crossContext="true"
            debug="0"
            reloadable="false"
            trusted="false"/>


People always miss that one when using mod_webapp.  Give more info, so the
list can be of greater assistance.

Brian





-----Original Message-----
From: IvanLatysh [mailto:ivan@yourmail.com] 
Sent: Monday, April 29, 2002 11:25 AM
To: Tomcat Users List
Subject: Re: Servlet init() callin twice on startup. PLease help.

Hello, Donie!
You wrote to "'Tomcat Users List'" <tomcat-user@jakarta.apache.org> on Mon,
29 Apr 2002 19:14:32
+0100:

 DK> Do you have  the servlet mapped twice in web.xml?

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
  <display-name>Postmaster</display-name>
  <description>On-Line data validation system.</description>
  <servlet>
    <servlet-name>execloader</servlet-name>
    <servlet-class>postmaster.execLoader</servlet-class>
    <load-on-startup>9</load-on-startup>
  </servlet>
  <servlet>
    <servlet-name>servlet-shtml</servlet-name>
 
<servlet-class>com.borland.jbuilder.webserverglue.shtml.ShtmlLoaderEcho</ser
vlet-class>
  </servlet>
  <servlet>
    <servlet-name>sqltest</servlet-name>
    <servlet-class>postmaster.sqlTest</servlet-class>
  </servlet>
  <servlet>
    <servlet-name>validator</servlet-name>
    <servlet-class>postmaster.validator.validator</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>servlet-shtml</servlet-name>
    <url-pattern>*.shtml</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>sqltest</servlet-name>
    <url-pattern>/sqltest</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>validator</servlet-name>
    <url-pattern>/validator</url-pattern>
  </servlet-mapping>
</web-app>

---
Yours sincerely, Ivan Latysh.
Ivan@yourmail.com
http://ivan.yourmail.com


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message