I have tried to instead deploy my application as an ear file inside the application server called glassfish (got it do deploy after some tweaking of config files) and now if I redeploy the application it works! No more BindException. Can someone explain this? Anyway, this is probably the way I'm going to deploy my application from now on. Once glassfish is started (which takes a while) I never have to shut it down.
/Andreas On Apr 16, 2007, at 3:51 PM, Travis McCauley wrote: > Hi, I experience the same thing. I wound up switching my development > environment to Eclipse and running Standalone. But I still intend to > deploy in tomcat. Does anyone know of a way to gracefully reload the > webapp from within tomcat (I'm using 5.5)? The only way I know is to > restart the entire container. > > Thanks, > Travis > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Andreas Folkesson > Sent: Saturday, April 14, 2007 2:53 PM > To: [email protected] > Subject: [Red5] Reloading of webapp fails > > Hi, > > I'm currently running tomcat with red5 0.6 rc3 and I have a problem > each time I reload the webapp without first shutting down tomcat. I > get a BindException: > > [ERROR] 1766 ContainerBackgroundProcessor[StandardEngine[Catalina]]: > ( org.red5.server.MainServlet.contextInitialized ) > org.springframework.beans.factory.BeanCreationException: Error > creating bean with name > 'org.apache.mina.transport.socket.nio.SocketAcceptor' defined in > ServletContext resource [/WEB-INF/red5-core.xml]: Invocation of init > method failed; nested exception is java.net.BindException: Address > already in use > > > I can see that MainServlet calls: > applicationContext.close(); > which in turn should invoke unbind on the SocketAcceptor. I don't > know where the problem is, if spring never calls the method or if > mina never closes the socket. Any thoughts? Has anyone been able to > get reloading of a webapp working without this exception? > > /Andreas > > _______________________________________________ > Red5 mailing list > [email protected] > http://osflash.org/mailman/listinfo/red5_osflash.org > > _______________________________________________ > Red5 mailing list > [email protected] > http://osflash.org/mailman/listinfo/red5_osflash.org > _______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
