NPE in SystemLogHandler.findStream()
Hi! I have a problem with NPE in SystemLogHandler.findStream(). copy tomcat 5.5.27 /** * Find PrintStream to which the output must be written to. */ protected PrintStream findStream() { PrintStream ps = (PrintStream) streams.get(); if (ps == null) { ps = wrapped; } return ps; } /copy tomcat 5.5.27 Somone (in this case saxon) have created a new java.io.OutputStreamWriter(System.err) with System.err as outputStream. Later when flush() is called on the OutputStreamWriter i get a NPE as described below. java.lang.NullPointerException at org.apache.jasper.util.SystemLogHandler.findStream(SystemLogHandler.java:107) at org.apache.jasper.util.SystemLogHandler.flush(SystemLogHandler.java:119) at sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:410) at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152) at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213) at net.sf.saxon.event.MessageEmitter.close(MessageEmitter.java:24) at net.sf.saxon.Controller.transformDocument(Controller.java:1776) at net.sf.saxon.Controller.transform(Controller.java:1559) Google found a similar problem for me, but I could not find any solution. See http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topicf=7t=017475 I may try to replace System.err with System.out and hope this will solve the problem. But I would like to know what the problem is. Anyone had this before? -- Lars :-) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to watch active sessions size
I'd like to watch the active sessions count and size for a given web application. I know that implementing a HttpSessionListener to keep the references to all created sessions and then implementing some page to query it's state works, but that also means that i would have to redeploy all applications with the listener for it to work. I would much prefer a solution that didn't require any change in the deployed application. Any ideas ?
Re:
I have used Softerra LDAP Admin and it worked while tomcat did not. How can i increase the verbosity ? i tried to configure log4j, but i could not build the extra component (extra.xml) because i'm on windows machine and i've installed tomcat using windows service installer. Any ideas? thanks for your help!! *using windows service instdalle**log4jl* On Mon, Oct 27, 2008 at 1:13 PM, Serge Fonville [EMAIL PROTECTED]wrote: Perhaps if you download Symas OpenLDAP 2.3 (CDS v3) Silver Editionjavascript:uiform_click('xanchor_2212_5') (Requires registration) (an ldap server for windows), you can use the accompanying uilities to try and do the same tomcat does.That way you can try to determine if there is anything related to the configuration that is incorrect. Also if you increase the verbosity of the logginghttp://tomcat.apache.org/tomcat-6.0-doc/logging.htmlyou might be able to determine what exactly went wrong. Hope this helps Regards, Serge Fonville Links: On Mon, Oct 27, 2008 at 10:33 AM, Hisham Farahat [EMAIL PROTECTED] wrote: It is on a separate server, running windows server 2003. And no wrong passwords attempts, it happens from the 1st attempt. Sorry for the title thing :) On Mon, Oct 27, 2008 at 12:20 PM, André Warnier [EMAIL PROTECTED] wrote: Hisham Farahat wrote: Dear All, I have a problem with my web application. I configured tomcat 6.0 to authenticate users through Realm ( LDAP), it connects to an active directory server. Everything seems OK, but sometimes the connection could not be established ( Connection refused ) and it continues with this state for ~ 10 minutes. Stopping and starting tomcat again won't affect anything, I should restart the machine so that users can access the web application normally ( or just wait for 10 minutes). How can I solve this problem? Regards, As someone else asked, you need to provide some additional details, such as : - is this Tomcat running on your workstation ? else on what ? With only the explanation above, I would guess that the LDAP server somehow (maybe after a few unsuccesful attempts with bad passwords ?), puts your Tomcat server on some blacklist, and refuses connections from it. Maybe when you reboot the machine, it gets a different IP address and is thus no longer on the blacklist at first ? It does not sound like a specific Tomcat issue though. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hisham Farahat -- Hisham Farahat
Re: How to watch active sessions size
Lambdaprobe :-) Btw, your solution will create a memory leak, its better just to count creation and destruction events instead of holding references. regards Leon On Tue, Oct 28, 2008 at 11:08 AM, Hugo Palma [EMAIL PROTECTED] wrote: I'd like to watch the active sessions count and size for a given web application. I know that implementing a HttpSessionListener to keep the references to all created sessions and then implementing some page to query it's state works, but that also means that i would have to redeploy all applications with the listener for it to work. I would much prefer a solution that didn't require any change in the deployed application. Any ideas ? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re:
You can build it on windows, since ant for windows can be downloaded the same as for any other platform it is available for the fact tomcat was installed as a service has no impact on what can and can't be loaded inside tomcat since tomcat loads it's configuration file on startup and has all libraies in its classpath avaiable to it. the rest can be found on the tomcat website about logging (which yoiu clearly already found) Perhaps you got a specific error during building. If so, what was it and what steps did you take (before,during,after) Regards, Serge Fonville On Tue, Oct 28, 2008 at 11:17 AM, Hisham Farahat [EMAIL PROTECTED]wrote: I have used Softerra LDAP Admin and it worked while tomcat did not. How can i increase the verbosity ? i tried to configure log4j, but i could not build the extra component (extra.xml) because i'm on windows machine and i've installed tomcat using windows service installer. Any ideas? thanks for your help!! *using windows service instdalle**log4jl* On Mon, Oct 27, 2008 at 1:13 PM, Serge Fonville [EMAIL PROTECTED] wrote: Perhaps if you download Symas OpenLDAP 2.3 (CDS v3) Silver Editionjavascript:uiform_click('xanchor_2212_5') (Requires registration) (an ldap server for windows), you can use the accompanying uilities to try and do the same tomcat does.That way you can try to determine if there is anything related to the configuration that is incorrect. Also if you increase the verbosity of the logginghttp://tomcat.apache.org/tomcat-6.0-doc/logging.htmlyou might be able to determine what exactly went wrong. Hope this helps Regards, Serge Fonville Links: On Mon, Oct 27, 2008 at 10:33 AM, Hisham Farahat [EMAIL PROTECTED] wrote: It is on a separate server, running windows server 2003. And no wrong passwords attempts, it happens from the 1st attempt. Sorry for the title thing :) On Mon, Oct 27, 2008 at 12:20 PM, André Warnier [EMAIL PROTECTED] wrote: Hisham Farahat wrote: Dear All, I have a problem with my web application. I configured tomcat 6.0 to authenticate users through Realm ( LDAP), it connects to an active directory server. Everything seems OK, but sometimes the connection could not be established ( Connection refused ) and it continues with this state for ~ 10 minutes. Stopping and starting tomcat again won't affect anything, I should restart the machine so that users can access the web application normally ( or just wait for 10 minutes). How can I solve this problem? Regards, As someone else asked, you need to provide some additional details, such as : - is this Tomcat running on your workstation ? else on what ? With only the explanation above, I would guess that the LDAP server somehow (maybe after a few unsuccesful attempts with bad passwords ?), puts your Tomcat server on some blacklist, and refuses connections from it. Maybe when you reboot the machine, it gets a different IP address and is thus no longer on the blacklist at first ? It does not sound like a specific Tomcat issue though. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hisham Farahat -- Hisham Farahat
Re: Tomcat 6 - Problems with encoding
Hi Thanks for your quick reply. I already changed my encoding to ISO-8859-15, however i'm still having problems. Here is the HTTP Post Stream using ISO-8859-15: POST /AppWeb/webFlow.do2 HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/xaml+xml, application/vnd.ms-xpsdocument, application/x-ms-xbap, application/x-ms-application, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-silverlight, application/x-silverlight-2-b2, */* Referer: http://localhost:2001/AppWeb/servicos.do2?tipo=25266referer=/listarvariantes.do2?proc=25265 Accept-Language: pt Content-Type: application/x-www-form-urlencoded UA-CPU: x86 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022) Host: localhost:2001 Content-Length: 704 Connection: Keep-Alive Cache-Control: no-cache Cookie: menuPos=; JSESSIONID=F99DE24CEA69DA1F0F3AC119A3C1CF54 _flowExecutionKey=_c19EF91A8-4B9E-8180-7620-F3FE78E0FB33_kA94AECBD-B5EB-0DA8-2E83-0624F27D614CanoEconomico=2008processoPai=Test-%A4-%21 As you can see the value Test-€-! was transformed into Test-%A4-%2. However when the request enter's the RequestProcessor of struts, if i debug and get the value of request.getParameter(processoPai), the result is this: Test-¤-! So... i'm still stuck with this :( Do you have any other tips Leon? Thanks for you help anyway! Best Regards João Simas Leon Rosenberg-3 wrote: € sign is not part of ISO-8859-1 use ISO-8859-15 instead. regards Leon On Mon, Oct 27, 2008 at 7:19 PM, JSimas [EMAIL PROTECTED] wrote: Hi. I'm using Apache Tomcat 6.0.14, wich deploys a Struts 1.x web application. I was using encoding ISO-LATIN-1 but i was having problems with the euro (€) char. Every time that i use a € char in a text box or in a text area, when the request arrives at struts Request Processor the value is already deformed. I've tried to change the encoding into UTF-8 but i also have problems. Using a HTTP Sniffer, this is what i could gather: HTTP Post Request into Tomcat: POST /DRCIEWeb/drcieFlow.do2 HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/xaml+xml, application/vnd.ms-xpsdocument, application/x-ms-xbap, application/x-ms-application, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-silverlight, application/x-silverlight-2-b2, */* Referer: http://localhost:2001/WebApp/webFlow.do2 Accept-Language: pt Content-Type: application/x-www-form-urlencoded UA-CPU: x86 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022) Host: localhost:2001 Content-Length: 733 Connection: Keep-Alive Cache-Control: no-cache Cookie: menuPos=%260-1%261-1; JSESSIONID=665E5243A08AF2A83D586E9181487F64 _flowExecutionKey=_cDB824BB0-C9AA-F9D1-519F-27E8542F8DE9_k82B5EDEF-9F28-712A-FBAE-5D2965221283anoEconomico=2008siglaDirecaoServico=requerente.nif=requerente.nome=nomescgp=ac=[EMAIL PROTECTED] The bolded text is the input text wich is: @€. However the € char is encoded using UTF-8 wich is represented by the %E2%82%AC string. When the request arrives in the Request Processor of Struts this is the value: @€ There is probably something that i should configure in Tomcat for this to work.. however i'm completely lost! Can anyone help me please Thanks in advance. Best Regards João Simas -- View this message in context: http://www.nabble.com/Tomcat-6---Problems-with-encoding-tp20193292p20193292.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Tomcat-6---Problems-with-encoding-tp20193292p20205114.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I use a class in javax package from the jar file in WEB-INF/lib instead of the one in common/lib.
Oh, that makes perfect sense. Thanks Chuck. Regards, Kevin 2008/10/25 Caldarale, Charles R [EMAIL PROTECTED] From: Kevin SeongHyun Lee [mailto:[EMAIL PROTECTED] Subject: Re: How can I use a class in javax package from the jar file in WEB-INF/lib instead of the one in common/lib. Even if it is loaded first, I believe, it should work as both libraries are the same javamail What frequently happens is that some classes get loaded from both jars, but since they're under different classloaders, the JVM treats them as different classes. When code in one class tries to utilize instances created from the other classloader, it can't, since the instance of operation fails. Does anyone know how to solve this without removing any files? I don't. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6 - Problems with encoding
Hi, As you can see the value Test-€-! was transformed into Test-%A4-%2. Maybe you confuse between URL Encoding and Charset Enconding. %xx is a URL Encoding, you have to refere to the approriate RFC for that. (or to anyone who knows it) And i don't see in your request header a charset defined. Like POST /something; charset=ISO-8859-15 Personnaly, i don't believe that Open a ISO-8859-15 stream garanted all chars will be transfert in ISO-8859-15. (or converted into), certainly because i'm paranoïd ^^ And, maybe i open a opened door too, you java encoding don't match ISO-8859-15. In eclipse, when i print ISO-8859-1 in output, don't looks like good because output is in UTF8 (or 16). All charset problems i had, that a pipe (or more) transfert was not in good charset. I hope, i have help you a little. Jerome Lepage - Original Message - From: JSimas [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Tuesday, October 28, 2008 12:01 PM Subject: Re: Tomcat 6 - Problems with encoding Hi Thanks for your quick reply. I already changed my encoding to ISO-8859-15, however i'm still having problems. Here is the HTTP Post Stream using ISO-8859-15: POST /AppWeb/webFlow.do2 HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/xaml+xml, application/vnd.ms-xpsdocument, application/x-ms-xbap, application/x-ms-application, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-silverlight, application/x-silverlight-2-b2, */* Referer: http://localhost:2001/AppWeb/servicos.do2?tipo=25266referer=/listarvariantes.do2?proc=25265 Accept-Language: pt Content-Type: application/x-www-form-urlencoded UA-CPU: x86 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022) Host: localhost:2001 Content-Length: 704 Connection: Keep-Alive Cache-Control: no-cache Cookie: menuPos=; JSESSIONID=F99DE24CEA69DA1F0F3AC119A3C1CF54 _flowExecutionKey=_c19EF91A8-4B9E-8180-7620-F3FE78E0FB33_kA94AECBD-B5EB-0DA8-2E83-0624F27D614CanoEconomico=2008processoPai=Test-%A4-%21 As you can see the value Test-€-! was transformed into Test-%A4-%2. However when the request enter's the RequestProcessor of struts, if i debug and get the value of request.getParameter(processoPai), the result is this: Test-¤-! So... i'm still stuck with this :( Do you have any other tips Leon? Thanks for you help anyway! Best Regards João Simas Leon Rosenberg-3 wrote: € sign is not part of ISO-8859-1 use ISO-8859-15 instead. regards Leon On Mon, Oct 27, 2008 at 7:19 PM, JSimas [EMAIL PROTECTED] wrote: Hi. I'm using Apache Tomcat 6.0.14, wich deploys a Struts 1.x web application. I was using encoding ISO-LATIN-1 but i was having problems with the euro (€) char. Every time that i use a € char in a text box or in a text area, when the request arrives at struts Request Processor the value is already deformed. I've tried to change the encoding into UTF-8 but i also have problems. Using a HTTP Sniffer, this is what i could gather: HTTP Post Request into Tomcat: POST /DRCIEWeb/drcieFlow.do2 HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/xaml+xml, application/vnd.ms-xpsdocument, application/x-ms-xbap, application/x-ms-application, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-silverlight, application/x-silverlight-2-b2, */* Referer: http://localhost:2001/WebApp/webFlow.do2 Accept-Language: pt Content-Type: application/x-www-form-urlencoded UA-CPU: x86 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022) Host: localhost:2001 Content-Length: 733 Connection: Keep-Alive Cache-Control: no-cache Cookie: menuPos=%260-1%261-1; JSESSIONID=665E5243A08AF2A83D586E9181487F64 _flowExecutionKey=_cDB824BB0-C9AA-F9D1-519F-27E8542F8DE9_k82B5EDEF-9F28-712A-FBAE-5D2965221283anoEconomico=2008siglaDirecaoServico=requerente.nif=requerente.nome=nomescgp=ac=[EMAIL PROTECTED] The bolded text is the input text wich is: @€. However the € char is encoded using UTF-8 wich is represented by the %E2%82%AC string. When the request arrives in the Request Processor of Struts this is the value: @€ There is probably something that i should configure in Tomcat for this to work.. however i'm completely lost! Can anyone help me please Thanks in advance. Best Regards João Simas -- View this message in context: http://www.nabble.com/Tomcat-6---Problems-with-encoding-tp20193292p20193292.html Sent from the Tomcat - User mailing list archive at Nabble.com.
Re:
Ok, i used the normal logger with ALL messages showing out, here is the part of the log where the error occurred: Oct 28, 2008 2:21:07 PM org.apache.catalina.realm.JNDIRealm getRoles FINER: Found role Infonet-Admins Oct 28, 2008 2:24:07 PM org.apache.catalina.core.StandardHostValve custom FINE: Processing ErrorPage[errorCode=401, location=/401.jsp] Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm getUserBySearch FINER: entry found for tomcat with dn CN=tomcat,CN=Users,DC=company,DC=com Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm bindAsUser FINER: validating credentials by binding as the user Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm bindAsUser FINER: binding as CN=tomcat,CN=Users,DC=company,DC=com Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm checkCredentials FINER: Username tomcat successfully authenticated Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm getRoles FINER: getRoles(CN=tomcat,CN=Users,DC=company,DC=com) Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm addAttributeValues FINER: retrieving values for attribute description Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm addAttributeValues FINER: retrieving values for attribute description Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm addAttributeValues FINER: retrieving values for attribute description Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm getRoles FINER: Returning 3 roles Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm getRoles FINER: Found role admin Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm getRoles FINER: Found role manager Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm getRoles FINER: Found role Infonet-Admins Oct 28, 2008 2:33:22 PM org.apache.catalina.core.ApplicationDispatcher doForward FINE: Disabling the response for futher output Oct 28, 2008 2:33:26 PM org.apache.catalina.realm.JNDIRealm authenticate SEVERE: Exception performing authentication javax.naming.PartialResultException [Root exception is javax.naming.CommunicationException: company.com:389 [Root exception is java.net.ConnectException: Connection refused: connect]] at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreImpl(Unknown Source) at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreReferrals(Unknown Source) at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreImpl(Unknown Source) at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreReferrals(Unknown Source) at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreImpl(Unknown Source) at com.sun.jndi.ldap.LdapNamingEnumeration.hasMore(Unknown Source) at org.apache.catalina.realm.JNDIRealm.getUserBySearch(JNDIRealm.java:1097) at org.apache.catalina.realm.JNDIRealm.getUser(JNDIRealm.java:992) at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:941) at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:810) at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:258) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:417) 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.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(Unknown Source) Caused by: javax.naming.CommunicationException: company.com:389 [Root exception is java.net.ConnectException: Connection refused: connect] at com.sun.jndi.ldap.LdapReferralContext.init(Unknown Source) at com.sun.jndi.ldap.LdapReferralException.getReferralContext(Unknown Source) at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreReferrals(Unknown Source) ... 20 more Caused by: java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.init(Unknown Source) at java.net.Socket.init(Unknown Source) at com.sun.jndi.ldap.Connection.createSocket(Unknown Source) at com.sun.jndi.ldap.Connection.init(Unknown Source) at com.sun.jndi.ldap.LdapClient.init(Unknown Source) at com.sun.jndi.ldap.LdapClient.getInstance(Unknown
Re: How to watch active sessions size
Isn't Lambdaprobe dead ? Thanks for the tip on the memory leak, you're right. But how else can i find out the size of each active session ? On Tue, Oct 28, 2008 at 10:33 AM, Leon Rosenberg [EMAIL PROTECTED] wrote: Lambdaprobe :-) Btw, your solution will create a memory leak, its better just to count creation and destruction events instead of holding references. regards Leon On Tue, Oct 28, 2008 at 11:08 AM, Hugo Palma [EMAIL PROTECTED] wrote: I'd like to watch the active sessions count and size for a given web application. I know that implementing a HttpSessionListener to keep the references to all created sessions and then implementing some page to query it's state works, but that also means that i would have to redeploy all applications with the listener for it to work. I would much prefer a solution that didn't require any change in the deployed application. Any ideas ? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re:
I would start looking at the logs of the AD server It seems the AD server has refused the connection, so maybe there is a more clear error there I meant the errors you had when building commons for log4j (since you said you couldn't build it) Have you tried manually connecting to the AD server with a commandline LDAP client Perhaps you can try to telnet to the address you connect to Since these errors at this time not yet make sense, perhaps it is advisable to run wireshark on the AD server and perform a netstat to verify sockets are listeneing as you would expect. Is the tomcat host and the AD server the same system (have you tried on another system) windows has it quirks(not being able to connecto to the local IP for example Regards, Serge Fonville On Tue, Oct 28, 2008 at 1:13 PM, Hisham Farahat [EMAIL PROTECTED]wrote: Ok, i used the normal logger with ALL messages showing out, here is the part of the log where the error occurred: Oct 28, 2008 2:21:07 PM org.apache.catalina.realm.JNDIRealm getRoles FINER: Found role Infonet-Admins Oct 28, 2008 2:24:07 PM org.apache.catalina.core.StandardHostValve custom FINE: Processing ErrorPage[errorCode=401, location=/401.jsp] Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm getUserBySearch FINER: entry found for tomcat with dn CN=tomcat,CN=Users,DC=company,DC=com Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm bindAsUser FINER: validating credentials by binding as the user Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm bindAsUser FINER: binding as CN=tomcat,CN=Users,DC=company,DC=com Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm checkCredentials FINER: Username tomcat successfully authenticated Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm getRoles FINER: getRoles(CN=tomcat,CN=Users,DC=company,DC=com) Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm addAttributeValues FINER: retrieving values for attribute description Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm addAttributeValues FINER: retrieving values for attribute description Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm addAttributeValues FINER: retrieving values for attribute description Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm getRoles FINER: Returning 3 roles Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm getRoles FINER: Found role admin Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm getRoles FINER: Found role manager Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm getRoles FINER: Found role Infonet-Admins Oct 28, 2008 2:33:22 PM org.apache.catalina.core.ApplicationDispatcher doForward FINE: Disabling the response for futher output Oct 28, 2008 2:33:26 PM org.apache.catalina.realm.JNDIRealm authenticate SEVERE: Exception performing authentication javax.naming.PartialResultException [Root exception is javax.naming.CommunicationException: company.com:389 [Root exception is java.net.ConnectException: Connection refused: connect]] at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreImpl(Unknown Source) at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreReferrals(Unknown Source) at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreImpl(Unknown Source) at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreReferrals(Unknown Source) at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreImpl(Unknown Source) at com.sun.jndi.ldap.LdapNamingEnumeration.hasMore(Unknown Source) at org.apache.catalina.realm.JNDIRealm.getUserBySearch(JNDIRealm.java:1097) at org.apache.catalina.realm.JNDIRealm.getUser(JNDIRealm.java:992) at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:941) at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:810) at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:258) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:417) 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.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(Unknown Source) Caused by: javax.naming.CommunicationException: company.com:389 [Root exception is java.net.ConnectException: Connection refused: connect] at com.sun.jndi.ldap.LdapReferralContext.init(Unknown Source) at
Re: Tomcat Server .pac Script configuration for outgoing connection.
what is the use of properties like http.proxyHost, http.proxyPort parameters which we could specify in catalina.properties? iirc, those are settings for application to use the proxy. If so, Can i use a .pac script ( Proxy Auto Configuration) instead of configuring proxy URL? Thanks Eswar On Sun, Oct 26, 2008 at 11:15 PM, Wayne Bragg [EMAIL PROTECTED] wrote: I guess you lost me with if you want a working solution you'll have to bypass the admin's configuration and try it with a 'clean' tomcat install what will that do for me? I could get the application to work on tomcat alone with the native php setup on tomcat, but I have not been able to get that to work either. I keep getting a tomcat native php error. - Original Message - From: Martin Gainty [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, October 26, 2008 6:04 PM Subject: RE: Tomcat Server .pac Script configuration for outgoing connection. I agree this has nothing to do with tomcat but a misconfiguration by the admin on Proxy Server if you want a working solution you'll have to bypass the admin's configuration and try it with a 'clean' tomcat install Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Sun, 26 Oct 2008 21:12:12 + From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Tomcat Server .pac Script configuration for outgoing connection. All, Tomcat - 5.0.28, Java - 1.4.2, OS - Windows XP We have a web application that sets up a local tomcat server with an application deployed into the client machine. To complete the setup, the application on Tomcat needs to access the internet from the client machine and verify with the source system. But the client machine are within a corporate network and needs .pac script to access internet. How can we configure Tomcat for all its applications to use a pac (proxy Auto Configuration) script to determine the proxy and access the internet? The installation currently fails at the point verification. Please let me know if you need further info. Any help be much appreciated. Thanks Eswar _ Store, manage and share up to 5GB with Windows Live SkyDrive. http://skydrive.live.com/welcome.aspx?provision=1?ocid=TXT_TAGLM_WL_skydrive_102008 No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database: 270.8.3/1747 - Release Date: 10/26/2008 9:27 AM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re:
I meant the errors you had when building commons for log4j (since you said you couldn't build it) I went to the easier way, using java.util.logger :) Have you tried manually connecting to the AD server with a commandline LDAP client yes, using a program called Softerra LDAP Admin. And it connects normally. is the tomcat host and the AD server the same system? No it is not. Looking at the AD logs, and verifying sockets needs the system admin authorization. I'll check with him. Thanks :) On Tue, Oct 28, 2008 at 3:31 PM, Serge Fonville [EMAIL PROTECTED]wrote: I would start looking at the logs of the AD server It seems the AD server has refused the connection, so maybe there is a more clear error there I meant the errors you had when building commons for log4j (since you said you couldn't build it) Have you tried manually connecting to the AD server with a commandline LDAP client Perhaps you can try to telnet to the address you connect to Since these errors at this time not yet make sense, perhaps it is advisable to run wireshark on the AD server and perform a netstat to verify sockets are listeneing as you would expect. Is the tomcat host and the AD server the same system (have you tried on another system) windows has it quirks(not being able to connecto to the local IP for example Regards, Serge Fonville On Tue, Oct 28, 2008 at 1:13 PM, Hisham Farahat [EMAIL PROTECTED] wrote: Ok, i used the normal logger with ALL messages showing out, here is the part of the log where the error occurred: Oct 28, 2008 2:21:07 PM org.apache.catalina.realm.JNDIRealm getRoles FINER: Found role Infonet-Admins Oct 28, 2008 2:24:07 PM org.apache.catalina.core.StandardHostValve custom FINE: Processing ErrorPage[errorCode=401, location=/401.jsp] Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm getUserBySearch FINER: entry found for tomcat with dn CN=tomcat,CN=Users,DC=company,DC=com Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm bindAsUser FINER: validating credentials by binding as the user Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm bindAsUser FINER: binding as CN=tomcat,CN=Users,DC=company,DC=com Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm checkCredentials FINER: Username tomcat successfully authenticated Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm getRoles FINER: getRoles(CN=tomcat,CN=Users,DC=company,DC=com) Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm addAttributeValues FINER: retrieving values for attribute description Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm addAttributeValues FINER: retrieving values for attribute description Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm addAttributeValues FINER: retrieving values for attribute description Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm getRoles FINER: Returning 3 roles Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm getRoles FINER: Found role admin Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm getRoles FINER: Found role manager Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm getRoles FINER: Found role Infonet-Admins Oct 28, 2008 2:33:22 PM org.apache.catalina.core.ApplicationDispatcher doForward FINE: Disabling the response for futher output Oct 28, 2008 2:33:26 PM org.apache.catalina.realm.JNDIRealm authenticate SEVERE: Exception performing authentication javax.naming.PartialResultException [Root exception is javax.naming.CommunicationException: company.com:389 [Root exception is java.net.ConnectException: Connection refused: connect]] at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreImpl(Unknown Source) at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreReferrals(Unknown Source) at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreImpl(Unknown Source) at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreReferrals(Unknown Source) at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreImpl(Unknown Source) at com.sun.jndi.ldap.LdapNamingEnumeration.hasMore(Unknown Source) at org.apache.catalina.realm.JNDIRealm.getUserBySearch(JNDIRealm.java:1097) at org.apache.catalina.realm.JNDIRealm.getUser(JNDIRealm.java:992) at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:941) at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:810) at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:258) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:417) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at
RE: How to watch active sessions size
From: Hugo Palma [mailto:[EMAIL PROTECTED] Subject: Re: How to watch active sessions size Isn't Lambdaprobe dead ? The web site is currently down, but many of us have the (open) source and .war file. Let me know if you want a copy. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to watch active sessions size
On Tue, Oct 28, 2008 at 1:29 PM, Hugo Palma [EMAIL PROTECTED] wrote: Isn't Lambdaprobe dead ? Thanks for the tip on the memory leak, you're right. But how else can i find out the size of each active session ? btw, how does lambdaprobe does it? I mean the size? Chuck will surely correct me on that, but the actual size of an object is extremely dependent on the VM implementation (boolean stored in integer, object header overhead, and so on...) I once tried to create a sizeof util, and it works within an error of 100 bytes per object (which is not very accurate) and based on approximation. regards Leon - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to watch active sessions size
From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Subject: Re: How to watch active sessions size Chuck will surely correct me on that, but the actual size of an object is extremely dependent on the VM implementation (boolean stored in integer, object header overhead, and so on...) Correct as stated. 32- vs 64-bit also makes a huge difference. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to watch active sessions size
btw, how does lambdaprobe does it? I mean the size? Chuck will surely correct me on that, but the actual size of an object is extremely dependent on the VM implementation (boolean stored in integer, object header overhead, and so on...) I once tried to create a sizeof util, and it works within an error of 100 bytes per object (which is not very accurate) and based on approximation. IIRC, Lambdaprobe gives you an estimate of size. It's not guaranteed to be correct. And I've seen it be off so wildly that I don't know if I'd ever trust it. I've seen it report session objects with sizes of 3.5TB(!). B. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 6 - Problems with encoding - PROBLEM SOLVED
Problem solved... but i still have some doubts :p This was my solution: 1. Remove this next lines of all JSPs (some had, others didn't) %@ page language=java contentType=text/html; charset=ISO-8859-1 pageEncoding=ISO-8859-1% META http-equiv=Content-Type content=text/html; charset=ISO-8859-1 2. In web.xml added a CharsetFilter of Spring filter filter-namecharsetFilter/filter-name filter-classorg.springframework.web.filter.CharacterEncodingFilter/filter-class init-param param-nameencoding/param-name param-valueISO-8859-15/param-value /init-param /filter And 3 (And here are my doubts) Added contentType into RequestProcessor of struts in struts-config.xml controller processorClass=org.apache.struts.action.RequestProcessor nocache=true locale=false contentType=text/html; charset=ISO-8859-15/ This last item confuses me... maybe i'm doing something wrong... However this is not a Tomcat issue so i will not bore you more with this question. Thank you all for your help! Best Regards João Simas -- View this message in context: http://www.nabble.com/Tomcat-6---Problems-with-encoding-tp20193292p20209011.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TOMCAT 6 and FOP
Hi! I am trying to get FOP 0.94 or 0.95 to work with TOMCAT 6. I have seen several references that say to see the TOMCAT documentation for specifics of setting up FOP with TOMCAT. I have searched around and can't find it. So now am posting to this list to see if anyone can give me some idea of where to look. I have been able to get the FOP WAR deployed but get the following error message when I try to run my application: org.apache.jasper.JasperException: An exception occurred processing JSP page /apex_fop.jsp at line 28 25: // Setup XSLT 26: System.setProperty(javax.xml.transform.TransformerFactory,org.apache.xa lan.processor.TransformerFactoryImpl); 27: TransformerFactory factory = TransformerFactory.newInstance(); 28: Transformer transformer = factory.newTransformer(new StreamSource(new java.io.StringReader(request.getParameter(template; 29: 30: // Set the value of a param in the stylesheet 31: transformer.setParameter(versionParam, 2.0); Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletW rapper.java:505) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java :416) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) root cause java.lang.NullPointerException java.io.StringReader.init(StringReader.java:33) org.apache.jsp.apex_005ffop_jsp._jspService(apex_005ffop_jsp.java:92) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java :374) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) LINUX - SuSE 10 TOMCAT - 6.0.18 JAVA - JDK 1.6.0_04 All hints, tips, suggestions, etc. are gratefully accepted! Thanks! Dave Venus - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to watch active sessions size
On Tue, 28 Oct 2008, Caldarale, Charles R wrote: From: Hugo Palma [mailto:[EMAIL PROTECTED] Subject: Re: How to watch active sessions size Isn't Lambdaprobe dead ? The web site is currently down, but many of us have the (open) source and .war file. Let me know if you want a copy. - 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. ... or try http://www.sfr-fresh.com/unix/www/probe.1.7b.src.zip/ http://www.sfr-fresh.com/unix/www/probe.1.7b.zip/ allowing also browsing of the docs and sources without downloading the whole (big) zip-files. Regards Jens -- T-Systems Solutions for Research GmbH Solutions Innovations Commercial ICT, Internet- Intranet-Appl. Dr. Jens Schleusener Bunsenstr. 10, D-37073 Göttingen +49 551 709-2493 (Tel.) +49 551 709-2169 (Fax) E-Mail: [EMAIL PROTECTED] Internet: http://www.t-systems.com T-Systems Solutions for Research GmbH Supervisory Board: Dr. Hagen Hultzsch (Chairman) Management Board: Jürgen Aumayer (Chairman), Hans Gersing, Dr. Claus-Axel Müller Commercial register: Amtsgericht München, HRB 12 55 01, Registered Office: Weßling VAT ident no.: DE 193456493 Notice: This transmittal and/or attachments may be privileged or confidential. If you are not the intended recipient, you are hereby notified that you have received this transmittal in error; any review, dissemination, or copying is strictly prohibited. If you received this transmittal in error, please notify us immediately by reply and immediately delete this message and all its attachments. Thank you. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Questions regarding MaxPermGen
Good afternoon. We run a portal solution on top of Tomcat 6.0.16 (and Java 1_5_16). We are running out of PermGen space for several instances of tomcat, which I believe could be some bad code we've received from our development team. To test a theory, I'd like to expand the size of our PermGen memory space from the 64m default to 128m (and possibly higher). I know by increasing this setting, I could just be delaying the inevitable. I am running Lambda Probe (LP), allowing me to see the various memory allocations and I see (as well in the logs), PermGen cap out and then continuous GC occurring. I have a 2-part question. 1. In Tomcat6w.exe, I set one java_opt to include -XX:MaxPermGen=128m, but the tomcat service then does not start up. When I change it to be -DXX:MaxPermGen=128m (like a lot of our other settings , it starts up just fine. Yet.. Lambda probe still shows that I only have a 64m cap on PermGen. Am I setting this properly? (everything I read says yes, but I'm not getting confirmation via LP). 2. How can I verify PermGen max size has been increased other than using Lambda probe (to keep LP honest). Below are all the java_opts I currently have set. Some are specific to the portal environment we run. -Dcatalina.home=E:\apache\Tomcat6 -Dcatalina.base=E:\apache\Tomcat6 -Djava.endorsed.dirs=E:\apache\Tomcat6\common\endorsed -Djava.io.tmpdir=E:\apache\Tomcat6\temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=E:\apache\Tomcat6\conf\logging.propertie s -Dcom.vignette.workingDir=E:\Vignette\cds\inst-vgninst\vcm-vgninst\cdsvc s\stage-prod\cds-prod\as\conf -Dcom.vignette.portal.installdir.path=C:\Vignette\Portal -Dcom.sun.management.jmxremote -DXX:MaxPermGen=256m For perspective, I am an administrator, not a developer. Bob Morman EMCSA, MCSA Enterprise Systems Manager ASM International Headquarters http://www.asminternational.org blocked::http://www.asminternational.org/ It's the microelectronics FA event of the year in North America's Best Big City, as Portland welcomes the International Symposium for Testing and Failure Analysis (ISTFA), sponsored by the Electronic Device Failure Analysis Society. Dates are Nov. 2-6, 2008. For details: www.istfa.org. Please consider the environment before printing this e-mail.
RE: Tomcat Cluster and NFS mounted webapp
Caldarale, Charles R wrote: Look at the workDir attribute of the Host and Context elements. By the way, you might want to consider moving up to a more recent 5.5 version (5.5.27 is current). Lots of fixes have gone in since 5.5.12 was released over three years ago. - Chuck It works! I set environment variable JAVA_OPTS and defined a new variable and update the Host element with the workDir parameter referring to the new variable. Speaking of bugs about 5.5.12, I think I just ran into one. The first app server uses my newly defined work directory and I can see the size of this new work directory increase as JSP pages are visited and compiled. However, the second appserver which uses exactly the same NFS mounted files and with a different work directory, will create the new work directory but still use the old default work directory for actual JSP compilations. We have other webapps that use 5.5.12 and they exhibit the same problem. I'm baffled. So I changed to Tomcat 5.5.27 and the problem disappears. Need to go through a round of regression testing for 5.5.27 but will switch to it in production the earliest I can. -- View this message in context: http://www.nabble.com/Tomcat-Cluster-and-NFS-mounted-webapp-tp20176721p20213152.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Questions regarding MaxPermGen
From: Robert J Morman [mailto:[EMAIL PROTECTED] Subject: Questions regarding MaxPermGen 1. In Tomcat6w.exe, I set one java_opt to include -XX:MaxPermGen=128m, but the tomcat service then does not start up. It's MaxPermSize, not MaxPermGen; invalid options will stop the JVM during initialization. When I change it to be -DXX:MaxPermGen=128m All that does is set a system property with the name XX:MaxPermGen - not terribly useful. 2. How can I verify PermGen max size has been increased other than using Lambda probe (to keep LP honest). Try JConsole - shows more heap information than LambdaProbe, and doesn't require installation of an additional webapp. You'll find it in your JDK bin directory. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Path (file)InputStream for an independent module in tomcat?
Hi, I am using tomat 5.5 in linux/windows mixed environment. The deploy target is both. I had a DAO module for which I would like to put some configuration into a separate file for easy access and modifying. However, I have some difficulty to figure out how to put the path in the FileInputStream, where I need to use jbdc configuration parameters such as driver name, server, user, password. According to some pages I have read, the only reliable way is to use the servletContext.getResourceAsStream(). So I need to pass the server object into the DAO to get the resource. However, my DAO module is almost independent with other parts in the web application and I would also like to use it for other non-web application. So I would much prefer not to pass any servlet into this module and package the configuration xml or propety file with this module separately. How should I get those? Thank you very much. Sincerely Zhu, Guojun - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Questions regarding MaxPermGen
Hi, Robert J Morman schrieb: Good afternoon. We run a portal solution on top of Tomcat 6.0.16 (and Java 1_5_16). We are running out of PermGen space for several instances of tomcat, which I believe could be some bad code we've received from our development team. To test a theory, I'd like to expand the size of our PermGen memory space from the 64m default to 128m (and possibly higher). I know by increasing this setting, I could just be delaying the inevitable. I am running Lambda Probe (LP), allowing me to see the various memory allocations and I see (as well in the logs), PermGen cap out and then continuous GC occurring. I have a 2-part question. 1. In Tomcat6w.exe, I set one java_opt to include -XX:MaxPermGen=128m, MaxPermGen is wrong, MaxPermSize is right. Have fun with http://blogs.sun.com/watt/resource/jvm-options-list.html but the tomcat service then does not start up. When I change it to be -DXX:MaxPermGen=128m (like a lot of our other settings , it starts up -D sets system properties (an analogy of environment variables in the platform independant Java world), but there will be no code interested in the system property you used, so it simply won't change anything. just fine. Yet.. Lambda probe still shows that I only have a 64m cap on PermGen. Am I setting this properly? (everything I read says yes, but I'm not getting confirmation via LP). Since -D... doesn't change memory settings, you will still run with 64MB max. Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Depoy as different URL than default war file name
I have a war file App.war so the url is http://ip/App/query but I want it to be deployed in a way that the Url is http://ip/New/App/query. How can I change the default behaviour? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Path (file)InputStream for an independent module in tomcat?
You could put together a constructor or method for your DAO that accepts an input stream to read. That would at least maintain it's independence from the servlet container. Just need to have whatever create's an instance of your DAO call servletContext.getResourceAsStream() and pass the resulting input stream to your DAO instance. That might be easily doable in a ServletContextListener. --David Guojun Zhu wrote: Hi, I am using tomat 5.5 in linux/windows mixed environment. The deploy target is both. I had a DAO module for which I would like to put some configuration into a separate file for easy access and modifying. However, I have some difficulty to figure out how to put the path in the FileInputStream, where I need to use jbdc configuration parameters such as driver name, server, user, password. According to some pages I have read, the only reliable way is to use the servletContext.getResourceAsStream(). So I need to pass the server object into the DAO to get the resource. However, my DAO module is almost independent with other parts in the web application and I would also like to use it for other non-web application. So I would much prefer not to pass any servlet into this module and package the configuration xml or propety file with this module separately. How should I get those? Thank you very much. Sincerely Zhu, Guojun - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Depoy as different URL than default war file name
Mohit Anchlia wrote: I have a war file App.war so the url is http://ip/App/query but I want it to be deployed in a way that the Url is http://ip/New/App/query. How can I change the default behaviour? In Tomcat 6.0.18 onwards just rename it New#App.war Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Questions regarding MaxPermGen
Thank you (Charles/Ranier) for your help. I had mt'd the option name, but found that I just had it set too high. It wasn't taking 256m and would start if I set it lower. I understand '-D' now as well. Now to see if we have some bad leaks or we just needed more breathing room. Bob -Original Message- From: Rainer Jung [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2008 2:52 PM To: Tomcat Users List Subject: Re: Questions regarding MaxPermGen Hi, Robert J Morman schrieb: Good afternoon. We run a portal solution on top of Tomcat 6.0.16 (and Java 1_5_16). We are running out of PermGen space for several instances of tomcat, which I believe could be some bad code we've received from our development team. To test a theory, I'd like to expand the size of our PermGen memory space from the 64m default to 128m (and possibly higher). I know by increasing this setting, I could just be delaying the inevitable. I am running Lambda Probe (LP), allowing me to see the various memory allocations and I see (as well in the logs), PermGen cap out and then continuous GC occurring. I have a 2-part question. 1. In Tomcat6w.exe, I set one java_opt to include -XX:MaxPermGen=128m, MaxPermGen is wrong, MaxPermSize is right. Have fun with http://blogs.sun.com/watt/resource/jvm-options-list.html but the tomcat service then does not start up. When I change it to be -DXX:MaxPermGen=128m (like a lot of our other settings , it starts up -D sets system properties (an analogy of environment variables in the platform independant Java world), but there will be no code interested in the system property you used, so it simply won't change anything. just fine. Yet.. Lambda probe still shows that I only have a 64m cap on PermGen. Am I setting this properly? (everything I read says yes, but I'm not getting confirmation via LP). Since -D... doesn't change memory settings, you will still run with 64MB max. Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] It's the microelectronics FA event of the year in North America's Best Big City, as Portland welcomes the International Symposium for Testing and Failure Analysis (ISTFA), sponsored by the Electronic Device Failure Analysis Society. Dates are Nov. 2-6, 2008. For details: www.istfa.org. Please consider the environment before printing this e-mail. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
basic help with tomcat5
Currently, I am trying to get an instance of tomcat running on a FC6 box. [EMAIL PROTECTED] ~]$ /usr/sbin/httpd -version Server version: Apache/2.2.3 Server built: Sep 11 2006 09:43:05 [EMAIL PROTECTED] ~]$ java -version java version 1.6.0_10 Java(TM) SE Runtime Environment (build 1.6.0_10-b33) Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing) [EMAIL PROTECTED] ~]$ sudo tomcat5 -version This account is currently not available. [EMAIL PROTECTED] ~]$ sudo /etc/init.d/tomcat5 start Starting tomcat5: /usr/bin/rebuild-jar-repository: error: Could not find commons-collections Java extension for this JVM /usr/bin/rebuild-jar-repository: error: Could not find commons-dbcp Java extension for this JVM /usr/bin/rebuild-jar-repository: error: Could not find commons-pool Java extension for this JVM /usr/bin/rebuild-jar-repository: error: Some detected jars were not found for this jvm /usr/bin/rebuild-jar-repository: error: Could not find commons-beanutils Java extension for this JVM /usr/bin/rebuild-jar-repository: error: Could not find commons-digester Java extension for this JVM /usr/bin/rebuild-jar-repository: error: Could not find commons-fileupload Java extension for this JVM /usr/bin/rebuild-jar-repository: error: Some detected jars were not found for this jvm [ FAILED ] [EMAIL PROTECTED] ~]$ cat /var/log/tomcat5/catalina.out This account is currently not available. This account is currently not available. This account is currently not available. This account is currently not available. This account is currently not available. This account is currently not available. This account is currently not available. This account is currently not available. This account is currently not available. This account is currently not available. This account is currently not available. I am looking for general support in this old setup, to fix whatever I broke :-) Thanks!
Re: Path (file)InputStream for an independent module in tomcat?
Thank you. That seems a good way out. Sincerely Zhu, Guojun On Tue, Oct 28, 2008 at 2:08 PM, David Smith [EMAIL PROTECTED] wrote: You could put together a constructor or method for your DAO that accepts an input stream to read. That would at least maintain it's independence from the servlet container. Just need to have whatever create's an instance of your DAO call servletContext.getResourceAsStream() and pass the resulting input stream to your DAO instance. That might be easily doable in a ServletContextListener. --David Guojun Zhu wrote: Hi, I am using tomat 5.5 in linux/windows mixed environment. The deploy target is both. I had a DAO module for which I would like to put some configuration into a separate file for easy access and modifying. However, I have some difficulty to figure out how to put the path in the FileInputStream, where I need to use jbdc configuration parameters such as driver name, server, user, password. According to some pages I have read, the only reliable way is to use the servletContext.getResourceAsStream(). So I need to pass the server object into the DAO to get the resource. However, my DAO module is almost independent with other parts in the web application and I would also like to use it for other non-web application. So I would much prefer not to pass any servlet into this module and package the configuration xml or propety file with this module separately. How should I get those? Thank you very much. Sincerely Zhu, Guojun - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Depoy as different URL than default war file name
This is what my logs say INFO: Starting Servlet Engine: Apache Tomcat/6.0.18 So does it mean I can use New#App.war? On Tue, Oct 28, 2008 at 12:21 PM, Mark Thomas [EMAIL PROTECTED] wrote: Mohit Anchlia wrote: I have a war file App.war so the url is http://ip/App/query but I want it to be deployed in a way that the Url is http://ip/New/App/query. How can I change the default behaviour? In Tomcat 6.0.18 onwards just rename it New#App.war Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Depoy as different URL than default war file name
From: Mohit Anchlia [mailto:[EMAIL PROTECTED] Subject: Re: Depoy as different URL than default war file name This is what my logs say INFO: Starting Servlet Engine: Apache Tomcat/6.0.18 So does it mean I can use New#App.war? That's what Mark said. You could just try it... - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat and Shark TOgether
hello everyone, just a mail to know if anybody here is using Shark as BPM workflow?? i should make test on it and i would like to have any returns from users if anyone exists ! bye supareno - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Logging
I have asked this before. I am not able to understand why my application is logging to both catalina.out and also app.log specified in log4j.xml. It just produces tons of same messages in catalina.out and app.log - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Depoy as different URL than default war file name
That works thanks. On Tue, Oct 28, 2008 at 1:03 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Mohit Anchlia [mailto:[EMAIL PROTECTED] Subject: Re: Depoy as different URL than default war file name This is what my logs say INFO: Starting Servlet Engine: Apache Tomcat/6.0.18 So does it mean I can use New#App.war? That's what Mark said. You could just try it... - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Logging
Mohit Anchlia wrote: I have asked this before. I am not able to understand why my application is logging to both catalina.out and also app.log specified in log4j.xml. It just produces tons of same messages in catalina.out and app.log No idea. Telling us the contents of your logging.properties file in $CATALINA_HOME/lib would be a start. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Logging
handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandler, 4admin.org.apache.juli.FileHandler, 5host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler .handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler 1catalina.org.apache.juli.FileHandler.level = FINE 1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 1catalina.org.apache.juli.FileHandler.prefix = catalina. 2localhost.org.apache.juli.FileHandler.level = FINE 2localhost.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 2localhost.org.apache.juli.FileHandler.prefix = localhost. 3manager.org.apache.juli.FileHandler.level = FINE 3manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 3manager.org.apache.juli.FileHandler.prefix = manager. 4admin.org.apache.juli.FileHandler.level = FINE 4admin.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 4admin.org.apache.juli.FileHandler.prefix = admin. 5host-manager.org.apache.juli.FileHandler.level = FINE 5host-manager.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 5host-manager.org.apache.juli.FileHandler.prefix = host-manager. java.util.logging.ConsoleHandler.level = FINE java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter ### org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.FileHandler org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin].level = INFO org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/admin].handlers = 4admin.org.apache.juli.FileHandler org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 5host-manager.org.apache.juli.FileHandler On Tue, Oct 28, 2008 at 2:34 PM, Mark Thomas [EMAIL PROTECTED] wrote: Mohit Anchlia wrote: I have asked this before. I am not able to understand why my application is logging to both catalina.out and also app.log specified in log4j.xml. It just produces tons of same messages in catalina.out and app.log No idea. Telling us the contents of your logging.properties file in $CATALINA_HOME/lib would be a start. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Logging
My bad. It is log4j.properties that we need since you configured log4j. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Logging
?xml version=1.0 encoding=UTF-8? !DOCTYPE log4j:configuration SYSTEM log4j.dtd log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; debug=false !-- configuration xmlns=http://logging.apache.org/; debug=true -- appender name=APP_LOG class=org.apache.log4j.DailyRollingFileAppender param name=File value=/usr/local/tomcat/logs/app.log/ param name=Append value=true/ param name=DatePattern value='.'-MM-dd/ layout class=org.apache.log4j.PatternLayout param name=ConversionPattern value=%d{ISO8601} %-5p - %m%n/ /layout /appender appender name=HTTPCLIENT_LOG class=org.apache.log4j.DailyRollingFileAppender param name=File value=/usr/local/tomcat/logs/httpclient.log/ param name=Append value=true/ param name=DatePattern value='.'-MM-dd/ layout class=org.apache.log4j.PatternLayout param name=ConversionPattern value=%d{ISO8601} %-5p - %m%n/ /layout /appender logger name=com.efp.eapp additivity=false appender-ref ref=APP_LOG/ /logger logger name=org.apache.commons.httpclient additivity=false appender-ref ref=HTTPCLIENT_LOG/ /logger /log4j:configuration On Tue, Oct 28, 2008 at 3:13 PM, Mark Thomas [EMAIL PROTECTED] wrote: My bad. It is log4j.properties that we need since you configured log4j. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: executor does not work with AJP connector
an executor would not have helped you in your scenario. on the apache side do a JkOptions +DisableReuse this will turn off the keep alive of those connections, hence free up those threads filip Joe Reger, Jr. wrote: I upgraded to Tomcat 6.0.18 and am now getting a warning instead of an NPE: org.apache.catalina.startup.ConnectorCreateRule _setExecutor WARNING: Connector [EMAIL PROTECTED] does not support external executors. Method setExecutor(java.util.concurrent.Executor) not found. So it looks like external executors won't work with the AJP connector. The problem I'm having is on highly loaded members of an app tier. They end up with a bunch of stuck AJP threads. I wanted to use the maxIdleTime property of the Executor to kill them off. How should I deal with stuck/idle AJP threads? I'm load balancing with Apache 2.2 and mod_jk. Thanks, Joe On Sun, Oct 26, 2008 at 9:42 PM, Joe Reger, Jr. [EMAIL PROTECTED] wrote: Kinda late to this party but I've gotten the same NPE issue when adding an Executor to an AJP Connector on 6.0.14 (Win2000Server). But, I've also gotten it to work on 6.0.14 on a different machine (Windows XP)... same server.xml. Experimenting with the problem server I found that I could keep the Executor defined but simply not reference it from the Connector and the server started up (probably not much news there.) Questions: 1) Could this have something to do with a native OS feature somewhere in Tomcat? 2) You mentioned that it worked on 6.0.16... anybody know if there was a fix or if it's just an intermittent issue? 3) Should the Executor work with AJP? I saw a post from earlier last year that said Executors don't support AJP. Thanks all! Joe On Wed, Feb 27, 2008 at 10:23 AM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: just tried that with 6.0.16, and it worked Filip nitin dubey wrote: Nope.. here is the top portion of server.xml = Service name=Catalina !--The connectors can use a shared executor, you can define one or more named thread pools-- Executor name=tomcatThreadPool namePrefix=catalina-exec- maxThreads=150 minSpareThreads=4/ !-- A Connector represents an endpoint by which requests are received and responses are returned. Documentation at : Java HTTP Connector: /docs/config/http.html (blocking non-blocking) Java AJP Connector: /docs/config/ajp.html APR (HTTP/AJP) Connector: /docs/apr.html Define a non-SSL HTTP/1.1 Connector on port 8080 -- Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 / !-- A Connector using the shared thread pool-- !-- Connector executor=tomcatThreadPool port=8080 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 / -- !-- Define a SSL HTTP/1.1 Connector on port 8443 This connector uses the JSSE configuration, when using APR, the connector should be using the OpenSSL style configuration described in the APR documentation -- !-- Connector port=8443 protocol=HTTP/1.1 SSLEnabled=true maxThreads=150 scheme=https secure=true clientAuth=false sslProtocol=TLS / -- !-- Define an AJP 1.3 Connector on port 8009 -- Connector port=8009 protocol=AJP/1.3 redirectPort=8443 allowTrace=falseexecutor=tomcatThreadPool connectionTimeout=2 / = --- On Wed, 27/2/08, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: From: Filip Hanik - Dev Lists [EMAIL PROTECTED] Subject: Re: executor does not work with AJP connector To: Tomcat Users List users@tomcat.apache.org Date: Wednesday, 27 February, 2008, 5:00 AM you might have forgotten to uncomment or configure that actual executor, hence the NPE Filip nitin dubey wrote: Hi, I tried configuring executor in tomcat 6.0.14 for AJP Connector like following: !-- Define an AJP 1.3 Connector on port 8009 -- Connector port=8009 protocol=AJP/1.3 redirectPort=8443 allowTrace=false executor=tomcatThreadPool connectionTimeout=2 / While starting tomcat it gives this error. Any problem with the configuration OR this is a bug? Feb 26, 2008 1:42:36 PM org.apache.tomcat.util.digester.Digester startElement SEVERE: Begin event threw exception java.lang.NullPointerException at org.apache.catalina.startup.ConnectorCreateRule._setExecutor(ConnectorCreateRule.java:61) at org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:54) at org.apache.tomcat.util.digester.Rule.begin(Rule.java:153) at
Performance of tomcat
Is there a module like mod_status in apache that reports the stats of number of connections, load of threads, number of active threads etc.? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Performance of tomcat
From: Mohit Anchlia [mailto:[EMAIL PROTECTED] Subject: Performance of tomcat Is there a module like mod_status in apache that reports the stats of number of connections, load of threads, number of active threads etc.? The manager app displays some of that information, as does Lambda Probe. MoSKito captures a great deal of information for performance analysis (http://moskito.anotheria.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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Performance of tomcat
I am looking at following Url but doesn't seem to have that information: http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Using%20the%20JMX%20Proxy%20Servlet On Tue, Oct 28, 2008 at 4:17 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Mohit Anchlia [mailto:[EMAIL PROTECTED] Subject: Performance of tomcat Is there a module like mod_status in apache that reports the stats of number of connections, load of threads, number of active threads etc.? The manager app displays some of that information, as does Lambda Probe. MoSKito captures a great deal of information for performance analysis (http://moskito.anotheria.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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Performance of tomcat
From: Mohit Anchlia [mailto:[EMAIL PROTECTED] Subject: Re: Performance of tomcat I am looking at following Url but doesn't seem to have that information: http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Usi ng%20the%20JMX%20Proxy%20Servlet I've never touched the JMX Proxy Servlet; I was referring to the /manager/status and /manager/status/all requests. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: basic help with tomcat5
From: Tim Potter [mailto:[EMAIL PROTECTED] Subject: basic help with tomcat5 Currently, I am trying to get an instance of tomcat running on a FC6 box. I wouldn't waste my time trying to repair what looks really messed up. I'd suggest downloading a fresh copy from the Tomcat web site and start over. 6.0 is the current version, but 5.5 is still supported, if you want to use that. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Force getting Client Cert from browser
From: atul [mailto:[EMAIL PROTECTED] Subject: Re: Force getting Client Cert from browser I tried invalidating httpsession but that didnt work. I'm a bit surprised at that, but I haven't gone through the code enough to figure out why that didn't work. There's a tangentially related thread here: http://marc.info/?l=tomcat-userm=120092922008604w=2 Also, in a deployment where if a machine is shared by multiple users and user1 forgets to close the browser before leaving, the user can log right in as user1. A problem in any environment that has shared access points, not unique to using certificates for client authentication. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]