Here's a guess....
I see from the stack trace that you were trying to invoke a JSP.
I imagine this scenario taking place inside JRun...
...JRun loads the JSP Servlet.
...The JRun JSP Servlet notices that the .JSP file has changed and so it
loads the .JSP file and compiles it to a Servlet.
...JRun must then "unload" the previous Servlet that was associated with the
.JSP file.
HOWEVER, since JRun probably uses a single Classloader to load ALL its
Servlets it must then dump all the servlets it has in memory in order to
load the new Servlet. Therefore it unloads ALL your Servlets.
Shouldn't be a problem in a production environment since you won't be
changing the .JSP files on the fly like that (presumably (-;).
ted stockwell
> -----Original Message-----
> From: Christopher Cobb [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, May 21, 1999 2:31 PM
> To: [EMAIL PROTECTED]
> Subject: Re: JRun destroy servlets while it should still be running
>
> Chris Hsu wrote:
>
> > Hi;
> > I am using JRun Pro to develop a JSP/servlet project. I found that the
> > servlet engine randomly destroys my servlet instance.
>
> Just before I read your email, I was looking into exactly the same
> behavior. I am using JRun 2.3 build 141 with IIS3 on NT4/SP3.
>
> > I am using NT 4.0 w/SP4 JRun Pro 2.3 build 1.4.1. (I also tried build
> > 1.4.5,
> > the problem is still there)
> >
> > Steps to reproduce the problem:
> > While JRun destroy servlets randomly. There is a sure way to reproduce.
> > 1. Start up JRun.
> > 2. Use browser to bring up a servlet's service
> > 3. Touch one of the JSP files. JRun will then recompile the JSP file
> > 4. The next time I request the servlet's service, JRun will destroy all
> > servlets
> > and generate the stack at the end of the message.
> >
> > Thanks for your time
> > Chris Hsu
> > Uniscape Inc.
> > http://www.uniscape.com
> >
> > stack dump
> > at BaseOperationServlet.destroy(Unknown Source)
> > at com.livesoftware.jrun.JRun.destroyAllServlets(Compiled Code)
> > at com.livesoftware.jrun.JRun.getServlet(Compiled Code)
> > at com.livesoftware.jrun.JRun.getServlet(Compiled Code)
> > at
> >
> com.livesoftware.jrun.JRunServletContext.getServlet(JRunServletContext.ja
> > va)
> > at
> >
> com.livesoftware.jrun.plugins.jsp.JSPCore.loadJSPServletClass(JSPCore.jav
> > a)
> > at
> >
> com.livesoftware.jrun.plugins.jsp.ServletCode.getJSPServlet(ServletCode.j
> > ava)
> > at
> com.livesoftware.jrun.plugins.jsp.JSPCore.getPage(JSPCore.java)
> > at com.livesoftware.jrun.plugins.jsp.JSP.callPage(JSP.java)
> > at com.livesoftware.jrun.plugins.jsp.JSP.service(JSP.java)
> > at javax.servlet.http.HttpServlet.service(Compiled Code)
> > at
> >
> com.livesoftware.jrun.JRunServletContext$JRunRequestDispatcher.forward(JR
> > unServletContext.java)
> > at com.uniscape.webgui.BasicPagePublisher.publish(Compiled Code)
> > at
> >
> com.uniscape.webgui.BasicPagePublisher.publish(BasicPagePublisher.java:68
> > )
> > at
> >
> com.uniscape.webgui.BaseWebApplication.handleRequest(BaseWebApplication.j
> > ava:247)
> > at BaseOperationServlet.service(Compiled Code)
> > at javax.servlet.http.HttpServlet.service(Compiled Code)
> > at com.livesoftware.jrun.JRun.runServlet(Compiled Code)
> > at
> com.livesoftware.jrun.JRunGeneric.handleConnection(JRunGeneric.java)
> > at
> >
> com.livesoftware.jrun.service.web.JRunWebServiceHandler.handleOutput(JRun
> > WebServiceHandler.java)
> > at
> >
> com.livesoftware.jrun.service.web.JRunWebServiceHandler.handleRequest(Com
> > piled Code)
> > at
> com.livesoftware.jrun.service.ThreadConfigHandler.run(Compiled Code)
> >
> >
> ==========================================================================
> =
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff JSP-INTEREST". For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help". <<
> File: Card for Christopher Cobb >>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".