Re: WebappClassLoader: Lifecycle error : CL stopped
Hello, Yes, I see it in the Javadoc. Here's my confusion. I am not 'using' Log4j-1.2.8 at all! To implement the logic you talk of, I would have to get a JAR from the Apache web site? Even though I am not using Log4j whatsoever on my app, is this necessary? I dont know what class I was referencing before (my IDE is down), but I am looking on the net for a JAR that might contain the desired class. Please advise if I am marking up the wrong tree! thanks G. Hmm... Take another look at LogManager's source code. I absolutely, 100% guarantee that LogManager.shutdown() exists. You are using Log4j-1.2.8, right? I know it exists there and I think it has been around for a while anyway (but can't be sure). Anyway, the proof is in the Javadoc http://logging.apache.org/log4j/docs/api/org/apache/log4j/LogManager.html#shutdown() Jake G. This has to do with Log4j. Make sure you set up a servlet context listener and do LogManager.shutdown() in the contextDestroyed() method. This will take care of your troubles. Jake At 02:13 AM 3/16/2004 +, you wrote: Hello all, Can anyone shed some light on the above error please? On the web, I saw it often associated with NoClassDefFoundError, and something called DOMConfigurator. May app does indeed parse XML (JDom and Nano XML). Is this message linked to an error possibly residing in my XML parsing? I also see that it is associated with the stop() method on the WebappClassLoader'. But I am not calling such a method. Any info appreciated G. - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
Re: WebappClassLoader: Lifecycle error : CL stopped
I have put down to the method not found thing to I my importing java.util.logging.LogManager! I have since acquired the JAR from Apache.org, implemented: public void contextDestroyed(ServletContextEvent event) { org.apache.log4j.LogManager.shutdown(); } in a servlet implementing ServletContextListener. So fingers crossed. I still dont know why this error might be thrown, and resolved by this, when I am not using log4j! (I am using incidentally using the org.apache.commons.logging stuff) many thanks G. - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
Re: WebappClassLoader: Lifecycle error : CL stopped
Hi, Thank you for that, and excuse my delay in responding. I tried what you suggested, but found the LogManager class did not contain such a method. It did have one method to speak of - getLogManager() which returns an instance of LogManager, but that also has no shutdown method. I found reset(): LogManager.getLogManager().reset(); I am using JDK 1.4.2_03. How might I sort this hassle out please? It seems to be happening very infrequently, but is definately a show stopper! thanks G. This has to do with Log4j. Make sure you set up a servlet context listener and do LogManager.shutdown() in the contextDestroyed() method. This will take care of your troubles. Jake At 02:13 AM 3/16/2004 +, you wrote: Hello all, Can anyone shed some light on the above error please? On the web, I saw it often associated with NoClassDefFoundError, and something called DOMConfigurator. May app does indeed parse XML (JDom and Nano XML). Is this message linked to an error possibly residing in my XML parsing? I also see that it is associated with the stop() method on the WebappClassLoader'. But I am not calling such a method. Any info appreciated G. - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
WebappClassLoader: Lifecycle error : CL stopped
Hello all, Can anyone shed some light on the above error please? On the web, I saw it often associated with NoClassDefFoundError, and something called DOMConfigurator. May app does indeed parse XML (JDom and Nano XML). Is this message linked to an error possibly residing in my XML parsing? I also see that it is associated with the stop() method on the WebappClassLoader'. But I am not calling such a method. Any info appreciated G. - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
session-timeout
Hi all, I am experiencing problems with memory management. I load up my app in 10 or 15 browsers where various stuff is put on a session each time. In Windows Task Manager I can see java.exe incrementing by an amount of memory for each browser/app opened. No problem there. In my web.xml I define session-timeout to be 2 minutes. Why after an inactive period of time exceeding 2 minutes, does the memory being used not appear to lessen please? In fact, even I close all browsers the memory being consumed remains at its peak...until a server restart is necessary. thanks for your input G. - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
RE: session-timeout
Hi and thank you to all concerned, Before I close, and consult the doco you talk of (URLs welcome), can you exaplain what you mean by whoever implements the JVM? In this instance, are we talking about Apache/TC developer team? thnx G. Yes, this is correct. The important point, however, is that memory management is up to whoever implements the JVM. Sun does it one way, another vendor could do it another. This can, of course, also vary between OS's as well. justin - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
Re: reclaiming memory problem PS
Hi, Its Gerald (long dull story), but you can call me anything you like. I can now say with some surety, that the forward is not the problem. In a Struts action, the null session is being picked up and the mapping.findForward(a_file.jsp); (a Struts forward method) is forwarding on to the specified resource. Great youd think. But no. It seems to forward to the specified resource (execution is being logged, System.out.println(some text); is written to the console etc), but in the client, nothing happens, regardless of which method is used to forward. Just the broken original app remains. I have forwarded to a simple JSP, which again logs that its being executed. But again nothing is loaded in to the browser. Do you have any ideas, as I am fast running out of them. I will consult the Struts list, but am yet unsure it is a Struts issue/question. Many thanks Gerald. Jerald (or is it Gerald -- your email address and 'name' don't match), Now sessionStatus is getting caught fine, but when I try and redirect to a JSP after that, nothing happens. I originally tried mapping.findForward (Struts), response.sendRedirect and forwarding using RequestDispatcher. I have tried getSession(true) and false. What implications (if any) does session timeout have in terms of forwarding after the session is invalidated? Session state should have nothing to do with your ability to forward, etc. Can you post thesnippet of code where you try to redirect the user? -chris ATTACHMENT part 2 application/pgp-signature name=signature.asc - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
Re: reclaiming memory problem PS
Hello, and thank you for that, Yes, I am timing the session out and trying to handle the result. I have: HttpSession objSession = request.getSession(true); String sessionStatus = (String) objSession.getAttribute(sessionStatus); if (sessionStatus == null) { forward off to JSP } Now sessionStatus is getting caught fine, but when I try and redirect to a JSP after that, nothing happens. I originally tried mapping.findForward (Struts), response.sendRedirect and forwarding using RequestDispatcher. I have tried getSession(true) and false. What implications (if any) does session timeout have in terms of forwarding after the session is invalidated? Many thanks G. Jerald, session.setMaxInactiveTimeout(-1); Yeah, this is a bad idea. The session will never go away by itself. This *requires* the user to press a logout button, and for you to explicitly call session.invalidate(). Users frequently do not log themselves out, and their sessions will never die. You will eventually run out of memory. If you need a long timeout, just make it really long (like a couple of hours). There's usually no good reason to make it -1. PS is the session time out linked wirth inactivity? My session attribute only persists as long as I am using the app. That's exactly how the 'inactive' timeout works. -chris ATTACHMENT part 2 application/pgp-signature name=signature.asc - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
Re: reclaiming memory problem
Hello and thank you for that (all), Originally, request.getSession().setMaxInactiveInterval(-1); was set. After some deliberation (not a lot), I opted for setting the session to time out, defined in web.xml: session-config session-timeout1/session-timeout /session-config After defining the above, setting a value in the session, restarting TC, and running my app, why does it continue to persist well after the session-timeout has elapsed? When the session is timed out, is the current session invalidated and a new one created? Hence all fields set in the original should be null? (the true attribute (below) persists well past one minute) Thanks again G. Code: (servlet) request.getSession().setAttribute(sessionStatus, true); (JSP) String sessionStatus = (String) request.getSession().getAttribute(sessionStatus); out.println(alert('sessionStatus: + sessionStatus + ');); 1. Reduce the session timeout. 2. Store less stuff in the session so that it's not such a memory drain. 3. Beg your customers to logout before leaving your app. ;) - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
Re: reclaiming memory problem PS
PS is the session time out linked wirth inactivity? My session attribute only persists as long as I am using the app. G. - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
reclaiming memory problem
Hello, How might I reclaim memory, e.g after a session expires when a client browser is closed down? Predicament: as I open up new client windows, the memory (viewed in Windows task manager) creeps up with each new window opened. The app that is loaded creates a session and stores various objects on it. But, when I close down a client window, the memory consumption remains at it's peak (and climbs with each successive new client opened) In other words, memory consumption increments but never decrements, necessitating a server bounce at unacceptable frequency. Why are the resources not being reclaimed, and how might I gently encourage resource reclamation? I fear System.gc() is not the answer here. Many thanks all for all input G. - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
Re: RE : encodeURL / jsessionid
Hi, Thanks for that. can you tell me then the purpose of jessionid - (methods encodeURL and getRequestedSessionId)? It seems a bit strange to pass the session around while in the session. The purpose of the original post was due to a problem persisting an object across contexts. Unfortunately for me it was 'larger' than a String and could not be appended to the URL string (unless I manually pulled all fields from the object and passed them on the query string). Shiver. Does any one have a solution to persisting complex objects across contexts? many thanks G. Yup, it used to be in the spec and implemented in j2ee container. But it's now gone since considered to be bad design. You have no direct solution to share sessions between webapps. You can only share data through an external DataSource both webapp are able to read/write to (file, db, ejb, etc.) Or you consider this is the same application and you merge sources to build a unique webapp... Of course if your only concern is about sharing login validation, any sso framework will do the job, tomcat provides one. Regards Laurent - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
Re: encodeURL / jsessionid
That was my first move, but it was null G. Antonio_Fiol_Bonnín [EMAIL PROTECTED] wrote: %= request.getSession().getAttribute(id); % Jerald Powel wrote: Hi, I wish to maintain state across contexts and have in app1: app2 when app2 is loaded the jsessionid is visible in the address bar: http://localhost:8086/app2/index.jsp;jsessionid=7DD63005E4142E8C75A2E75CBAC0534 Now what do I do with it? How do I access data set on the session on the previous context? Thanks a lot G. ATTACHMENT part 2 application/x-pkcs7-signature name=smime.p7s - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
RE: encodeURL / jsessionid
Hi, app1 and app2 are two applications under a single instance of TC, with different contexts (defined in the server.xml). http://localhost:8080/app1 http://localhost:8080/app2 I wish to persist data when linking across the two. I was under the impression that by using encodeURL or getRequestedSessionId(), and acquiring the session ID, I could accomplish this? Please instruct me otherwise. regards G. when you say 'app1' and 'app2', what do you mean? Sessions are not shared between two different web-apps. -Original Message- From: Jerald Powel [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 3:46 AM To: Tomcat Users List Subject: Re: encodeURL / jsessionid That was my first move, but it was null G. Antonio_Fiol_Bonnín wrote: Jerald Powel wrote: Hi, I wish to maintain state across contexts and have in app1: app2 when app2 is loaded the jsessionid is visible in the address bar: http://localhost:8086/app2/index.jsp;jsessionid=7DD63005E4142 E8C75A2E75 CBAC0534 Now what do I do with it? How do I access data set on the session on the previous context? Thanks a lot G. - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
Memory leak across contexts?
Hello, I have 4 apps with different contexts running under the one instance of Tomcat. They run fine, but progessively get slower and slower until a server bounce is necessary. After that point, they run fine until they start to be become progressively slower etc. The apps all link to each other, after the session is inavalidated (1 session per app). Does any one have experience of a perfomance hit when swapping between contexts/sessions? Each session is not held within a collection. thanks G. - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
encodeURL / jsessionid
Hi, I wish to maintain state across contexts and have in app1: % request.getSession().setAttribute(id,2004073258); % a href=%= response.encodeURL(../app2/index.jsp) %app2/a when app2 is loaded the jsessionid is visible in the address bar: http://localhost:8086/app2/index.jsp;jsessionid=7DD63005E4142E8C75A2E75CBAC0534 Now what do I do with it? How do I access data set on the session on the previous context? Thanks a lot G. - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
RTFM
Hi, Now I have your attention, will someone tell me if it is possible to forward control (either by JSP or Servlet) from one context to another, in the same browser window? i.e: forward from http://locahost:8080/app1/... to http://locahost:8080/app2/... in the same window (IE). It is either so glaringly obvious that no one deems an answer worthwhile (RTFM), or so really really difficult, and no one knows how do this. Surely not. Either way I need to know. A yes or no will suffice, is it possible? If it is, any further direction after that is of course appreciated! Gerald. P.S I am using Apache Tomcat 4.0.6, and have found no doco on this - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
RE: RTFM
Hi, Yes, I have tried all manner of things - client and server. The problem is that while the desired destination URL is oresent in the address bar, the session remains from the original. Hence a mutation with various error messages of the first can be seen. G. Have you tried using JavaScript. The window.location = http://localhost:8080/app2 may work. Allen -Original Message- From: Jerald Powel [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 4:11 PM To: Tomcat Users List Subject: RTFM Hi, Now I have your attention, will someone tell me if it is possible to forward control (either by JSP or Servlet) from one context to another, in the same browser window? i.e: forward from http://locahost:8080/app1/... to http://locahost:8080/app2/... in the same window (IE). It is either so glaringly obvious that no one deems an answer worthwhile (RTFM), or so really really difficult, and no one knows how do this. Surely not. Either way I need to know. A yes or no will suffice, is it possible? If it is, any further direction after that is of course appreciated! Gerald. P.S I am using Apache Tomcat 4.0.6, and have found no doco on this - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now This message may contain proprietary or confidential company information. Any unauthorized use or disclosure is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
RE: RTFM
yes: request.getSession().invalidate(); String page = /app2/index.jsp?userid=aname response.sendRedirect(page); //RequestDispatcher rd = request.getRequestDispatcher(page); //rd.forward(request, response); using the RequestDispatcher gets the same results. G. Keshav Sarin [EMAIL PROTECTED] wrote: Have you tried clearing the session before redirecting? [EMAIL PROTECTED] 01/14/04 03:41PM Hi, Yes, I have tried all manner of things - client and server. The problem is that while the desired destination URL is oresent in the address bar, the session remains from the original. Hence a mutation with various error messages of the first can be seen. G. Have you tried using JavaScript. The window.location = http://localhost:8080/app2 may work. Allen -Original Message- From: Jerald Powel [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 4:11 PM To: Tomcat Users List Subject: RTFM Hi, Now I have your attention, will someone tell me if it is possible to forward control (either by JSP or Servlet) from one context to another, in the same browser window? i.e: forward from http://locahost:8080/app1/... to http://locahost:8080/app2/... in the same window (IE). It is either so glaringly obvious that no one deems an answer worthwhile (RTFM), or so really really difficult, and no one knows how do this. Surely not. Either way I need to know. A yes or no will suffice, is it possible? If it is, any further direction after that is of course appreciated! Gerald. P.S I am using Apache Tomcat 4.0.6, and have found no doco on this - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now This message may contain proprietary or confidential company information. Any unauthorized use or disclosure is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
RE: RTFM
in traditional fashion, the subject was related to the contents of body of the email. George Sexton [EMAIL PROTECTED] wrote:I generally don't think it is required to resort to things like this to get our attention. -Original Message- From: Jerald Powel [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 3:11 PM To: Tomcat Users List Subject: RTFM Hi, Now I have your attention, will someone tell me if it is possible to forward control (either by JSP or Servlet) from one context to another, in the same browser window? i.e: forward from http://locahost:8080/app1/... to http://locahost:8080/app2/... in the same window (IE). It is either so glaringly obvious that no one deems an answer worthwhile (RTFM), or so really really difficult, and no one knows how do this. Surely not. Either way I need to know. A yes or no will suffice, is it possible? If it is, any further direction after that is of course appreciated! Gerald. P.S I am using Apache Tomcat 4.0.6, and have found no doco on this - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
RE: RTFM
Both! The answer to my query may well lie in my ignorance and I was willing ot accept this, hence the subject title. But I am guilty of hoping it stired more of an interest than a previous post onthe same topic, with different subject (no replies)...and I still dont have the answer! I guess it just shows how much perceptions can vary with Email. I read your first paragraph and formed the impression that the subject was designed to generate additional interest and to work to prioritize your request for help. -Original Message- From: Jerald Powel [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 5:33 PM To: Tomcat Users List Subject: RE: RTFM in traditional fashion, the subject was related to the contents of body of the email. George Sexton wrote:I generally don't think it is required to resort to things like this to get our attention. -Original Message- From: Jerald Powel [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 3:11 PM To: Tomcat Users List Subject: RTFM Hi, Now I have your attention, will someone tell me if it is possible to forward control (either by JSP or Servlet) from one context to another, in the same browser window? i.e: forward from http://locahost:8080/app1/... to http://locahost:8080/app2/... in the same window (IE). It is either so glaringly obvious that no one deems an answer worthwhile (RTFM), or so really really difficult, and no one knows how do this. Surely not. Either way I need to know. A yes or no will suffice, is it possible? If it is, any further direction after that is of course appreciated! Gerald. P.S I am using Apache Tomcat 4.0.6, and have found no doco on this - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
RE: RTFM
OK, what I am trying to do is simple in theory. I have loaded in the browser an app - app1/. From a servlet in app1 I want to simply redirect to another app (app2 - different context) - to be loaded in the same browser window. By which means I forward I'm not fussed. Currently I am using RequestDispatcher or response.sendRedirect from a servlet in app1. But in the window, app2 appeqars to be loading in the address bar, but app1 is in fact loaded but with broken image links/error messages etc. So it appears to looking in the right place...just for the wrong things! I have checked docBase for each context in server.xml - they are fine. Each app runs fine if loaded from new windows, but when I try to link the two togethertrouble. Any thoughts please? I am ready to throw in the towel! G. Justin Ruthenbeck [EMAIL PROTECTED] wrote: It'd difficult from your poast to figure out what you're trying to accomplish. The phrase forward control from one context to another is quite ambiguous: * Are you trying to create a response that includes output from resources from multiple contexts? * While using one app, do you want to direct the user to pages in a different app? * Are you talking client side or server side? * Can you give us the scenario you're addressing? Often people ask questions that aren't phrased properly, so it's important to understand exactly what you're trying to do before going off and suggesting one of a hundred different possible answers. justin BTW: I would suggest trying not to be guilty of stiring interest any more. It's not looked fondly upon by those who can most help you. Your previous post was not answered because it was ambiguous, so it'd be best to include copious information from the beginning (so you don't have to wait so long for a reply or cause subject pollution). At 04:45 PM 1/14/2004, you wrote: Both! The answer to my query may well lie in my ignorance and I was willing ot accept this, hence the subject title. But I am guilty of hoping it stired more of an interest than a previous post onthe same topic, with different subject (no replies)...and I still dont have the answer! I guess it just shows how much perceptions can vary with Email. I read your first paragraph and formed the impression that the subject was designed to generate additional interest and to work to prioritize your request for help. -Original Message- From: Jerald Powel [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 5:33 PM To: Tomcat Users List Subject: RE: RTFM in traditional fashion, the subject was related to the contents of body of the email. George Sexton wrote:I generally don't think it is required to resort to things like this to get our attention. -Original Message- From: Jerald Powel [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 3:11 PM To: Tomcat Users List Subject: RTFM Hi, Now I have your attention, will someone tell me if it is possible to forward control (either by JSP or Servlet) from one context to another, in the same browser window? i.e: - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
Re: RTFM
no, I'm not returning anything from the servlet. I am now telling the servlet to forward to a JSP then use a javascript window.location.replace(page). SAME! Tell me, is a fully formed URL necessary here? e.g: window.location.replace(http://lalala:8080/app2/index.jsp); or response.sendRedirect(http://lalala:8080/app2/index.jsp;); to switch between contexts? No that I can sucessfully forward to the destination app with ANY URL format! thanks for your efforts G. Jerry Ford [EMAIL PROTECTED] wrote: Okay, from this detailed description---which sounds to me like it should work---here's my SWAG (silly wild-ass guess): After your response.sendRedirect() in the servlett, do you, um, well, include an explicit return statement? Jerry Jerald Powel wrote: OK, what I am trying to do is simple in theory. I have loaded in the browser an app - app1/. From a servlet in app1 I want to simply redirect to another app (app2 - different context) - to be loaded in the same browser window. By which means I forward I'm not fussed. Currently I am using RequestDispatcher or response.sendRedirect from a servlet in app1. But in the window, app2 appeqars to be loading in the address bar, but app1 is in fact loaded but with broken image links/error messages etc. So it appears to looking in the right place...just for the wrong things! I have checked docBase for each context in server.xml - they are fine. Each app runs fine if loaded from new windows, but when I try to link the two togethertrouble. Any thoughts please? I am ready to throw in the towel! G. Justin Ruthenbeck wrote: It'd difficult from your poast to figure out what you're trying to accomplish. The phrase forward control from one context to another is quite ambiguous: * Are you trying to create a response that includes output from resources from multiple contexts? * While using one app, do you want to direct the user to pages in a different app? * Are you talking client side or server side? * Can you give us the scenario you're addressing? Often people ask questions that aren't phrased properly, so it's important to understand exactly what you're trying to do before going off and suggesting one of a hundred different possible answers. justin BTW: I would suggest trying not to be guilty of stiring interest any more. It's not looked fondly upon by those who can most help you. Your previous post was not answered because it was ambiguous, so it'd be best to include copious information from the beginning (so you don't have to wait so long for a reply or cause subject pollution). At 04:45 PM 1/14/2004, you wrote: Both! The answer to my query may well lie in my ignorance and I was willing ot accept this, hence the subject title. But I am guilty of hoping it stired more of an interest than a previous post onthe same topic, with different subject (no replies)...and I still dont have the answer! I guess it just shows how much perceptions can vary with Email. I read your first paragraph and formed the impression that the subject was designed to generate additional interest and to work to prioritize your request for help. -Original Message- From: Jerald Powel [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 5:33 PM To: Tomcat Users List Subject: RE: RTFM in traditional fashion, the subject was related to the contents of body of the email. George Sexton wrote:I generally don't think it is required to resort to things like this to get our attention. -Original Message- From: Jerald Powel [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 3:11 PM To: Tomcat Users List Subject: RTFM Hi, Now I have your attention, will someone tell me if it is possible to forward control (either by JSP or Servlet) from one context to another, in the same browser window? i.e: - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
linking between contexts
Hi, Relating to a similar recent post, how do I configure Tomcat so that I can link between contexts, to appear in the same browser? Many thanks Gerald. - Yahoo! Messenger - Communicate instantly...Ping your friends today! Download Messenger Now
Re: context
Hi Adam, It's sorted. To cut a long story short, the same people who 'configured' it so that webapps was completey separated from Tomcat, and removed the examples, also decided to use a renamed server.xml. Once I figured that out, and added the context, it ran fine. A joy of being a contractor? Perhaps you can answer me this to close..why in my experience was it not necessary to add a context for an app to run successfully, but on this occasion it was? many thanks G. Hi Jerald, I'm sorry but I've never had a Status 500 - no context configured. There must be something freaky in your context configuration. Is the manager app running? That is normally at localhost:8080/manager/html What does that say you have running in terms of contexts? What directories do you have in your webapps dir and what contexts do you have configured in conf/server.xml and conf/Catalina/localhosts/*.xml? BTW what TC version are you running? Adam On 12/11/2003 01:19 AM Jerald Powel wrote: Yes, they are all (3) running on different ports. All of them running apps quite happily. This particular one is running a single WAR OK, and my app - not OK. (HTTP Status 500 - No Context configured to process this request). I haven't played with the root context. Manager app?! Like I said, all apps bar the two I talk of have been removed. On looking, there is NO root context! (TC was configured by a third party before my arival) thanks for your assistance G. Jerald, what happens then? You just get a message saying 'requested resource not available'? Presumably your different tomcats are on different ports and don't interfere with each other? Also can you run the manager app? What does it say is running? You say you removed all other contexts - so your app is running as the root context? I believe you must have a root context. Adam On 12/09/2003 11:13 PM Jerald Powel wrote: Sorry for any impropriety re the hijacking! I have a WAR running successfully under webapps. All other examples etc have been removed. I am running several instances/versions of Tomcat on the same box, and have no CATALINA_HOME env. variable defined. I am trying to port my app from the one version to the other. The WAR runs, my app doesn't! Thanks for any help G. Prostrate yourself to a tongue lashing for hijacking someone else's thread as well! You should start a new thread when you post a new topic. Unfortunately you haven't provided enough info. Start a new thread and include details like your CATALINA_HOME and CATALINA_BASE variables and whether your root, manager jsp-examples contexts are accessible. -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - BT Yahoo! Broadband - Save £80 when you order online today. Hurry! Offer ends 21st December 2003. The way the internet was meant to be.
Re: context
Hi, Yes, they are all (3) running on different ports. All of them running apps quite happily. This particular one is running a single WAR OK, and my app - not OK. (HTTP Status 500 - No Context configured to process this request). I haven't played with the root context. Manager app?! Like I said, all apps bar the two I talk of have been removed. On looking, there is NO root context! (TC was configured by a third party before my arival) thanks for your assistance G. Jerald, what happens then? You just get a message saying 'requested resource not available'? Presumably your different tomcats are on different ports and don't interfere with each other? Also can you run the manager app? What does it say is running? You say you removed all other contexts - so your app is running as the root context? I believe you must have a root context. Adam On 12/09/2003 11:13 PM Jerald Powel wrote: Sorry for any impropriety re the hijacking! I have a WAR running successfully under webapps. All other examples etc have been removed. I am running several instances/versions of Tomcat on the same box, and have no CATALINA_HOME env. variable defined. I am trying to port my app from the one version to the other. The WAR runs, my app doesn't! Thanks for any help G. Prostrate yourself to a tongue lashing for hijacking someone else's thread as well! You should start a new thread when you post a new topic. Unfortunately you haven't provided enough info. Start a new thread and include details like your CATALINA_HOME and CATALINA_BASE variables and whether your root, manager jsp-examples contexts are accessible. -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - BT Yahoo! Broadband - Save £80 when you order online today. Hurry! Offer ends 21st December 2003. The way the internet was meant to be.
Re: context
Hi, Sorry for any impropriety re the hijacking! I have a WAR running successfully under webapps. All other examples etc have been removed. I am running several instances/versions of Tomcat on the same box, and have no CATALINA_HOME env. variable defined. I am trying to port my app from the one version to the other. The WAR runs, my app doesn't! Thanks for any help G. Prostrate yourself to a tongue lashing for hijacking someone else's thread as well! You should start a new thread when you post a new topic. Unfortunately you haven't provided enough info. Start a new thread and include details like your CATALINA_HOME and CATALINA_BASE variables and whether your root, manager jsp-examples contexts are accessible. Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - BT Yahoo! Broadband - Save £80 when you order online today. Hurry! Offer ends 21st December 2003. The way the internet was meant to be.
LifecycleException
Hi, Can someone please expand on a log entry LifecycleException (more below), or direct me towards Exception documentation? Thanks alot G LifecycleException: Container StandardContext[/TEMPLATE] has not been started at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643) at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1036).. - BT Yahoo! Broadband - Save £80 when you order online today. Hurry! Offer ends 21st December 2003. The way the internet was meant to be.
context
Hello, Prostrating my self to a tongue lashing, can any one tell me why I am getting the 500 error: HTTP Status 500 - No Context configured to process this request ? In my server.xml I have defined: Context path=/myapp docBase=myapp debug=0 reloadable=true crossContext=true / where it resides: c:/ /tomcat/webapps/myapp/ .etc Appreciated G - BT Yahoo! Broadband - Save £80 when you order online today. Hurry! Offer ends 21st December 2003. The way the internet was meant to be.
context
Hello, Prostrating my self to a tongue lashing, can any one tell me why I am getting the 500 error: HTTP Status 500 - No Context configured to process this request ? In my server.xml I have defined: Context path=/myapp docBase=myapp debug=0 reloadable=true crossContext=true / where it resides: c:/ /tomcat/webapps/myapp/ .etc Appreciated G - BT Yahoo! Broadband - Save £80 when you order online today. Hurry! Offer ends 21st December 2003. The way the internet was meant to be.
Enforce no cache
Hello, How do I enforce no caching for a particular context under TC? Sites/doco welcome G. - BT Yahoo! Broadband - Save £80 when you order online today. Hurry! Offer ends 21st December 2003. The way the internet was meant to be.
Tomcat and JBoss
Hello, Can I install and have running Tomcat and JBoss on the same box? Tomcat on J2SE and JBoss on J2EE. This will logically mean that I have 2 JREs running on one box? Unless Tomcat can be installed on J2EE? Thanks and regards J. - Want to chat instantly with your online friends? Get the FREE Yahoo!Messenger
WAR
Hello, Can anyone tell me, what is the purpose of the WAR file, how does one create / implement it? Where may I find doco about WAR please? thanks J. P.S Why WAR? What does it stand for? - Want to chat instantly with your online friends? Get the FREE Yahoo!Messenger
generate WAR
Hi and thanks, My IDE is Eclipse. Are there any users of this software on this list who can tell me if Eclipse will build a WAR and how? I have looked at the help section but found nothing related to this subject. Thanks J. WAR stands for Web Archive Resource, it is basically a .jar file containing all the files of your web-app. If you use an IDE such as NetBeans it is very easy to create, simple right click the root folder and select Generate WAR, choose your target location to save the war file to and that is it. You can then place this .war in your tomcat/webapps folder and the next time you restart Tomcat it will unpack the .war and create a default context for your web-app as well as do any initialization you may have specified in your web.xml HTH - Want to chat instantly with your online friends? Get the FREE Yahoo!Messenger
TC logfiles
Hi, I may have posted this previously, but dont think I was subscribed when I did! Enough of that..apologies if so. I am trying to differentiate Apache and Apache Tomcat in terms of the serving mechanism, and subsequent log files. Of course, Apache is a web server, and Tomcat a servlet container, but Tomcat also is a/has a web server? If Tomcat contains a web server as a seperate entity, where can (if at all) the Apache httpd.conf file be found to configure such things as the log files produced? This post relates to efforts to run Analog on multiple Tomcat log files (which it cannot currently recognize and discards). What I am really trying to say is how do I configure logfile format for Tomcat? Many thanks Jerald. - Want to chat instantly with your online friends? Get the FREE Yahoo!Messenger
TC as web server
Hello, I am trying to differentiate Apache and Apache Tomcat in terms of the serving mechanism, and subsequent log files. Of course, Apache is a web server, and Tomcat a servlet container, but Tomcat also is a/has a web server? If Tomcat contains a web server as a seperate entity, where can (if at all) the Apache httpd.conf file be found to configure such things as the log files produced? This post relates to efforts to run Analog on multiple Tomcat log files (which it cannot currently recognize). Thanks for all input Jerald. - Want to chat instantly with your online friends? Get the FREE Yahoo!Messenger