Stupid question on my part, but you certainly called
super.init(config)?

----- Original Message ----- 
From: "Zsolt Koppany" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 14, 2001 10:28 AM
Subject: Bug or feature


> Hi,
> 
> I want a servlet executed when tomcat is started, thus I made the
> following entries in web.xml
> 
>     <servlet>
>         <servlet-name>startup</servlet-name>
>         <servlet-class>cv.servlet.Startup</servlet-class>
>         <load-on-startup>
>             1
>         </load-on-startup>
>     </servlet>
> 
> The strange thing is that the init method is always executed twice. I
> have already tried to fix it using static boolean variables to check
> whether this is the second execution, but the static variables seem to
> be always null. I know it sounds strange but this is true. The problem
> is that I have to create a ServerSocket and of course the second time I
> get a BindException. Now how can I figure out whether this is "my"
> socket or not.
> 
> I use tomcat-3.2.2 under RedHat-7.1.
> 
> Zsolt
> 
> -- 
> Zsolt Koppany
> Intland GmbH www.intland.com
> Schulze-Delitzsch-Strasse 16
> D-70565 Stuttgart
> Tel: +49-711-7221873 Fax: +49-711-7871017

Reply via email to