Re: Centos 5 OS not releasing memory Tomcat6
2009/5/28 André Warnier a...@ice-sa.com: If a non-existent process is able to hold on to some memory and not return it to the OS, doesn't that indicate an OS problem ? i think so! but i do not remeber any kernel problem related to memory caching in Centos kernel releases. Maybe you should give a try at Centos 5.3 kernels. -- mr - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: how to convert struts based apps from tomcat4 to tomcat5.5?
2009/5/28 Christopher Schultz ch...@christopherschultz.net: May I put the code here? (i think it's very little and simple to read) Sure. Post what you've got and we'll take a look. !--BEGIN CODE %@ taglib uri=/tags/struts-bean prefix=bean % %@ taglib uri=/tags/struts-html prefix=html % %@ taglib uri=/tags/struts-logic prefix=logic % %...@page import=java.util.*% %...@page import=net.our.util.*% %...@page import=net.our.content.bean.*% script language=JavaScript1.2 src=js/scroller/JSFX_Layer.js/script script language=JavaScript1.2 src=js/scroller/JSFX_VerticalScroller.js/script script language=JavaScript1.2 var myScroller = new JSFX.VerticalScroller(); myScroller.setStyle(font-family: Verdana, Arial, Helvetica, sans-serif;); myScroller.setShowTime(3); % java.util.ArrayList limitNewsList = null; java.sql.Connection conn = null; try{ javax.sql.DataSource dataSource = DatabaseUtil.getDataSource( application, request); conn = dataSource.getConnection(); String lang_iso = request.getLocale().getISO3Language(); if( null == lang_iso || lang_iso.length()==0 ){ lang_iso = Constants.DEFAULT_LANG; } if (null != conn) { limitNewsList = net.our.content.dao.ContentDAO.getLimitedContent(conn, 6, lang_iso,news); System.out.println( !-- debug: news found + limitNewsList.size() + -- ); System.out.println( show news:; + limitNewsList + ); //this is working! i can see the arraylist populated } //conn.close(); } catch ( java.sql.SQLException sqle ){ throw new java.sql.SQLException(sqle.getMessage()); } finally{ if (conn!=null) conn.close(); } // if the next line is commented, then the page is shown in he right way! request.setAttribute(limitNewsList , limitNewsList ); % logic:empty name=limitNewsList myScroller.addMessage(Prossimamente news); /logic:empty logic:notEmpty name=limitNewsList //the problem should be in the bean:define myScroller.addMessage('logic:iterate scope=request id=nzews name=limitNewsList length=2 offset=0b#187;/bbean:define id=abst name=news property=abstr /bean:define id=title name=news property=title/html:link action=/newsDetail paramId=id paramName=news paramProperty=idfont color=#A9%= ((String)title).replaceAll(\', #146;) %/font/html:linkbrhtml:link action=/newsDetail paramId=id paramName=news paramProperty=id%= StringUtil.getFirstNChar( (String)abst, 30 ).replaceAll(\', #146;) %/html:linkspan style=font-size:4px;brbr/span/logic:iterate'); /script I SKIP THE REST OF THE CODE-- the error from catalina.out is: ERROR [TP-Processor40] - Servlet.service() for servlet jsp threw exception javax.servlet.jsp.JspException: Define tag cannot set a null value at org.apache.struts.taglib.bean.DefineTag.doEndTag(DefineTag.java:272) etc. etc. if i comment this line request.setAttribute(limitNewsList , limitNewsList );, the page is shown without errors. -- mr - 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
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
Re: Tomcat relative path
I would create a custom tag to replace the image jsp tag. Then at configuration time, the custom image tag would write out the full url with whatever hostname you need so you can split your requests across domains. Splitting requests across domains may speed up the requests on legacy browsers like IE6 which limit 2 open connections per hostname. IE8 no longer has this constraint. But it does nothing to help with bandwidth issues. If many of the 49 images are shared on the rest of the site as general navigation structures, then keep them. Otherwise - look into combining some of them and use image maps which should reduce time to load. [There are crazier alternatives - but they would be maintenance nightmares.] -Tim Caldarale, Charles R wrote: From: tcwarrior [mailto:sr_s...@yahoo.com] Subject: Tomcat relative path Our tomcat servers are front ended by apache. The apache servers do serve the static content. The img source is something like /imagedir/pic.jpg which tomcat controls. Not quite sure what you mean by controls; are you saying the web pages that hold the img links to the images are created by webapps running inside Tomcat? (Probably doesn't really make a difference; I'm just curious.) We had a consultant tell us since we have 49 images loading on our homepage we should change this so parallel downloads occur. I hope you didn't pay that consultant very much. All web browsers make concurrent requests for images, style sheets, applets, etc., that are embedded in web pages. However, unless tweaked, most browsers limit the concurrency to two - as recommended by the HTTP RFC. Nothing you do on the server can change that. web development staff said it'd be too hard to change. They're right about that, but they should also know it won't make any difference. My question is, is there an easy way to switch or do you have to change the img src to be http://image1.domain.com/imagedir/pic.jpg? Unless each img src references a different server, it won't matter. The browser concatenates links without a domain to the domain of the current page, so the end result is the same by the time the client puts the request on the wire. - Chuck - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Apache Tomcat hangs
Hello I am using apache Tomcat 5.5 which is set up on a hp-ux machine. my application uses jaspert-reports At times during we use jaspert-rerpot for generate to a pdf, get an error as shown below, and this causes the servers hangs and can not log on the tomcat console and application . After restart of the server then the tomcat runs fine. Can anybody please tell me why does this happen? Many thanks in advance, Raquel This is my error : INFO: Server startup in 3207 ms May 29, 2009 9:27:53 AM org.apache.jasper.runtime.JspFactoryImpl internalGetPageContext SEVERE: Exception initializing page context java.lang.IllegalStateException: Cannot create a session after the response has been committed at org.apache.catalina.connector.Request.doGetSession(Unknown Source) at org.apache.catalina.connector.Request.getSession(Unknown Source) at org.apache.catalina.connector.RequestFacade.getSession(Unknown Source) at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:216) at org.apache.catalina.core.ApplicationHttpRequest.getSession(Unknown Source) at org.apache.catalina.core.ApplicationHttpRequest.getSession(Unknown Source) at org.apache.jasper.runtime.PageContextImpl._initialize(Unknown Source) at org.apache.jasper.runtime.PageContextImpl.initialize(Unknown Source) at org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(Unknown Source) at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(Unknown Source) at org.apache.jsp.jsp.Alarma_Detalle_jsp._jspService(Alarma_Detalle_jsp.java:37) at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.catalina.core.ApplicationDispatcher.include(Unknown Source) at org.apache.jasper.runtime.JspRuntimeLibrary.include(Unknown Source) at org.apache.jsp.jsp.Alarma_Detalle_Service_jsp._jspService(Alarma_Detalle_Service_jsp.java:122) at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.connector.CoyoteAdapter.service(Unknown Source) at org.apache.coyote.http11.Http11Processor.process(Unknown Source) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Unknown Source) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Unknown Source) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(Unknown Source) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java:595) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
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*
Tomcat 5.5 and fop
Hello, i'm using Apache Fop to create PDF file from a xml and xsl files in debian lenny, in command line every thing is ok but when i try to make fop work under tomcat i have a problem : i have already build Fop project with Ant, i have deployed the Fop.war file into tomcat when i go to http://localhost:8180/fop i have this errors : description Le serveur a rencontré une erreur interne () qui l'a empêché de satisfaire la requête. exception javax.servlet.ServletException: Servlet.init() pour la servlet Fop a généré une exception cause mère java.security.AccessControlException: access denied (java.util.PropertyPermission user.home read) java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) java.security.AccessController.checkPermission(AccessController.java:546) java.lang.SecurityManager.checkPermission(SecurityManager.java:532) Could dome body help me ? i will be really grateful. -- View this message in context: http://www.nabble.com/Tomcat-5.5-and-fop-tp23778813p23778813.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Apache Tomcat hangs
unwinding the stack org.apache.jasper.runtime.PageContextImpl private void _initialize(Servlet servlet, ServletRequest request, 127 ServletResponse response, String errorPageURL, 128 boolean needsSession, int bufferSize, boolean autoFlush) 129 throws IOException { ... 143if (request instanceof HttpServletRequest needsSession) 144 this.session = ((HttpServletRequest) request).getSession(); 145 if (needsSession session == null) 146 throw new IllegalStateException( 147 Page needs a session and none is available); which is called by org.apache.jasper.runtime.JspFactoryImpl internalGetPageContext 89 private PageContext internalGetPageContext(Servlet servlet, ServletRequest request, 90 ServletResponse response, String errorPageURL, boolean needsSession, 91 int bufferSize, boolean autoflush) { 92 try { 93 PageContext pc; 94 if (USE_POOL) { 95 PageContextPool pool = localPool.get(); 96 if (pool == null) { 97 pool = new PageContextPool(); 98 localPool.set(pool); 99 } 100 pc = pool.get(); 101 if (pc == null) { 102 pc = new PageContextImpl(); 103 } 104 } else { 105 pc = new PageContextImpl(); 106 } 107 pc.initialize(servlet, request, response, errorPageURL, 108 needsSession, bufferSize, autoflush); internalGetPageContext is referenced in the run method as shown 148 public Object run() { 149 return factory.internalGetPageContext(servlet, request, response, 150 errorPageURL, needsSession, bufferSize, autoflush); 151 } but none of this *should happen if the jsp execution did'nt double submit* relevant bits of your jsp code located at at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(Unknown Source) at org.apache.jsp.jsp.Alarma_Detalle_jsp._jspService(Alarma_Detalle_jsp.java:37) //Why is this code (re)referencing getPageContext at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.catalina.core.ApplicationDispatcher.include(Unknown Source) at org.apache.jasper.runtime.JspRuntimeLibrary.include(Unknown Source) at org.apache.jsp.jsp.Alarma_Detalle_Service_jsp._jspService(Alarma_Detalle_Service_jsp.java:122) please display entire contents of $CATALINA_HOME/work/Catalina/localhost/WebAppName/org/apache/jsp/jsp/Alrama_Detallet_Service.jsp Alarma_Detalle_jsp.java Saludos Cordiales desde EEUU! Martin Gainty GMT+5(esta semana) __ 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. Date: Fri, 29 May 2009 12:35:14 +0200 Subject: Apache Tomcat hangs From: rhernan...@evendor.es To: users@tomcat.apache.org Hello I am using apache Tomcat 5.5 which is set up on a hp-ux machine. my application uses jaspert-reports At times during we use jaspert-rerpot for generate to a pdf, get an error as shown below, and this causes the
RE: Tomcat 5.5 and fop
$CATALINA_HOME/conf/catalina.policy contenu grant { permission java.util.PropertyPermission user.home, read; } ? Bon Chance Martin Etats Unis (GMT+5) cette semaine __ Note de déni et de confidentialité 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: Fri, 29 May 2009 05:10:47 -0700 From: ezzak...@hotmail.fr To: users@tomcat.apache.org Subject: Tomcat 5.5 and fop Hello, i'm using Apache Fop to create PDF file from a xml and xsl files in debian lenny, in command line every thing is ok but when i try to make fop work under tomcat i have a problem : i have already build Fop project with Ant, i have deployed the Fop.war file into tomcat when i go to http://localhost:8180/fop i have this errors : description Le serveur a rencontré une erreur interne () qui l'a empêché de satisfaire la requête. exception javax.servlet.ServletException: Servlet.init() pour la servlet Fop a généré une exception cause mère java.security.AccessControlException: access denied (java.util.PropertyPermission user.home read) java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) java.security.AccessController.checkPermission(AccessController.java:546) java.lang.SecurityManager.checkPermission(SecurityManager.java:532) Could dome body help me ? i will be really grateful. -- View this message in context: http://www.nabble.com/Tomcat-5.5-and-fop-tp23778813p23778813.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Hotmail® has ever-growing storage! Don’t worry about storage limits. http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage1_052009
Re: hello world
It was actually: http://localhost:8080/webapps/Hello/Hello.html. Sorry for the misprint. Veena On Thu, May 28, 2009 at 6:07 AM, S Arvind arvindw...@gmail.com wrote: 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: how to convert struts based apps from tomcat4 to tomcat5.5?
2009/5/29 Maurizio Rottin maurizio.rot...@gmail.com: 2009/5/28 Christopher Schultz ch...@christopherschultz.net: logic:empty name=limitNewsList myScroller.addMessage(Prossimamente news); /logic:empty logic:notEmpty name=limitNewsList //the problem should be in the bean:define myScroller.addMessage('logic:iterate scope=request id=nzews name=limitNewsList length=2 offset=0b#187;/bbean:define id=abst name=news property=abstr /bean:define id=title name=news property=title/html:link action=/newsDetail paramId=id paramName=news paramProperty=idfont color=#A9%= ((String)title).replaceAll(\', #146;) %/font/html:linkbrhtml:link action=/newsDetail paramId=id paramName=news paramProperty=id%= StringUtil.getFirstNChar( (String)abst, 30 ).replaceAll(\', #146;) %/html:linkspan style=font-size:4px;brbr/span/logic:iterate'); /script I SKIP THE REST OF THE CODE-- the error from catalina.out is: ERROR [TP-Processor40] - Servlet.service() for servlet jsp threw exception javax.servlet.jsp.JspException: Define tag cannot set a null value at org.apache.struts.taglib.bean.DefineTag.doEndTag(DefineTag.java:272) etc. etc. we have isolated the item with the wrong scope: javax.servlet.jsp.JspException: Cannot find bean news in any scope but still...why? -- mr - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: hello world
veena pandit wrote: It was actually: http://localhost:8080/webapps/Hello/Hello.html. Sorry for the misprint. This must be the longest-running thread about a Hello World application ever, in any programming language. :-) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: hello world
http://localhost:8080/webapps/Hello/Hello.html. Sorry for the misprint. This must be the longest-running thread about a Hello World application ever, in any programming language. :-) It looks to me that you should remove the webapps from the url. What is your local path What is the server.xml like How did you deploy the app How have you changed the default config... HTH Serge Fonville - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat relative path
From: tcwarrior [mailto:sr_s...@yahoo.com] Subject: RE: Tomcat relative path Isn't it 2 per domain? Maybe; I didn't realize your intent was to have a separate domain for each image. If the client keeps track of connections by domain name, then putting pairs of images in separate subdomains will work; if the connections are tracked by IP address, it won't. Why wouldn't you want your site to be the most responsive and allow for parallel downloads? As Tim pointed out - bandwidth. You may well be dedicating the entire wire to a single client for a short period of time. That may or may not be acceptable. As for our dev team, why are they right? What is so hard about changing the source? It's a maintenance problem, as images come and go as the web pages are updated. You can certainly split the locations based on some scheme, but it adds much complexity to testing and deployment. - 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: hello world
Well I had to know, because it was chapter 1 in a web based tutorial for JSP. :-) Thanks, Veena On Fri, May 29, 2009 at 9:15 AM, André Warnier a...@ice-sa.com wrote: veena pandit wrote: It was actually: http://localhost:8080/webapps/Hello/Hello.html. Sorry for the misprint. This must be the longest-running thread about a Hello World application ever, in any programming language. :-) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Centos 5 OS not releasing memory Tomcat6
Here's the /etc/sysctl.conf parameters that I've started with: vm.dirty_writeback_centisecs = 100 vm.dirty_expire_centisecs = 100 vm.pagecache = 1 10 30 Since this server is taking Production traffic, we'll need to what for a window to test this. I'll let you know how it works out. If the two vm.dirty don't correct it I'll take it down to 0 for I believe the CPU's will be able to handle the extra cycles. Regards, Marc Maurizio Rottin wrote: 2009/5/28 André Warnier a...@ice-sa.com: If a non-existent process is able to hold on to some memory and not return it to the OS, doesn't that indicate an OS problem ? i think so! but i do not remeber any kernel problem related to memory caching in Centos kernel releases. Maybe you should give a try at Centos 5.3 kernels. -- mr - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://www.nabble.com/Centos-5-OS-not-releasing-memory-Tomcat6-tp23761076p23780151.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: hello world
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
tomcat virtual host or directory
How tio configure virtual host in tomcat 5.5 -- View this message in context: http://www.nabble.com/tomcat-virtual-host-or-directory-tp23780270p23780270.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: hello world
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: tomcat virtual host or directory
From: gnix infosoft noida [mailto:garg.may...@gmail.com] Subject: tomcat virtual host or directory How tio configure virtual host in tomcat 5.5 Did you try to look at the Tomcat doc before posting? http://tomcat.apache.org/tomcat-5.5-doc/virtual-hosting-howto.html - 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: Windows x64 Installer
On May 28, 2009, at 5:36 PM, André Warnier wrote: Caldarale, Charles R wrote: From: Mladen Turk [mailto:mt...@apache.org] Subject: Re: Windows x64 Installer You've beet me by a millisecond ;) Yeah, but that's 300 km for an electron... And please note that from the electron's point of view, it may be a lot less than a millisecond.. Because the electron has resting mess, it will never go with speed of light. The info by the way is not supplied by the electron, but rather with electromagnetic waves around the wire who have no resting mess, so for them it is instantaneous whether it is 300km or to the end of the Universe :) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Windows x64 Installer
Tested all those options before I sent the mail. Windows firewall: off. Symantec EP11 firewall: disabled Still no response off the wire. Running 32-bit version worked OK and well as 64-bit with 32-bit APR. Only 64-bit with 64-bit was a problem. Could not connect with telnet nor browser. With SEP11 firewall turned on, logs showed requests to 8080 coming in and being approved, but still no response. This was really odd. I agree, the IP shouldn't care about real vs. loopback. But apparently it did in this case. I would say it has something to do with actually going to the hardware (loopback would be higher in the software layer). -Original Message- From: will trillich [mailto:trill...@gmail.com] Sent: Thursday, May 28, 2009 7:39 PM To: Tomcat Users List Subject: Re: Windows x64 Installer On Thu, May 28, 2009 at 6:18 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: I installed them on Windows 2008 x64, and could not get a response from Tomcat, if coming from the net. The local browser would pull it up just fine. Tomcat (with or without APR) doesn't care if the request came via loopback or ethernet. If it worked from the local browser, your firewall may be blocking the port from remote access. Another variable to throw into the mix, just for fun -- do you have a proxy? Squid doing a little web-caching perhaps? That can mess you up as well. Try telnet ip.address.here 8080 GET / HTTP/1.0 (follow the GET with a blank line) and see if you get any HTML back. You can try it from the same computer and/or other computers nearby. If you do get an appropriate HTTP response, Tomcat is well and you've got other issues. If you can't open the port at all, Tomcat isn't listening. If you can open the port but Tomcat doesn't play nice with an HTTP response, your configuration needs attention. -- will trillich Our only real economic security lies in our power to meet human needs. -- S.Covey, the 8th Habit - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org *** NOTICE * This message is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by reply or by telephone (call us collect at 512-343-9100) and immediately delete this message and all its attachments. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
User tracking/monitoring
All, In our production environment we load balance across 4 tomcats that are split among 2 physical servers. This is a high traffic website and we get calls from users for a number of support issues and for most of these issues the first step is to find out what tomcat instance they ended up in. Is there anyway we can add the tomcat sessionID to their page so that they can tell us where they are? Thanks, Chetan
Re: User tracking/monitoring
Add this to your footer? SESSION ID: ${pageContext.session.id} -Tim Chetan Chheda wrote: All, In our production environment we load balance across 4 tomcats that are split among 2 physical servers. This is a high traffic website and we get calls from users for a number of support issues and for most of these issues the first step is to find out what tomcat instance they ended up in. Is there anyway we can add the tomcat sessionID to their page so that they can tell us where they are? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Windows x64 Installer
From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: RE: Windows x64 Installer Tested all those options before I sent the mail. Let me summarize to see if I understand this properly: 1) 32-bit JVM, 32-bit DLL: works from localhost and from a separate system 2) 32-bit JVM, 64-bit DLL: ?? (shouldn't work) 3) 64-bit JVM, 32-bit DLL: works from localhost and from a separate system (it shouldn't work - you probably aren't using APR in this case) 4) 64-bit JVM, 64-bit DLL: works from localhost, but not from a separate system Is the above correct? - 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: User tracking/monitoring
From: Chetan Chheda [mailto:chetan_chh...@yahoo.com] Subject: User tracking/monitoring Is there anyway we can add the tomcat sessionID to their page so that they can tell us where they are? Besides adding it to some common component of each page of the web site as Tim suggested, you could do any of the following: 1) Disable cookies and use URL rewriting, forcing the session ID into the URL (can't really recommend that). 2) Add a filter or valve to append the session ID to each response. 3) Have the users look in the cookie cache of the browser when they have a problem. Tim's suggestion or perhaps #3 would seem to be the simplest. - 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
Php, tomcat, mappings and authentication.
I'm new to this forum and already fan of it :) Here's the story: I have a website hosted on a remote server with private JVM. It consists of two parts - client and admin (which is actually CMS). There is NGASI installed. I enabled wildcard mapping so all request to web server are forwarded to tomcat. Client part of website is located in appserver/apache-tomcat-6x/webapps/ROOT. There is web.xml file in ROOT/WEB-INF folders, in which I set security-constraint for admin part. Admin part itself is in ROOT/admin directory. I should say that I didn't write the application, but my work requires to change it sometimes. Now I need to add mailing and registration forms. I'm thinking of using php for that. Can I make php work under Tomcat? Can I make apache render php pages, while Tomcat renders jsp? Is it easier to implement mailing and registration on php instead of jsp, as it seems to me? Another question - authentication for admin part. I'm using basic authentication provided by tomcat, with username and password stored in tomcat-users.xml file in apache-tomcat-6x/conf directory. Does it have any security issues? Any comments and suggestions would be greatly appreciated. -- View this message in context: http://www.nabble.com/Php%2C-tomcat%2C-mappings-and-authentication.-tp23784848p23784848.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Php, tomcat, mappings and authentication.
From: dfobox [mailto:dfo...@gmail.com] Subject: Php, tomcat, mappings and authentication. Can I make php work under Tomcat? It can be done, but it's less painful to do with httpd. Can I make apache render php pages, while Tomcat renders jsp? That's probably better. Is it easier to implement mailing and registration on php instead of jsp, as it seems to me? That may well be only because you're more familiar with PHP. Personally, I would keep everything on Tomcat, in Java (admittedly, I am less familiar with PHP, plus it can become a maze of twisty little passages rather quickly). I'm using basic authentication provided by tomcat, with username and password stored in tomcat-users.xml file in apache-tomcat-6x/conf directory. Definitely wouldn't recommend such a mechanism for production use - not terribly robust, and subject to hacking if anyone has read access to the conf directory. Tomcat provides several alternative built-in realms: http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html Or you can use a popular filter with more options: http://securityfilter.sourceforge.net/ - 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: 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: hello world
I have that book; I am studying for SWCD certification. There are some gaps I am trying to fill. On Fri, May 29, 2009 at 3:03 PM, S Arvind arvindw...@gmail.com wrote: 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
Apache Portable Runtime ?
I am running a standalone tomcat 6.0.18 on a centOS 5.3 system. Is it a good idea to install the Apache Portable Runtime? Would I see performance increase? And, are there any drawbacks/cons to doing so? Thanks for any advice you might have on this - John -- View this message in context: http://www.nabble.com/Apache-Portable-Runtime---tp23786125p23786125.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Apache Portable Runtime ?
I wanted to add a little clarity to my question: I am not using SSL or serving any significant amount of static content - just good ol fashioned Jsp/Jstl's with a standalone tomcat (no Apache). A very svelt and simple web app that I am designing for performance. Given that, is it still a preferred idea to install APR? Is installing the APR considered a 'must do' for anyone looking to maximize the performance of Tomcat in production? Or is this something in the category of 'not neccessary/adviseable unless you need it'? Thanks -- View this message in context: http://www.nabble.com/Apache-Portable-Runtime---tp23786125p23786703.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Apache Portable Runtime ?
From: johnrock [mailto:johnpi...@yahoo.com] Subject: Re: Apache Portable Runtime ? Given that, is it still a preferred idea to install APR? Your best bet is to measure the performance of your webapp with and without APR. Since you're not using SSL and have limited static content, I suspect you won't see much of a difference. Is installing the APR considered a 'must do' for anyone looking to maximize the performance of Tomcat in production? Or is this something in the category of 'not neccessary/ adviseable unless you need it'? I'd put it in the latter category, unless you measure a noticeable throughput gain with it. Including APR does reduce portability, since you'll need a different native library for each platform, including just going from a 32- to 64-bit JVM. - 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
jk Status not showing errors
Good afternoon, I've been trying to get the jkstatus component of mod_jk running, and I'm not quite sure what I'm doing wrong in trying to have it report dead Tomcat instances. I have two tomcat instances setup in a load balancer, as a test I've taken down one of them. However the jkstatus screen still shows both of them as OK. I'm not sure what I'm missing from my workers.properties file to make it test the Tomcat and report a failed instance, so I can set Nagios to monitor this page and report problems. My workers.properties is: worker.list=production,development,old,jkstatus worker.production.type=lb worker.production.balance_workers=production1,production2 worker.production.sticky_session=True worker.production.method=S worker.lbbasic.type=ajp13 worker.lbbasic.connect_timeout=1 worker.lbbasic.recovery_options=7 worker.lbbasic.socket_keepalive=1 worker.lbbasic.socket_timeout=60 worker.production1.reference=worker.lbbasic worker.production1.port=8009 worker.production1.host=localhost #worker.production1.redirect=production2 worker.production2.reference=worker.lbbasic worker.production2.port=8012 worker.production2.host=localhost #worker.production2.activation=disabled worker.development.port=8010 worker.development.host=localhost worker.development.type=ajp13 worker.old.port=8011 worker.old.host=localhost worker.old.type=ajp13 worker.jkstatus.type=status Any advice on extra options to make jkstatus check and report when one of the Tomcat instances isn't responding would be appreciated. Thanks. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Php, tomcat, mappings and authentication.
Caldarale, Charles R wrote: From: dfobox [mailto:dfo...@gmail.com] Subject: Php, tomcat, mappings and authentication. Can I make php work under Tomcat? It can be done, but it's less painful to do with httpd. Can I make apache render php pages, while Tomcat renders jsp? That's probably better. Is it easier to implement mailing and registration on php instead of jsp, as it seems to me? That may well be only because you're more familiar with PHP. Personally, I would keep everything on Tomcat, in Java (admittedly, I am less familiar with PHP, plus it can become a maze of twisty little passages rather quickly). I'm using basic authentication provided by tomcat, with username and password stored in tomcat-users.xml file in apache-tomcat-6x/conf directory. Definitely wouldn't recommend such a mechanism for production use - not terribly robust, and subject to hacking if anyone has read access to the conf directory. Tomcat provides several alternative built-in realms: http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html Or you can use a popular filter with more options: http://securityfilter.sourceforge.net/ Or, if you decide to do the PHP part and do it under Apache httpd, then you could do all the authentication at the Apache httpd level, and pass the authenticated user-id to Tomcat (at least when using the mod_jk connector). - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: jk Status not showing errors
Matthew Laird wrote: Good afternoon, I've been trying to get the jkstatus component of mod_jk running, and I'm not quite sure what I'm doing wrong in trying to have it report dead Tomcat instances. I have two tomcat instances setup in a load balancer, as a test I've taken down one of them. However the jkstatus screen still shows both of them as OK. I'm not sure what I'm missing from my workers.properties file to make it test the Tomcat and report a failed instance, so I can set Nagios to monitor this page and report problems. My workers.properties is: worker.list=production,development,old,jkstatus worker.production.type=lb worker.production.balance_workers=production1,production2 worker.production.sticky_session=True worker.production.method=S worker.lbbasic.type=ajp13 worker.lbbasic.connect_timeout=1 worker.lbbasic.recovery_options=7 worker.lbbasic.socket_keepalive=1 worker.lbbasic.socket_timeout=60 worker.production1.reference=worker.lbbasic worker.production1.port=8009 worker.production1.host=localhost #worker.production1.redirect=production2 worker.production2.reference=worker.lbbasic worker.production2.port=8012 worker.production2.host=localhost #worker.production2.activation=disabled worker.development.port=8010 worker.development.host=localhost worker.development.type=ajp13 worker.old.port=8011 worker.old.host=localhost worker.old.type=ajp13 worker.jkstatus.type=status Any advice on extra options to make jkstatus check and report when one of the Tomcat instances isn't responding would be appreciated. While you are waiting for a real expert to comment, I believe I remember from a previous thread, that there needs to be an actual request sent to the misbehaving Tomcat, before the jkstatus will notice that it is down. You may also want to consult the cping/cpong functionality of mod_jk, I believe that would also work. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Which listeners required in server.xml?
Running tomcat 6.0.18 server.xml has the following listener's enabled by default: !--APR library loader. Documentation at /docs/apr.html -- Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / !--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -- Listener className=org.apache.catalina.core.JasperListener / !-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / I am using standalone tomcat (no apache) without SSL, without APR, I am not using any manager or host-manager applications .. Do I need these listeners or can I remove some/all of them? -- View this message in context: http://www.nabble.com/Which-listeners-required-in-server.xml--tp23787784p23787784.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: jk Status not showing errors
Bonjour- Then we define a URL, which should be mapped to this worker, i.e. the URL we use to reach the functionality of the status worker. You can use any method mod_jk supports for the web server of your choice. Possibilities are maps inside uriworkermap.properties, an additional mount attribute in workers.properties, or in Apache JkMount. Here's an example for a uriworkermap.properties line: /private/admin/mystatus=mystatus http://tomcat.apache.org/connectors-doc/reference/status.html Bon Chance! Martin __ Note de déni et de confidentialité 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: Fri, 29 May 2009 13:50:17 -0700 From: lai...@sfu.ca To: users@tomcat.apache.org Subject: jk Status not showing errors Good afternoon, I've been trying to get the jkstatus component of mod_jk running, and I'm not quite sure what I'm doing wrong in trying to have it report dead Tomcat instances. I have two tomcat instances setup in a load balancer, as a test I've taken down one of them. However the jkstatus screen still shows both of them as OK. I'm not sure what I'm missing from my workers.properties file to make it test the Tomcat and report a failed instance, so I can set Nagios to monitor this page and report problems. My workers.properties is: worker.list=production,development,old,jkstatus worker.production.type=lb worker.production.balance_workers=production1,production2 worker.production.sticky_session=True worker.production.method=S worker.lbbasic.type=ajp13 worker.lbbasic.connect_timeout=1 worker.lbbasic.recovery_options=7 worker.lbbasic.socket_keepalive=1 worker.lbbasic.socket_timeout=60 worker.production1.reference=worker.lbbasic worker.production1.port=8009 worker.production1.host=localhost #worker.production1.redirect=production2 worker.production2.reference=worker.lbbasic worker.production2.port=8012 worker.production2.host=localhost #worker.production2.activation=disabled worker.development.port=8010 worker.development.host=localhost worker.development.type=ajp13 worker.old.port=8011 worker.old.host=localhost worker.old.type=ajp13 worker.jkstatus.type=status Any advice on extra options to make jkstatus check and report when one of the Tomcat instances isn't responding would be appreciated. Thanks. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Insert movie times and more without leaving Hotmail®. http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd1_052009
RE: Which listeners required in server.xml?
DONT_NEEDdont need with Comment Running tomcat 6.0.18 server.xml has the following listener's enabled by default: !--APR library loader. Documentation at /docs/apr.html -- Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / DONT_NEEDNO Implementation of LifecycleListener that will init and and destroy APR? then comment this out !--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -- Listener className=org.apache.catalina.core.JasperListener / DONT_NEEDNO implementation of listener is designed to initialize Jasper before web applications are started then DONT_NEEDcomment out !-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / DONT_NEEDNo implementation of LifecycleListener that instantiates the set of MBeans associated with the DONT_NEEDcomponents of a running instance of Catalina. (MX Agents) then comment this out Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / DONT_NEEDNo Implementation of LifecycleListener that instantiates the set of MBeans associated with global DONT_NEEDJNDI resources that are subject to management. then comment this out! I am using standalone tomcat (no apache) without SSL, without APR, I am not using any manager or host-manager applications .. Do I need these listeners or can I remove some/all of them? DONT_NEEDIf No Apr then remove AprLifecycleListener DONT_NEEDIf No Jsp then remove JasperListener DONT_NEEDIf No MBean then remove ServerLifecycleListener DONT_NEEDIf No JNDI then remove GlobalResourcesLifecycleListener -- View this message in context: http://www.nabble.com/Which-listeners-required-in-server.xml--tp23787784p23787784.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Hotmail® has ever-growing storage! Don’t worry about storage limits. http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage1_052009
RE: Which listeners required in server.xml?
mgainty wrote: Do I need these listeners or can I remove some/all of them? DONT_NEEDIf No Apr then remove AprLifecycleListener DONT_NEEDIf No Jsp then remove JasperListener DONT_NEEDIf No MBean then remove ServerLifecycleListener DONT_NEEDIf No JNDI then remove GlobalResourcesLifecycleListener Thank you very much. I am not explicitly using JNDI or MBean in my app, but I am not sure if Tomcat relies on this functionality either internally or with Spring? -- View this message in context: http://www.nabble.com/Which-listeners-required-in-server.xml--tp23787784p23788146.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Windows x64 Installer
1) Correct 2) Didn't try and agree with you. 3) Correct. Not using APR, just HTTP (HTTPS later, but not tried) 4) Correct. System config: Windows 2008 Standard (64-bit), Tomcat 5.5 standard install running as standalone web server. Copied the 32-bit install and replaced tomcat5.exe, tomcat5w.exe and tcnative-1.dll with the current 64-bit versions from apache.org web/ftp site. Issued a tomcat5.exe //is, with appropriate options and jvm, to create as a service. There are no proxys on the system. Windows firewall is off. Using Symantec Endpoint Protection 11.0.4 for virus firewall security (same results with firewall enabled/disabled). Just trying to pull up the welcome page (http://ip:8080) and getting the results described. Also on 4) telnet ip 8080 will get a connection failure. Jeff -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Friday, May 29, 2009 12:54 PM To: Tomcat Users List Subject: RE: Windows x64 Installer From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: RE: Windows x64 Installer Tested all those options before I sent the mail. Let me summarize to see if I understand this properly: 1) 32-bit JVM, 32-bit DLL: works from localhost and from a separate system 2) 32-bit JVM, 64-bit DLL: ?? (shouldn't work) 3) 64-bit JVM, 32-bit DLL: works from localhost and from a separate system (it shouldn't work - you probably aren't using APR in this case) 4) 64-bit JVM, 64-bit DLL: works from localhost, but not from a separate system Is the above correct? - 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 *** NOTICE * This message is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by reply or by telephone (call us collect at 512-343-9100) and immediately delete this message and all its attachments. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Windows x64 Installer
János Löbb: Because the electron has resting mess, it will never go with speed of light. The info by the way is not supplied by the electron, but rather with electromagnetic waves around the wire who have no resting mess, Oh, what a mess! ;-) -- Regards mks - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Which listeners required in server.xml?
Spring and/or DI frameworks do not use either JNDI or MXbean unless specifically configured to do so free to disable those listeners as they are serve no useful purpose 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. Date: Fri, 29 May 2009 15:50:00 -0700 From: johnpi...@yahoo.com To: users@tomcat.apache.org Subject: RE: Which listeners required in server.xml? mgainty wrote: Do I need these listeners or can I remove some/all of them? DONT_NEEDIf No Apr then remove AprLifecycleListener DONT_NEEDIf No Jsp then remove JasperListener DONT_NEEDIf No MBean then remove ServerLifecycleListener DONT_NEEDIf No JNDI then remove GlobalResourcesLifecycleListener Thank you very much. I am not explicitly using JNDI or MBean in my app, but I am not sure if Tomcat relies on this functionality either internally or with Spring? -- View this message in context: http://www.nabble.com/Which-listeners-required-in-server.xml--tp23787784p23788146.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Hotmail® has ever-growing storage! Don’t worry about storage limits. http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage1_052009
Re: Which listeners required in server.xml?
johnrock johnpi...@yahoo.com wrote in message news:23787784.p...@talk.nabble.com... Running tomcat 6.0.18 server.xml has the following listener's enabled by default: !--APR library loader. Documentation at /docs/apr.html -- Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=on / If you are not using APR, than you don't need this (and removing it gets rid of a message at startup). !--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -- Listener className=org.apache.catalina.core.JasperListener / If you are never going to use JSP pages, can probably remove it. However, it's pretty light-weight so would leave it in just so that I don't have to spend time with any weird errors. !-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / This looks like it is left over from the admin webapp (RIP). It doesn't look like it does anything particularly useful anymore, but again the warning about weird errors. Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / Also left over from the admin webapp (RIP). This one really doesn't do anything particularly useful anymore, so it is safe to remove. It should probably be removed from the distribution as well (at least for TC 7), since it was a bad idea in the first place. I am using standalone tomcat (no apache) without SSL, without APR, I am not using any manager or host-manager applications .. Do I need these listeners or can I remove some/all of them? -- View this message in context: http://www.nabble.com/Which-listeners-required-in-server.xml--tp23787784p23787784.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Apache Portable Runtime ?
Caldarale, Charles R chuck.caldar...@unisys.com wrote in message news:0aae5ab84b013e45a7b61cb66943c17228f1795...@usea-exch7.na.uis.unisys.com... From: johnrock [mailto:johnpi...@yahoo.com] Subject: Re: Apache Portable Runtime ? Given that, is it still a preferred idea to install APR? Your best bet is to measure the performance of your webapp with and without APR. Since you're not using SSL and have limited static content, I suspect you won't see much of a difference. I agree with Chuck. The performance of APR against the other connectors varies a lot depending on the OS (e.g. last time I saw numbers, which was a while ago, APR for dynamic content was slower on Windows). If you don't expect to be handling a lot of concurrent connections with HTTP only than APR doesn't offer a lot of benifits. Is installing the APR considered a 'must do' for anyone looking to maximize the performance of Tomcat in production? Or is this something in the category of 'not neccessary/ adviseable unless you need it'? I'd put it in the latter category, unless you measure a noticeable throughput gain with it. Including APR does reduce portability, since you'll need a different native library for each platform, including just going from a 32- to 64-bit JVM. - 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: how to convert struts based apps from tomcat4 to tomcat5.5?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Maurizio, On 5/29/2009 3:05 AM, Maurizio Rottin wrote: bean:define id=abst name=news property=abstr / bean:define id=title name=news property=title/ [snip] ERROR [TP-Processor40] - Servlet.service() for servlet jsp threw exception javax.servlet.jsp.JspException: Define tag cannot set a null value at org.apache.struts.taglib.bean.DefineTag.doEndTag(DefineTag.java:272) etc. etc. Check the documentation for the bean:define tag: http://struts.apache.org/1.2.x/userGuide/struts-bean.html#define It says: USAGE NOTE - If you use another tag to create the body content (e.g. bean:write), that tag must return a non-empty String. An empty String equates to an empty body or a null String, and a new scripting variable cannot be defined as null. Your bean must return a non-empty String, or the define tag must be wrapped within a logic tag to test for an empty or null value. So, bean:define is basically calling news.getAbstr() (or news.getTitle()) and it is returning null, which throws an error. I suspect that either your news object is null, or the title or abstract of the news item is null. My guess is that 'news' is null. Maybe you mistyped news as nzews? logic:iterate scope=request id=nzews name=limitNewsList length=2 offset=0 ?? if i comment this line request.setAttribute(limitNewsList , limitNewsList );, the page is shown without errors. That's because you change the flow of execution to avoid your bean:define. It doesn't fix the problem: it only masks it. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkogoioACgkQ9CaO5/Lv0PDkNQCgkSvCCMjObJyYGdWCfuVrAzPz yuMAn3wblRqQuJ/KndSFGsAFPvVKyuhU =ABmk -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: retrive Arabic data
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 George, On 5/28/2009 3:59 PM, George Sexton wrote: The issue is the default character set for Java. I've noticed that at least at one point in time, the default character set for Java running under windows was Windows-1252. Running under Linux it defaults to ISO-8859-1. That's a bold statement. $ uname -a Linux chadis 2.6.14-gentoo-r5 #2 PREEMPT Sat Dec 17 16:30:55 EST 2005 i686 AMD Athlon(tm) XP 1700+ AuthenticAMD GNU/Linux $ java -version java version 1.6.0_13 Java(TM) SE Runtime Environment (build 1.6.0_13-b03) Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing) $ java -classpath .. Env | grep file\.encoding= file.encoding=ANSI_X3.4-1968 That's ASCII, baby! I'm sure the same issue is happening here. It's defaulting to Windows-1256 on Arabic windows, on another OS it's defaulting to ISO-8859-1 or perhaps ISO-8859-6. As Len points out, file.encoding should have nothing to do with this since the data source is a database. file.encoding is only used when converting bytes to characters and no encoding has explicitly been specified. The db driver should at least default to something (which /may/ be file.encoding but should probably default to whatever the database is actually using). I ran into these kind of issues when I called the various String to Byte Array functions, e.g. String.getBytes(). I was calling getBytes() and then using a hash function for the result and getting different results on different machines. That's because calling String.getBytes() is a bad idea. You should be using String.getBytes(String). In short, there's no simple answer. You have to figure out step by step where things are going wrong, and then address those issues. +1 1) Default Charset on each platform. - -1 2) Charset the database is declared with 3) Charset of data coming in from db. +1 4) Charset of pages. Do the pages explicitly set the encoding to UTF-8? +0 : UTF-8 isn't the only game in town, but it's the only one worth playing :) This application wouldn't work on any system unless the page encoding had been explicitly set to something that contained Arabic characters, since the default JSP encoding is ISO-8859-1 which clearly does not contain such characters. I would also check the system you're on /for the browser/. I had a problem where one machine could properly render Chinese characters while another one couldn't: the server was 100% correct but the client was failing to display them properly. There's nothing the server can do about that! I would also check your database driver settings. If you use Tomcat to set up your database connection pool (using a Resource element in context.xml) then you may have different encodings set on different servers. Make sure that they are all the same (and I would highly recommend copying the one that /works/). Hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkogpOUACgkQ9CaO5/Lv0PBIugCeOkeVDuR/TP0KsormCIyTfcUt tRgAn2xc4ohoLvJC3dcvyylHzhDpKGf3 =afO0 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: retrive Arabic data
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André-John, On 5/28/2009 7:23 PM, Andre-John Mas wrote: You can specify any encoding you wish, but this is the most universal encoding. If you don't specify the character encoding in the content-type most browsers will default to ISO-8859-1 as the specification requires. It's the /server/ that defaults to using ISO-8859-1, not the browser. The browser will simply do what it's told (unless it's MSIE, of course, in which case it will do as it pleases). - You can over-ride the default encoding used by the VM, by passing the -Djava.encoding=UTF-8 option in catalina.bat Better to set this in bin/setenv.sh to keep your options separate from the actual startup script. One assumption you can make is that Java uses UTF-16 internally. True, but not really relevant. There is no encoding of a String. Character encodings only come into play when you need to convert characters to bytes. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkogpegACgkQ9CaO5/Lv0PD4lgCbBSEV0WAHYWIVpg5B+dUWsDAl AToAoLcB5Hg3T4/33+t0yoNy0xlFqlfO =siA+ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: retrive Arabic data
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André-John, On 5/28/2009 6:59 PM, Andre-John Mas wrote: The ability to display non-latin charactrers depends as much on the client operating system, as on the what the server is providing. For example if you have nothing on your computer that knows how to render arabic charcaters then you are likely to end up with junk characters (usually question marks). Absolutely. Most recent operating systems support UTF-8. With Windows 2003 server and Windows 2000, it will depend on what browser you are using, whether you have international language packs installed and whether you have the right fonts. It will always depend on the browser you are using. The operating system is not relevant. Linux, MS-Windows (as of Windows XP) and MacOS X all know how to deal with UTF-8. On Windows you should ensure that at least Internet Explorer 7 is being used. Malarchy: Windows versions before Windows XP could handle non-latin character sets. Unicode support is part of win32 and should be available for all versions of win32 including that awful kludge win32s which could be installed onto Windows 3.1. MSIE 7+ is not at all required to view utf8. MSIE versions back to 2.0 have supported multi-byte character sets. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkogqLoACgkQ9CaO5/Lv0PAZ/QCgi0+w/tOSOEgkgmdj8LxGUPzC ebIAoJdMD55sJ7RfFzb0TVSCxkWjfQAq =O0qz -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Potential connection leakage
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johnny, On 5/28/2009 11:53 PM, Johnny Lui wrote: Potential connection leakage:4 Looks like you might be leaking connections. You should fix that! http://blog.christopherschultz.net/?p=68 - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkogqWcACgkQ9CaO5/Lv0PAuYQCfVGwzJ+hYFqFsO8fJgGsuTjXb JW0AmwZpeEYCbGneTys+iM0TV1cVsdg9 =T4Ef -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Which listeners required in server.xml?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, On 5/29/2009 6:08 PM, johnrock wrote: I am using standalone tomcat (no apache) without SSL, without APR, I am not using any manager or host-manager applications .. Adding the APR library will give you a significant performance improvement even with the plain-old HTTP connector. It might be worth installing APR and leaving that listener in there. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkogqhcACgkQ9CaO5/Lv0PDCKwCfRq5BCxjaog1MQYTqbMzY7zpc r4AAn0cu/kmZmWNq+stofg9zLEXeDP0p =/Oi6 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Apache Portable Runtime ?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, On 5/29/2009 4:38 PM, johnrock wrote: I wanted to add a little clarity to my question: I am not using SSL or serving any significant amount of static content - just good ol fashioned Jsp/Jstl's with a standalone tomcat (no Apache). A very svelt and simple web app that I am designing for performance. Aah... I read your messages out-of-order. APR will get you the biggest performance increase with static files and sendFile=true set on your connector. Still, any performance decisions made without actually doing some tests would be silly, so go ahead and benchmark your application and see what the difference is. Setting up APR is pretty trivial, so it's not like it will take too much effort to make an informed decision. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkogqqMACgkQ9CaO5/Lv0PAPPQCgwQPSbfPh2JljNRTkCG86hMNm +QYAnAonTQ4XbdhmGxFFo0SPV9QLfWVq =iDmt -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Apache Tomcat hangs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Raquel, On 5/29/2009 6:35 AM, Raquel Hernández Martinez wrote: I am using apache Tomcat 5.5 which is set up on a hp-ux machine. my application uses jaspert-reports At times during we use jaspert-rerpot for generate to a pdf, get an error as shown below, and this causes the servers hangs and can not log on the tomcat console and application. Ugh... are you really using JSP to generate a PDF through jasper reports? Does the JSP actually generate a PDF to the output stream, or do you write the PDF to a file and then redirect to it or something like that? JSP wasn't designed to generate binary content, although it /can/ be beaten into submission in order to do so. SEVERE: Exception initializing page context java.lang.IllegalStateException: Cannot create a session after the response has been committed at org.apache.catalina.connector.Request.doGetSession(Unknown Source) [snip] at org.apache.catalina.core.ApplicationDispatcher.include(Unknown Source) at org.apache.jasper.runtime.JspRuntimeLibrary.include(Unknown Source) at org.apache.jsp.jsp.Alarma_Detalle_Service_jsp._jspService(Alarma_Detalle_Service_jsp.java:122) The problem is that you are including one page from another, and the page you are calling requires a session. The including page apparently does /not/ need a session, and so the included page tries to create one. In spite of the fact that the servlet spec specifically forbids this, Tomcat is trying it, anyway, and when the session is created, a Set-Cookie header needs to be sent to the browser. If the headers have already been sent, you get this error. Solutions? I'd set session=true in Alarma Detalle Service.jsp and see if that helps. I'd also try not to generate PDF output from a JSP ;) - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkogrMEACgkQ9CaO5/Lv0PD7zwCfcsAPP4svbeje8grUXb/bhtMA CZwAoK/kH6NgoELp7VDwXT5CIxkHUiC0 =VxRQ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Apache Tomcat hangs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, Wow, you did a lot of work! On 5/29/2009 8:47 AM, Martin Gainty wrote: but none of this *should happen if the jsp execution did'nt double submit* relevant bits of your jsp code located at What does this mean? at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(Unknown Source) at org.apache.jsp.jsp.Alarma_Detalle_jsp._jspService(Alarma_Detalle_jsp.java:37) //Why is this code (re)referencing getPageContext It's not. _initialize() is simply calling getSession() because the page declared session=true (or failed to declare session=false, since it's the default). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkogrXYACgkQ9CaO5/Lv0PDJRQCdG26EbqAvtIVaisXpqAbUPdMI JeoAoJ+xrQFQYp+TszfKwS9AAOk4l73z =rXL9 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Apache Tomcat hangs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Raquel, On 5/29/2009 6:35 AM, Raquel Hernández Martinez wrote: I am using apache Tomcat 5.5 which is set up on a hp-ux machine. my application uses jaspert-reports At times during we use jaspert-rerpot for generate to a pdf, get an error as shown below, and this causes the servers hangs and can not log on the tomcat console and application. Ugh... are you really using JSP to generate a PDF through jasper reports? Does the JSP actually generate a PDF to the output stream, or do you write the PDF to a file and then redirect to it or something like that? JSP wasn't designed to generate binary content, although it /can/ be beaten into submission in order to do so. SEVERE: Exception initializing page context java.lang.IllegalStateException: Cannot create a session after the response has been committed at org.apache.catalina.connector.Request.doGetSession(Unknown Source) [snip] at org.apache.catalina.core.ApplicationDispatcher.include(Unknown Source) at org.apache.jasper.runtime.JspRuntimeLibrary.include(Unknown Source) at org.apache.jsp.jsp.Alarma_Detalle_Service_jsp._jspService(Alarma_Detalle_Service_jsp.java:122) The problem is that you are including one page from another, and the page you are calling requires a session. The including page apparently does /not/ need a session, and so the included page tries to create one. In spite of the fact that the servlet spec specifically forbids this, Tomcat is trying it, anyway, and when the session is created, a Set-Cookie header needs to be sent to the browser. If the headers have already been sent, you get this error. Solutions? I'd set session=true in Alarma Detalle Service.jsp and see if that helps. I'd also try not to generate PDF output from a JSP ;) - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkogrMEACgkQ9CaO5/Lv0PD7zwCfcsAPP4svbeje8grUXb/bhtMA CZwAoK/kH6NgoELp7VDwXT5CIxkHUiC0 =VxRQ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Which listeners required in server.xml?
Christopher Schultz ch...@christopherschultz.net wrote in message news:4a20aa17.2050...@christopherschultz.net... -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, On 5/29/2009 6:08 PM, johnrock wrote: I am using standalone tomcat (no apache) without SSL, without APR, I am not using any manager or host-manager applications .. Adding the APR library will give you a significant performance improvement even with the plain-old HTTP connector. It might be worth installing APR and leaving that listener in there. Urm, and u are basing this on what? A low-traffic dynamic site should see next to nothing using APR, and could even lose (given the interlocks to JNI). It all depends on who is smarter, the JVM developer, or the APR develper for CentOS. Again, to the OP, profile both configurations for your OS, and make the decision then. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkogqhcACgkQ9CaO5/Lv0PDCKwCfRq5BCxjaog1MQYTqbMzY7zpc r4AAn0cu/kmZmWNq+stofg9zLEXeDP0p =/Oi6 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org