Random error while xml xsl transformation
Im getting this error randomly in the web application which does the XML-XSL transformation. Same data when reloaded exception does not occur. --error 1 1. Caused by: java.lang.ArrayIndexOutOfBoundsException: 7 = 7 2. at java.util.Vector.elementAt(Vector.java:427) 3. at gnu.xml.aelfred2.SAXDriver.startElement(SAXDriver.java:804) 4. at gnu.xml.aelfred2.XmlParser.parseElement(XmlParser.java:1037) 5. at gnu.xml.aelfred2.XmlParser.parseDocument(XmlParser.java:416) 6. at gnu.xml.aelfred2.XmlParser.doParse(XmlParser.java:167) 7. at gnu.xml.aelfred2.SAXDriver.parse(SAXDriver.java:320) 8. at gnu.xml.aelfred2.XmlReader.parse(XmlReader.java:294) 9. at org.apache.xml.dtm.ref.DTMManagerDefault.getDTM(DTMManagerDefault.java: 437) 10. at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java: 699) 11. at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java: 1284) 12. at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java: 1262) 13. at org.apache.taglibs.xtags.xslt.StyleTag.doEndTag(StyleTag.java: 157) 14. at org.apache.jsp.jsp.chart.newleafmodel.tabdetail_jsp._jspService(tabdetail_jsp.java: 698) 15. at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70 ) 16. at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 17. at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: 386) ---error 2 1. Caused by: java.lang.ArrayIndexOutOfBoundsException: 5 = 5 2. at java.util.Vector.elementAt(Vector.java:427) 3. at gnu.xml.aelfred2.SAXDriver.startElement(SAXDriver.java:804) 4. at gnu.xml.aelfred2.XmlParser.parseElement(XmlParser.java:1037) 5. at gnu.xml.aelfred2.XmlParser.parseDocument(XmlParser.java:416) 6. at gnu.xml.aelfred2.XmlParser.doParse(XmlParser.java:167) 7. at gnu.xml.aelfred2.SAXDriver.parse(SAXDriver.java:320) 8. at gnu.xml.aelfred2.XmlReader.parse(XmlReader.java:294) 9. at org.apache.xml.dtm.ref.DTMManagerDefault.getDTM(DTMManagerDefault.java: 437) 10. at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java: 699) 11. at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java: 1284) 12. at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java: 1262) 13. at org.apache.taglibs.xtags.xslt.StyleTag.doEndTag(StyleTag.java: 157) 14. at org.apache.jsp.jsp.chart.newleafmodel.tabdetail_jsp._jspService(tabdetail_jsp.java: 698) 15. at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70 ) 16. at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 17. at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: 386) 18. ... 29 more Is it anyway related to the xml parser which we configured for our webapps? Arvind S Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison
Tomcat 7 applet session problem
Hi All, Web application presently running in the tomcat 6 which has applet in it. In that applet we make a connection to server using URL class and get some data from the server after it loads. In this process we got error after updating to the tomcat 7. The problem is the session between the web application and the applet varies which runs in the same browser tab. Dont know why in tomcat 7 the applet request was considered as separate session but instead in tomcat 6 bot are considered as same session request. Is there any configuration changes for it? Arvind S Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison
Re: Fwd: frequent Class unloading/classnotfound problem
Hi Chris/All, Actually we are getting Exception-Servlet execution threw an exception Exception Cause-java.lang.NoClassDefFoundError: We are running tomcat in centos. Web app initially running fine, and in the high load time this error is happeningo some of the class files randomly. Is there any relation between max-open-files in linux and NoClassDefFoundError in runtime. Arvind S Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison On Mon, Apr 11, 2011 at 8:24 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Arvind, On 4/11/2011 2:04 AM, S Arvind wrote: Attached the screenshot of the stacktrace for additional details. This list strips most attachments, including screenshots. How about copy/paste the text? To my knowledge, Tomcat will not unload any classes other than possibly JSPs. If you are talking about a standard POJO, then Tomcat should not be interfering with them at all. Are you using RMI or some other process that involves object serialization? If you have mismatched object class versions, you can have weird things like this happen. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk2jFjQACgkQ9CaO5/Lv0PBQswCcCjygCcMGHa2icXbMuW/gPMrH W5IAnjaevcBw4w1dWJqJfch5kOcIJW6Y =3Ndh -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Fwd: frequent Class unloading/classnotfound problem
Chris, The stack trace at the error moment requestURI-/TempContext/jsp/QuickLoginAction Exception-Servlet execution threw an exception Exception Cause-java.lang.NoClassDefFoundError: com/X/hcare/actions/QuickLoginModel javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:313) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com..hcare.design.RequestContextFilter.doFilter(RequestContextFilter.java:75) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) at com..ForwardServlet.yForward.performAction(yForward.java:51) at com..ForwardServlet.yForward.doPost(yForward.java:32) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.NoClassDefFoundError: com//hcare/actions/QuickLoginModel at com..hcare.actions.QuickLoginActionNew.performAction(QuickLoginActionNew.java:120) at com..hcare.actions.QuickLoginActionNew.doPost(QuickLoginActionNew.java:57) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) ... 25 more Arvind S Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison On Thu, Apr 14, 2011 at 4:11 PM, S Arvind arvindw...@gmail.com wrote: Hi Chris/All, Actually we are getting Exception-Servlet execution threw an exception Exception Cause-java.lang.NoClassDefFoundError: We are running tomcat in centos. Web app initially running fine, and in the high load time this error is happeningo some of the class files randomly. Is there any relation between max-open-files in linux and NoClassDefFoundError in runtime. Arvind S Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison On Mon, Apr 11, 2011 at 8:24 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Arvind, On 4/11/2011 2:04 AM, S Arvind wrote: Attached the screenshot of the stacktrace for additional details. This list strips most attachments, including screenshots. How about copy/paste the text? To my knowledge, Tomcat will not unload any classes other than possibly JSPs. If you are talking about a standard POJO, then Tomcat should not be interfering with them at all. Are you using RMI or some other process that involves object serialization? If you have mismatched object class versions, you can have weird things like this happen. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk2jFjQACgkQ9CaO5/Lv0PBQswCcCjygCcMGHa2icXbMuW/gPMrH W5IAnjaevcBw4w1dWJqJfch5kOcIJW6Y =3Ndh -END PGP SIGNATURE
Fwd: frequent Class unloading/classnotfound problem
Chris, Attached the screenshot of the stacktrace for additional details. Arvind S Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison -- Forwarded message -- From: S Arvind arvindw...@gmail.com Date: Sun, Apr 10, 2011 at 12:12 PM Subject: Re: frequent Class unloading/classnotfound problem To: Tomcat Users List users@tomcat.apache.org Chris, So when the request comes it is sending 404 status or class-not-found exception. --Can you give some specifics? Assume we have a class called Sample.class, so when trying to create the object it is giving classnotfound exception. Then i have to again compile the java in the runtime itself then only it works, thou the class file are present in the classes folder packages. seems like these classes becoming invisible to tomcat by some means. So what we do is reload the context/application from the tomcat manager and then it will work fine. --Do those same requests then respond the way you expect? No until i reload the context/app in tomcat manager or compile the corresponding java file. (isreloadable=true) . Which is the main problem in the production time. --What version of Tomcat are you running? Does this happen only under certain circumstances (high load? no load? when re-deploying a JSP, etc.) or does it happen all the time? Please post a full stack trace of any exception you have encountered. tomcat 6.0.20 . Cant surely tell that its happening in high load, as we found that independent to load of the system. There are weeks this didnt happen and also in some week it will happen for 5days and in few days lot too.. so we cant able to find the meaning behind its randomness. And unfortunately i missed the stack trace which ws generated, if it occurred in this week i will mail it instantly. And till now it didnt happen in the JSP file, it only happened in servlet or plain java class. Arvind S Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison On Fri, Apr 8, 2011 at 12:41 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Arvind, On 4/7/2011 9:32 AM, S Arvind wrote: Recently in our web application deployed in tomcat, some weird problem is raising very frequently. Some of the servlet http://www.coderanch.com/forums/f-7/Servlets or class in that web app http://en.wikipedia.org/wiki/Web_app are getting unloaded. Most folks on the list have heard of servlets and web apps, but thanks for the references. So when the request comes it is sending 404 status or class-not-found exception. Can you give some specifics? So what we do is reload the context/application from the tomcat manager and then it will work fine. Do those same requests then respond the way you expect? Searched lot but cant able to find solution to this unloading or classnotfound problem. Can anyone suggest me why this is happening. What version of Tomcat are you running? Does this happen only under certain circumstances (high load? no load? when re-deploying a JSP, etc.) or does it happen all the time? Please post a full stack trace of any exception you have encountered. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk2eDE0ACgkQ9CaO5/Lv0PCXtgCfdbe3a0zEkpVch2FDDKoD6P0a zQ8AoL9OGteRqgDWY/sWbYz1I1IrSEKh =oev/ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: frequent Class unloading/classnotfound problem
Chris, So when the request comes it is sending 404 status or class-not-found exception. --Can you give some specifics? Assume we have a class called Sample.class, so when trying to create the object it is giving classnotfound exception. Then i have to again compile the java in the runtime itself then only it works, thou the class file are present in the classes folder packages. seems like these classes becoming invisible to tomcat by some means. So what we do is reload the context/application from the tomcat manager and then it will work fine. --Do those same requests then respond the way you expect? No until i reload the context/app in tomcat manager or compile the corresponding java file. (isreloadable=true) . Which is the main problem in the production time. --What version of Tomcat are you running? Does this happen only under certain circumstances (high load? no load? when re-deploying a JSP, etc.) or does it happen all the time? Please post a full stack trace of any exception you have encountered. tomcat 6.0.20 . Cant surely tell that its happening in high load, as we found that independent to load of the system. There are weeks this didnt happen and also in some week it will happen for 5days and in few days lot too.. so we cant able to find the meaning behind its randomness. And unfortunately i missed the stack trace which ws generated, if it occurred in this week i will mail it instantly. And till now it didnt happen in the JSP file, it only happened in servlet or plain java class. Arvind S Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison On Fri, Apr 8, 2011 at 12:41 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Arvind, On 4/7/2011 9:32 AM, S Arvind wrote: Recently in our web application deployed in tomcat, some weird problem is raising very frequently. Some of the servlet http://www.coderanch.com/forums/f-7/Servlets or class in that web app http://en.wikipedia.org/wiki/Web_app are getting unloaded. Most folks on the list have heard of servlets and web apps, but thanks for the references. So when the request comes it is sending 404 status or class-not-found exception. Can you give some specifics? So what we do is reload the context/application from the tomcat manager and then it will work fine. Do those same requests then respond the way you expect? Searched lot but cant able to find solution to this unloading or classnotfound problem. Can anyone suggest me why this is happening. What version of Tomcat are you running? Does this happen only under certain circumstances (high load? no load? when re-deploying a JSP, etc.) or does it happen all the time? Please post a full stack trace of any exception you have encountered. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk2eDE0ACgkQ9CaO5/Lv0PCXtgCfdbe3a0zEkpVch2FDDKoD6P0a zQ8AoL9OGteRqgDWY/sWbYz1I1IrSEKh =oev/ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
frequent Class unloading/classnotfound problem
Hi All, Recently in our web application deployed in tomcat, some weird problem is raising very frequently. Some of the servlet http://www.coderanch.com/forums/f-7/Servlets or class in that web app http://en.wikipedia.org/wiki/Web_app are getting unloaded. So when the request comes it is sending 404 status or class-not-found exception. So what we do is reload the context/application from the tomcat manager and then it will work fine. Searched lot but cant able to find solution to this unloading or classnotfound problem. Can anyone suggest me why this is happening. Arvind S Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison
Re: Want to customise the tomcat's session logic
To my knowledge, there is no path attribute in the session. Are you proposing that you add one? deploy one app in tomcat by having context xml in catalinadomainxxx.xml . When you access this app check the session u will find the path attribute with xxx in it. So... do you mean that you want to deploy one web application (into a single context), but you want to separate certain parts of the session into different areas of the webapp? yes I don't believe that deploying the same webapp multiple times into different contexts has any effect on session sharing: Tomcat will treat them as different webapps and no session sharing will occur unless you have taken other steps to share sessions between contexts. Session sharing will not occur for different context. But i need to have single context still session should not be shared. Is it possible in single context.?? Consider i have one login app, after login i track the state by session. First i login that website in single tab in browser and session was created with details in it. And in another tab or window i need to login with different username without sharing the session. But if i did this first created session was overwrite by second session. Wat i need is two different session for same webapp running under single tomcat??? IS it possible?? Arvind S Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison On Sat, Nov 7, 2009 at 7:14 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Arvind, On 11/2/2009 5:06 AM, S Arvind wrote: Basically my requirement is ability to control the session sharing in browser. Till now we maintained each application as different context but pointing to same doc-base. So different web application will be running on a same code to control the session sharing between different application. I don't believe that deploying the same webapp multiple times into different contexts has any effect on session sharing: Tomcat will treat them as different webapps and no session sharing will occur unless you have taken other steps to share sessions between contexts. But now we want to run in same context as one application but control the session sharing. So... do you mean that you want to deploy one web application (into a single context), but you want to separate certain parts of the session into different areas of the webapp? So i planned to customise session creation n management of the tomcat to our requirements to add some value to *path* attribute in session. Is this possible? To my knowledge, there is no path attribute in the session. Are you proposing that you add one? Modifying Tomcat's session management code is probably going to lead you down a path that leads to insanity: the APIs are not (officially) stable, there is no standard, etc. I suspect there is a better way to accomplish what you want to do... I just don't really understand what you want to do. Instead of speaking in generalities, why not give us a use case? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkr00RcACgkQ9CaO5/Lv0PBeqwCfQK7r/8a0jn2jiHxyLkU0ypyA uXUAn19ms08C6ydU6DvZTdg6Ep6za6at =kDId -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Want to customise the tomcat's session logic
is it possible to provide costume sessionid while creating session.? so that different time when session needs to be created i can create new sessionid and store it in cookie. Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison On Sun, Nov 8, 2009 at 5:15 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: S Arvind [mailto:arvindw...@gmail.com] Subject: Re: Want to customise the tomcat's session logic deploy one app in tomcat by having context xml in catalinadomainxxx.xml . When you access this app check the session u will find the path attribute with xxx in it. You're confusing the session with the cookie. The session is a spec-defined object in the JVM heap, whereas the cookie is the standard means of passing an id associated with the session to the client. The path information in the cookie normally reflects the URI used when the cookie was generated by the server, but it doesn't have to. Wat i need is two different session for same webapp running under single tomcat??? I don't think either the servlet spec or any browsers will support that. You'll need to generate your own set of cookies, separate from session handling. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Want to customise the tomcat's session logic
Hi Tomcat developers, Bascially my requirement is ability to control the session sharing in browser. Till now we maintained each application as differnet context but pointing to same doc-base. So different web application will be running on a same code to control the session sharing between different application . But now we want to run in same context as one application but control the session sharing. So i planned to customise session creation n management of the tomcat to our requirements to add some value to *path*attribute in session. Is this possible? Is there anyother way to solve this session sharing?? Thanks in advance. Arvind S
Re: Query timeout in dbcp
Hi Martin Chris, Thing i actually need is, if a query executed from web application then it shold not execute more then 22mins. If it execute more then that means query shold be cancelled from postgres and java should get exception on this event. Is it possible? Thanks, Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison* On Tue, Jun 2, 2009 at 2:40 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Arvind, On 6/1/2009 3:26 PM, S Arvind wrote: Is there any possibility to mention max time a query can execute from DBCP side? What do you want to happen after the timeout? The connection execute* method throws an exception? That is going to be very database-specific. Martin's response about using removeAbandoned=true is not going to help: this will only remove the connection from the connection pool... it won't interfere with its operation in any way. Is there some kind of query you can execute on the client side that will modify the connection properties? You could make that the validationQuery for your connection. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkokQ78ACgkQ9CaO5/Lv0PD8zgCgsdVaJGsaFkz50mO0nkip/uJb a3IAnA0W6Unug48rmCs94SYa6L5OkGEy =1LuH -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Query timeout in dbcp
Is there any possibility to mention max time a query can execute from DBCP side? our DB is Postgres and Container is tomcat 6. i dont want to give the timeout in postgres but need to set in application side based on differnet needs? Is it possible? -Arvind S Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison
Re: Query timeout in dbcp
Is there anyother way to specify the query execution time out while establishing connection with the help of DBCP in tomcat? -Arvind S On Tue, Jun 2, 2009 at 12:56 AM, S Arvind arvindw...@gmail.com wrote: Is there any possibility to mention max time a query can execute from DBCP side? our DB is Postgres and Container is tomcat 6. i dont want to give the timeout in postgres but need to set in application side based on differnet needs? Is it possible? -Arvind S Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison
Re: Compile JSP before the first request arrives
Thanks Martin, Solved, i pointed the different folder, so it took my entire webapps instead of my jsp content alone... * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison * On Thu, May 28, 2009 at 7:11 PM, Martin Gainty mgai...@hotmail.com wrote: the example jar is catalina-root.jar whose contents consist of: Index.list whose contents consist of JarIndex-Version: 1.0 catalina-root.jar org org/apache org/apache/jsp Manifest.mf NameOfJsp_jsp.class (packaged as org\apache\jsp\NameOfJsp_jsp.class) place your compiled class from *.jsp into web-inf/classes/org/apache/jsp/*.* and retry Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: arvindw...@gmail.com Date: Thu, 28 May 2009 15:57:31 +0530 Subject: Re: Compile JSP before the first request arrives To: users@tomcat.apache.org Hi Ghufran, The problem is not in that, problem is in http://www.rgagnon.com/javadetails/java-0414.html that u provide in previous post if i run that jsp file i am getting that stack trace... I am in tomcat 5.5 -Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison* On Thu, May 28, 2009 at 4:54 PM, Ghufran ghufra...@vopium.com wrote: Hi If your jsp can be successfully invoked at this url http://hostname.com/mywebapp/mypage.jsp Then it should also get pre compiled by invoking this url http://hostname.com/mywebapp/mypage.jsp?jsp_precompile http://hostname.com/mywebapp/mypage.jsp?jsp_precompile or try this http://hostname.com/mywebapp/mypage.jsp?jsp_precompile=true Regards Ghufran -Original Message- From: S Arvind [mailto:arvindw...@gmail.com] Sent: Thursday, May 28, 2009 3:03 PM To: Tomcat Users List Subject: Re: Compile JSP before the first request arrives Hi Ghufran, if i ran the below mentioned jsp file to compile all jsp i am getting error with this stacktrace java.lang.ClassNotFoundException: org.apache.jsp.jsp.precompile_jsp at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:63) at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:597) at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.jav a:137) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 14) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127 ) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117 ) at org.apache.catalina.core.StandardEngineValve.invoke
Context failed to load due to previous error
Recently in our Tomcat 6 , when we restart the tomcat we are getting the problem such as *Context[/] failed to load due to previous error. * listenerstart cannot be loaded , something like that. after many restarts its finally loading all the context. We are having around 100 differnt context in confCatalinadomain.com folder. What it will be the problem. How to find that previous errors. -Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison*
Re: hello world
instead of reading that tutorial try reading Head First JSP and SERVLETS. -Arvind S On Fri, May 29, 2009 at 7:14 PM, veena pandit v.kri...@gmail.com wrote: http://www.jsptut.com/ On Fri, May 29, 2009 at 9:39 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: veena pandit [mailto:v.kri...@gmail.com] Subject: Re: hello world it was chapter 1 in a web based tutorial for JSP. :-) Can you provide a link to the tutorial? I'd like to see what it says. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Compile JSP before the first request arrives
Hi Ghufran, if i ran the below mentioned jsp file to compile all jsp i am getting error with this stacktrace java.lang.ClassNotFoundException: org.apache.jsp.jsp.precompile_jsp at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:63) at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:597) at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:137) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:314) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:619) but the java class and java file is available in the correct location... i am working in linux with tomcat running in root user. so the java and class file will be also in root rights.. is there any relation between these? -Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison* On Wed, May 27, 2009 at 8:17 PM, Ghufran ghufra...@vopium.com wrote: Try this Some JSP containers (as per section 8.4.2 of the JSP 1.2 specification) support the capability of precompiling a JSP page. To precompile a JSP page, access the page with a query string of ?jsp_precompile http://hostname.com/mywebapp/mypage.jsp?jsp_precompile see more details at http://www.rgagnon.com/javadetails/java-0414.html Regards Ghufran -Original Message- From: S Arvind [mailto:arvindw...@gmail.com] Sent: Wednesday, May 27, 2009 6:31 PM To: Tomcat Users List Subject: Re: Compile JSP before the first request arrives can you give me the good docs about this.. -Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison * On Wed, May 27, 2009 at 6:23 PM, David Smith d...@cornell.edu wrote: S Arvind wrote: Is there any way to pre-compile all the jsp files, when we are deploying in the production environment? -Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison* Yes ... depends on your build environment. Most offer some means of pre-compiling the jsps to servlets. --David - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.39/2134 - Release Date: 05/25/09 18:14:00
Re: hello world
What path you gave to get that html in browser? -Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison * On Wed, May 27, 2009 at 5:48 AM, veena pandit v.kri...@gmail.com wrote: How to configure Hello.html in Tomcat? Where do I place the following file? How to access it from the server? HTML BODY Hello, world /BODY /HTML Thanks, Veena
Re: Compile JSP before the first request arrives
Hi Ghufran, The problem is not in that, problem is in http://www.rgagnon.com/javadetails/java-0414.html that u provide in previous post if i run that jsp file i am getting that stack trace... I am in tomcat 5.5 -Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison* On Thu, May 28, 2009 at 4:54 PM, Ghufran ghufra...@vopium.com wrote: Hi If your jsp can be successfully invoked at this url http://hostname.com/mywebapp/mypage.jsp Then it should also get pre compiled by invoking this url http://hostname.com/mywebapp/mypage.jsp?jsp_precompile http://hostname.com/mywebapp/mypage.jsp?jsp_precompile or try this http://hostname.com/mywebapp/mypage.jsp?jsp_precompile=true Regards Ghufran -Original Message- From: S Arvind [mailto:arvindw...@gmail.com] Sent: Thursday, May 28, 2009 3:03 PM To: Tomcat Users List Subject: Re: Compile JSP before the first request arrives Hi Ghufran, if i ran the below mentioned jsp file to compile all jsp i am getting error with this stacktrace java.lang.ClassNotFoundException: org.apache.jsp.jsp.precompile_jsp at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:63) at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:597) at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.jav a:137) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 14) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127 ) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117 ) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC onnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav a:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo rkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:689) at java.lang.Thread.run(Thread.java:619) but the java class and java file is available in the correct location... i am working in linux with tomcat running in root user. so the java and class file will be also in root rights.. is there any relation between these? -Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison* On Wed, May 27, 2009 at 8:17 PM, Ghufran ghufra...@vopium.com wrote: Try this Some JSP containers (as per section 8.4.2 of the JSP 1.2 specification) support the capability of precompiling a JSP page. To precompile a JSP page, access the page with a query string of ?jsp_precompile http://hostname.com/mywebapp/mypage.jsp?jsp_precompile see more details at http://www.rgagnon.com/javadetails/java-0414.html Regards Ghufran -Original Message- From: S Arvind [mailto:arvindw...@gmail.com] Sent: Wednesday, May 27, 2009 6:31 PM To: Tomcat Users List Subject: Re: Compile JSP before the first request arrives can you give me the good docs about this.. -Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison * On Wed, May 27, 2009 at 6:23 PM, David Smith d...@cornell.edu wrote: S Arvind wrote: Is there any way to pre-compile all the jsp files, when
Compile JSP before the first request arrives
Is there any way to pre-compile all the jsp files, when we are deploying in the production environment? -Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison*
Re: How to install Tomcat 6.0.18 0n Windows Vista Home Premium?
try starting by the bat file in bin folder. -Arvind * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison * On Sat, May 23, 2009 at 5:36 PM, a.v.v.gopalakrishna krispa...@gmail.comwrote: Application System Error, Tomcat cannot be started as service
Re: hello world
rename the file name to index.html , or change the welcome page entry in web.xml to hello.html -Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison * On Wed, May 27, 2009 at 6:23 AM, veena pandit v.kri...@gmail.com wrote: I tried placing it in a webapps directory under tomcat root. do i need to configure in web.xml? On Tue, May 26, 2009 at 8:25 PM, Hassan Schroeder hassan.schroe...@gmail.com wrote: On Tue, May 26, 2009 at 5:18 PM, veena pandit v.kri...@gmail.com wrote: How to configure Hello.html in Tomcat? Where do I place the following file? How to access it from the server? Where did you try placing it, and what makes you think that wasn't the right place? -- Hassan Schroeder hassan.schroe...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Compile JSP before the first request arrives
can you give me the good docs about this.. -Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison * On Wed, May 27, 2009 at 6:23 PM, David Smith d...@cornell.edu wrote: S Arvind wrote: Is there any way to pre-compile all the jsp files, when we are deploying in the production environment? -Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison* Yes ... depends on your build environment. Most offer some means of pre-compiling the jsps to servlets. --David - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: maxwait in dbconnetion is not workiing for first time.
MArtin, you are correct i think, even after destroying/closing the connection. it is still in ESTABLISHED status. We are using DBCP pool... the resource in context is Resource auth=Container description=Hcare Database DSN name=jdbc/merge_emr_billing scope=Shareable type=javax.sql.DataSource url=jdbc:postgresql://1.1.1.180/asasas driverClassName=org.postgresql.Driver username=asasas password=shshsh maxActive=10 maxIdle=1 minIdle=0 removeAbandoned=true removeAbandonedTimeout=60 logAbandoned=true maxWait=6000 minEvictableIdleTimeMillis=6 timeBetweenEvictionRunsMillis=60 numTestsPerEvictionRun=300 / The page is very simple, it will get the connection string, with help of it , it will make connection, run a simple query and destroy the connection in finally block.. all lays in a jsp file.. - Arvind S Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison On Mon, May 25, 2009 at 10:42 PM, Martin Gainty mgai...@hotmail.com wrote: any activity by DB would be moot if the servlet's connection to client has already been torn down on 1 side http://www.mail-archive.com/users@tomcat.apache.org/msg61272.html can you run netstat -an to verify your connections are NOT in close_wait or time_wait? we would need to see all connection params from server.xml, applicationcontext.xml, web.xml jsp and all servlet code regards Martin Gainty __ Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése nem megengedett. Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi alkalmazhatósága sincs. Mivel az electronikus üzenetek könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet tartalma miatt. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: arvindw...@gmail.com Date: Mon, 25 May 2009 21:53:02 +0530 Subject: Re: maxwait in dbconnetion is not workiing for first time. To: users@tomcat.apache.org can anyone help me in this... i am trapped here ... - Arvind S Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison On Tue, May 19, 2009 at 12:57 AM, S Arvind arvindw...@gmail.com wrote: Martin , i think its not session, since i tried same thing in wget, first time with network connection is working fine. but without network connection , status is keep on waiting for response. I think linux wget will have session management or any i think. will be any other probs.. i cant use session.invalidate , since if the page is called from main application then the current all session attributes will be blown away... Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison* On Mon, May 18, 2009 at 7:05 PM, Martin Gainty mgai...@hotmail.com wrote: means your session to TC is still live suggest attenuate connectionTimeout in connector config in server.xml in code you can always session.invalidate() http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpSession.html#invalidate()http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpSession.html#invalidate%28%29 http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpSession.html#invalidate%28%29 Martin Gainty I have not failed. I've just found 10,000 ways that won't work - edison __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese
Re: maxwait in dbconnetion is not workiing for first time.
can anyone help me in this... i am trapped here ... - Arvind S Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison On Tue, May 19, 2009 at 12:57 AM, S Arvind arvindw...@gmail.com wrote: Martin , i think its not session, since i tried same thing in wget, first time with network connection is working fine. but without network connection , status is keep on waiting for response. I think linux wget will have session management or any i think. will be any other probs.. i cant use session.invalidate , since if the page is called from main application then the current all session attributes will be blown away... Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison* On Mon, May 18, 2009 at 7:05 PM, Martin Gainty mgai...@hotmail.comwrote: means your session to TC is still live suggest attenuate connectionTimeout in connector config in server.xml in code you can always session.invalidate() http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpSession.html#invalidate()http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpSession.html#invalidate%28%29 Martin Gainty I have not failed. I've just found 10,000 ways that won't work - edison __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: arvindw...@gmail.com Date: Mon, 18 May 2009 16:55:30 +0530 Subject: maxwait in dbconnetion is not workiing for first time. To: users@tomcat.apache.org This time i have problem in maxwait. To test the maxwait i tried to establish the connection and close. My dbserver is located outside my system, so for dbconnection network is required as per our Production server model. So first i established the connection first from the jsp page, it gets done. After that i plugged-out my network cable and tried to make connection by that same jsp file, but i didnt get exception , it keep on running. but if i refreshed the page again after few mins the exception is coming. but why not in first request itself. I need it in first request itself for my failover model. my maxwait is 1000ms Resource auth=Container description=Database DSN name=jdbc/dbname scope=Shareable type=javax.sql.DataSource url=jdbc:postgresql:// 1.1.1.180/dbname driverClassName=org.postgresql.Driver username= password=y maxActive=10 maxIdle=1 minIdle=0 removeAbandoned=true removeAbandonedTimeout=60 logAbandoned=true maxWait=1000 / Is it bug or my mistake ? -Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison* _ Hotmail® goes with you. http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009
Workfolder and Catalina.out
Hi Members, Since we have many context our log and work folder getting large in few days and getting full so that new files cannot be created or logging. Is there any way to point work folder and log to different location? if possibe give the good docs for that (with include file rotation) Thanks, Arvind s * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison*
maxwait in dbconnetion is not workiing for first time.
This time i have problem in maxwait. To test the maxwait i tried to establish the connection and close. My dbserver is located outside my system, so for dbconnection network is required as per our Production server model. So first i established the connection first from the jsp page, it gets done. After that i plugged-out my network cable and tried to make connection by that same jsp file, but i didnt get exception , it keep on running. but if i refreshed the page again after few mins the exception is coming. but why not in first request itself. I need it in first request itself for my failover model. my maxwait is 1000ms Resource auth=Container description=Database DSN name=jdbc/dbname scope=Shareable type=javax.sql.DataSource url=jdbc:postgresql:// 1.1.1.180/dbname driverClassName=org.postgresql.Driver username= password=y maxActive=10 maxIdle=1 minIdle=0 removeAbandoned=true removeAbandonedTimeout=60 logAbandoned=true maxWait=1000 / Is it bug or my mistake ? -Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison*
Re: maxwait in dbconnetion is not workiing for first time.
Martin , i think its not session, since i tried same thing in wget, first time with network connection is working fine. but without network connection , status is keep on waiting for response. I think linux wget will have session management or any i think. will be any other probs.. i cant use session.invalidate , since if the page is called from main application then the current all session attributes will be blown away... Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison* On Mon, May 18, 2009 at 7:05 PM, Martin Gainty mgai...@hotmail.com wrote: means your session to TC is still live suggest attenuate connectionTimeout in connector config in server.xml in code you can always session.invalidate() http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpSession.html#invalidate()http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpSession.html#invalidate%28%29 Martin Gainty I have not failed. I've just found 10,000 ways that won't work - edison __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: arvindw...@gmail.com Date: Mon, 18 May 2009 16:55:30 +0530 Subject: maxwait in dbconnetion is not workiing for first time. To: users@tomcat.apache.org This time i have problem in maxwait. To test the maxwait i tried to establish the connection and close. My dbserver is located outside my system, so for dbconnection network is required as per our Production server model. So first i established the connection first from the jsp page, it gets done. After that i plugged-out my network cable and tried to make connection by that same jsp file, but i didnt get exception , it keep on running. but if i refreshed the page again after few mins the exception is coming. but why not in first request itself. I need it in first request itself for my failover model. my maxwait is 1000ms Resource auth=Container description=Database DSN name=jdbc/dbname scope=Shareable type=javax.sql.DataSource url=jdbc:postgresql:// 1.1.1.180/dbname driverClassName=org.postgresql.Driver username= password=y maxActive=10 maxIdle=1 minIdle=0 removeAbandoned=true removeAbandonedTimeout=60 logAbandoned=true maxWait=1000 / Is it bug or my mistake ? -Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison* _ Hotmail® goes with you. http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009
Re: Database pooling prob
Thanks everone. The problem i found is completely different. Its vista administaratve rights problem. I corrected that and our rocking tomcat is rocking.. Thanks every one. Arvind S *Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison* On Mon, May 4, 2009 at 8:42 AM, Rusty Wright rusty.wri...@gmail.com wrote: What did you specify for the ip address that tomcat uses for connecting to the database? If, for example, tomcat is using the host name of your machine, or its ip address that you'd use to connect to it from the outside, and psql is using localhost (127.0.0.1) which is a special ip address that always goes to the machine you're on, so that you don't have to know its ip address, that would be a difference in the configuration. Or psql could be using a unix filesystem socket and not using tcp/ip. Postgres uses some config file with hba in its name to configure its network security; fiddle with that and make it wide open so that tomcat can connect, then go back and figure out how to tighten its security so that only localhost can connect. S Arvind wrote: from this stack trace i can find that there is no problem in Tomcat or dbcp. But when i try my postgre from outside application its working fine but when i connect from local tomcat application it not working fine. I disable the firewall and all ... but i keep on getting this stack AbandonedObjectPool is used (org.apache.tomcat.dbcp.dbcp.abandonedobjectp...@d5eb7) LogAbandoned: true RemoveAbandoned: true RemoveAbandonedTimeout: 300 org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880) When i tried the netstat to check my vista ports , at that time i found one wierd line... TCP[::1]:80 Michael:50522 ESTABLISHED TCP[::1]:50522Michael:http ESTABLISHED As my tomcat is listening to 80, i dont know why i dont get the ip address in the netstat result for port 80 alone.. It is surely my tomcat request since only when i make the request its showing... I think the problem in ip only... please any one help.. postgres and tomcat in same system and postgres is watchin to port 5432 only. Arvind * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison* - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Doubt in threads
Is there any possibility that tomcat 6 process threads will increase even in the idle state without working on any request. since if i check the tomcat thread by *ps -C java -L -o pid,tid,pcpu,state,args | grep tomcat6 | wc -l * in cent os after few hrs it get increased. Is it tomcat's behaviour or leak in application? Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison*
Database pooling prob
from this stack trace i can find that there is no problem in Tomcat or dbcp. But when i try my postgre from outside application its working fine but when i connect from local tomcat application it not working fine. I disable the firewall and all ... but i keep on getting this stack AbandonedObjectPool is used (org.apache.tomcat.dbcp.dbcp.abandonedobjectp...@d5eb7) LogAbandoned: true RemoveAbandoned: true RemoveAbandonedTimeout: 300 org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880) When i tried the netstat to check my vista ports , at that time i found one wierd line... TCP[::1]:80 Michael:50522 ESTABLISHED TCP[::1]:50522Michael:http ESTABLISHED As my tomcat is listening to 80, i dont know why i dont get the ip address in the netstat result for port 80 alone.. It is surely my tomcat request since only when i make the request its showing... I think the problem in ip only... please any one help.. postgres and tomcat in same system and postgres is watchin to port 5432 only. Arvind * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison*
Re: Database pooling prob
Why ip is missing??? -Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison* On Sun, May 3, 2009 at 2:42 AM, Filip Hanik - Dev Lists devli...@hanik.comwrote: if the client and the server are on the same machine, you would get two lines in the netstat output TCP[::1]:80 Michael:50522 ESTABLISHED TCP[::1]:50522Michael:http ESTABLISHED one line is for the server connection, and the other one is for the client connection. Filip S Arvind wrote: from this stack trace i can find that there is no problem in Tomcat or dbcp. But when i try my postgre from outside application its working fine but when i connect from local tomcat application it not working fine. I disable the firewall and all ... but i keep on getting this stack AbandonedObjectPool is used (org.apache.tomcat.dbcp.dbcp.abandonedobjectp...@d5eb7) LogAbandoned: true RemoveAbandoned: true RemoveAbandonedTimeout: 300 org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880) When i tried the netstat to check my vista ports , at that time i found one wierd line... TCP[::1]:80 Michael:50522 ESTABLISHED TCP[::1]:50522Michael:http ESTABLISHED As my tomcat is listening to 80, i dont know why i dont get the ip address in the netstat result for port 80 alone.. It is surely my tomcat request since only when i make the request its showing... I think the problem in ip only... please any one help.. postgres and tomcat in same system and postgres is watchin to port 5432 only. Arvind * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison* - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
GC Problem
Tomcat after running for couple of hours , somthing is getting wrong and it is keep on doing Garbage Collection(as it dispaly in console) . And tomcat also becoming dump slow.. and we cant able to do any, until it restarts... JAVA_HOME=/usr/java/jdk1.5.0_13 JRE_HOME=/usr/java/jdk1.5.0_13/jre export CATALINA_OPTS=-verbose:gc -Xloggc:gc.log -XX:+PrintGCDetails -XX:MaxPermSize=512M -Xms1024M -Xmx1024M -Djava.awt.headless=true server is 4 gb ram with two tomcat instance (5 6). Thanks, Arvind S Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison
Re: Tomcat Users Meetup: London 30th April
Come to india , lot lot of us here using tomcat .!!! -Arvind s * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison * On Wed, Apr 29, 2009 at 5:58 PM, Pid p...@pidster.com wrote: Not a great deal of enthusiasm so far, so I'm reposting this to see if it prompts any additional interest. Failing that, I'm up for a couple of light refreshing jars of pop if anyone else is interested in an informal game of The Hunting of the Chuck. Prizes may include a bar of chocolate. p - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: GC Problem
in console its keep on displaying this every second.. 12945.607: [Full GC [PSYoungGen: 340288K-39757K(343552K)] [PSOldGen: 699071K-699071K(699072K)] 1039359K-738829K(1042624K) [PSPermGen: 346754K-346754K(346816K)], 2.6522010 secs] sessionCreated-C63974AACCC2800C89576C0C693467CB 12948.363: [Full GC [PSYoungGen: 340288K-24050K(343552K)] [PSOldGen: 699071K-699071K(699072K)] 1039359K-723122K(1042624K) [PSPermGen: 346754K-346754K(346816K)], 2.6768820 secs] sessionCreated-8B39EA776552C44F126958B979E36684 12951.149: [Full GC [PSYoungGen: 340288K-37166K(343552K)] [PSOldGen: 699071K-699071K(699072K)] 1039359K-736238K(1042624K) [PSPermGen: 346755K-346755K(346816K)], 2.6909590 secs] sessionCreated-D2E9E1A9B8C77500D6BACD40A3194F1D Apr 29, 2009 8:39:11 AM org.apache.tomcat.util.http.Parameters processParameters WARNING: Parameters: Invalid chunk ignored. 12953.947: [Full GC [PSYoungGen: 340288K-37218K(343552K)] [PSOldGen: 699071K-699071K(699072K)] 1039359K-736290K(1042624K) [PSPermGen: 346756K-346756K(346816K)], 2.6655880 secs] sessionCreated-E33C0E94BB3C4AE3A767FC2F5025BDFF 12956.716: [Full GC [PSYoungGen: 340288K-37348K(343552K)] [PSOldGen: 699071K-699071K(699072K)] 1039359K-736420K(1042624K) [PSPermGen: 346756K-346756K(346816K)], 2.6625880 secs] sessionCreated-93623EE1D595BD38ED5CE42BF15165CB 12959.483: [Full GC [PSYoungGen: 340288K-24075K(343552K)] [PSOldGen: 699071K-699071K(699072K)] 1039359K-723147K(1042624K) [PSPermGen: 346756K-346755K(346816K)], 2.6804850 secs] sessionCreated-DC1BBF75947F0F52CDBA4461B33FD0E1 Apr 29, 2009 8:39:19 AM org.apache.tomcat.util.http.Parameters processParameters WARNING: Parameters: Invalid chunk ignored. 12962.272: [Full GC [PSYoungGen: 340288K-30321K(343552K)] [PSOldGen: 699071K-699071K(699072K)] 1039359K-729393K(1042624K) [PSPermGen: 346756K-346756K(346816K)], 2.6328120 secs] Arvind * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison * On Wed, Apr 29, 2009 at 5:50 PM, S Arvind arvindw...@gmail.com wrote: Tomcat after running for couple of hours , somthing is getting wrong and it is keep on doing Garbage Collection(as it dispaly in console) . And tomcat also becoming dump slow.. and we cant able to do any, until it restarts... JAVA_HOME=/usr/java/jdk1.5.0_13 JRE_HOME=/usr/java/jdk1.5.0_13/jre export CATALINA_OPTS=-verbose:gc -Xloggc:gc.log -XX:+PrintGCDetails -XX:MaxPermSize=512M -Xms1024M -Xmx1024M -Djava.awt.headless=true server is 4 gb ram with two tomcat instance (5 6). Thanks, Arvind S Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison
Re: GC Problem
Yeah daily atleast once Out-of-memory will raise and we will restart the tomcat. Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison* On Wed, Apr 29, 2009 at 6:19 PM, Peter Crowther peter.crowt...@melandra.com wrote: From: S Arvind [mailto:arvindw...@gmail.com] Tomcat after running for couple of hours , somthing is getting wrong and it is keep on doing Garbage Collection(as it dispaly in console) . And tomcat also becoming dump slow.. and we cant able to do any, until it restarts... I suspect your application has a memory leak somewhere - and it is almost always the application, not Tomcat :-). Use a profiler to find out where all the memory is going. Do you get out-of-memory errors in the Tomcat log files if you leave the application running even once it has become slow? - Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: GC Problem
Is there any good settings for GC for tomcat running in server with 4GB and Quad Core processor. I bascially need GC parameter for RESOURCE HUNGRY WEB APPLICATION -Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison * On Wed, Apr 29, 2009 at 6:19 PM, Peter Crowther peter.crowt...@melandra.com wrote: From: S Arvind [mailto:arvindw...@gmail.com] Tomcat after running for couple of hours , somthing is getting wrong and it is keep on doing Garbage Collection(as it dispaly in console) . And tomcat also becoming dump slow.. and we cant able to do any, until it restarts... I suspect your application has a memory leak somewhere - and it is almost always the application, not Tomcat :-). Use a profiler to find out where all the memory is going. Do you get out-of-memory errors in the Tomcat log files if you leave the application running even once it has become slow? - Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
PSYoungGen on Tomcat 6
If tomcat is started and in idle state without any request handling, whether the PSYoungGen will keep on increasing in tomcat 6? (due to any listener or any tomcat's own process) Thanks, Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison*
Re: tomcat shutdown problem
Pid thanks very much. We found the thread from the thread dump. Problem we did is we didnt shutdown the quartz scheduler. Now as per ur guidelines in the context listener we did that. It currently in testing phase. Thanks.. Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison On Mon, Apr 27, 2009 at 7:50 PM, Pid p...@pidster.com wrote: S Arvind wrote: Pid very thanks for guiding me .. one more help alone... can u please tell me how to check which thread it is runnin by quartz other then checking code ... i am centos, jvm 5, tomcat 5 and tomcat 6.. i think i am disturbin u lot, but ... As Dan said, kill -QUIT pid, and as I said previously, familiarise yourself with jstack, jmap and possibly jconsole, all of which are command line tools available with the Sun JREs. p -Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison* On Mon, Apr 27, 2009 at 7:18 PM, Pid p...@pidster.com wrote: S Arvind wrote: Is the application completely unchanged for deployment on Tomcat 6? yes it is completely *unchanged*... is anything must be changed for quartz? okay, then your best bet is to explore what the JVM is doing after shutdown and check which threads are still running. p --Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison * On Sat, Apr 25, 2009 at 5:06 PM, Pid p...@pidster.com wrote: Please do not keep using reply to all. It is annoying and unnecessary. I will obviously receive a copy of the mail if you just send a reply to the list. Did you write your application? there are team of 200 Engineers wrote that application so i dont know where the problem is Are you using Quartz in your application? yeah we have quartz scheduler in our application. But when we run in Tomcat 5 we dont have this kind of problem Is the application completely unchanged for deployment on Tomcat 6? When you shutdown, Quartz will log a message describing the number of running threads, this may help diagnose the problem. The count may be above 20, but that isn't necessarily a bad thing. Are you starting new Threads in your app? Might be, i have to ask each team. Check that they are being properly terminated. Even if the devs promise they are, double check. When you have started and stopped the application a few times are there still multiple java processes running? YES, this is the only thing assigned to me to correct it. You should ensure that the old processes are terminated before starting new ones, as an old one may hang onto one of the ports that Tomcat uses, thus preventing new instances from starting up. The Linux kill command can do this. However... After shutdown has been requested and while the process is still running, take a thread dump, or use the java tools to examine the state of the JVM. See if you can spot which Threads are still running. Try jmap, jstack and jconsole (if you're on a local machine). p *Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison * On Sat, Apr 25, 2009 at 2:21 PM, Pid p...@pidster.com wrote: S Arvind wrote: Thanks pid... Can u able to give me more idea to solve it if possible.. Did you write your application? Are you using Quartz in your application? Are you starting new Threads in your app? When you have started and stopped the application a few times are there still multiple java processes running? p Thanks, Arvind S *Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison * On Sat, Apr 25, 2009 at 2:00 PM, Pid p...@pidster.com wrote: S Arvind wrote: A wierd problem occur while shutdowning the tomcat 6 in the Fedora and Centos. Usually i use shell file to shutdown. After shutting down when see the postgre preocess by [code]*ps -ef | grep java*[/code] it is still showing the process as running. such as [code] tomcat 14694 1 72 Apr23 ?23:44:25 /usr/java/jdk1.5.0_13/jre/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/usr/share/tomcat6/apache-tomcat-6.0.18/conf/logging.properties -verbose:gc -Xloggc:gc.log -XX:+PrintGCDetails -XX:MaxPermSize=512M -Xms1024M -Xmx1024M -Djava.awt.headless=true -Djava.endorsed.dirs=/usr/share/tomcat6/apache-tomcat-6.0.18/endorsed -classpath :/usr/share/tomcat6/apache-tomcat-6.0.18/bin/bootstrap.jar -Dcatalina.base=/usr/share/tomcat6/apache-tomcat-6.0.18 -Dcatalina.home=/usr/share/tomcat6/apache-tomcat-6.0.18 -Djava.io.tmpdir=/usr/share
Disable Session Replication
I didnt configured Cluster or Session replication in my tomcat 6, But in my tomcat 6 every time when restarted, all the old session got recreated again. this i noticed with the help of sessionlistener. I dont need to replicate the old session. How to disable it? Advance Thanks, Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison*
Re: Disable Session Replication
It is fresh as new. is this a solution pid? !-- Uncomment this to disable session persistence across Tomcat restarts -- !-- Manager pathname= / -- in context.xml - Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison * On Tue, Apr 28, 2009 at 5:01 PM, Pid p...@pidster.com wrote: S Arvind wrote: I didnt configured Cluster or Session replication in my tomcat 6, But in my tomcat 6 every time when restarted, all the old session got recreated again. this i noticed with the help of sessionlistener. I dont need to replicate the old session. How to disable it? look in: tomcat/conf/context.xml p Advance Thanks, Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison* - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat shutdown problem
Is the application completely unchanged for deployment on Tomcat 6? yes it is completely *unchanged*... is anything must be changed for quartz? --Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison * On Sat, Apr 25, 2009 at 5:06 PM, Pid p...@pidster.com wrote: Please do not keep using reply to all. It is annoying and unnecessary. I will obviously receive a copy of the mail if you just send a reply to the list. Did you write your application? there are team of 200 Engineers wrote that application so i dont know where the problem is Are you using Quartz in your application? yeah we have quartz scheduler in our application. But when we run in Tomcat 5 we dont have this kind of problem Is the application completely unchanged for deployment on Tomcat 6? When you shutdown, Quartz will log a message describing the number of running threads, this may help diagnose the problem. The count may be above 20, but that isn't necessarily a bad thing. Are you starting new Threads in your app? Might be, i have to ask each team. Check that they are being properly terminated. Even if the devs promise they are, double check. When you have started and stopped the application a few times are there still multiple java processes running? YES, this is the only thing assigned to me to correct it. You should ensure that the old processes are terminated before starting new ones, as an old one may hang onto one of the ports that Tomcat uses, thus preventing new instances from starting up. The Linux kill command can do this. However... After shutdown has been requested and while the process is still running, take a thread dump, or use the java tools to examine the state of the JVM. See if you can spot which Threads are still running. Try jmap, jstack and jconsole (if you're on a local machine). p *Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison * On Sat, Apr 25, 2009 at 2:21 PM, Pid p...@pidster.com wrote: S Arvind wrote: Thanks pid... Can u able to give me more idea to solve it if possible.. Did you write your application? Are you using Quartz in your application? Are you starting new Threads in your app? When you have started and stopped the application a few times are there still multiple java processes running? p Thanks, Arvind S *Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison * On Sat, Apr 25, 2009 at 2:00 PM, Pid p...@pidster.com wrote: S Arvind wrote: A wierd problem occur while shutdowning the tomcat 6 in the Fedora and Centos. Usually i use shell file to shutdown. After shutting down when see the postgre preocess by [code]*ps -ef | grep java*[/code] it is still showing the process as running. such as [code] tomcat 14694 1 72 Apr23 ?23:44:25 /usr/java/jdk1.5.0_13/jre/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/usr/share/tomcat6/apache-tomcat-6.0.18/conf/logging.properties -verbose:gc -Xloggc:gc.log -XX:+PrintGCDetails -XX:MaxPermSize=512M -Xms1024M -Xmx1024M -Djava.awt.headless=true -Djava.endorsed.dirs=/usr/share/tomcat6/apache-tomcat-6.0.18/endorsed -classpath :/usr/share/tomcat6/apache-tomcat-6.0.18/bin/bootstrap.jar -Dcatalina.base=/usr/share/tomcat6/apache-tomcat-6.0.18 -Dcatalina.home=/usr/share/tomcat6/apache-tomcat-6.0.18 -Djava.io.tmpdir=/usr/share/tomcat6/apache-tomcat-6.0.18/temp org.apache.catalina.startup.Bootstrap start [/code] So if i keep repeating the start and shutdown after few cycles it is completely refusing to start. What might be the source or reason of this problem? Advance Thanks, If you are leaving an active process behind when you stop the server, then doing it lots of times over isn't going to be healthy. Usually this is because your application has left non-daemon threads running that haven't been shutdown. It was was recently pointed out (on this list) that the Quartz job scheduler is often a culprit in this regard. If you have are starting threads yourself, then you need to make sure that you properly terminate them when the application (and server) shuts down. A ServletContextListener is useful in this regard. p Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison* - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users
Re: web interface for tomcat service
Martin , Venkat is not aking about IDE , he is asking such as webmin or tomcat manager kind... so that he can restart the remote tomcat service.. -Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison* On Mon, Apr 27, 2009 at 7:14 PM, Martin Gainty mgai...@hotmail.com wrote: I'm assuming you want to start TC from within your IDE? Eclipse IDE http://www.ibm.com/developerworks/library/os-ectom/ and Netbeans http://www.theserverside.com/discussions/thread.tss?thread_id=19934 Either option allows you to start TC within IDE is this what your'e looking for? Martin __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take responsibility over the the contents. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Mon, 27 Apr 2009 06:32:15 -0700 From: venkat...@yahoo.com Subject: web interface for tomcat service To: users@tomcat.apache.org Is there a way i can start/stop tomcat service through a web interface which is right now setup as a service .. Thanks Venkat _ Rediscover Hotmail®: Get e-mail storage that grows with you. http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Storage2_042009
Re: tomcat shutdown problem
Pid very thanks for guiding me .. one more help alone... can u please tell me how to check which thread it is runnin by quartz other then checking code ... i am centos, jvm 5, tomcat 5 and tomcat 6.. i think i am disturbin u lot, but ... -Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison* On Mon, Apr 27, 2009 at 7:18 PM, Pid p...@pidster.com wrote: S Arvind wrote: Is the application completely unchanged for deployment on Tomcat 6? yes it is completely *unchanged*... is anything must be changed for quartz? okay, then your best bet is to explore what the JVM is doing after shutdown and check which threads are still running. p --Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison * On Sat, Apr 25, 2009 at 5:06 PM, Pid p...@pidster.com wrote: Please do not keep using reply to all. It is annoying and unnecessary. I will obviously receive a copy of the mail if you just send a reply to the list. Did you write your application? there are team of 200 Engineers wrote that application so i dont know where the problem is Are you using Quartz in your application? yeah we have quartz scheduler in our application. But when we run in Tomcat 5 we dont have this kind of problem Is the application completely unchanged for deployment on Tomcat 6? When you shutdown, Quartz will log a message describing the number of running threads, this may help diagnose the problem. The count may be above 20, but that isn't necessarily a bad thing. Are you starting new Threads in your app? Might be, i have to ask each team. Check that they are being properly terminated. Even if the devs promise they are, double check. When you have started and stopped the application a few times are there still multiple java processes running? YES, this is the only thing assigned to me to correct it. You should ensure that the old processes are terminated before starting new ones, as an old one may hang onto one of the ports that Tomcat uses, thus preventing new instances from starting up. The Linux kill command can do this. However... After shutdown has been requested and while the process is still running, take a thread dump, or use the java tools to examine the state of the JVM. See if you can spot which Threads are still running. Try jmap, jstack and jconsole (if you're on a local machine). p *Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison * On Sat, Apr 25, 2009 at 2:21 PM, Pid p...@pidster.com wrote: S Arvind wrote: Thanks pid... Can u able to give me more idea to solve it if possible.. Did you write your application? Are you using Quartz in your application? Are you starting new Threads in your app? When you have started and stopped the application a few times are there still multiple java processes running? p Thanks, Arvind S *Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison * On Sat, Apr 25, 2009 at 2:00 PM, Pid p...@pidster.com wrote: S Arvind wrote: A wierd problem occur while shutdowning the tomcat 6 in the Fedora and Centos. Usually i use shell file to shutdown. After shutting down when see the postgre preocess by [code]*ps -ef | grep java*[/code] it is still showing the process as running. such as [code] tomcat 14694 1 72 Apr23 ?23:44:25 /usr/java/jdk1.5.0_13/jre/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/usr/share/tomcat6/apache-tomcat-6.0.18/conf/logging.properties -verbose:gc -Xloggc:gc.log -XX:+PrintGCDetails -XX:MaxPermSize=512M -Xms1024M -Xmx1024M -Djava.awt.headless=true -Djava.endorsed.dirs=/usr/share/tomcat6/apache-tomcat-6.0.18/endorsed -classpath :/usr/share/tomcat6/apache-tomcat-6.0.18/bin/bootstrap.jar -Dcatalina.base=/usr/share/tomcat6/apache-tomcat-6.0.18 -Dcatalina.home=/usr/share/tomcat6/apache-tomcat-6.0.18 -Djava.io.tmpdir=/usr/share/tomcat6/apache-tomcat-6.0.18/temp org.apache.catalina.startup.Bootstrap start [/code] So if i keep repeating the start and shutdown after few cycles it is completely refusing to start. What might be the source or reason of this problem? Advance Thanks, If you are leaving an active process behind when you stop the server, then doing it lots of times over isn't going to be healthy. Usually this is because your application has left non-daemon threads running that haven't been shutdown. It was was recently pointed out (on this list) that the Quartz job scheduler is often a culprit in this regard. If you have are starting threads
Re: tomcat shutdown problem
Thanks pid... Can u able to give me more idea to solve it if possible.. Thanks, Arvind S *Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison * On Sat, Apr 25, 2009 at 2:00 PM, Pid p...@pidster.com wrote: S Arvind wrote: A wierd problem occur while shutdowning the tomcat 6 in the Fedora and Centos. Usually i use shell file to shutdown. After shutting down when see the postgre preocess by [code]*ps -ef | grep java*[/code] it is still showing the process as running. such as [code] tomcat 14694 1 72 Apr23 ?23:44:25 /usr/java/jdk1.5.0_13/jre/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/usr/share/tomcat6/apache-tomcat-6.0.18/conf/logging.properties -verbose:gc -Xloggc:gc.log -XX:+PrintGCDetails -XX:MaxPermSize=512M -Xms1024M -Xmx1024M -Djava.awt.headless=true -Djava.endorsed.dirs=/usr/share/tomcat6/apache-tomcat-6.0.18/endorsed -classpath :/usr/share/tomcat6/apache-tomcat-6.0.18/bin/bootstrap.jar -Dcatalina.base=/usr/share/tomcat6/apache-tomcat-6.0.18 -Dcatalina.home=/usr/share/tomcat6/apache-tomcat-6.0.18 -Djava.io.tmpdir=/usr/share/tomcat6/apache-tomcat-6.0.18/temp org.apache.catalina.startup.Bootstrap start [/code] So if i keep repeating the start and shutdown after few cycles it is completely refusing to start. What might be the source or reason of this problem? Advance Thanks, If you are leaving an active process behind when you stop the server, then doing it lots of times over isn't going to be healthy. Usually this is because your application has left non-daemon threads running that haven't been shutdown. It was was recently pointed out (on this list) that the Quartz job scheduler is often a culprit in this regard. If you have are starting threads yourself, then you need to make sure that you properly terminate them when the application (and server) shuts down. A ServletContextListener is useful in this regard. p Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison* - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat shutdown problem
Did you write your application? there are team of 200 Engineers wrote that application so i dont know where the problem is Are you using Quartz in your application? yeah we have quartz scheduler in our application. But when we run in Tomcat 5 we dont have this kind of problem Are you starting new Threads in your app? Might be, i have to ask each team. When you have started and stopped the application a few times are there still multiple java processes running? YES, this is the only thing assigned to me to correct it. *Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison * On Sat, Apr 25, 2009 at 2:21 PM, Pid p...@pidster.com wrote: S Arvind wrote: Thanks pid... Can u able to give me more idea to solve it if possible.. Did you write your application? Are you using Quartz in your application? Are you starting new Threads in your app? When you have started and stopped the application a few times are there still multiple java processes running? p Thanks, Arvind S *Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison * On Sat, Apr 25, 2009 at 2:00 PM, Pid p...@pidster.com wrote: S Arvind wrote: A wierd problem occur while shutdowning the tomcat 6 in the Fedora and Centos. Usually i use shell file to shutdown. After shutting down when see the postgre preocess by [code]*ps -ef | grep java*[/code] it is still showing the process as running. such as [code] tomcat 14694 1 72 Apr23 ?23:44:25 /usr/java/jdk1.5.0_13/jre/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/usr/share/tomcat6/apache-tomcat-6.0.18/conf/logging.properties -verbose:gc -Xloggc:gc.log -XX:+PrintGCDetails -XX:MaxPermSize=512M -Xms1024M -Xmx1024M -Djava.awt.headless=true -Djava.endorsed.dirs=/usr/share/tomcat6/apache-tomcat-6.0.18/endorsed -classpath :/usr/share/tomcat6/apache-tomcat-6.0.18/bin/bootstrap.jar -Dcatalina.base=/usr/share/tomcat6/apache-tomcat-6.0.18 -Dcatalina.home=/usr/share/tomcat6/apache-tomcat-6.0.18 -Djava.io.tmpdir=/usr/share/tomcat6/apache-tomcat-6.0.18/temp org.apache.catalina.startup.Bootstrap start [/code] So if i keep repeating the start and shutdown after few cycles it is completely refusing to start. What might be the source or reason of this problem? Advance Thanks, If you are leaving an active process behind when you stop the server, then doing it lots of times over isn't going to be healthy. Usually this is because your application has left non-daemon threads running that haven't been shutdown. It was was recently pointed out (on this list) that the Quartz job scheduler is often a culprit in this regard. If you have are starting threads yourself, then you need to make sure that you properly terminate them when the application (and server) shuts down. A ServletContextListener is useful in this regard. p Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison* - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
tomcat shutdown problem
A wierd problem occur while shutdowning the tomcat 6 in the Fedora and Centos. Usually i use shell file to shutdown. After shutting down when see the postgre preocess by [code]*ps -ef | grep java*[/code] it is still showing the process as running. such as [code] tomcat 14694 1 72 Apr23 ?23:44:25 /usr/java/jdk1.5.0_13/jre/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/usr/share/tomcat6/apache-tomcat-6.0.18/conf/logging.properties -verbose:gc -Xloggc:gc.log -XX:+PrintGCDetails -XX:MaxPermSize=512M -Xms1024M -Xmx1024M -Djava.awt.headless=true -Djava.endorsed.dirs=/usr/share/tomcat6/apache-tomcat-6.0.18/endorsed -classpath :/usr/share/tomcat6/apache-tomcat-6.0.18/bin/bootstrap.jar -Dcatalina.base=/usr/share/tomcat6/apache-tomcat-6.0.18 -Dcatalina.home=/usr/share/tomcat6/apache-tomcat-6.0.18 -Djava.io.tmpdir=/usr/share/tomcat6/apache-tomcat-6.0.18/temp org.apache.catalina.startup.Bootstrap start [/code] So if i keep repeating the start and shutdown after few cycles it is completely refusing to start. What might be the source or reason of this problem? Advance Thanks, Arvind S * Many of lifes failure are people who did not realize how close they were to success when they gave up. -Thomas Edison*