RE: SESSION PROBLEM in UNIX
HI , Any suggestions on the problem reported below .I would like to add another point that this works perfectly in Linux . I have tomcat4 running in linux and the session does not become null .As I mentioned before in Windows it works fine ..Only in HP Unix I get this problem of the session variable becoming null..any specific settings that I need to check ? -Original Message- From: MUKUND Premchander [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 21, 2004 12:23 PM To: Tomcat Users List Subject: RE: SESSION PROBLEM in UNIX Hi, Thank you for your inputs. I couldn't implement HttpSessionListener on tomcat3.2,hence I tried with HttpSessionBindingListener before. where I added an a listener object to the session and so that when session becomes invalid then the unbound method will get called . Now as suggested I moved my application to tomcat4.1.29 and tested the same ,by implementing HttpSessionListener and also Enabled the request dumper in the server.xml. I still get the same problem i.e. after a few refresh null pointer exception is thrown when session is accessed. sessionCreated(HttpSessionEvent se) is called and I get the SOP when I load application in Browser ,but after the error occurs the sessionDestroyed(HttpSessionEvent se) is not called ( confirmed it as SOP was not displayed on the console) Also I see no difference in the dump by the request dumper for the refresh period when the problem occurred and the previous interval . Message in the log file 2004-04-21 12:02:19 ApplicationDispatcher[/MCOne] Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException Part of the request response dump: As I see it the session ID is the same and maintained . So I am unable to find out if its my application or the session management that is causing the problem. As shown above problem occurs at 12:02:19 Find below dump of 12:02:19 and previous interval 12:02:09 when the screen display is good 2004-04-21 12:02:08 RequestDumperValve[Standalone]: REQUEST URI =/MCOne/BP/BPRealtimeServlet 2004-04-21 12:02:08 RequestDumperValve[Standalone]: authType=null 2004-04-21 12:02:08 RequestDumperValve[Standalone]: characterEncoding=null 2004-04-21 12:02:08 RequestDumperValve[Standalone]: contentLength=116 2004-04-21 12:02:08 RequestDumperValve[Standalone]: contentType=application/x-www-form-urlencoded 2004-04-21 12:02:08 RequestDumperValve[Standalone]:contextPath= 2004-04-21 12:02:08 RequestDumperValve[Standalone]: cookie=JSESSIONID=314C72D3A1279E24B5095C9DA4D02DF2 2004-04-21 12:02:08 RequestDumperValve[Standalone]: header=accept=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */* 2004-04-21 12:02:08 RequestDumperValve[Standalone]: header=referer=http://10.3.106.177:8080/MCOne/BP/BPRealtimeServlet 2004-04-21 12:02:08 RequestDumperValve[Standalone]: header=accept-language=en-us 2004-04-21 12:02:08 RequestDumperValve[Standalone]: header=content-type=application/x-www-form-urlencoded 2004-04-21 12:02:08 RequestDumperValve[Standalone]: header=accept-encoding=gzip, deflate 2004-04-21 12:02:08 RequestDumperValve[Standalone]: header=user-agent=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) 2004-04-21 12:02:08 RequestDumperValve[Standalone]: header=host=10.3.106.177:8080 2004-04-21 12:02:08 RequestDumperValve[Standalone]: header=content-length=116 2004-04-21 12:02:08 RequestDumperValve[Standalone]: header=connection=Keep-Alive 2004-04-21 12:02:08 RequestDumperValve[Standalone]: header=cache-control=no-cache 2004-04-21 12:02:08 RequestDumperValve[Standalone]: header=cookie=JSESSIONID=314C72D3A1279E24B5095C9DA4D02DF2 2004-04-21 12:02:08 RequestDumperValve[Standalone]: locale=en_US 2004-04-21 12:02:08 RequestDumperValve[Standalone]: method=POST 2004-04-21 12:02:08 RequestDumperValve[Standalone]: parameter=hiddenUrlInitialize= 2004-04-21 12:02:08 RequestDumperValve[Standalone]: parameter=interval=null, check_interval 2004-04-21 12:02:08 RequestDumperValve[Standalone]: parameter=hiddenInterval=10 2004-04-21 12:02:08 RequestDumperValve[Standalone]: parameter=hiddenRealtimeMain=Summary 2004-04-21 12:02:08 RequestDumperValve[Standalone]: parameter=selectopt=10 2004-04-21 12:02:08 RequestDumperValve[Standalone]: pathInfo=null 2004-04-21 12:02:08 RequestDumperValve[Standalone]: protocol=HTTP/1.1 2004-04-21 12:02:08 RequestDumperValve[Standalone]: queryString=null 2004-04-21 12:02:08 RequestDumperValve[Standalone]: remoteAddr=10.3.106.64 2004-04-21 12:02:08 RequestDumperValve[Standalone]: remoteHost=10.3.106.64 2004-04-21 12:02:08 RequestDumperValve[Standalone]: remoteUser=null 2004-04-21 12:02:08 RequestDumperValve[Standalone]: requestedSessionId=314C72D3A1279E24B5095C9DA4D02DF2 2004-04-21 12:02:08 RequestDumperValve[Standalone]: scheme=http 2004-04-21 12:02:08 RequestDumperValve[Standalone]: serverName=10.3.106.177 2004-04-21 12:02:08 RequestDumperValve
RE: SESSION PROBLEM in UNIX
-us 2004-04-21 12:02:19 RequestDumperValve[Standalone]: header=content-type=application/x-www-form-urlencoded 2004-04-21 12:02:19 RequestDumperValve[Standalone]: header=accept-encoding=gzip, deflate 2004-04-21 12:02:19 RequestDumperValve[Standalone]: header=user-agent=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) 2004-04-21 12:02:19 RequestDumperValve[Standalone]: header=host=10.3.106.177:8080 2004-04-21 12:02:19 RequestDumperValve[Standalone]: header=content-length=116 2004-04-21 12:02:19 RequestDumperValve[Standalone]: header=connection=Keep-Alive 2004-04-21 12:02:19 RequestDumperValve[Standalone]: header=cache-control=no-cache 2004-04-21 12:02:19 RequestDumperValve[Standalone]: header=cookie=JSESSIONID=314C72D3A1279E24B5095C9DA4D02DF2 2004-04-21 12:02:19 RequestDumperValve[Standalone]: locale=en_US 2004-04-21 12:02:19 RequestDumperValve[Standalone]: method=POST 2004-04-21 12:02:19 RequestDumperValve[Standalone]: parameter=hiddenUrlInitialize= 2004-04-21 12:02:19 RequestDumperValve[Standalone]: parameter=interval=null, check_interval 2004-04-21 12:02:19 RequestDumperValve[Standalone]: parameter=hiddenInterval=10 2004-04-21 12:02:19 RequestDumperValve[Standalone]: parameter=hiddenRealtimeMain=Summary 2004-04-21 12:02:19 RequestDumperValve[Standalone]: parameter=selectopt=10 2004-04-21 12:02:19 RequestDumperValve[Standalone]: pathInfo=null 2004-04-21 12:02:19 RequestDumperValve[Standalone]: protocol=HTTP/1.1 2004-04-21 12:02:19 RequestDumperValve[Standalone]: queryString=null 2004-04-21 12:02:19 RequestDumperValve[Standalone]: remoteAddr=10.3.106.64 2004-04-21 12:02:19 RequestDumperValve[Standalone]: remoteHost=10.3.106.64 2004-04-21 12:02:19 RequestDumperValve[Standalone]: remoteUser=null 2004-04-21 12:02:19 RequestDumperValve[Standalone]: requestedSessionId=314C72D3A1279E24B5095C9DA4D02DF2 2004-04-21 12:02:19 RequestDumperValve[Standalone]: scheme=http 2004-04-21 12:02:19 RequestDumperValve[Standalone]: serverName=10.3.106.177 2004-04-21 12:02:19 RequestDumperValve[Standalone]: serverPort=8080 2004-04-21 12:02:19 RequestDumperValve[Standalone]: servletPath=null 2004-04-21 12:02:19 RequestDumperValve[Standalone]: isSecure=false 2004-04-21 12:02:19 RequestDumperValve[Standalone]: --- 2004-04-21 12:02:19 RequestDumperValve[Standalone]: --- 2004-04-21 12:02:19 RequestDumperValve[Standalone]: authType=null 2004-04-21 12:02:19 RequestDumperValve[Standalone]: contentLength=-1 2004-04-21 12:02:19 RequestDumperValve[Standalone]: contentType=text/html;charset=ISO-2022-JP 2004-04-21 12:02:19 RequestDumperValve[Standalone]: header=Content-Type=text/html;charset=ISO-2022-JP 2004-04-21 12:02:19 RequestDumperValve[Standalone]: header=Transfer-Encoding=chunked 2004-04-21 12:02:19 RequestDumperValve[Standalone]: header=Date=Wed, 21 Apr 2004 06:32:19 GMT 2004-04-21 12:02:19 RequestDumperValve[Standalone]: header=Server=Apache-Coyote/1.1 2004-04-21 12:02:19 RequestDumperValve[Standalone]: message=null 2004-04-21 12:02:19 RequestDumperValve[Standalone]: remoteUser=null 2004-04-21 12:02:19 RequestDumperValve[Standalone]: status=200 2004-04-21 12:02:19 RequestDumperValve[Standalone]: === Excuse me for this long mail .Request your inputs on above Thanks and Regards Mukund -Original Message- From: Veniamin Fichin [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 7:53 PM To: Tomcat Users List Subject: Re: SESSION PROBLEM in UNIX MUKUND Premchander wrote: I am using tomcat 3.2 not tomcat 4.0 hence as per your suggestion I did try and implement HttpSessionBindingListener and put the object into the session in the same jsp , the valueBound was called but when the session access threw null pointer exception valueUnbound was not called No-no, you need to implement HttpSessionListener, not HttpSessionBindingListener. The former interface will alert you when a session is created and destroyed, that way you will know if your session does away for example by container or just disappears, that's the bug. And still, try somehow to determine if JSESSIONID is passed with each request (use filter, HTTP sniffer or anything). If this cookie is passed, but session continuously lost, this must be the bug. And 3.x version is now outdated a little, so may be there was a bug in session handling, but nobody will fix it these days. Consider upgrade to at least 4.x serie, that way you may hope someone will help you in case of trouble. And when I gave a sop the request.getSession(false) printed the same session object . I did try with NN and I get the same problem . Kindly help with your comments - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
RE: Using init parameters
Guess you are looking to access the context param init paramaters (as specified in context-param blocks). The servelt config's getInitParameter corresponds to the *servlet's* init parameters So guess you need to use getServletContext().getInitParameter(applicationName) rather than getInitParameter(applicationName) -Original Message- From: Keith Hankin [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 21, 2004 3:29 PM To: [EMAIL PROTECTED] Subject: Using init parameters I have the following in my web.xml: context-param param-nameapplicationName/param-name param-valuetestApp/param-value /context-param My servlet class extends HttpServlet and has the following method: public void init(ServletConfig config) throws ServletException { super.init(config); configDir = getInitParameter(configDir); applicationName = getInitParameter(applicationName); System.out.println(configDir = + configDir); System.out.println(applicationName = + applicationName); jdbcAccess = new AddrJdbcAccess(configDir, applicationName); } Both calls to getInitParameter() return null. What's wrong here? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SESSION PROBLEM in UNIX
Hi , I am using tomcat 3.2 not tomcat 4.0 hence as per your suggestion I did try and implement HttpSessionBindingListener and put the object into the session in the same jsp , the valueBound was called but when the session access threw null pointer exception valueUnbound was not called And when I gave a sop the request.getSession(false) printed the same session object . I did try with NN and I get the same problem . Kindly help with your comments -Original Message- From: Veniamin Fichin [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 3:28 PM To: Tomcat Users List Subject: Re: SESSION PROBLEM in UNIX MUKUND Premchander wrote: Thank you for your reply . I use IE 6 as my browser in windows and tomcat on HP unix. I meant that ,all I did was open a browser window load my application, goto a particular page Set page to refresh for every 10 secs( application had a combo box to set interval of refresh).After few refresh I get a null pointer exception and realize that the session is null suddenly .( I repeat I don't get this issue when I run tomcat in windows) Anyway, first try to localize the problem, there are some ways: * implement javax.servlet.http.HttpSessionListener interface to see what's happening with your sessions; * install RequestDumperFilter filter into your application to see every request and response data; * sniff HTTP traffic (don't know how...) * try another browser (I don't force you to throw IE, just try another one), for example Mozilla has excellent tool named Live HTTP headers which shows all HTTP request/response headers. That way you will see if a session invalidates normally for whatever reason or it lost somehow. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SESSION PROBLEM in UNIX
Hi , Thank you for your reply . I use IE 6 as my browser in windows and tomcat on HP unix. I meant that ,all I did was open a browser window load my application, goto a particular page Set page to refresh for every 10 secs( application had a combo box to set interval of refresh).After few refresh I get a null pointer exception and realize that the session is null suddenly .( I repeat I don't get this issue when I run tomcat in windows) Thanks and Regards mukund -Original Message- From: Martin Alley [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 1:00 PM To: 'Tomcat Users List' Subject: RE: SESSION PROBLEM in UNIX Do you know how the session is being tracked in the browser? Cookie, url? Are you saying you use the same browser in each case? Can you log the http traffic? Martin -Original Message- From: MUKUND Premchander [mailto:[EMAIL PROTECTED] Sent: 15 April 2004 04:26 To: Tomcat Users List Subject: RE: SESSION PROBLEM in UNIX hi, Thank you for your reply and suggestion . I have only one user and one browser window and I get this problem . I also like to mention that in the starting of the JSP if I added a line of code like session = request.getSession(false), then I don't get this problem at all .But I am not able to understand why access to the session variable gives exception suddenly after some refresh if I don't do this.Also I checked the codes , no session invalidation is done nor a new session is created anywhere. Thanks and Regards Mukund -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 2:24 AM To: 'Tomcat Users List' Subject: RE: SESSION PROBLEM in UNIX Hi, How about implementing HttpSessionListener so that you know when your session is getting created and destroyed? Also do you have multiple users running the same jsp? If you do, you may want to synchronize that block of code. Hope this helps:). -Yan -Original Message- From: MUKUND Premchander [mailto:[EMAIL PROTECTED] Sent: April 14, 2004 07:41 To: Tomcat Users List Subject: SESSION PROBLEM in UNIX Hi, I have a jsp page which is refreshed atuomatically every 10 seconds.I get and put values in the session by using the implicit session variable . Everything works fine for say 2-3 mins after that the implicit session becomes null and throws a null pointer exception. I get a null pointer exception and session is printed as null but even the if block (session == null) is not executed . I printed the value of request.getSession(false);.This gives me session object ,where as the implicit session does not have this after many refresh interval During the first few refreshes both have the same value. Also note that this runs fine in Windows ,I get this problem only in UNIX . I use tomcat 3.2 in unix and view using IE in windows I tried in tomcat 4 also I still get the same exception FIND below the code in JSP try{ if (session == null){ System.out.println(session is null:::); } System.out.println(session3:::+session.toString()); if (session.isNew()) { System.out.println(HI); session.setAttribute(BPRealtimeConstants.C_JPM_SESSION_FAIL_ID,failed) ; response.setHeader(Refresh,1; URL=/MCOne/BP/index.html); return; } } catch (Exception e) { System.out.println(I am in exception ); System.out.println(I am after hello +request.getSession(false)); e.printStackTrace(); } I am unble to find any resource on the net which might help me identify the problem ,I am posting this for the second time . Can there be any difference in session handling when tomcat is run in unix and Windows. Any inputs will really help me solve this production problem Thanks and Regards Mukund - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SESSION PROBLEM in UNIX
Hi, I have a jsp page which is refreshed atuomatically every 10 seconds.I get and put values in the session by using the implicit session variable . Everything works fine for say 2-3 mins after that the implicit session becomes null and throws a null pointer exception. I get a null pointer exception and session is printed as null but even the if block (session == null) is not executed . I printed the value of request.getSession(false);.This gives me session object ,where as the implicit session does not have this after many refresh interval During the first few refreshes both have the same value. Also note that this runs fine in Windows ,I get this problem only in UNIX . I use tomcat 3.2 in unix and view using IE in windows I tried in tomcat 4 also I still get the same exception FIND below the code in JSP try{ if (session == null){ System.out.println(session is null:::); } System.out.println(session3:::+session.toString()); if (session.isNew()) { System.out.println(HI); session.setAttribute(BPRealtimeConstants.C_JPM_SESSION_FAIL_ID,failed) ; response.setHeader(Refresh,1; URL=/MCOne/BP/index.html); return; } } catch (Exception e) { System.out.println(I am in exception ); System.out.println(I am after hello +request.getSession(false)); e.printStackTrace(); } I am unble to find any resource on the net which might help me identify the problem ,I am posting this for the second time . Can there be any difference in session handling when tomcat is run in unix and Windows. Any inputs will really help me solve this production problem Thanks and Regards Mukund
RE: SESSION PROBLEM in UNIX
hi, Thank you for your reply and suggestion . I have only one user and one browser window and I get this problem . I also like to mention that in the starting of the JSP if I added a line of code like session = request.getSession(false), then I don't get this problem at all .But I am not able to understand why access to the session variable gives exception suddenly after some refresh if I don't do this.Also I checked the codes , no session invalidation is done nor a new session is created anywhere. Thanks and Regards Mukund -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 2:24 AM To: 'Tomcat Users List' Subject: RE: SESSION PROBLEM in UNIX Hi, How about implementing HttpSessionListener so that you know when your session is getting created and destroyed? Also do you have multiple users running the same jsp? If you do, you may want to synchronize that block of code. Hope this helps:). -Yan -Original Message- From: MUKUND Premchander [mailto:[EMAIL PROTECTED] Sent: April 14, 2004 07:41 To: Tomcat Users List Subject: SESSION PROBLEM in UNIX Hi, I have a jsp page which is refreshed atuomatically every 10 seconds.I get and put values in the session by using the implicit session variable . Everything works fine for say 2-3 mins after that the implicit session becomes null and throws a null pointer exception. I get a null pointer exception and session is printed as null but even the if block (session == null) is not executed . I printed the value of request.getSession(false);.This gives me session object ,where as the implicit session does not have this after many refresh interval During the first few refreshes both have the same value. Also note that this runs fine in Windows ,I get this problem only in UNIX . I use tomcat 3.2 in unix and view using IE in windows I tried in tomcat 4 also I still get the same exception FIND below the code in JSP try{ if (session == null){ System.out.println(session is null:::); } System.out.println(session3:::+session.toString()); if (session.isNew()) { System.out.println(HI); session.setAttribute(BPRealtimeConstants.C_JPM_SESSION_FAIL_ID,failed) ; response.setHeader(Refresh,1; URL=/MCOne/BP/index.html); return; } } catch (Exception e) { System.out.println(I am in exception ); System.out.println(I am after hello +request.getSession(false)); e.printStackTrace(); } I am unble to find any resource on the net which might help me identify the problem ,I am posting this for the second time . Can there be any difference in session handling when tomcat is run in unix and Windows. Any inputs will really help me solve this production problem Thanks and Regards Mukund - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SESSION VARIABLE BECOMES NULL AFTER SOME REFRESH
Hi, I have a jsp page which is refreshed atuomatically every 10 seconds.I get and put values in the session by using the implicit session variable . Everything works fine for say 2-3 mins after that the session becomes null and throws a null pointer exception. IN the try block I even have a code as try { if (session == null || session.isNew()) { //do something } else { //do otherwise } }catch(Exception e ) { //print stack trace and value of session } I get a null pointer exception and session is preinted as null but even the if block is noit executed . I printed the value of request.getSession(false);.This gives me session object ,where as the implicit session does not have this after many refresh interval . During the first few refresh both have the same value. Also note that this runs fine in Windows ,I get this problem only in UNIX . I use tomcat 3.2 in unix and view using IE in windows Please help me out as to where I am going wrong . thanks and Regards Mukund
RE: SESSION VARIABLE BECOMES NULL AFTER SOME REFRESH
Hi , Thank you for your reply . Guess I did not put my qn the right way . In the code block if (session == null || session.isNew() I do not access any session variables Actually I just redirect the page. I am unable to understand why the implicit session variable becomes null suddenly after some refresh and why this occurs only when tomcat runs in UNIX .I don't get this problem in Windows Thanks and Regards Mukund -Original Message- From: Peter Guyatt [mailto:[EMAIL PROTECTED] Sent: Monday, April 12, 2004 4:10 PM To: Tomcat Users List Subject: RE: SESSION VARIABLE BECOMES NULL AFTER SOME REFRESH Hi There, The NPE is coming from the { if (session == null || session.isNew()) } since even if session is null then you are still trying to call a method of session. a safer alternative would be if (session == null) { //error } else { if (session.isNew()) { } else { } } Thanks Pete -Original Message- From: MUKUND Premchander [mailto:[EMAIL PROTECTED] Sent: 12 April 2004 11:19 To: [EMAIL PROTECTED] Subject: SESSION VARIABLE BECOMES NULL AFTER SOME REFRESH Hi, I have a jsp page which is refreshed atuomatically every 10 seconds.I get and put values in the session by using the implicit session variable . Everything works fine for say 2-3 mins after that the session becomes null and throws a null pointer exception. IN the try block I even have a code as try { if (session == null || session.isNew()) { //do something } else { //do otherwise } }catch(Exception e ) { //print stack trace and value of session } I get a null pointer exception and session is preinted as null but even the if block is noit executed . I printed the value of request.getSession(false);.This gives me session object ,where as the implicit session does not have this after many refresh interval . During the first few refresh both have the same value. Also note that this runs fine in Windows ,I get this problem only in UNIX . I use tomcat 3.2 in unix and view using IE in windows Please help me out as to where I am going wrong . thanks and Regards Mukund - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SHUTDOWN OF TOMCAT 4.1 .29 and LOAD-ON-START-UP
Hi , Find below the message on the console when tomcat shutdown is done . My console hangs at this point Feb 14, 2004 3:56:34 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.29 Feb 14, 2004 3:56:36 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=t e Feb 14, 2004 3:56:36 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnN l=true Feb 14, 2004 3:56:37 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', ret nNull=true Feb 14, 2004 3:56:42 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Feb 14, 2004 3:56:42 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 Feb 14, 2004 3:56:42 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/234 config=E:\MCOne\MCOneServer\bin\..\conf\jk2. operties Stopping service Tomcat-Standalone Feb 14, 2004 3:57:02 PM org.apache.coyote.http11.Http11Protocol destroy INFO: Stoping http11 protocol on 8080 Catalina:type=ThreadPool,name=http8080 I am still not able to comprehend why this does not occur when i dont use load on start up . Thanks and Regards Mukund -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 7:36 PM To: Tomcat Users List Subject: RE: SHUTDOWN OF TOMCAT 4.1 .29 and LOAD-ON-START-UP Howdy, I have interrupted and destoryed the thread in the destroy method but the shutdown does not happen completely and the console hangs . I am not able to understand why I don't get this problem when I do not use load on start up for the servlet. It's strange indeed ;) Tomcat doesn't do anything different when you specify load-on-startup for a servlet except construct and initialize an instance of it. The lifecycle is exactly the same, no special processing. If you send the JVM a SIGQUIT after trying to shut it down, i.e. when it's hung, what active threads are showing? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SHUTDOWN OF TOMCAT 4.1 .29 and LOAD-ON-START-UP
Hi , I am working with tomcat4.1.29 standalone .I need to run it on UNIX,Linux and Windows . My webapplication has a servlet which loads on startup .This servlet starts a thread When i shutdown tomcat using shutdown.bat in windows or using the .sh in unix ,the tomcat console does not close . When i remove the load on startup and start the application via the browser to start the thread and then issue shutdown .bat , tomcat shuts down without hanging Can you please give a solution to get me out of this problem in both Windows and Unix . Your immediate response will be of immese help I also tried stopping the thread in the destroy method of the servlet but still the shutdown hangs ..(the port 8080 is released thou ) Thanks and Regards Mukund
RE: SHUTDOWN OF TOMCAT 4.1 .29 and LOAD-ON-START-UP
Hi, Thank you for your inputs. I have interrupted and destoryed the thread in the destroy method but the shutdown does not happen completely and the console hangs . I am not able to understand why I don't get this problem when I do not use load on start up for the servlet. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 7:19 PM To: Tomcat Users List Subject: RE: SHUTDOWN OF TOMCAT 4.1 .29 and LOAD-ON-START-UP Howdy, Make sure you interrupt and/or destroy your thread properly under all circumstances. The destroy method of a servlet is one good place to do this, so maybe there's a bug in the code you put there? Yoav Shapira Millennium ChemInformatics -Original Message- From: MUKUND Premchander [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 7:52 AM To: [EMAIL PROTECTED] Subject: SHUTDOWN OF TOMCAT 4.1 .29 and LOAD-ON-START-UP Hi , I am working with tomcat4.1.29 standalone .I need to run it on UNIX,Linux and Windows . My webapplication has a servlet which loads on startup .This servlet starts a thread When i shutdown tomcat using shutdown.bat in windows or using the .sh in unix ,the tomcat console does not close . When i remove the load on startup and start the application via the browser to start the thread and then issue shutdown .bat , tomcat shuts down without hanging Can you please give a solution to get me out of this problem in both Windows and Unix . Your immediate response will be of immese help I also tried stopping the thread in the destroy method of the servlet but still the shutdown hangs ..(the port 8080 is released thou ) Thanks and Regards Mukund This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]