Yes, I am starting a socket listener in a static block
in a servlet, so this should run only once. Only
once, since the classes that I reload are different
from the servlets. Any idea why the static block
of this servlet is run?
Futher, I also observed that my HTTPSession, though
is not New, does not have the attributes that were
put before the class reloading. Is this the expected
behaviour, or am I missing something?

thanks
kB.

 --- "Whitcomb, Roger" <[EMAIL PROTECTED]> wrote:
> The JVM Bind means that a socket that the old class
> was bound to is still open and the new version of
> the class is trying to open a socket on the same
> port and can't.  Is there a TCP/IP listener in your
> class??  You might need to put a means of shutdown
> into the class so it will cleanly close any open
> sockets before you try to reload it.
> 
> Roger Whitcomb
> Computer Associates
> Senior Software Engineer
> Development
> Phone: +1 408 965 8653
> FAX: +1 408 965 8805
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> 
> 
> 
> -----Original Message-----
> From: kelly, Burrowa [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 12, 2002 10:14 PM
> To: Tomcat Users List
> Subject: Re: JVM Bind error
> 
> 
> > During runtime when I change a class file, tomcat 
> > 4.0.3 is supposed to reload that class(due to
> > reloadable=true in server.xml). But instead, I
> > get some JVM Bind error.
> > 
> 
> To be more specific, the error is:
> 
> WebappClassLoader:   Resource
> '/WEB-INF/classes/TestCC.class' was modified; Date
> is
> now: Mon May 13 10:46:56 IST 2002 Was: Mon May
>  13 10:32:40 IST 2002
> java.net.BindException: Address in use: JVM_Bind
>         at
> java.net.PlainSocketImpl.socketBind(Native
> Method)
>         at
>
java.net.PlainSocketImpl.bind(PlainSocketImpl.java:452)
>         at
> java.net.ServerSocket.<init>(ServerSocket.java:170)
>         at
> java.net.ServerSocket.<init>(ServerSocket.java:82)
>         at
> TestServer.startServer(TestServer.java:22)
>         at TestRun.run(TestRun.java:45)
>         at java.lang.Thread.run(Thread.java:484)
> Cannot start engine: Address in use: JVM_Bind
> 
> 
> Any idea about whats going wrong here?
> 
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>  

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to