Re: tomcat 9.0 doesn't load the ECDSA keystore. (ver # 9.0.24)
Hi Chris, Just attached the outputs logs and my server.xml including my ecdsa cert. in keystoreand s_client outputs.txt file i have attached all the required cert and keystore outputs. What client are you using to attempt the handshake? i am using openssl command line utility to test What error(s) do you get with the handshake? secure negotiation not supported If you configure *only* ESDSA, can you handshake? Or does ECDSA never work? correct ECDSA never work for me. here in my case on port 443 i hosted only ECDSA keystore and on 8443 i have hosted RSA keystore. 8443 works like charm and 443 is down Thanks, Madhan. On Thu, Jun 11, 2020 at 1:47 PM Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Madhan, > > On 6/10/20 22:08, Madhan Raj wrote: > > Any insights please . > > How did you create your certificate? > > What are the details of your certificate and key? For example, which > curve are you using? How many key bits? What type of signature on the > certificate? What is the alias for that certificate in your keystore? > Does it match what you have configured in Tomcat? Do you have a > password on your keystore? Are you setting that correctly in your > element? (I see no password in your posted config.) > > What client are you using to attempt the handshake? > > What error(s) do you get with the handshake? > > If you configure *only* ESDSA, can you handshake? Or does ECDSA never > work? > > You haven't give us much to go on, other than "I can't get ESDSA to > work" when it's pretty clear others can get it to work. > > - -chris > > > On Thu, 4 Jun, 2020, 11:12 pm Madhan Raj, > <mailto:madhanra...@gmail.com>> wrote: > > > > Hi Christopher, > > > > Yes you correct I can only complete a handshake with RSA cert, not > > ECDSA cert. when i try to connect with ECDSA ciphers using > > s_client negotiation fails. Madhan > > > > On Thu, Jun 4, 2020 at 12:41 PM Christopher Schultz > > > <mailto:ch...@christopherschultz.net>> wrote: > > > > Madhan, > > > > On 6/3/20 21:08, Madhan Raj wrote: > >> OS - CentOS 7.6.1810( Core) > > > >> Below connector doesn't load my EC keystore whereas it works > >> with RSA . Any insights please . > > > > When you say "doesn't load", what do you mean? Possible reasonable > > responses are: > > > > 1. I can only complete a handshake with RSA cert, not ECDSA cert 2. > > Error message (please post) 3. JVM crashes 4. OS crashes 5. > > Universe ends (possible, but unlikely to be reproducible) > > > >> this is my connector tag in server.xml >> SSLEnabled="true" URIEncoding="UTF-8" maxThreads="200" > >> port="443" scheme="https" secure="true" > >> protocol="org.apache.coyote.http11.Http11NioProtocol" > > > > sslImplementationName="org.apache.tomcat.util.net.jsse.JSSEImplementat > > > > > ion" > > > > > > disableUploadTimeout="true" enableLookups="false" > > maxHttpHeaderSize="819 2" > >> minSpareThreads="25"> >> certificateVerification="none" sessionTimeout="1800" > >> protocols="TLSv1,TLSv1.1,TLSv1.2,TLSv1.3" > > > > ciphers="ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:ECD > > > > > HE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:AES256-SHA:DHE-DS > > S-AES256-SHA:AES128-SHA:DHE-RSA-AES128-SHA" > > > > > > sessionCacheSize="1"> > >> > > > certificateKeystoreFile="/usr/local/platform/.security/tomcat-ECDSA/ce > > > > > rts/tomcat-ECDSA.keystore" > > > > > > certificateKeystorePassword="8o8yeAH2qSJbJ2sn" > >> certificateKeystoreType="PKCS12" type="EC"/> > >> > > > >> tomcat start up command used :- /home/tomcat/tomcat -user tomcat > >> -home /usr/local/thirdparty/java/j2sdk -pidfile > >> /usr/local/thirdparty/jakarta-tomcat/conf/tomcat.pid -procname > >> /home/tomcat/tomcat -outfile > >> /usr/local/thirdparty/jakarta-tomcat/logs/catalina.out -errfile > >> &1 -Djdk.tls.ephemeralDHKeySize=2048 > >> -Djava.protocol.handler.pkgs=org.apache.catalina.webresources > >> -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 > > > > -Djava.util.logging.config.file=/usr/local/thirdparty/jakarta-tomcat/c > > > > > onf/logging.properties >
Re: tomcat 9.0 doesn't load the ECDSA keystore. (ver # 9.0.24)
Hi all, Any insights please . Thanks, Madhan On Thu, 4 Jun, 2020, 11:12 pm Madhan Raj, wrote: > Hi Christopher, > > Yes you correct I can only complete a handshake with RSA cert, not ECDSA > cert. when i try to connect with ECDSA ciphers using s_client negotiation > fails. > Madhan > > On Thu, Jun 4, 2020 at 12:41 PM Christopher Schultz < > ch...@christopherschultz.net> wrote: > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA256 >> >> Madhan, >> >> On 6/3/20 21:08, Madhan Raj wrote: >> > OS - CentOS 7.6.1810( Core) >> > >> > Below connector doesn't load my EC keystore whereas it works with >> > RSA . Any insights please . >> >> When you say "doesn't load", what do you mean? Possible reasonable >> responses are: >> >> 1. I can only complete a handshake with RSA cert, not ECDSA cert >> 2. Error message (please post) >> 3. JVM crashes >> 4. OS crashes >> 5. Universe ends (possible, but unlikely to be reproducible) >> >> > this is my connector tag in server.xml > > SSLEnabled="true" URIEncoding="UTF-8" maxThreads="200" port="443" >> > scheme="https" secure="true" >> > protocol="org.apache.coyote.http11.Http11NioProtocol" >> > sslImplementationName="org.apache.tomcat.util.net.jsse.JSSEImplementat >> ion" >> > >> > >> disableUploadTimeout="true" enableLookups="false" maxHttpHeaderSize="819 >> 2" >> > minSpareThreads="25"> > > certificateVerification="none" sessionTimeout="1800" >> > protocols="TLSv1,TLSv1.1,TLSv1.2,TLSv1.3" >> > ciphers="ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:ECD >> HE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:AES256-SHA:DHE-DS >> S-AES256-SHA:AES128-SHA:DHE-RSA-AES128-SHA" >> > >> > >> sessionCacheSize="1"> >> > > > certificateKeystoreFile="/usr/local/platform/.security/tomcat-ECDSA/ce >> rts/tomcat-ECDSA.keystore" >> > >> > >> certificateKeystorePassword="8o8yeAH2qSJbJ2sn" >> > certificateKeystoreType="PKCS12" type="EC"/> >> > >> > >> > tomcat start up command used :- /home/tomcat/tomcat -user tomcat >> > -home /usr/local/thirdparty/java/j2sdk -pidfile >> > /usr/local/thirdparty/jakarta-tomcat/conf/tomcat.pid -procname >> > /home/tomcat/tomcat -outfile >> > /usr/local/thirdparty/jakarta-tomcat/logs/catalina.out -errfile &1 >> > -Djdk.tls.ephemeralDHKeySize=2048 >> > -Djava.protocol.handler.pkgs=org.apache.catalina.webresources >> > -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 >> > -Djava.util.logging.config.file=/usr/local/thirdparty/jakarta-tomcat/c >> onf/logging.properties >> > >> > >> - -agentlib:jdwp=transport=dt_socket,address=localhost:8000,server=y,suspe >> nd=n >> > -XX:+UseParallelGC -XX:GCTimeRatio=99 -XX:MaxGCPauseMillis=80 >> > -Xmx1824m -Xms256m >> > -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager >> > -cp >> > /usr/local/thirdparty/jakarta-tomcat/bin/bootstrap.jar:/usr/local/thir >> dparty/jakarta-tomcat/bin/tomcat-juli.jar >> > >> > >> - -Djava.security.policy==/usr/local/thirdparty/jakarta-tomcat/conf/catali >> na.policy >> > -Dcatalina.base=/usr/local/thirdparty/jakarta-tomcat >> > -Dcatalina.home=/usr/local/thirdparty/jakarta-tomcat >> > -Djava.io.tmpdir=/usr/local/thirdparty/jakarta-tomcat/temp >> > org.apache.catalina.startup.Bootstrap start' >> > >> > JAVA_OPTS= -Djava.library.path=$LD_LIBRARY_PATH >> > -Djavax.net.ssl.sessionCacheSize=1 >> > -Djavax.net.ssl.trustStore=/usr/local/platform/.security/tomcat/trust- >> certs/tomcat-trust.keystore >> > >> > >> - -Djavax.net.ssl.trustStorePassword=$TRUST_STORE_PASSWORD >> > -XX:ErrorFile=$CATALINA_HOME/logs/diagnostic-info.jvm-crash.%p.tomcat. >> txt >> > >> > >> - -Dsun.zip.disableMemoryMapping=true >> > -XX:OnOutOfMemoryError=/home/tomcat/tomcat_diagnostics.sh >> > -XX:OnError=/home/tomcat/tomcat_diagnostics.sh $TOMCAT_JAVA_OPTS >> > >> > Also can i have both RSA and ECDSA in a single keystore. Will that >> > work in tomcat 9? >> >> Yes. You have to use two elements each with a different >> "type" and "certificateKeyAlias" >> >> > it used to work with tomat 7 >> >> It still works with Tomcat 9. >> >> - -chris >> -BEGIN PGP SIGNATURE- >> Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ >> >> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl7ZJEwACgkQHPApP6U8 >> pFg/Tg/9El60qkdMWwk6SpBiKjy0rgQEYgmdv2hkVQXmfX4uaWHZuEBDydX/xQ9L >> 3JaS+rDeM/4Z6Y7HrKqLGQ0Q+mtgWSoXohhGAqZMcsaGtdiz9oBYukRW7e0JG4Hv >> OZgmyPUifLH0kPDyrql3feLQL9TW7G998rR9+N2BsFWnyVdaHYIWt2vSu+/vak7T >> OqqNj0Wze9G8/OudKXCEQBi1ADql8XAt7hRCaQLHRcaDLEVLnULq6lgol0dV9qXM >> suzNGud9VWNUgsoNX7wZDmx2xYnvDUfOnUJSEYLfRV6zFHOJOLiKLk8GBjymLVt3 >> PEW3EXlJpq2rQo++s4tNhJGjZRR7yEGNRUO1bl/eB7O4MZrwpZyV9lmy2TN2Im5g >> LsMas3p3m87vz8ajafo9SDSZkmXmJ270dUZd8MAxxIvDSCnhw0trSTxbppgeb7p4 >> LGn/gA9igAY9S9PUKkyLocKVW9XpRg1v21WCSyifKzM7b0787e1EFx6rhxBTsZAk >> 7D7nL+0Em61LRQKaM3noDtyofEzYGoUtaRwv5gx+dCfF5huDCKvkhWxGQfAwiE/3 >> fRHCZK1la1Jn3wikApLXU6iEjXV33TmF/hAjLOPaizl90AYxR6O4pvwRKOF+9+fV >> Z4CO1ysmLK/WHTYXcpZ8/zPEo9EgXbTULU9DiDu3N6+LKrUFQcc= >> =L+y6 >> -END PGP SIGNATURE- >> >
tomcat 9.0 doesn't load the ECDSA keystore. (ver # 9.0.24)
Hi All, OS - CentOS 7.6.1810( Core) Below connector doesn't load my EC keystore whereas it works with RSA . Any insights please . this is my connector tag in server.xml tomcat start up command used :- /home/tomcat/tomcat -user tomcat -home /usr/local/thirdparty/java/j2sdk -pidfile /usr/local/thirdparty/jakarta-tomcat/conf/tomcat.pid -procname /home/tomcat/tomcat -outfile /usr/local/thirdparty/jakarta-tomcat/logs/catalina.out -errfile &1 -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Djava.util.logging.config.file=/usr/local/thirdparty/jakarta-tomcat/conf/logging.properties -agentlib:jdwp=transport=dt_socket,address=localhost:8000,server=y,suspend=n -XX:+UseParallelGC -XX:GCTimeRatio=99 -XX:MaxGCPauseMillis=80 -Xmx1824m -Xms256m -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -cp /usr/local/thirdparty/jakarta-tomcat/bin/bootstrap.jar:/usr/local/thirdparty/jakarta-tomcat/bin/tomcat-juli.jar -Djava.security.policy==/usr/local/thirdparty/jakarta-tomcat/conf/catalina.policy -Dcatalina.base=/usr/local/thirdparty/jakarta-tomcat -Dcatalina.home=/usr/local/thirdparty/jakarta-tomcat -Djava.io.tmpdir=/usr/local/thirdparty/jakarta-tomcat/temp org.apache.catalina.startup.Bootstrap start' JAVA_OPTS= -Djava.library.path=$LD_LIBRARY_PATH -Djavax.net.ssl.sessionCacheSize=1 -Djavax.net.ssl.trustStore=/usr/local/platform/.security/tomcat/trust-certs/tomcat-trust.keystore -Djavax.net.ssl.trustStorePassword=$TRUST_STORE_PASSWORD -XX:ErrorFile=$CATALINA_HOME/logs/diagnostic-info.jvm-crash.%p.tomcat.txt -Dsun.zip.disableMemoryMapping=true -XX:OnOutOfMemoryError=/home/tomcat/tomcat_diagnostics.sh -XX:OnError=/home/tomcat/tomcat_diagnostics.sh $TOMCAT_JAVA_OPTS Also can i have both RSA and ECDSA in a single keystore .Will that work in tomcat 9 ? it used to work with tomat 7 Thanks, Madhan
Re: Issues porting application from tomcat 5.0.28 to tomcat 7.0.57
Hi Christopher, Thanks for your reply. To your question Is there any reason not to simply remove the double-slash? We see that in the source of the page. In the jsp its html:form action=/calculators/Calculator onsubmit=return validateForm(); Thanks Raj On Jun 16, 2015, at 11:53 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Raj, On 6/15/15 6:22 PM, RAJ wrote: Can anyone please help me with the below. I even posted this in struts users group but no reply. I am facing this issue after porting my application from the existing Tomcat 5.0.28 to the new tomcat 7.0.57. If you are going to make a jump that far, I'd recommend to continue all the way up to Tomcat 8.0.23. I am using Struts version 1.1 is something particular, the app in both the old and new environments work except for a few pages in the new env where when I click on the submit button it is directing to http://calculators/CertSsCalculator.do if I see the source of the page I see. new environment (bombs due to //) form name=CalculatorForm method=post action=//calculators/Calculator.do onsubmit=return validateForm(); old environment (works fine) form name=CalculatorForm method=post action=/calculators/Calculator.do onsubmit=return validateForm(); The jsp is the same with no changes html:form action=/calculators/Calculator onsubmit=return validateForm(); Has any one see something like this and can suggest what can be tried and totally at a loss. Is there any reason not to simply remove the double-slash? - -chris -BEGIN PGP SIGNATURE- Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJVgFSPAAoJEBzwKT+lPKRY+eUP/1bcjfoRvHDDABW7O5/gAMXn /R7vCjdbLGmyVab83OkJ3wtG+dNcf3/IqbIwd5QFw5shBTWOIT/1mnQfu+U9lp2R Vh4Nmmm2exfMjtUTU+eAbfTaFRpzFlHvoVRDwms7zWWEKJmN7Mpna9n3GNXAuweb 8BX7CEAM6AmGwzUkysOkJsdqds0gMVoUlhKWAS7tEvWPalB9GgEuuotkyqmLol2j n+GTUg7ovrJWb+cCA6rzH2T58x8Bh/u8UsbU+T111t2a7cLIEbFLH6c8jqbmTQYU w08ZmMqn55rPSXO4cR1Otujqj7whsYeDowZWB8gIIYTSS6oo0jJCNL+CTzDCXdi6 QDxh3IbMh4CGZYE2UeRlX4i9mX8GOPNxlFsplZoAHgVOSvngk49B3Fe5vuyg8apT xo4b03yo2KtJOTXn5I/jNM7Yb9fXACfieCj8a3pJjyKwrqqSH6ADcCzdggPSAJlv tpBfCf17mZL4VxHtlbKymeE8oeB8CtUyjZfY0K+y7Eo8mPFv0T9S9o8A2r8WpEqT AyZBfZ8cRedtl6VrE/TEZ0i5u6IFmAZt0gyXJWu4jgf7AcSOXzSwt+7937tXk9yd c69JX3FjmV2zjgd3loFNWuUOknIokU/R/RskURZdTmoi4dftacyrvE6PNzj89yhr HHmtqqEAr6b2lC1cj3wS =1+Ka -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Issues porting application from tomcat 5.0.28 to tomcat 7.0.57
Hi, Can anyone please help me with the below. I even posted this in struts users group but no reply. I am facing this issue after porting my application from the existing Tomcat 5.0.28 to the new tomcat 7.0.57. I am using Struts version 1.1 is something particular, the app in both the old and new environments work except for a few pages in the new env where when I click on the submit button it is directing to http://calculators/CertSsCalculator.do if I see the source of the page I see. new environment (bombs due to //) form name=CalculatorForm method=post action=//calculators/Calculator.do onsubmit=return validateForm(); old environment (works fine) form name=CalculatorForm method=post action=/calculators/Calculator.do onsubmit=return validateForm(); The jsp is the same with no changes html:form action=/calculators/Calculator onsubmit=return validateForm(); Has any one see something like this and can suggest what can be tried and totally at a loss. Thank You Raj
Re: Issues with Tomcat 7.0.57 not loading ActionServlets
Hi Christopher, The dtd for validations.xml, validator-rules.xml and struts-config.xml are not same and that was causing this issue. However, this is fixed after made it same for all. Thanks a lot for your help Thanks Raj On Fri, May 15, 2015 at 1:27 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Raj, On 5/15/15 12:49 PM, RAJ wrote: Thanks Chris for the quick response, for class loader it is Loader but as your saying not make that change so will not. Validator-rules. Xml file is under Catalina_Home/webapps/app-name/WEB-INF/ and the app is in exploded format. This is working fine on tomcat 5.x and we just copied the files from their to tomcat 7.x. Yes, this looks normal as other functionalities are working except when we call struts it doesn't work. - From earlier: javax.servlet.UnavailableException: Cannot load a validator resource from '/WEB-INF/validator-rules.xml' at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java: 174) at org.apache.struts.action.ActionServlet.initModulePlugIns( ActionServlet.java:839) I checked the code for ValidatorPlugIn.init and it looks like this code stupidly swallows the original exception: try { this.initResources(); servlet.getServletContext().setAttribute(VALIDATOR_KEY + config.getPrefix(), resources); servlet.getServletContext().setAttribute(STOP_ON_ERROR_KEY + '.' + config.getPrefix(), (this.stopOnFirstError ? Boolean.TRUE : Boolean.FALSE)); } catch (Exception e) { log.error(e.getMessage(), e); throw new UnavailableException( Cannot load a validator resource from ' + pathnames + '); } But! It *does* log it at the ERROR level. Check your other log files to see what the actual error (and stack trace!) is. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v2 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJVVjqsAAoJEBzwKT+lPKRYJCgP/0sGsjg8Dn+7l0TAXJEPUNTk v00h/2MShxWET0olsScyhwLdBIBQi3yjfuVEIq7A5s0StU2JGsN69VncMtaT9OcF kSIJMQhDxpWI0VaD+2oqQzTfMW6SHB/yrFgxWRlxeVztczrQYuIfWuv5JX/lLOIO LalZMlRn+7maRcyyvSktriOgbNVWuzuQWw3lOBcWR7Se72T1uFxTIyIhWFX/ieG6 HnYNr/oghMAsb0ief7t0/FRpuOAs2R7cTPyfezPDCk8ba74euq8SUYh8g0fG3Bw0 ihN8myamrPJO/H4nBO9RD2A+VaGGR+Pkr4iNnsRklxwtssanuEI5ppLrvRSO1l5D Da4Hg+8q+4tepCBaZ/qx+eCJhHTVTezmOr5qIbWBPnRKbkK05dySYGaJV7hNS4ks TQmszvXe3mfMRMMJXofX+hgqhcKa9ZR6YpJxnc+0GLuAmt1Z+Zbz47fEj1Y8dorZ bMluz5fwIxavnokIA6a+xQGnhxyAmSJovCZWSlBUNnOTsbiJZ8t1gjk8bLZO4RQ+ osCL6+tyVLEVDKXO6Ax2BjvShjywMJan+c+ulTY8CXF/0iIPvxaVy9j9C2N1Vfcc WAlocKne//iDIm0tWU7b72XZcwA6xoXMLM2LaFHVg9NuIPzhRfAJ2LsMs+BD4bgz pG9gSXQMqM93v5lzi2fi =hjYO -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Issues with Tomcat 7.0.57 not loading ActionServlets
Thanks Chris for the quick response, for class loader it is Loader but as your saying not make that change so will not. Validator-rules. Xml file is under Catalina_Home/webapps/app-name/WEB-INF/ and the app is in exploded format. This is working fine on tomcat 5.x and we just copied the files from their to tomcat 7.x. Yes, this looks normal as other functionalities are working except when we call struts it doesn't work. Thanks Raj Sent from my iPhone On May 15, 2015, at 6:52 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Raj, On 5/13/15 10:29 PM, Raj wrote: Hi Chris, Thanks for your response. Sorry for the late response as I was out of town. I verified struts-config.xml the files and have this plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/org/apache/struts/validator/validator-rules.xml, /WEB-INF/validator-rules.xml / /plug-in There is some changes in Tomcat 5.x and Tomcat 7.x as to how the classes are loaded, I have a feeling that is what is the issue. I changed the context.xml for my app so that loader delegate=true/ so the class loader should behave the same way but the issue is still present. Can you give some more pointers? Sure. First, don't change the load order of your class loader. If you really typed the above, then you haven't changed anything because loader is not valid. It would need to be Loader (case matters). First, I would double-check to see if you have any newline characters in your value above. It probably won't matter, but I don't have any in mine, and mine works just fine under Tomcat versions 4 through 9. Where is your file validator-rules.xml? In a WAR? If so, where is the WAR file? On the disk? If so, where on the disk. What is your CATALINA_HOME? CATALINA_BASE? What is the appBase for your Host? Nothing has changed in Tomcat's resource-loading that should cause a problem unless you have some kind of very fragile setup. What you have presented so far looks perfectly normal, and Tomcat should not interfere with loading that file, just as it's always been able to do. Thanks, - -chris On Thu, May 7, 2015 at 6:56 AM, Christopher Schultz ch...@christopherschultz.net wrote: Raj, On 5/6/15 8:55 PM, Raj wrote: I upgraded my application from tomcat 5.5.15, JDK 1.5, Struts 1.1 on Debian 2.6.32 to tomcat 7.0.57, JDK 1.6, struts 1.1 on ubuntu14.04 and Action Servlets are not loading. I am thinking of this is something to do with version conflict. Please let me know what I am missing. I assure you that Struts 1.1 works on Tomcat 7.0.57 and Java 1.6. What you describe is my production environment, which works quite well. Below is the error Apr 24, 2015 9:00:20 PM org.apache.catalina.core.ApplicationContext log INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: RoundRobinRule@643fd34a] Apr 24, 2015 9:00:20 PM org.apache.catalina.core.ApplicationContext log INFO: Marking servlet action as unavailable Apr 24, 2015 9:00:20 PM org.apache.catalina.core.StandardContext loadOnStartup SEVERE: Servlet threw load() exception javax.servlet.UnavailableException: Cannot load a validator resource from '/WEB-INF/validator-rules.xml' Evidently, you are missing validator-rules.xml from your /WEB-INF/ directory. The Struts validator plug-in uses struts-config.xml to locate the validator-rules.xml file. Look at your web.xml to find out what file Struts is using to load its configuration. You are looking for the config init-param for the org.apache.struts.action.ActionServlet servlet. There may be more than one file listed under config; you'll have to check them all. Look in each of those config files. Look for the string org.apache.struts.validator.ValidatorPlugIn, which will define a plug-in. The pathnames property for the plug-in will list the files that the validator plug-in is going to try to load. All of those files need to be available on the classpath or filesystem. You probably have something like this: plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/org/apache/struts/validator/validator-rules.xml, /WEB-INF/validator-rules.xml / set-property property=stopOnFirstError value=false / /plug-in Check to see that all of those paths point to actual resources that can be loaded from your web application. Note that the first value (/org/apache/struts/validator/validator-rules.xml) is loaded from one of the Struts JAR files. BTW Struts 1-based applications also work just fine on Tomcat 8 and Java 8. Since you are upgrading, you should probably go all the way up. Hope that helps, -chris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
Re: Issues with Tomcat 7.0.57 not loading ActionServlets
Hi Chris, Thanks for your response. Sorry for the late response as I was out of town. I verified struts-config.xml the files and have this plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/org/apache/struts/validator/validator-rules.xml, /WEB-INF/validator-rules.xml / /plug-in There is some changes in Tomcat 5.x and Tomcat 7.x as to how the classes are loaded, I have a feeling that is what is the issue. I changed the context.xml for my app so that loader delegate=true/ so the class loader should behave the same way but the issue is still present. Can you give some more pointers? Thanks Raj On Thu, May 7, 2015 at 6:56 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Raj, On 5/6/15 8:55 PM, Raj wrote: I upgraded my application from tomcat 5.5.15, JDK 1.5, Struts 1.1 on Debian 2.6.32 to tomcat 7.0.57, JDK 1.6, struts 1.1 on ubuntu14.04 and Action Servlets are not loading. I am thinking of this is something to do with version conflict. Please let me know what I am missing. I assure you that Struts 1.1 works on Tomcat 7.0.57 and Java 1.6. What you describe is my production environment, which works quite well. Below is the error Apr 24, 2015 9:00:20 PM org.apache.catalina.core.ApplicationContext log INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: RoundRobinRule@643fd34a] Apr 24, 2015 9:00:20 PM org.apache.catalina.core.ApplicationContext log INFO: Marking servlet action as unavailable Apr 24, 2015 9:00:20 PM org.apache.catalina.core.StandardContext loadOnStartup SEVERE: Servlet threw load() exception javax.servlet.UnavailableException: Cannot load a validator resource from '/WEB-INF/validator-rules.xml' Evidently, you are missing validator-rules.xml from your /WEB-INF/ directory. The Struts validator plug-in uses struts-config.xml to locate the validator-rules.xml file. Look at your web.xml to find out what file Struts is using to load its configuration. You are looking for the config init-param for the org.apache.struts.action.ActionServlet servlet. There may be more than one file listed under config; you'll have to check them all. Look in each of those config files. Look for the string org.apache.struts.validator.ValidatorPlugIn, which will define a plug-in. The pathnames property for the plug-in will list the files that the validator plug-in is going to try to load. All of those files need to be available on the classpath or filesystem. You probably have something like this: plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/org/apache/struts/validator/validator-rules.xml, /WEB-INF/validator-rules.xml / set-property property=stopOnFirstError value=false / /plug-in Check to see that all of those paths point to actual resources that can be loaded from your web application. Note that the first value (/org/apache/struts/validator/validator-rules.xml) is loaded from one of the Struts JAR files. BTW Struts 1-based applications also work just fine on Tomcat 8 and Java 8. Since you are upgrading, you should probably go all the way up. Hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v2 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJVS1LdAAoJEBzwKT+lPKRY0nkP/RL8V6S3QJ7U+ovgLio1igE2 ABq69Mz+fYrhyO7LcAgkQ3WDaYbfPNxPMhIQW+rffLiuEUKj1i5z+b9ow7Ywg21/ BwVeY7BhUHMmeLi3+9YyR4Z8MUL66fsra4r9Ux5QD2z6tMpWLBOOeG+7pn15p5SM 0ad2KlMQwiBFhNmmkf6rrC3Y4zM/XHFveLftJevpK2opeykmLY9bgBxRbZ2vTTAj YAYdaFCiXg+zNVfqbxUGVUmMU6W8W3Lh87cuDiZLsBv39vUWisGIFmF/5ZivIT/J MYTPmD8QP8hSMgILvHGtcDQMVL8XrXXwaP/H4sfMjb0HHlAt29EFBNHE8RPC7S/C EKWZhOlU6YaXagqhImPy/6ZnFHVlIP7TSHPenjziu9aaGHNTJrzxynZcv+F3napG u1MzkTZM3gkgiYfO90ogykOQm7mDjywAV+P4K3n53mf5pvAoZVJ/jpB+mQd+Z9e+ zthzYrREIwD7tEHcKIU3T950t7pDqv1Qu4999QKtcw0Tgr/tnLsm1eub5o+8Nfa/ YHOOe7yP4A9u0Olpd0i90aLi0+dfu0Qx5M6cAigwVvwvMwa9sleyuEm+f+RkUC7H sLP4R3i6V1Ch2zyJQKtfpuicfjuw4kXMGEVY1nrrWxpKiFxpKr0okfDybkb/uonD yuzDyjsDnJg3B+Ad6ZZe =5Jwr -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Issues with Tomcat 7.0.57 not loading ActionServlets
I upgraded my application from tomcat 5.5.15, JDK 1.5, Struts 1.1 on Debian 2.6.32 to tomcat 7.0.57, JDK 1.6, struts 1.1 on ubuntu14.04 and Action Servlets are not loading. I am thinking of this is something to do with version conflict. Please let me know what I am missing. Below is the error Apr 24, 2015 9:00:20 PM org.apache.catalina.core.ApplicationContext log INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: RoundRobinRule@643fd34a] Apr 24, 2015 9:00:20 PM org.apache.catalina.core.ApplicationContext log INFO: Marking servlet action as unavailable Apr 24, 2015 9:00:20 PM org.apache.catalina.core.StandardContext loadOnStartup SEVERE: Servlet threw load() exception javax.servlet.UnavailableException: Cannot load a validator resource from '/WEB-INF/validator-rules.xml' at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:174) at org.apache.struts.action.ActionServlet.initModulePlugIns( ActionServlet.java:839) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:332) at javax.servlet.GenericServlet.init(GenericServlet.java:158) at org.apache.catalina.core.StandardWrapper.initServlet( StandardWrapper.java:1284) at org.apache.catalina.core.StandardWrapper.loadServlet( StandardWrapper.java:1197) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087) at org.apache.catalina.core.StandardContext.loadOnStartup( StandardContext.java:5231) at org.apache.catalina.core.StandardContext.startInternal( StandardContext.java:5518) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal( ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1081) at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1877) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run( ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:701) Thanks raj
Re: is der any default username for tomcat?
Hi can any one tell me how to install multiple tomcat instance apart from c drive On Fri, Jan 6, 2012 at 8:15 PM, André Warnier a...@ice-sa.com wrote: Pid wrote: On 06/01/2012 06:24, srilaxmi deevela wrote: is der any default username for tomcat? --**--** - To unsubscribe, e-mail: users-unsubscribe@tomcat.**apache.orgusers-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org http://catb.org/~esr/faqs/**smart-questions.htmlhttp://catb.org/~esr/faqs/smart-questions.html I don't agree. I think it's a good question. For example, in Germany it could be Tom Katze, in France Tom Chat, and Tom Gato for Spanish-speaking countries.. Why don't we put this to a vote ? --**--**- To unsubscribe, e-mail: users-unsubscribe@tomcat.**apache.orgusers-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: mod_jk linux binaries
Hi can anyone tell how to configure multiple tomcat instance other then c drive On Fri, Jan 6, 2012 at 6:35 PM, Olivier MENUEL omen...@vdocsoftware.comwrote: Ok Thank you -Message d'origine- De : Leon Kolchinsky [mailto:lkolc...@gmail.com] Envoyé : vendredi 6 janvier 2012 12:02 À : Tomcat Users List Objet : Re: mod_jk linux binaries Hi, I think we had this discussion regarding rpm packages etc., several month ago (try to search archives). AFAIK RedHat distributing mod_jk rpms with their JBoss product. Try to check with them or build your own ;) Leon Kolchinsky On Fri, Jan 6, 2012 at 21:49, Olivier MENUEL omen...@vdocsoftware.com wrote: Yes But I wish to package the binaries with my application to distribute them to my partners. I was hoping I could find binaries for all environments (it will take me some time to build them on each possible environment), like apache was doing with previous releases (for instance 1.2.31). Has apache completely stopped distributing linux binaries since 1.2.32 ? Or will they be available later ? Thanks -Message d'origine- De : Rainer Jung [mailto:rainer.j...@kippdata.de] Envoyé : vendredi 6 janvier 2012 11:19 À : Tomcat Users List Objet : Re: mod_jk linux binaries On 06.01.2012 11:01, Leon Kolchinsky wrote: Yes there is - http://apache.mirror.aussiehq.net.au//tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.32-src.tar.gz These are the sources. For 1.2.32 there are indeed not binaries for Linux available. Building is simple and ensures compatibility with your Apache Webserver binary. Regards, Rainer Check out this page - http://tomcat.apache.org/download-connectors.cgi Cheers, Leon Kolchinsky On Fri, Jan 6, 2012 at 20:54, Olivier MENUELomen...@vdocsoftware.com wrote: Ok Thank you very much I was hoping I could find already compiled binaries (there are the 1.2.31 in the archives, but not the 1.2.32). I'll do that. Thanks -Message d'origine- De : Leon Kolchinsky [mailto:lkolc...@gmail.com] Envoyé : vendredi 6 janvier 2012 10:45 À : Tomcat Users List Objet : Re: mod_jk linux binaries Hi, You can compile mod_jk and it's pretty straight forward (please use latest source, mine is just an example): 1. # yum install httpd httpd-devel gcc gcc-c++ 2. Go to http://tomcat.apache.org/download-connectors.cgi and download the source code: # wget http://apache.mirror.aussiehq.net.au//tomcat/tomcat-connectors/jk/source/jk-1.2.31/tomcat-connectors-1.2.31-src.tar.gz 3. # tar -xvzf tomcat-connectors-1.2.31-src.tar.gz Read docs/webserver_howto/apache.html or native/BUILDING.txt for options. # cd tomcat-connectors-1.2.31-src/native/ # which apxs # ./configure --with-apxs=/usr/sbin/apxs --enable-api-compatibility # make # make install Cheers, Leon Kolchinsky On Fri, Jan 6, 2012 at 20:35, Olivier MENUELomen...@vdocsoftware.com wrote: Hi, Where can I find binaries for mod_jk 1.2.32 for linux httpd 2.2 ? I can find only windows/netware... Thanks - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Ajp13Processor threads are not getting closed.
Thanks. I made connection Pool parameters as per documentation. What I am looking for is that whether there is any chance we can close the Ajp13Processor threads in Tomcat Server if they are no longer needed, or after a particular time. Whenever I hit the URL on the browser a new thread is getting created and sooner or later it reaches the threshold. Eventually I'll have to restart the server. -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Tuesday, August 30, 2011 12:50 AM To: Tomcat Users List Subject: Re: Ajp13Processor threads are not getting closed. Well then.. Jagadish Raj R wrote: Hi Andre, Here are the results. Compiled in modules: core.c this : prefork.c means that your front-end Apache httpd server is running in prefork mode. And what do the parts in red say in the link I sent you before ? http_core.c mod_so.c KeepAlive On MaxKeepAliveRequests 100 And this : KeepAliveTimeout 15 means that any time a browser makes a connectionm to the server, sends a few requests on that connection, and then does not send anything anymore, the server will keep listening anyway for up to 15 seconds after the last request, just in case the browser /would/ send another request on that connection. And during that same time, one connection from Apache httpd to Tomcat will be kept waiting, and one thread in Tomcat will be kept waiting, for the same reason. You would probably improve the responsiveness of your server in general, by reducing this to 3 for example. Thanks Regards, JAGADISH RAJ R -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Thursday, August 25, 2011 4:48 PM To: Tomcat Users List Subject: Re: Ajp13Processor threads are not getting closed. To the original poster Jagadish Raj : Maybe let's restart from the beginning. First, re-read this page of the online documentation for the mod_jk connector : http://tomcat.apache.org/connectors-doc/reference/workers.html Particularly, next to the connection_pool* parameters, the items in red. Considering that, what is the MPM used on your Apache httpd server ? (you can see this by running /usr/sbin/apache2 -l or httpd -l; list the result here). (This is to find out if your httpd server is running in prefork mode or one of the multi-threading modes.) Then, what are the httpd settings for KeepAlive ? (KeepAlive and KeepAliveTimeout). This is usually in /etc/apache2/apache2.conf. Edward Quick wrote: mod_jk is not Tomcat so I'm not sure you need to worry about running an older version of tomcat as long as it's listening on the AJP connector. -Original Message- From: Jagadish Raj R [mailto:jagadish_ra...@symantec.com] Sent: 25 August 2011 10:08 To: Tomcat Users List Subject: RE: Ajp13Processor threads are not getting closed. Hi, Apache not accepting JkWatchDogInterval parameter (think it's version problem). How is this problem fixed in higher Tomcat versions. Can I do the same in lower version of Tomcat. (As of now, I don't have a choice of upgrading Tomcat as this requires upgrade of TIBCO Administrator which is built on top of Tomcat) Thanks Regards, JAGADISH RAJ R | Symantec EAI Support | M P H A S I S an HP company | Level 2, Tower 7, Magarpatta SEZ, Magarpatta city, Pune-411013| Mobile: +91 9011047954| Email: jagadish_ra...@symantec.com -Original Message- From: Edward Quick [mailto:edward.qu...@iggroup.com] Sent: Wednesday, August 24, 2011 3:20 PM To: Tomcat Users List Subject: RE: Ajp13Processor threads are not getting closed. You could try adding JkWatchDogInterval 30. That did the trick for me. -Original Message- From: Jagadish Raj R [mailto:jagadish_ra...@symantec.com] Sent: 24 August 2011 10:39 To: Tomcat Users List Subject: Ajp13Processor threads are not getting closed. Hi Tomcat Users, I have a Tomcat server to which another apache webserver connects using AJP 1.3 Connector. I have set up a maxProcessors=75 in connector settings. Whenever a user creates a connection an Ajp13Processor connection thread is created. My problem is this thread does not get terminated even after the user close the session. Please help me in finding some configuration changes that will allow me to close these sessions/threads after a certain timeout value. I am pasting below the configurations I am using. !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8089 minProcessors=5 maxProcessors=75 acceptCount=10 connectionTimeout=6 debug=0/ Workers.properties file:- worker.list=ajp13 worker.ajp13.port= worker.ajp13.host=hostname worker.ajp13.type=ajp13 worker.ajp13.connection_pool_size=75 worker.ajp13.connection_pool_minsize=15 worker.ajp13.connection_pool_timeout=60 Logs from thread dump of tomcat process:- Ajp13Processor[][7] daemon
RE: Ajp13Processor threads are not getting closed.
Hi Andre, Here are the results. Compiled in modules: core.c prefork.c http_core.c mod_so.c KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 Thanks Regards, JAGADISH RAJ R -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Thursday, August 25, 2011 4:48 PM To: Tomcat Users List Subject: Re: Ajp13Processor threads are not getting closed. To the original poster Jagadish Raj : Maybe let's restart from the beginning. First, re-read this page of the online documentation for the mod_jk connector : http://tomcat.apache.org/connectors-doc/reference/workers.html Particularly, next to the connection_pool* parameters, the items in red. Considering that, what is the MPM used on your Apache httpd server ? (you can see this by running /usr/sbin/apache2 -l or httpd -l; list the result here). (This is to find out if your httpd server is running in prefork mode or one of the multi-threading modes.) Then, what are the httpd settings for KeepAlive ? (KeepAlive and KeepAliveTimeout). This is usually in /etc/apache2/apache2.conf. Edward Quick wrote: mod_jk is not Tomcat so I'm not sure you need to worry about running an older version of tomcat as long as it's listening on the AJP connector. -Original Message- From: Jagadish Raj R [mailto:jagadish_ra...@symantec.com] Sent: 25 August 2011 10:08 To: Tomcat Users List Subject: RE: Ajp13Processor threads are not getting closed. Hi, Apache not accepting JkWatchDogInterval parameter (think it's version problem). How is this problem fixed in higher Tomcat versions. Can I do the same in lower version of Tomcat. (As of now, I don't have a choice of upgrading Tomcat as this requires upgrade of TIBCO Administrator which is built on top of Tomcat) Thanks Regards, JAGADISH RAJ R | Symantec EAI Support | M P H A S I S an HP company | Level 2, Tower 7, Magarpatta SEZ, Magarpatta city, Pune-411013| Mobile: +91 9011047954| Email: jagadish_ra...@symantec.com -Original Message- From: Edward Quick [mailto:edward.qu...@iggroup.com] Sent: Wednesday, August 24, 2011 3:20 PM To: Tomcat Users List Subject: RE: Ajp13Processor threads are not getting closed. You could try adding JkWatchDogInterval 30. That did the trick for me. -Original Message- From: Jagadish Raj R [mailto:jagadish_ra...@symantec.com] Sent: 24 August 2011 10:39 To: Tomcat Users List Subject: Ajp13Processor threads are not getting closed. Hi Tomcat Users, I have a Tomcat server to which another apache webserver connects using AJP 1.3 Connector. I have set up a maxProcessors=75 in connector settings. Whenever a user creates a connection an Ajp13Processor connection thread is created. My problem is this thread does not get terminated even after the user close the session. Please help me in finding some configuration changes that will allow me to close these sessions/threads after a certain timeout value. I am pasting below the configurations I am using. !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8089 minProcessors=5 maxProcessors=75 acceptCount=10 connectionTimeout=6 debug=0/ Workers.properties file:- worker.list=ajp13 worker.ajp13.port= worker.ajp13.host=hostname worker.ajp13.type=ajp13 worker.ajp13.connection_pool_size=75 worker.ajp13.connection_pool_minsize=15 worker.ajp13.connection_pool_timeout=60 Logs from thread dump of tomcat process:- Ajp13Processor[][7] daemon prio=10 tid=0x0166c038 nid=0xe0 in Object.wait() [0xa64ff000..0xa64ffa28] at java.lang.Object.wait(Native Method) - waiting on 0xc6de9028 (a org.apache.ajp.tomcat4.Ajp13Processor) at java.lang.Object.wait(Object.java:474) at org.apache.ajp.tomcat4.Ajp13Processor.await(Ajp13Processor.java:316) - locked 0xc6de9028 (a org.apache.ajp.tomcat4.Ajp13Processor) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:576) at java.lang.Thread.run(Thread.java:595) Versions:- Tomcat - 4.1.27 Mod JK - mod_jk-apache-2.0.49-linux-i686.so Thanks Regards, JAGADISH RAJ R | Symantec EAI Support | M P H A S I S an HP company | Level 2, Tower 7, Magarpatta SEZ, Magarpatta city, Pune-411013| Mobile: +91 9011047954| Email: jagadish_ra...@symantec.commailto:jagadish_ra...@symantec.com The information contained in this email is strictly confidential and for the use of the addressee only, unless otherwise indicated. If you are not the intended recipient, please do not read, copy, use or disclose to others this message or any attachment. Please also notify the sender by replying to this email or by telephone (+44 (0)20 7896 0011) and then delete the email and any copies of it. Opinions, conclusions (etc) that do not relate to the official business of this company shall be understood as neither given
RE: Ajp13Processor threads are not getting closed.
Hi, Apache not accepting JkWatchDogInterval parameter (think it's version problem). How is this problem fixed in higher Tomcat versions. Can I do the same in lower version of Tomcat. (As of now, I don't have a choice of upgrading Tomcat as this requires upgrade of TIBCO Administrator which is built on top of Tomcat) Thanks Regards, JAGADISH RAJ R | Symantec EAI Support | M P H A S I S an HP company | Level 2, Tower 7, Magarpatta SEZ, Magarpatta city, Pune-411013| Mobile: +91 9011047954| Email: jagadish_ra...@symantec.com -Original Message- From: Edward Quick [mailto:edward.qu...@iggroup.com] Sent: Wednesday, August 24, 2011 3:20 PM To: Tomcat Users List Subject: RE: Ajp13Processor threads are not getting closed. You could try adding JkWatchDogInterval 30. That did the trick for me. -Original Message- From: Jagadish Raj R [mailto:jagadish_ra...@symantec.com] Sent: 24 August 2011 10:39 To: Tomcat Users List Subject: Ajp13Processor threads are not getting closed. Hi Tomcat Users, I have a Tomcat server to which another apache webserver connects using AJP 1.3 Connector. I have set up a maxProcessors=75 in connector settings. Whenever a user creates a connection an Ajp13Processor connection thread is created. My problem is this thread does not get terminated even after the user close the session. Please help me in finding some configuration changes that will allow me to close these sessions/threads after a certain timeout value. I am pasting below the configurations I am using. !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8089 minProcessors=5 maxProcessors=75 acceptCount=10 connectionTimeout=6 debug=0/ Workers.properties file:- worker.list=ajp13 worker.ajp13.port= worker.ajp13.host=hostname worker.ajp13.type=ajp13 worker.ajp13.connection_pool_size=75 worker.ajp13.connection_pool_minsize=15 worker.ajp13.connection_pool_timeout=60 Logs from thread dump of tomcat process:- Ajp13Processor[][7] daemon prio=10 tid=0x0166c038 nid=0xe0 in Object.wait() [0xa64ff000..0xa64ffa28] at java.lang.Object.wait(Native Method) - waiting on 0xc6de9028 (a org.apache.ajp.tomcat4.Ajp13Processor) at java.lang.Object.wait(Object.java:474) at org.apache.ajp.tomcat4.Ajp13Processor.await(Ajp13Processor.java:316) - locked 0xc6de9028 (a org.apache.ajp.tomcat4.Ajp13Processor) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:576) at java.lang.Thread.run(Thread.java:595) Versions:- Tomcat - 4.1.27 Mod JK - mod_jk-apache-2.0.49-linux-i686.so Thanks Regards, JAGADISH RAJ R | Symantec EAI Support | M P H A S I S an HP company | Level 2, Tower 7, Magarpatta SEZ, Magarpatta city, Pune-411013| Mobile: +91 9011047954| Email: jagadish_ra...@symantec.commailto:jagadish_ra...@symantec.com The information contained in this email is strictly confidential and for the use of the addressee only, unless otherwise indicated. If you are not the intended recipient, please do not read, copy, use or disclose to others this message or any attachment. Please also notify the sender by replying to this email or by telephone (+44 (0)20 7896 0011) and then delete the email and any copies of it. Opinions, conclusions (etc) that do not relate to the official business of this company shall be understood as neither given nor endorsed by it. IG Group Holdings plc is a company registered in England and Wales under number 01190902. VAT registration number 761 2978 07. Registered Office: Cannon Bridge House, 25 Dowgate Hill, London EC4R 2YA. Authorised and regulated by the Financial Services Authority. FSA Register number 114059. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Ajp13Processor threads are not getting closed.
Hi Tomcat Users, I have a Tomcat server to which another apache webserver connects using AJP 1.3 Connector. I have set up a maxProcessors=75 in connector settings. Whenever a user creates a connection an Ajp13Processor connection thread is created. My problem is this thread does not get terminated even after the user close the session. Please help me in finding some configuration changes that will allow me to close these sessions/threads after a certain timeout value. I am pasting below the configurations I am using. !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8089 minProcessors=5 maxProcessors=75 acceptCount=10 connectionTimeout=6 debug=0/ Workers.properties file:- worker.list=ajp13 worker.ajp13.port= worker.ajp13.host=hostname worker.ajp13.type=ajp13 worker.ajp13.connection_pool_size=75 worker.ajp13.connection_pool_minsize=15 worker.ajp13.connection_pool_timeout=60 Logs from thread dump of tomcat process:- Ajp13Processor[][7] daemon prio=10 tid=0x0166c038 nid=0xe0 in Object.wait() [0xa64ff000..0xa64ffa28] at java.lang.Object.wait(Native Method) - waiting on 0xc6de9028 (a org.apache.ajp.tomcat4.Ajp13Processor) at java.lang.Object.wait(Object.java:474) at org.apache.ajp.tomcat4.Ajp13Processor.await(Ajp13Processor.java:316) - locked 0xc6de9028 (a org.apache.ajp.tomcat4.Ajp13Processor) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:576) at java.lang.Thread.run(Thread.java:595) Versions:- Tomcat - 4.1.27 Mod JK - mod_jk-apache-2.0.49-linux-i686.so Thanks Regards, JAGADISH RAJ R | Symantec EAI Support | M P H A S I S an HP company | Level 2, Tower 7, Magarpatta SEZ, Magarpatta city, Pune-411013| Mobile: +91 9011047954| Email: jagadish_ra...@symantec.commailto:jagadish_ra...@symantec.com
Re: Working of Tomcat with MS Access
Yes On Sat, Apr 16, 2011 at 8:44 PM, Pid p...@pidster.com wrote: On 4/15/11 6:58 PM, RAHUL RAJ wrote: This is like a small assignment that has to be submitted urgently Is this student coursework? p
Working of Tomcat with MS Access
Hello, I am working on building a jsp website with MS Access as database. When my login page is loaded on tomcat (localhost:8080/login.jsp), it shows the following error: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified. The jdbc program alone is working perfectly, So There might not be problems due to Driver, Data source name, Database Tables or any other software version compatibilities. OS: Windows Vista Home Basic Tomcat Version: 5.5.x jdk version: 1.6 MS Access 2010 code is given below: %@ page language=java import=java.sql.* % html body form method=post p Enter your username : input type=text name=username/ /p p Enter your password : input type=text name=password/ /p input type=submit value=Login/ % String usn = request.getParameter(username); String pass = request.getParameter(password); try{ Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); String url = jdbc:odbc:rahul; Connection con = DriverManager.getConnection(url, , ); Statement s = con.createStatement(); ResultSet rs = s.executeQuery(select * from customers); while(rs.next()) { String u = rs.getString(1); String p = rs.getString(2); if(usn.equals(u) pass.equals(p)) { out.println(login successfull); } else { out.println(login failed); } } } catch(Exception e) { out.println(Error+e); } % /form /body /html - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Working of Tomcat with MS Access
I know my code is not perfect. But I just want to resolve this error now. Can u say how to solve this? pls answer to the question.have u read my message completely? On 4/15/11, Mikolaj Rydzewski m...@ceti.pl wrote: On Fri, 15 Apr 2011 15:34:37 +0530, RAHUL RAJ omrahulraj...@gmail.com wrote: I am working on building a jsp website with MS Access as database. I usually do not express my opinions about others code, but your is really the worst code sample I have ever seen... I know that everyone has its time to begin. But please use some good book to start with. 1. use newer tomcat 2. do not mix code and html 3. instantiate jdbc driver once 4. close jdbc connections (within finally block) after use 5. use where sql clause 6. use better database 7. perform usernamepassword check only after form submission 8. use any framework/library to wrap jdbc calls 9. -- Mikolaj Rydzewski m...@ceti.pl - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Working of Tomcat with MS Access
The code I gave is just a sample code, it might change afterwards..but before that, I need to resolve this error, sorry for your inconvenience... On 4/15/11, RAHUL RAJ omrahulraj...@gmail.com wrote: I know my code is not perfect. But I just want to resolve this error now. Can u say how to solve this? pls answer to the question.have u read my message completely? On 4/15/11, Mikolaj Rydzewski m...@ceti.pl wrote: On Fri, 15 Apr 2011 15:34:37 +0530, RAHUL RAJ omrahulraj...@gmail.com wrote: I am working on building a jsp website with MS Access as database. I usually do not express my opinions about others code, but your is really the worst code sample I have ever seen... I know that everyone has its time to begin. But please use some good book to start with. 1. use newer tomcat 2. do not mix code and html 3. instantiate jdbc driver once 4. close jdbc connections (within finally block) after use 5. use where sql clause 6. use better database 7. perform usernamepassword check only after form submission 8. use any framework/library to wrap jdbc calls 9. -- Mikolaj Rydzewski m...@ceti.pl - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Working of Tomcat with MS Access
I got communications exception when I did this with mysql...and no one knows the reason perfectly...no response from mysql forum too... On Fri, Apr 15, 2011 at 9:08 PM, Troy troylparr...@aol.com wrote: Raj; To all reading this response, this is my first response on this list so if I get it a little wrong have patience. You may want to look at the light weight RDBMS mysql. It is free, easily installed and can be utilized with the companion Workbench to make dealing with the db very easy, a lot like the access interface. You will have good driver support from the java end as well and a lot of documentation and tutorials to get you connected in your web app to your persistence layer. mysql.com Just my two cents and an attempt to give back a little to the community. Troy -Original Message- From: RAHUL RAJ omrahulraj...@gmail.com To: users users@tomcat.apache.org Sent: Fri, Apr 15, 2011 6:05 am Subject: Working of Tomcat with MS Access Hello, I am working on building a jsp website with MS Access as database. When my login page is loaded on tomcat (localhost:8080/login.jsp), it shows the following error: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified. The jdbc program alone is working perfectly, So There might not be problems due to Driver, Data source name, Database Tables or any other software version compatibilities. OS: Windows Vista Home Basic Tomcat Version: 5.5.x jdk version: 1.6 MS Access 2010 code is given below: %@ page language=java import=java.sql.* % html body form method=post p Enter your username : input type=text name=username/ /p p Enter your password : input type=text name=password/ /p input type=submit value=Login/ % String usn = request.getParameter(username); String pass = request.getParameter(password); try{ Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); String url = jdbc:odbc:rahul; Connection con = DriverManager.getConnection(url, , ); Statement s = con.createStatement(); ResultSet rs = s.executeQuery(select * from customers); while(rs.next()) { String u = rs.getString(1); String p = rs.getString(2); if(usn.equals(u) pass.equals(p)) { out.println(login successfull); } else { out.println(login failed); } } } catch(Exception e) { out.println(Error+e); } % /form /body /html - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Working of Tomcat with MS Access
Yes I already did , that you might think I should. Now I am trying with MS ACCESS...and new error came : SQLException: general error I didn't found any error in my sql syntax or jdbc code. jdbc code alone is working perfectly.. On Fri, Apr 15, 2011 at 9:02 PM, Angel Java Lopez ajlopez2...@gmail.comwrote: One question: You should have an ODBC declaration named rahul. It is declared for your user, or as a system odbc name? My guess, your Tomcat is running as a service, or under other user (not your user), and ODBC rahul Data Source name is only for your user. Is it the case? Did you solve the problem? How? Angel Java Lopez http://www.ajlopez.com http://twitter.com/ajlopez On Fri, Apr 15, 2011 at 7:04 AM, RAHUL RAJ omrahulraj...@gmail.com wrote: Hello, I am working on building a jsp website with MS Access as database. When my login page is loaded on tomcat (localhost:8080/login.jsp), it shows the following error: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified. The jdbc program alone is working perfectly, So There might not be problems due to Driver, Data source name, Database Tables or any other software version compatibilities. OS: Windows Vista Home Basic Tomcat Version: 5.5.x jdk version: 1.6 MS Access 2010 code is given below: %@ page language=java import=java.sql.* % html body form method=post p Enter your username : input type=text name=username/ /p p Enter your password : input type=text name=password/ /p input type=submit value=Login/ % String usn = request.getParameter(username); String pass = request.getParameter(password); try{ Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); String url = jdbc:odbc:rahul; Connection con = DriverManager.getConnection(url, , ); Statement s = con.createStatement(); ResultSet rs = s.executeQuery(select * from customers); while(rs.next()) { String u = rs.getString(1); String p = rs.getString(2); if(usn.equals(u) pass.equals(p)) { out.println(login successfull); } else { out.println(login failed); } } } catch(Exception e) { out.println(Error+e); } % /form /body /html - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Working of Tomcat with MS Access
Since I am a beginner, I have to start with some trial projects, right? I know this is nothing! and help me...pls answer to the question.. On Fri, Apr 15, 2011 at 8:41 PM, Jeff Hubbs jhubbsl...@att.net wrote: You do realize, I hope, that what you're proposing is akin to sourcing parts for your jet engine from Fisher-Price? IMHO MS Access is not and never has been useful as a professional database product. I'm not even sure if what you are proposing even holds up in the looking-through-binoculars-from-the-big-end sense. MS Access is a desktop application that accesses files on disk. Java apps running on Tomcat typically access an RDBMS over a network connection via SQL statements and their responses. AFAIK there is not a server instantiation of MS Access; in fact, part of the whole point of MS Access as an ongoing product is that it acts as a gateway drug to MS' SQL Server product, the transition to which would be triggered by the inherent limitations (and, in my past experience, persistent unaddressed bugs) of Access. I think you need to back up a bit and work toward getting your data liberated from MS Access and ported into a proper RDBMS like PostgreSQL or one of MS SQL Server, Oracle, IBM DB2, etc. if you feel that money must be continually spent on software licenses for such. Then you will be facing Java apps and Tomcat in a far more conventional way. So, to sum up this and earlier responses: 1) Learn to code Java 2) Understand real RDBMSses. - Jeff On 4/15/11 6:04 AM, RAHUL RAJ wrote: Hello, I am working on building a jsp website with MS Access as database. When my login page is loaded on tomcat (localhost:8080/login.jsp), it shows the following error: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified. The jdbc program alone is working perfectly, So There might not be problems due to Driver, Data source name, Database Tables or any other software version compatibilities. OS: Windows Vista Home Basic Tomcat Version: 5.5.x jdk version: 1.6 MS Access 2010 code is given below: %@ page language=java import=java.sql.* % html body form method=post p Enter your username :input type=text name=username/ /p p Enter your password :input type=text name=password/ /p input type=submit value=Login/ % String usn = request.getParameter(username); String pass = request.getParameter(password); try{ Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); String url = jdbc:odbc:rahul; Connection con = DriverManager.getConnection(url, , ); Statement s = con.createStatement(); ResultSet rs = s.executeQuery(select * from customers); while(rs.next()) { String u = rs.getString(1); String p = rs.getString(2); if(usn.equals(u) pass.equals(p)) { out.println(login successfull); } else { out.println(login failed); } } } catch(Exception e) { out.println(Error+e); } % /form /body /html - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Working of Tomcat with MS Access
Yes, it runs as a service. But how to know under what account does that service run? does it mean 'admin' or 'normal user' or 'system'? I made a system DSN for this...not the user DSN(Data Source Name) and I launched tomcat service by right click 'run as admin' On Fri, Apr 15, 2011 at 11:09 PM, Leo Donahue - PLANDEVX leodona...@mail.maricopa.gov wrote: -Original Message- From: RAHUL RAJ [mailto:omrahulraj...@gmail.com] Sent: Friday, April 15, 2011 10:35 AM To: Tomcat Users List Subject: Re: Working of Tomcat with MS Access Since I am a beginner, I have to start with some trial projects, right? I know this is nothing! and help me...pls answer to the question.. Mikolaj gave you a hint already. If your Tomcat runs as a service, under what account does that service run? Does that account have access to your mdb? Did you create a user or system datasource on your computer with the name: rahul - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Working of Tomcat with MS Access
ya...I did the same thing you told in mysql...but communications Exception occured.. This is like a small assignment that has to be submitted urgently..so I have to run away from the error! and tried with MS ACCESS. The jdbc program for access works perfect alone.. On Fri, Apr 15, 2011 at 11:19 PM, Troy troylparr...@aol.com wrote: Raj, I think everyone is saying to take a look at this syntax: String url = jdbc:odbc:rahul; Connection con = DriverManager.getConnection(url, , ); I know that when I make this type of simple jdbc connection in mysql the syntax is: String url = jdbc:mysql://localhost/dbName; Connection conn = DriverManager.getConnection(url, , ); Troy -Original Message- From: RAHUL RAJ omrahulraj...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Fri, Apr 15, 2011 1:31 pm Subject: Re: Working of Tomcat with MS Access I got communications exception when I did this with mysql...and no one knows the reason perfectly...no response from mysql forum too... On Fri, Apr 15, 2011 at 9:08 PM, Troy troylparr...@aol.com wrote: Raj; To all reading this response, this is my first response on this list so if I get it a little wrong have patience. You may want to look at the light weight RDBMS mysql. It is free, easily installed and can be utilized with the companion Workbench to make dealing with the db very easy, a lot like the access interface. You will have good driver support from the java end as well and a lot of documentation and tutorials to get you connected in your web app to your persistence layer. mysql.com Just my two cents and an attempt to give back a little to the community. Troy -Original Message- From: RAHUL RAJ omrahulraj...@gmail.com To: users users@tomcat.apache.org Sent: Fri, Apr 15, 2011 6:05 am Subject: Working of Tomcat with MS Access Hello, I am working on building a jsp website with MS Access as database. When my login page is loaded on tomcat (localhost:8080/login.jsp), it shows the following error: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified. The jdbc program alone is working perfectly, So There might not be problems due to Driver, Data source name, Database Tables or any other software version compatibilities. OS: Windows Vista Home Basic Tomcat Version: 5.5.x jdk version: 1.6 MS Access 2010 code is given below: %@ page language=java import=java.sql.* % html body form method=post p Enter your username : input type=text name=username/ /p p Enter your password : input type=text name=password/ /p input type=submit value=Login/ % String usn = request.getParameter(username); String pass = request.getParameter(password); try{ Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); String url = jdbc:odbc:rahul; Connection con = DriverManager.getConnection(url, , ); Statement s = con.createStatement(); ResultSet rs = s.executeQuery(select * from customers); while(rs.next()) { String u = rs.getString(1); String p = rs.getString(2); if(usn.equals(u) pass.equals(p)) { out.println(login successfull); } else { out.println(login failed); } } } catch(Exception e) { out.println(Error+e); } % /form /body /html - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Working of Tomcat with MS Access
No I am in Windows mode. On Fri, Apr 15, 2011 at 11:26 PM, Propes, Barry L barry.l.pro...@citi.comwrote: Jeff has some really good points here, Rahul. I'm a guy who spent several years doing ASP development with both MS Access and SQL Server over the web before getting into Java. Even still, I didn't fathom trying to mess with MS Access with Java when I was making that transition. I started with mySQL on my Windows desktop to get started, but when I got access to our Oracle servers, went that route. Like Jeff says, you can do this basically for no cost using both Tomcat and mySQL. Sure, it's command line, unlike MS Access, but you shouldn't have too much trouble with it. Jeff, if he's using MS Access, he's probably not on Linux, is he? -Original Message- From: Jeff Hubbs [mailto:jhubbsl...@att.net] Sent: Friday, April 15, 2011 12:46 PM To: Tomcat Users List Subject: Re: Working of Tomcat with MS Access A beginner needs to at least begin with workable platforms and software. PostgreSQL on Linux has a total software license cost of $0.00; your barrier to entry with inappropriate software is considerably higher. On 4/15/11 1:35 PM, RAHUL RAJ wrote: Since I am a beginner, I have to start with some trial projects, right? I know this is nothing! and help me...pls answer to the question.. On Fri, Apr 15, 2011 at 8:41 PM, Jeff Hubbsjhubbsl...@att.net wrote: You do realize, I hope, that what you're proposing is akin to sourcing parts for your jet engine from Fisher-Price? IMHO MS Access is not and never has been useful as a professional database product. I'm not even sure if what you are proposing even holds up in the looking-through-binoculars-from-the-big-end sense. MS Access is a desktop application that accesses files on disk. Java apps running on Tomcat typically access an RDBMS over a network connection via SQL statements and their responses. AFAIK there is not a server instantiation of MS Access; in fact, part of the whole point of MS Access as an ongoing product is that it acts as a gateway drug to MS' SQL Server product, the transition to which would be triggered by the inherent limitations (and, in my past experience, persistent unaddressed bugs) of Access. I think you need to back up a bit and work toward getting your data liberated from MS Access and ported into a proper RDBMS like PostgreSQL or one of MS SQL Server, Oracle, IBM DB2, etc. if you feel that money must be continually spent on software licenses for such. Then you will be facing Java apps and Tomcat in a far more conventional way. So, to sum up this and earlier responses: 1) Learn to code Java 2) Understand real RDBMSses. - Jeff On 4/15/11 6:04 AM, RAHUL RAJ wrote: Hello, I am working on building a jsp website with MS Access as database. When my login page is loaded on tomcat (localhost:8080/login.jsp), it shows the following error: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified. The jdbc program alone is working perfectly, So There might not be problems due to Driver, Data source name, Database Tables or any other software version compatibilities. OS: Windows Vista Home Basic Tomcat Version: 5.5.x jdk version: 1.6 MS Access 2010 code is given below: %@ page language=java import=java.sql.* % html body form method=post p Enter your username :input type=text name=username/ /p p Enter your password :input type=text name=password/ /p input type=submit value=Login/ % String usn = request.getParameter(username); String pass = request.getParameter(password); try{ Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); String url = jdbc:odbc:rahul; Connection con = DriverManager.getConnection(url, , ); Statement s = con.createStatement(); ResultSet rs = s.executeQuery(select * from customers); while(rs.next()) { String u = rs.getString(1); String p = rs.getString(2); if(usn.equals(u) pass.equals(p)) { out.println(login successfull); } else { out.println(login failed); } } } catch(Exception e) { out.println(Error+e); } % /form /body /html - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Working of Tomcat with MS Access
running 'tomcat as standalone java program'? can u explain for me sir? 2011/4/15 Mikolaj Rydzewski m...@ceti.pl RAHUL RAJ wrote: This is like a small assignment that has to be submitted urgently..so I have to run away from the error! and tried with MS ACCESS. The jdbc program for access works perfect alone.. So run tomcat as a 'standalone' java program - that means not as a service. -- Mikolaj Rydzewski m...@ceti.pl - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Working of Tomcat with MS Access
Thank you very much for your help! When I did with mysql, the corresponding jdbc driver is stored in /webapps/ROOT/lib directory in tomcat. On Fri, Apr 15, 2011 at 11:56 PM, Troy troylparr...@aol.com wrote: I wrote a quick little jsp to access one of my db (a mysql) %@page contentType=text/html pageEncoding=UTF-8% %@page import=java.sql.* % !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head meta http-equiv=Content-Type content=text/html; charset=UTF-8 titleTest Connection/title /head body % String name = ; Class.forName(com.mysql.jdbc.Driver); Connection conn = DriverManager.getConnection(jdbc:mysql://localhost/dbName, , XX); Statement stmt = conn.createStatement(); String query = select * from friends where id='1'; ResultSet rs = stmt.executeQuery(query); while(rs.next()){ name = rs.getString(3); } % %= name % /body /html Worked like expected. I know this is not a java thread . . . but still trying to help since it is a time sensitive matter. Silly question, but are your jdbc drivers added to your library for the web app? I make this mistake ALL the time. Troy -Original Message- From: RAHUL RAJ omrahulraj...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Fri, Apr 15, 2011 1:59 pm Subject: Re: Working of Tomcat with MS Access ya...I did the same thing you told in mysql...but communications Exception occured.. This is like a small assignment that has to be submitted urgently..so I have to run away from the error! and tried with MS ACCESS. The jdbc program for access works perfect alone.. On Fri, Apr 15, 2011 at 11:19 PM, Troy troylparr...@aol.com wrote: Raj, I think everyone is saying to take a look at this syntax: String url = jdbc:odbc:rahul; Connection con = DriverManager.getConnection(url, , ); I know that when I make this type of simple jdbc connection in mysql the syntax is: String url = jdbc:mysql://localhost/dbName; Connection conn = DriverManager.getConnection(url, , ); Troy -Original Message- From: RAHUL RAJ omrahulraj...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Fri, Apr 15, 2011 1:31 pm Subject: Re: Working of Tomcat with MS Access I got communications exception when I did this with mysql...and no one knows the reason perfectly...no response from mysql forum too... On Fri, Apr 15, 2011 at 9:08 PM, Troy troylparr...@aol.com wrote: Raj; To all reading this response, this is my first response on this list so if I get it a little wrong have patience. You may want to look at the light weight RDBMS mysql. It is free, easily installed and can be utilized with the companion Workbench to make dealing with the db very easy, a lot like the access interface. You will have good driver support from the java end as well and a lot of documentation and tutorials to get you connected in your web app to your persistence layer. mysql.com Just my two cents and an attempt to give back a little to the community. Troy -Original Message- From: RAHUL RAJ omrahulraj...@gmail.com To: users users@tomcat.apache.org Sent: Fri, Apr 15, 2011 6:05 am Subject: Working of Tomcat with MS Access Hello, I am working on building a jsp website with MS Access as database. When my login page is loaded on tomcat (localhost:8080/login.jsp), it shows the following error: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified. The jdbc program alone is working perfectly, So There might not be problems due to Driver, Data source name, Database Tables or any other software version compatibilities. OS: Windows Vista Home Basic Tomcat Version: 5.5.x jdk version: 1.6 MS Access 2010 code is given below: %@ page language=java import=java.sql.* % html body form method=post p Enter your username : input type=text name=username/ /p p Enter your password : input type=text name=password/ /p input type=submit value=Login/ % String usn = request.getParameter(username); String pass
Re: Working of Tomcat with MS Access
Yes of course...I did the same...then what to do with this error? Remember that Now I am working in ACCESS. code is not much different... On Sat, Apr 16, 2011 at 12:10 AM, Troy troylparr...@aol.com wrote: I believe the drivers should be located in: YourApp/WEB-INF/lib/ Troy -Original Message- From: RAHUL RAJ omrahulraj...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Fri, Apr 15, 2011 2:35 pm Subject: Re: Working of Tomcat with MS Access Thank you very much for your help! When I did with mysql, the corresponding jdbc driver is stored in /webapps/ROOT/lib directory in tomcat. On Fri, Apr 15, 2011 at 11:56 PM, Troy troylparr...@aol.com wrote: I wrote a quick little jsp to access one of my db (a mysql) %@page contentType=text/html pageEncoding=UTF-8% %@page import=java.sql.* % !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head meta http-equiv=Content-Type content=text/html; charset=UTF-8 titleTest Connection/title /head body % String name = ; Class.forName(com.mysql.jdbc.Driver); Connection conn = DriverManager.getConnection(jdbc:mysql://localhost/dbName, , XX); Statement stmt = conn.createStatement(); String query = select * from friends where id='1'; ResultSet rs = stmt.executeQuery(query); while(rs.next()){ name = rs.getString(3); } % %= name % /body /html Worked like expected. I know this is not a java thread . . . but still trying to help since it is a time sensitive matter. Silly question, but are your jdbc drivers added to your library for the web app? I make this mistake ALL the time. Troy -Original Message- From: RAHUL RAJ omrahulraj...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Fri, Apr 15, 2011 1:59 pm Subject: Re: Working of Tomcat with MS Access ya...I did the same thing you told in mysql...but communications Exception occured.. This is like a small assignment that has to be submitted urgently..so I have to run away from the error! and tried with MS ACCESS. The jdbc program for access works perfect alone.. On Fri, Apr 15, 2011 at 11:19 PM, Troy troylparr...@aol.com wrote: Raj, I think everyone is saying to take a look at this syntax: String url = jdbc:odbc:rahul; Connection con = DriverManager.getConnection(url, , ); I know that when I make this type of simple jdbc connection in mysql the syntax is: String url = jdbc:mysql://localhost/dbName; Connection conn = DriverManager.getConnection(url, , ); Troy -Original Message- From: RAHUL RAJ omrahulraj...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Fri, Apr 15, 2011 1:31 pm Subject: Re: Working of Tomcat with MS Access I got communications exception when I did this with mysql...and no one knows the reason perfectly...no response from mysql forum too... On Fri, Apr 15, 2011 at 9:08 PM, Troy troylparr...@aol.com wrote: Raj; To all reading this response, this is my first response on this list so if I get it a little wrong have patience. You may want to look at the light weight RDBMS mysql. It is free, easily installed and can be utilized with the companion Workbench to make dealing with the db very easy, a lot like the access interface. You will have good driver support from the java end as well and a lot of documentation and tutorials to get you connected in your web app to your persistence layer. mysql.com Just my two cents and an attempt to give back a little to the community. Troy -Original Message- From: RAHUL RAJ omrahulraj...@gmail.com To: users users@tomcat.apache.org Sent: Fri, Apr 15, 2011 6:05 am Subject: Working of Tomcat with MS Access Hello, I am working on building a jsp website with MS Access as database. When my login page
Re: Working of Tomcat with MS Access
There is no startup.bat file in the directory u specified. In my system the directory path is C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin On Sat, Apr 16, 2011 at 12:14 AM, Angel Java Lopez ajlopez2...@gmail.comwrote: Rahul: Stop tomcat as a service. Go to /tomcatdir/bin Run startup.bat Try your app again. Only to discard user account/access problems. On Fri, Apr 15, 2011 at 3:13 PM, RAHUL RAJ omrahulraj...@gmail.com wrote: running 'tomcat as standalone java program'? can u explain for me sir? 2011/4/15 Mikolaj Rydzewski m...@ceti.pl RAHUL RAJ wrote: This is like a small assignment that has to be submitted urgently..so I have to run away from the error! and tried with MS ACCESS. The jdbc program for access works perfect alone.. So run tomcat as a 'standalone' java program - that means not as a service. -- Mikolaj Rydzewski m...@ceti.pl - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Working of Tomcat with MS Access
you said: You need to change that account to one that has access to your mdb. You can do that through the Services console. Or try starting Tomcat via the startup.bat file, that should launch Tomcat with the same account you've logged into your system with, which hopefully is the same account you need to for Access. I don't know how to do these...Can you explain for me? Also startup.bat is not there in the specified directory. On Sat, Apr 16, 2011 at 1:48 AM, Leo Donahue - PLANDEVX leodona...@mail.maricopa.gov wrote: -Original Message- From: RAHUL RAJ [mailto:omrahulraj...@gmail.com] Subject: Re: Working of Tomcat with MS Access Yes, it runs as a service. But how to know under what account does that service run? does it mean 'admin' or 'normal user' or 'system'? I made a system DSN for this...not the user DSN(Data Source Name) and I launched tomcat service by right click 'run as admin' I'm really surprised you have had as many responses to this thread as you've had. Assuming you have Tomcat installed as a Windows service, usually the default account that runs Tomcat as a Windows service is Local System Account. You need to change that account to one that has access to your mdb. You can do that through the Services console. Or try starting Tomcat via the startup.bat file, that should launch Tomcat with the same account you've logged into your system with, which hopefully is the same account you need to for Access. The code you posted should work, although I can't understand what the purpose of your assignment is. Don't get in the habit of using this code for anything related to logging in, or anything else. If you must stay in the MS world, use SQL Express. try { Class.forName( sun.jdbc.odbc.JdbcOdbcDriver); Connection con = DriverManager.getConnection(jdbc:odbc:rahul,,); Statement stmt = con.createStatement(ResultSet.TYPE_FORWARD_ONLY,ResultSet.CONCUR_READ_ONLY); String query = Select whatever; ResultSet rs = stmt.executeQuery(query); while(rs.next()){ // do stuff } rs.close(); stmt.close(); con.close(); } catch(SQLException ex) { } catch(java.lang.ClassNotFoundException jdbce) { }
Re: Working of Tomcat with MS Access
I am working on windows platform. I downloaded tomcat setup, md5(.exe) and installed it. On Sat, Apr 16, 2011 at 3:18 AM, André Warnier a...@ice-sa.com wrote: Also startup.bat is not there in the specified directory. It is not there because you have downloaded and installed the Tomcat installer version, and that one does not have a startup.bat file. Stop your existing Tomcat service. Go back to the Tomcat website, and download the appropriate zip version (32-bit or 64-bit, depending on what your Java version is. (you can see that by typing java -version in a command window) Create a new directory on your PC (maybe call it tomcat-zip) and unzip the zip-file there. Then go to the /bin sub-directory, and type startup.bat. This will run this new Tomcat in the command window, under your own login user-id. Verify that it runs, with a browser, by accessing http://localhost:8080;. Type CTRL-C in the tomcat command window to stop it. Then start modifying the configuration of this new Tomcat, to add what is necessary to run you application. Do it one little bit at a time, and try restarting Tomcat each time you modify something, so that if there is a problem you know what you did wrong. When that all runs, then we'll tell you how to setup this new Tomcat as a Windows Service. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Working of Tomcat with MS Access
vista home basic. No, I can restart tomcat each time, by clicking the start/stop button. On Sat, Apr 16, 2011 at 2:49 AM, Leo Donahue - PLANDEVX leodona...@mail.maricopa.gov wrote: -Original Message- From: RAHUL RAJ [mailto:omrahulraj...@gmail.com] Subject: Re: Working of Tomcat with MS Access you said: You need to change that account to one that has access to your mdb. You can do that through the Services console. Or try starting Tomcat via the startup.bat file, that should launch Tomcat with the same account you've logged into your system with, which hopefully is the same account you need to for Access. I don't know how to do these...Can you explain for me? On Vista Home Basic... ? Uh... Start/Control Panel Switch to Classic View Find Administrative Tools/Services You're on your own after this, but in a nutshell.. you need to check the properties of the Tomcat Service and see if you can change the way the service Logs On What happens when you reboot your computer? Do you have to restart Tomcat each time or is it still running after you reboot? Also startup.bat is not there in the specified directory. Fine. By the way, I never specified a directory because no one here knows how you've installed Tomcat 5.5.x I'm very fond of version x myself. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Working of Tomcat with MS Access
I think I have to have tomcat (.zip) rather than md5 package..just a moment...i will get back to you... On Sat, Apr 16, 2011 at 8:50 AM, Leo Donahue - PLANDEVX leodona...@mail.maricopa.gov wrote: From: RAHUL RAJ [omrahulraj...@gmail.com] Subject: Re: Working of Tomcat with MS Access vista home basic. No, I can restart tomcat each time, by clicking the start/stop button. Did you try any of the suggestions André or I offered? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat upgradation from 6.0.29 to 6.0.30
Hi, I am using tomcat 6.0.29 in my windows 2008 server. I need to upgrade to 6.0.30. How can i upgrade the latest version in my live environment without affecting any data and configuration --regards rujin
No of sessions,current thread count and thread busy Logs in tomcat
I am Monitoring the tomcat application ,no. of session ,Current thread count and current thread busy using lambda probe. Is there any way to save these these datas in local machine for future reference for specfic interval. --rujin
Re: Tomcat clustering in a server with SSL
Dear mario, You mean, you have configured your single Tomcat to use SSL? Right? Yes. What exactly do you mean with SSL is installed in that machine. Machine = Tomcat or Machine = windows Server 2008? windows 2008 machine Can i install multiple tomcat instance in same system and configure clustering like tomcat1,2,3,4 etc in single server. How to do that ? --rujin On 21 November 2010 13:14, Mario Kleinsasser mario.kleinsasser+tom...@gmail.com mario.kleinsasser%2btom...@gmail.comwrote: Hi, On Sun, Nov 21, 2010 at 7:02 AM, rujin raj rujin...@gmail.com wrote: Hi, I am having a windows 2008 ent server and tomcat 6.0.29 64 bit,JVM 1.6.0 64 bit installed and SSL is configured in my server. You mean, you have configured your single Tomcat to use SSL? Right? I need to configure tomcat clustering in same machine, because SSL certificate is installed in that machine. What exactly do you mean with SSL is installed in that machine. Machine = Tomcat or Machine = windows Server 2008? Give some idea to install tomcat clustering in a server. Without more information, I would install three Linux servers based upon HyperV (if you really have win 2008 ent). One virtual Linux Server for Apache httpd (offloading SSL, Backend Cluster configuration (mod_jk)). Two or maybe one virtual Linux Server with one or two Tomcats installed into. Benefits: You have an Apache for SSL offloading and cluster Backend communication. You have one or two separated server for your tomcat. If you like, you could do it also with windows. Through the vitalization, you could quickly move to another hardware box, in case of an HW error. Mario http://www.n0r1sk.com --rujin
Tomcat clustering in a server with SSL
Hi, I am having a windows 2008 ent server and tomcat 6.0.29 64 bit,JVM 1.6.0 64 bit installed and SSL is configured in my server. I need to configure tomcat clustering in same machine, because SSL certificate is installed in that machine. Give some idea to install tomcat clustering in a server. --rujin
Re: Request count increases drastically in tomcat 6.0.29
MArk, Its request count Screen shot attached. --rujin On 17/11/2010, Mark Thomas ma...@apache.org wrote: On 17/11/2010 06:45, rujin raj wrote: Hi, I am using an application in tomcat 6.0.29 and the java version is 1.6 64 bit. I am facing the problem in my application when the request count is more(this i am watching through Lambda probe). Please give me some idea why this request count is keeps increasing and how to destroy the idle requests.Herewith i attached the screenshot of that application The list strips attachments. Do you really mean request count or do you actually mean thread count? Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Request count increases drastically in tomcat 6.0.29
Warnier, Herewith I given the details: http-443 Current thread count: 1149 Current threads busy: 1148 Max threads: 3000 Max spare threads: 0 Min spare threads: 0 Max time (ms): 896953 Processing time (ms): 166070125 *Request count: 148736* Error count: 527 Received: 687Kb Sent: 143Mb Tomcat Version: Tomcat 6.0.29 Java:1.6.0 64 bit version Os: Windows 2008 Enterprise edition 64 bit The problem is when the request count is less the users can able to login and submit the forms without delay.Meantime request time keeps increasing and they are not able to login into application and submission of forms also taking long time and finally page is expired.We set the session timeout as 30 min.Then we are forced to restart the tomcat to come to normal condition.We are using the Oracle database. Is it the normal for any application to keeps increasing the request count. Is there any way to recycle this request count in my tomcat application server? --rujin On 17 November 2010 17:41, André Warnier a...@ice-sa.com wrote: Rujin, as it is phrased, your message is not very clear. It is probably a question of language or terminology. I don't know how LambdaProbe displays the information, but - a request is what the browser sends to Tomcat (like GET /index.jsp) - when Tomcat receives the request, it selects an idle thread to process the request - while processing the request, the thread is no longer idle, it is working - the thread produces the response and sends it back to the client - then the thread becomes idle again, ready to process another request So, an idle request seems to be a contradiction in terms. Please explain better what you mean. And the list strips attachments, so sending screenshots does not help. rujin raj wrote: MArk, Its request count Screen shot attached. --rujin On 17/11/2010, Mark Thomas ma...@apache.org wrote: On 17/11/2010 06:45, rujin raj wrote: Hi, I am using an application in tomcat 6.0.29 and the java version is 1.6 64 bit. I am facing the problem in my application when the request count is more(this i am watching through Lambda probe). Please give me some idea why this request count is keeps increasing and how to destroy the idle requests.Herewith i attached the screenshot of that application The list strips attachments. Do you really mean request count or do you actually mean thread count? Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Request count increases drastically in tomcat 6.0.29
Hi, I am using an application in tomcat 6.0.29 and the java version is 1.6 64 bit. I am facing the problem in my application when the request count is more(this i am watching through Lambda probe). Please give me some idea why this request count is keeps increasing and how to destroy the idle requests.Herewith i attached the screenshot of that application --rujin - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Increase the MaxPermSize in Java
Hi, Where can i see the default value of MaxPermSize in java. I am using Tomcat 5.5 and java 1.6 and the operating system is windows 2008 server. How can i increase the maxpermsize in java in windows mode rujin
Re: Connector Setting Problem in tomcat 6.0.29
a look at documentation at: /docs/cluster-howto.html (simple how to) /docs/config/cluster.html (reference documentation) -- !-- Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster/ -- !-- The request dumper valve dumps useful debugging information about the request and response data received and sent by Tomcat. Documentation at: /docs/config/valve.html -- !-- Valve className=org.apache.catalina.valves.RequestDumperValve/ -- !-- This Realm uses the UserDatabase configured in the global JNDI resources under the key UserDatabase. Any edits that are performed against this UserDatabase are immediately available for use by the Realm. -- Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ !-- Define the default virtual host Note: XML Schema validation will not work with Xerces 2.2. -- Host name=localhost appBase=webapps unpackWARs=true autoDeploy=false xmlValidation=false xmlNamespaceAware=false !-- SingleSignOn valve, share authentication between web applications Documentation at: /docs/config/valve.html -- !-- Valve className=org.apache.catalina.authenticator.SingleSignOn / -- !-- Access log processes all example. Documentation at: /docs/config/valve.html -- !-- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ -- /Host /Engine /Service /Server On 5 November 2010 10:39, Caldarale, Charles R chuck.caldar...@unisys.comwrote: From: rujin raj [mailto:rujin...@gmail.com] Subject: Re: Connector Setting Problem in tomcat 6.0.29 I added the attributes in connector executer. even though it is not working Executer setting: Connector executor=tomcatThreadPool port=8080 protocol=HTTP/1.1 minSpareThreads=50 connectionTimeout=2 redirectPort=8443 / I need to specify both miSpareThreads and maxSparethreads Try actually reading the doc: http://tomcat.apache.org/tomcat-6.0-doc/config/http.html http://tomcat.apache.org/tomcat-6.0-doc/config/executor.html Place the attributes where the doc says. (Hint: they don't go in the Connector element - as you're already been told.) There's even a commented-out Executor example in the standard server.xml. - 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
How to run *.patch file in windows
Hi, Recently I downloaded one patch file from Apache bugzilla website.The extension of the file is filename.patch. How can i run the patch in windows environment Please help. Rujinraj
Re: Connector Setting Problem in tomcat 6.0.29
Please how to add the executor attribute in connector Executor=enable or true Is it like this: Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 Executor=enable or true maxThreads=1000 enableLookups=false disableUploadTimeout=true redirectPort=8443 / Thanks for helping me upto this level.I am trying this from last one week. Regards rujin On 5 November 2010 18:37, Caldarale, Charles R chuck.caldar...@unisys.comwrote: From: rujin raj [mailto:rujin...@gmail.com] Subject: Re: Connector Setting Problem in tomcat 6.0.29 I tried a lot. I am not able to point out the problem.Herewith i attached my server.xml file.. When posting long XML files, please strip out the comments, so we don't have to wade through the junk. Executor name=tomcatThreadPool namePrefix=catalina-exec- maxThreads=1000 minSpareThreads=150/ You finally have an Executor configured; that's good. Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 maxThreads=1000 enableLookups=false disableUploadTimeout=true redirectPort=8443 / You failed to specify the executor attribute in the Connector, so the Connector will use its own thread pool, not the Executor. - 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: Connector Setting Problem in tomcat 6.0.29
Hi, Now my server.xml file is like this.As you told i added executor=tomcatThreradPool as follows Executor name=tomcatThreadPool namePrefix=catalina-exec- maxThreads=1000 minSpareThreads=150/ Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 executor=tomcatThreadPool maxThreads=1000 enableLookups=false disableUploadTimeout=true redirectPort=8443 / Still the minSpareThreads is not taken into account. On 5 November 2010 19:23, Jim Riggs apache-li...@riggs.me wrote: executor=executor_name, so in your case: executor=tomcatThreadPool This is shown in the default/sample server.xml under the comment !-- A Connector using the shared thread pool-- On Nov 5, 2010, at 9:49 AM, rujin raj wrote: Please how to add the executor attribute in connector Executor=enable or true Is it like this: Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 Executor=enable or true maxThreads=1000 enableLookups=false disableUploadTimeout=true redirectPort=8443 / Thanks for helping me upto this level.I am trying this from last one week. Regards rujin On 5 November 2010 18:37, Caldarale, Charles R chuck.caldar...@unisys.comwrote: From: rujin raj [mailto:rujin...@gmail.com] Subject: Re: Connector Setting Problem in tomcat 6.0.29 I tried a lot. I am not able to point out the problem.Herewith i attached my server.xml file.. When posting long XML files, please strip out the comments, so we don't have to wade through the junk. Executor name=tomcatThreadPool namePrefix=catalina-exec- maxThreads=1000 minSpareThreads=150/ You finally have an Executor configured; that's good. Connector port=8080 protocol=HTTP/1.1 connectionTimeout=2 maxThreads=1000 enableLookups=false disableUploadTimeout=true redirectPort=8443 / You failed to specify the executor attribute in the Connector, so the Connector will use its own thread pool, not the Executor. - 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 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Connector Setting Problem in tomcat 6.0.29
I added the attributes in connector executer. even though it is not working Executer setting: Connector executor=tomcatThreadPool port=8080 protocol=HTTP/1.1 minSpareThreads=50 connectionTimeout=2 redirectPort=8443 / I need to specify both miSpareThreads and maxSparethreads Please help --rujinraj On 3 November 2010 14:32, Rainer Jung rainer.j...@kippdata.de wrote: On 02.11.2010 14:20, Caldarale, Charles R wrote: From: rujin raj [mailto:rujin...@gmail.com] Subject: Connector Setting Problem in tomcat 6.0.29 I am using tomcat 6.0.29 64 bit and java 64 1.6.0 64 bit edition.I configured the http connector minSpareThreads and MaxSpareThreads. There are no such settings for theConnector element; read the doc for the level of Tomcat you're using: http://tomcat.apache.org/tomcat-6.0-doc/config/http.html If you want more control over the thread pool, specify anExecutor: http://tomcat.apache.org/tomcat-6.0-doc/config/executor.html I hope I don't add to much confusion: AFAIK the settings do still exist for the AJP connectors in TC 6 even though they are removed from the docs. And yes, I think they are gone for HTTP. Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Connector Setting Problem in tomcat 6.0.29
I am using tomcat 6.0.29 64 bit and java 64 1.6.0 64 bit edition.I configured the http connector minSpareThreads and MaxSpareThreads. While starting the tomcat it is giving the error as follows. 2 Nov, 2010 4:55:24 PM org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.20. 2 Nov, 2010 4:55:24 PM org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], ra ndom [true]. 2 Nov, 2010 4:55:24 PM org.apache.catalina.startup.SetAllPropertiesRule begin *WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'minS* *pareThreads' to '500' did not find a matching property.* 2 Nov, 2010 4:55:24 PM org.apache.catalina.startup.SetAllPropertiesRule begin WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'maxS pareThreads' to '750' did not find a matching property. 2 Nov, 2010 4:55:25 PM org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 2 Nov, 2010 4:55:25 PM org.apache.coyote.ajp.AjpAprProtocol init INFO: Initializing Coyote AJP/1.3 on ajp-8009 2 Nov, 2010 4:55:25 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 880 ms 2 Nov, 2010 4:55:25 PM org.apache.catalina.mbeans.GlobalResourcesLifecycleListen er createMBeans SEVERE: Exception processing Global JNDI Resources javax.naming.NamingException: Could not load resource factory class [Root except ion is java.lang.ClassNotFoundException: oracle.jdbc.pool.OracleDataSourceFactor y] Herewith i attached my server.xml file. !-- 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 * * maxThreads=1000 minSpareThreads=500 * * maxSpareThreads=750* * enableLookups=false disableUploadTimeout=true* * 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=1000 minSpareThreads=500 maxSpareThreads=750 enableLookups=false disableUploadTimeout=true 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 / !-- An Engine represents the entry point (within Catalina) that processes every request. The Engine implementation for Tomcat stand alone analyzes the HTTP headers included with the request, and passes them on to the appropriate Host (virtual host). Documentation at /docs/config/engine.html -- Please guide me to resolve this issue. Regards Rujinraj
Re: Upgradtion of tomcat and java version
Please help On 23 October 2010 11:38, André Warnier a...@ice-sa.com wrote: rujin raj wrote: Hi, My Company gave one assignment to upgrade the present setup. Herewith I explained my present setup. I am expecting your help and suggestion to finish this job. ... What, all of us ? How much are you paying ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Upgradtion of tomcat and java version
Hi, My Company gave one assignment to upgrade the present setup. Herewith I explained my present setup. I am expecting your help and suggestion to finish this job. I have a HP Blade server with 2 CPU (Quad Core 3.166 GHz), 32 GB RAM and Windows 2008 Enterprise Server 64 bit with SP2. At present applications are running in tomcat 5.5 version and Java 1.6 32 bit edition and SSL in enabled. At present in my application the number of sessions is crossing more than 4500 in peak hours. I have a plan to upgrade the tomcat version form 5.5 to 6.0.29 and JAVA JRE 6U22 64 bit.. Please clarify my following doubts. 1) How can I check the Version of Tomcat is 32 bit or 64 bit version? 2) I downloaded and Installed Java 64 bit and tomcat 6.0.29 executable file. Also I downloaded tomcat 6.0.29 64 bit ZIP files IS it necessary to copy the extracted file into the tomcat existing directory? 3) How Can I tune the tomcat to give pest performance? 4) What is the ideal vale for a) Maximum threads b) Maximum spare threads c) Min spare threads in Server.xml file for the port SSL Port 443? 5) What is the Ideal value for a) Initial memory pool b) Max memory pool c) Thread stack size for JAVA 64 bit version for more loads? 6) What is the use of thread dump in tomcat 6 and how to use that? 7) How can I found the memory leak in applications using tomcat manager? Regards, Rujinraj
Java out of memory error
Hi all, In my tomcat application server frequently i am getting the java out of memory error. *Error:* 20 Oct, 2010 1:09:41 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception (java.lang.OutOfMemoryError: unable to create new native thread) executing org.apache.tomcat.util.net.leaderfollowerworkerthr...@d3e5cc, terminating thread *Server.Xml Config:* *http-443* Current thread count: 1000 Current threads busy: 923 Max threads: 5000 Max spare threads: 1175 Min spare threads: 500 Max time (ms): 156766 Processing time (ms): 63838188 Request count: 13233 Error count: 789 Received: 392Kb Sent: 81Mb Is this configuration is normal or any modification required to work the application proper?? Tomcat Version:Apache Tomcat 5.5.20 Java JRE 1.6.0 Regards rujinraj
Re: Java out of memory error
Hi, 789 errors for only 81Mb sent seems a little high. Are you load testing or is this in production? Is there any modification required in configuration file? Thia is production machine. How can I test the load how much it will capable? How much memory does the machine have? The Physical memory of the system is 32GB. How much is allocated to Tomcat? 1GB is allocated for JAVA. Not able to allocate more memory for java What operating system is it? Windows 2008 ent Server 64 bit is installed. Tomcat and JAVA are 32 bit What is the Garbage collection in JAVA? If i Force Garbage collection using the Lambda probe tomcat monitor whether it will affect any user sessions or anything?? Rujinraj On 20 October 2010 15:44, Pid p...@pidster.com wrote: On 20/10/2010 09:15, rujin raj wrote: Hi all, In my tomcat application server frequently i am getting the java out of memory error. *Error:* 20 Oct, 2010 1:09:41 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception (java.lang.OutOfMemoryError: unable to create new native thread) executing org.apache.tomcat.util.net.leaderfollowerworkerthr...@d3e5cc, terminating thread *Server.Xml Config:* *http-443* Current thread count: 1000 Current threads busy: 923 Max threads: 5000 Max spare threads: 1175 Min spare threads: 500 Max time (ms): 156766 Processing time (ms): 63838188 Request count: 13233 Error count: 789 Received: 392Kb Sent: 81Mb Is this configuration is normal or any modification required to work the application proper?? 5000 threads might be a little excessive, depending on what your application is doing and how much memory a thread consumes versus how much resource the physical machine has. 789 errors for only 81Mb sent seems a little high. Are you load testing or is this in production? How much memory does the machine have? How much is allocated to Tomcat? What operating system is it? p Tomcat Version:Apache Tomcat 5.5.20 Java JRE 1.6.0 Regards rujinraj
Java out of memory error
hi all, I have Installed tomcat 5.5.20 on my windows 2008 server with 32 GB physical memory and the Java version is jre1.6.0. Five applications are installed in it.Today i got one error and applications not working.Error as follows Tomcat log: *14 Oct, 2010 4:08:05 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run* *SEVERE: Caught exception (java.lang.OutOfMemoryError: unable to create new native thread) executing org.apache.tomcat.util.net.leaderfollowerworkerthr...@10d564d, terminating thread* * * In javaVM I set the initial memory pool size as 1000MB, Max memory pool size as 1200MB and thread stack size as blank.More over I am not able to set the minimum pool size more than 1024 MB. How can I increase the JVM memory more than 1GB?? What might me the cause for java out of memory error? How to resolve the problem? Please help me to resolve the problem. Regards rujinraj - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
jsp-examples sessions
Dear Support, I installed some applications in tomcat 5.5.When i m monitoring through the Lambda probe,I noticed that the /jsp-examples sessions are increased invariably. Please guide me in which circumstances these /jsp-examples sessions will increase and whether it will affect my server performance. Regards, rujinraj - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat performance tuning
Support, I Installed tomcat 5.5.20 version in my Windows 2008 server and the java version is Java 1.6.0.b105.We are using 2 Mbps Bandwidth Leased line.In tomcat we hosted around 5(five) application.When the no of seesion increases more than 1600 session the total application is slow and not able to open the application sometime. 1) How can I tune this application in server side for better performance in tomcat side as well as java? 2) I noticed that the current thread busy count is less but the number session is more.What might be the problem? 3)More over for a IP more sessions are opened(noticed via Lambda probe).Is there any problem in that? 4)What is mean by serilizable? For my application it is showing as No 5)What is mean by a)Max Threads b)Min and Max spare threads c)current thread count and current thread busy? Please help me Regards Rujinraj. System Administrator
Re: Maximum number of session for tomcat 6
Chris,, still i have confused to setting this parameter.Basically I m system administrator not a programmer. Please explain briefly with example... how to configure ?? On 23/09/2010, Pid p...@pidster.com wrote: On 22/09/2010 21:04, rujin raj wrote: Chris, I have installed LambdaProbe for monitoring tomcat. I am not able to monitor the memory utilisation for the application. *Error:This page requires Java5 with enabled JMX Agent. To enable the JXM Agent please add -Dcom.sun.management.jmxremote to java command line or $JAVA_OPTS environment variable. If you are an IBM JDK user please add these properties: -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=29001 -Dcom.sun.management.jmxremote.ssl=false * How can i enable the JMX agent.. I am using Windows 2003 server tomcat 6 and java jre 1.6 is installed. What's unclear about the above? Did you read the message carefully? please add -Dcom.sun.management.jmxremote to java command line or $JAVA_OPTS environment variable. In this case, it's probably actually $CATALINA_OPTS that you want, but the info is all there. p
Re: Maximum number of session for tomcat 6
Chris, I have installed LambdaProbe for monitoring tomcat. I am not able to monitor the memory utilisation for the application. *Error:This page requires Java5 with enabled JMX Agent. To enable the JXM Agent please add -Dcom.sun.management.jmxremote to java command line or $JAVA_OPTS environment variable. If you are an IBM JDK user please add these properties: -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=29001 -Dcom.sun.management.jmxremote.ssl=false * How can i enable the JMX agent.. I am using Windows 2003 server tomcat 6 and java jre 1.6 is installed. --rujin On 22 September 2010 00:26, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rujin, On 9/21/2010 2:24 PM, rujin raj wrote: Dear support, Note this is a user mailing list, not a support line. I am newbie for tomcat.In our office i installed tomcat 6.Please let us know what is the maximum number of session tomcat will support I don't believe Tomcat has a maximum number of sessions: you are likely to run out of memory before you hit any practical maximum. and how to monitor the active session, idle session Tomcat exposes this information via JMX, so you can use your tool of choice to monitor them. List users have mentioned LambdaProbe and Moskito in the past as favorite tools. and rejected request. What is a rejected request? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyY/+8ACgkQ9CaO5/Lv0PDrXgCdF8QhEytuD8uL6iiq2FVoRhu1 MAkAoISRWg9SVluPAcZ9fwIriUDWCiku =yjM4 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat url redirection
*Support team, * * * * I'm working with an application that uses apache tomcat 6 to serve the website. I've installed the application and tomcat on a Windows 2003 server and everything is working fine.For instance I want http://events.mydomain.xxx/ to go to http://events.mydomain.xxx/myapp.Moreover whenever i type the Public IP address (http://xxx.yyy.zzz.aaa) instead of events.mydomain.xxx should also redirect to http://events.mydomain.xxx/myapp. Any ideas how I might do this with apache tomcat would be very helpful and appreciated. Thank you in advance. Regards rujinraj *
Maximum number of session for tomcat 6
-- Forwarded message -- From: rujin raj rujin...@gmail.com Date: 21 September 2010 23:42 Subject: Maximum number of session for tomcat 6 To: users@tomcat.apache.org Dear support, I am newbie for tomcat.In our office i installed tomcat 6.Please let us know what is the maximum number of session tomcat will support and how to monitor the active session, idle session and rejected request. Regards rujinraj
How to get java process id of a user running tomcat
Hi friends, When i ran tomcat and shut it down my java process is not closing along with shutdown.i need to kill it explicitly. So I would like to know how to identify the java process of the logged in user who started the server. so that i can kill the process id from the shutdown.sh script itself. Please help me. Tomcat: jakarta-tomcat-5.0.28 Java : j2sdk1.4.2 OS: SunOS Thanks, Phani.
Re: How to get java process id of a user running tomcat
Thanks alot anirban for your help. No i want to get the java process id from linux only. Can you help me with some script to get the same? THanks, Phani. On Wed, Dec 2, 2009 at 12:14 PM, Anirban Talukdar talukdar.anir...@gmail.com wrote: In java i don find any API that returns the id of the process. Hopefully, It is because process ID is not standard for all the operating system. I am not sure about this. But in linux you can write a simple C/C++ function to get the process id. And that later can be integrated with java through JNI. If you found direct API in Java, please inform. Thanks Regards Anirban Talukdar On Wed, Dec 2, 2009 at 12:00 PM, raj kumar bprajkumar...@gmail.com wrote: Hi friends, When i ran tomcat and shut it down my java process is not closing along with shutdown.i need to kill it explicitly. So I would like to know how to identify the java process of the logged in user who started the server. so that i can kill the process id from the shutdown.sh script itself. Please help me. Tomcat: jakarta-tomcat-5.0.28 Java : j2sdk1.4.2 OS: SunOS Thanks, Phani.
Tomcat shudown does not kill java process
Hi friends, I am currently using Tomcat( jakarta-tomcat-5.0.28). When i shutdown the tomcat server from my unix platform using ./shutdown.sh the java process is not getting closed.I need to close the process explicitly. Please help me in this regard. Thanks, Phani.
Re: Tomcat shudown does not kill java process
After shutting down the tomcat server, java process remains running till i explicitly kill it. By the way how to take thread dump. Please help me with the command Thanks, Raj On Tue, Nov 17, 2009 at 3:57 PM, Pid p...@pidster.com wrote: On 17/11/2009 10:01, raj kumar wrote: Hi friends, I am currently using Tomcat( jakarta-tomcat-5.0.28). When i shutdown the tomcat server from my unix platform using ./shutdown.sh the java process is not getting closed.I need to close the process explicitly. Please help me in this regard. It doesn't stop it, or it's taking a long time to stop it? Try taking a thread dump after you've called the shutdown script to see what's still running in the app. Should give you a clue as to which code is waiting on something. p Thanks, Phani. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat shudown does not kill java process
waiting on condition Suspend Checker Thread prio=10 tid=0x000ef018 nid=0x7 runnable On Tue, Nov 17, 2009 at 4:05 PM, raj kumar bprajkumar...@gmail.com wrote: After shutting down the tomcat server, java process remains running till i explicitly kill it. By the way how to take thread dump. Please help me with the command Thanks, Raj On Tue, Nov 17, 2009 at 3:57 PM, Pid p...@pidster.com wrote: On 17/11/2009 10:01, raj kumar wrote: Hi friends, I am currently using Tomcat( jakarta-tomcat-5.0.28). When i shutdown the tomcat server from my unix platform using ./shutdown.sh the java process is not getting closed.I need to close the process explicitly. Please help me in this regard. It doesn't stop it, or it's taking a long time to stop it? Try taking a thread dump after you've called the shutdown script to see what's still running in the app. Should give you a clue as to which code is waiting on something. p Thanks, Phani. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: java.lang.UnsupportedClassVersionError
Thanks peter, Actually JDK was pointing to 1.4 so was not working. After it is changed to 1.6 it is now working fine. On Thu, Sep 17, 2009 at 12:35 PM, Peter Crowther peter.crowt...@melandra.com wrote: 2009/9/17 Phani Raj Kumar bphanirajku...@gmail.com Exception in thread main java.lang.UnsupportedClassVersionError: org/apache/catalina/startup/Bootstrap (Unsupported major.minor version 49.0) JDK version: 1.6.0 For some reason, Tomcat isn't using that JDK - it's using some other one somewhere on the system. What does version.sh tell you? - Peter
ThreadPool logFull issue
Hi Friends, I have found an exception( org.apache.tomcat.util.threads.ThreadPool logFull SEVERE: All threads (150) are currently busy, waiting. Increase maxThreads (150) ) in my Tomcat server in last weekend. Ideall no body was using the application that time and this error came up. Could you please any of you tell me what caused the exception and usually what are the possible reasons for this issue.? My JDK version: 1.5.0_16 Tomcat Version: 5.0.28 OS: unix Thansk,
java.lang.UnsupportedClassVersionError
Hi Friends, I tried to upgrade my tomcat server from 5.x to 6.x, when i started the server am getting the following error. Exception in thread main java.lang.UnsupportedClassVersionError: org/apache/catalina/startup/Bootstrap (Unsupported major.minor version 49.0) My tomcat version: apache-tomcat-6.0.20 JDK version: 1.6.0 OS: Unix Thanks, PHani.
Re: 100% CPU by java process in Tomcat
Thanks peter, Here is the info: *JDK version* : j2sdk1.4.2_11 *Tomcat Version*: jakarta-tomcat-5.0.28 *OS*: SunOS burton 5.8 Generic_117350-46 sun4u sparc SUNW,Sun-Fire-V440 *CATALINA_OPTS*=-Xms64m -Xmx256m I didn't get any error messages in the log, but even running the tomcat alone without any applications in it taking 100% cpu. Thanks for your prompt respone. -Phani. On Thu, Aug 20, 2009 at 2:31 PM, Peter Crowther peter.crowt...@melandra.com wrote: Tomcat version? OS? JDK version? Any errors or messages in the logs? If you take a thread dump (the method varies depending on OS and JDK version), what's running? - Peter 2009/8/20 Phani Raj Kumar bphanirajku...@gmail.com Hi friends, When i tried to run tomcat server with a web application in it, it is taking 100% cpu on application initialization. It seems system is allocating 100% of CPU time for this java process.Could you please throw some light on this. Thanks, Phani.
Processes are not showing in the JConsole
the process which i want to monitor on JConsole not showing in the JConsole window.Can anybody help me why they are not showing.However I enabled JMX on my process.What would be the possible cause of not showing the process.My process is running it is showing in the task manager also.when I m trying to run JConsole with the my process ID,,,like e.g JConsole C:\program Files\java\jdk1.6.0_04\binjconsole 3816,then it is giving me invalid process id. -- View this message in context: http://www.nabble.com/Processes-are-not-showing-in-the-JConsole-tp23648035p23648035.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
how to enable management agent on a process
i am configuring a server to monitor it with jconsole locally.when i m starting the jconsole PID is showing for that server in the jconsole(for local monitoring) but it is giving me message that management agent is not enables on that process. how to enable the management agent for that process or tell me for any process in simple,step by step. i didnt do any configuration to monitor that server with Jconsole,do i need to do anything to configure any server with jconsole? I want to know if i want to monitor any server what configuration I have to do. Thanx -- View this message in context: http://www.nabble.com/how-to-enable-management-agent-on-a-process-tp23473452p23473452.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: how to enable management agent on a process
The link which you gave me i have gone through it before ...but i am not getting how to set com.sun.management.jmxremote in the system property. as it is written in the given link- To enable the JMX agent for local access, set this system property when you start the JVM or Java application: com.sun.management.jmxremote I am not getting how to do it. please help me thanx awarnier wrote: Anamika raj wrote: i am configuring a server to monitor it with jconsole locally.when i m starting the jconsole PID is showing for that server in the jconsole(for local monitoring) but it is giving me message that management agent is not enables on that process. how to enable the management agent for that process or tell me for any process in simple,step by step. i didnt do any configuration to monitor that server with Jconsole,do i need to do anything to configure any server with jconsole? I want to know if i want to monitor any server what configuration I have to do. Read : http://java.sun.com/j2se/1.5.0/docs/guide/management/agent.html Example jvm settings for starting Tomcat to allow jconsole monitoring (! with no security !) : -Dcom.sun.management.jmxremote.port=8200 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false - 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/how-to-enable-management-agent-on-a-process-tp23473452p23477236.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: how to setup jconsole to monitor tomcat locally
hi i m not getting the meaning of that [ create CATALINA_HOME/bin/setenv.sh 3. Make it executable 4. Add the following to setenv.sh export CATALINA_OPTS=-Dcom.sun.management.jmxremote] please tell me if i did right i created one batch file setenv.bat and made directory structure like CATALINA_HOME/bin/ and saved that file here. what else i have ti write in that file?i wrote export CATALINA_OPTS=-Dcom.sun.management.jmxremote line only into the file. but i am not able to run this file. please tell me clearly the meaning of that line thanx Mark Thomas-18 wrote: Anamika raj wrote: I searched a lot for the setting of the jconsole to monitor tomcat locally..i got every where it is saying to set or edit CATALINA_OPTS=-Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.port=9004 \ -Dcom.sun.management.jmxremote.ssl=false \ -Dcom.sun.management.jmxremote.authenticate=false SOMETHING LIKE THIS. i m not getting how to do it. can any body tell me in simple steps how can i set the jconsole to monitor the tomcat application. i want step by step what i need to do for that. Assuming Tomcat 6.0.18 running on linux 1. Install clean Tomcat from ASF 2. create CATALINA_HOME/bin/setenv.sh 3. Make it executable 4. Add the following to setenv.sh export CATALINA_OPTS=-Dcom.sun.management.jmxremote 5. Start Tomcat 6. Run JConsole on same machine 7. Connect to process called somthing like org.apache.catalina.startup.Bootstrap Mark - 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/how-to-setup-jconsole-to-monitor-tomcat-locally-tp23441354p23457671.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
how to setup jconsole to monitor tomcat locally
I searched a lot for the setting of the jconsole to monitor tomcat locally..i got every where it is saying to set or edit CATALINA_OPTS=-Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.port=9004 \ -Dcom.sun.management.jmxremote.ssl=false \ -Dcom.sun.management.jmxremote.authenticate=false SOMETHING LIKE THIS. i m not getting how to do it. can any body tell me in simple steps how can i set the jconsole to monitor the tomcat application. i want step by step what i need to do for that. -- View this message in context: http://www.nabble.com/how-to-setup-jconsole-to-monitor-tomcat-locally-tp23441354p23441354.html Sent from the Tomcat - User mailing list archive at Nabble.com.
Re: how to setup jconsole to monitor tomcat locally
I am working on windows vista and using Tomcat 5.0.28.0 and JDK 1.6 so please tell me the steps for windows. thanx Mark Thomas-18 wrote: Anamika raj wrote: I searched a lot for the setting of the jconsole to monitor tomcat locally..i got every where it is saying to set or edit CATALINA_OPTS=-Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.port=9004 \ -Dcom.sun.management.jmxremote.ssl=false \ -Dcom.sun.management.jmxremote.authenticate=false SOMETHING LIKE THIS. i m not getting how to do it. can any body tell me in simple steps how can i set the jconsole to monitor the tomcat application. i want step by step what i need to do for that. Assuming Tomcat 6.0.18 running on linux 1. Install clean Tomcat from ASF 2. create CATALINA_HOME/bin/setenv.sh 3. Make it executable 4. Add the following to setenv.sh export CATALINA_OPTS=-Dcom.sun.management.jmxremote 5. Start Tomcat 6. Run JConsole on same machine 7. Connect to process called somthing like org.apache.catalina.startup.Bootstrap Mark - 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/how-to-setup-jconsole-to-monitor-tomcat-locally-tp23441354p23445846.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
Connection Leak in java - Tomcat 6.0.18
Hi friends, Please let me know is there a way to find out connection leak in my java code , when its deployed in tomcat. Am using tomcat 6.0.18 Regards, Arun.
Oracle 11g
Hi, could you give more detail information about these : 1. What is Tomcat version that can support Oracle 11G ? 2. How do I connect to Oracle 11G ? Do I need to get the driver from oracle first ? because I think there is no Oracle 11G driver specified in Tomcat. 3. Based on your experience, do you have problems when you use Tomcat and Oracle 11G ? Please advice ... Thx
Apache 2.0 Authentication LDAP
Hi Friends, I have recently migrated my webapp from tomcat 4.x to 6.0 . Please let me know how to set up Apache 2.0 for authentication(using LDAP) by connecting it with tomcat 6.0 . Please let me know the steps to be followed like changes in httpd.conf . I am using Linux server. Is there any settings need to be changed for linux server. Earlier i used sunOS. Regards, Arun.
RE: Apache 2.0 Authentication LDAP
Hi, Yes , that is my scenario. Please let me know what are the settings or changes I need to do for Apache authentication via LDAP. Regards, Arun -Original Message- From: André Warnier [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2008 4:19 PM To: Tomcat Users List Subject: Re: Apache 2.0 Authentication LDAP Arun Raj Ramkumar wrote: Hi Friends, I have recently migrated my webapp from tomcat 4.x to 6.0 . Please let me know how to set up Apache 2.0 for authentication(using LDAP) by connecting it with tomcat 6.0 . Please let me know the steps to be followed like changes in httpd.conf . I am using Linux server. Is there any settings need to be changed for linux server. Earlier i used sunOS. Hi Arun. As asked, your question is difficult to understand, and even more to answer I think. What is exactly what should happen where ? I'll give you a possible scenario, and you tell us if this scenario is what you want to do, or tell us your own scenario, ok ? My scenario : Your configuration is such that all HTTP (browser) accesses go to Apache first. Apache does the authentication via LDAP (using for example mod_authnz_ldap) for any URLs that are protected (including the ones that go later to Tomcat). Than Apache decides which calls go to Tomcat (via a mod_jk connector or mod_proxy_ajp). mod_jk (and the Tomcat side of that connector) is configured so that the Apache authentication is passed on to Tomcat. Tomcat itself does not do authentication, but relies on the user-id passed on by Apache (and the roles defined in Tomcat) to access the Tomcat applications. re : http://httpd.apache.org/docs/2.2/mod/mod_authnz_ldap.html re : Tomcat Connector, attribute tomcatAuthentication or something like that. - 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: Apache 2.0 Authentication LDAP
Thanks a lot Andre.. Will get back to you.. After verifying the docs -Original Message- From: André Warnier [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2008 5:55 PM To: Tomcat Users List Subject: Re: Apache 2.0 Authentication LDAP André Warnier wrote: Then, if there is something you do not understand, you can always come back here with a precise question. I forgot to say that if your problem is related to the Apache httpd setup of LDAP, then you would be better off trying the Apache httpd support list. Issues related to Tomcat, and even to Apache/Tomcat connectors like mod_jk, will be handled here. But for issues directly related to Apache httpd and the LDAP authentication at the Apache httpd level, you will get better/faster answers at [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]
Migration from Tomcat 4.x to 5.5
Hi all, I need to migrate my web application from tomcat 4.1.29 to tomcat 5.5. I have installed tomcat 5.5 with JDK 1.6 and deployed my web application, its working fine. Tell me what are all the changes need to be done to connect apache 2.0 to tomcat 5.5. Earlier apache 2.0 server was connected to tomcat 4.1.29. In tomcat 4.1.29 server.xml there was the below tag for AJP connector !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp1.3Connector port=8029 minProcessors=5 maxProcessors=150 acceptCount=10 tomcatAuthentication=false debug=0/ Is there any similar kind of above tag for tomcat 5.5 so that i can enable authentication for my web application. Also tell me wat are all the changes need to be done in mod_jk.conf , workers.properties and httpd.conf files as am migrating to tomcat5.5. Its very urgent. Thanks in advance for ur help. Regards, Arun.
Memory Consumption - Using Process Commands from Java program in Tomcat
Hi all, Can you tell me the impact of using following commands in a java program in tomcat? Will they take more memory? Will they take time to release memory? Is there any other way we can call? to find best way print statments on the child perl will affect the parent tomcat? Will the following consume more memory in jvm. is there any alternate way of invoking process or running perl scripts. Invoking perl programs like the following ways: 1) Process process = new ProcessBuilder(params).start(); process.waitFor(); 2) Runtime.getRuntime().exec(command+ ); 3) RunCommand runcmd = new RunCommand(cmd); runcmd.start(); - For Example public class RunCommand extends Thread { private final Logger logger=Logger.getLogger(RunCommand.class); private String commandStr = null; public RunCommand (String commandStr) { this.commandStr = commandStr; } public void run() { try { Process p = Runtime.getRuntime().exec(commandStr); int exitVal = p.waitFor(); if (p.exitValue() != 0 ) { logger.warn(CFG Extraction Exited abnormally + commandStr); } } catch (Exception e) { logger.warn(e.getMessage()); } } public String getCommandStr() { return commandStr; } public void setCommandStr(String commandStr) { this.commandStr = commandStr; } } -- // - code snippet... String[] params = new String[4]; String perlPath=props.getProperty(path.perl); String perlProgPath=props.getProperty(path.cgi)+bp/BPOnDemand.pl; String opFilePath=props.getProperty(path.tmp)+opFile; params[0] = perlPath; params[1] = perlProgPath; params[2] = ipFilePath; params[3] = opFilePath; Process process = new ProcessBuilder(params).start(); process.waitFor(); --
Memory Consumption - Using Process Commands from Java program in Tomcat
Hi all, Can you tell me the impact of using following commands in a java program in tomcat? Will they take more memory? Will they take time to release memory? Is there any other way we can call? to find best way print statments on the child perl will affect the parent tomcat? Invoking perl programs like the following ways: 1) Process process = new ProcessBuilder(params).start(); process.waitFor(); 2) Runtime.getRuntime().exec(command+ ); 3) RunCommand runcmd = new RunCommand(cmd); runcmd.start(); - For Example public class RunCommand extends Thread { private final Logger logger=Logger.getLogger(RunCommand.class); private String commandStr = null; public RunCommand (String commandStr) { this.commandStr = commandStr; } public void run() { try { Process p = Runtime.getRuntime().exec(commandStr); int exitVal = p.waitFor(); if (p.exitValue() != 0 ) { logger.warn(CFG Extraction Exited abnormally + commandStr); } } catch (Exception e) { logger.warn(e.getMessage()); } } public String getCommandStr() { return commandStr; } public void setCommandStr(String commandStr) { this.commandStr = commandStr; } }
Regarding tomcat installation
Hi , I want to install tomcat 5.5 in my home PC. Which distribution should i download from apache website , as there are many versions available. I downloade windows installer service , but am not able to start , stop the server as there is no batch file available in that version. It meant i have to run it as a service everytime. Also tell me how to configure my each applications to differnt ports for example (app1 - 8080, app2 - 9080, app3 - 9081) etc using tomcat 5.5. What exactly is binary distribution how to go about installing it. Reply me ASAP. Thanks in advance. Regards, Arun.
httpRequest TimeOut
HI, I have a httpServlet running on apache-tomcat-4.1.36 . My httpServlet receives HTTP request from a .net application and process it. Sometimes my httpServlet takes more than 5 min to process this request but, .net application is timing out the transaction in 110 Sec. I wonder is there any way to stop my httpServlet to stop processing the request if it takes more than 1 min and reply TIMEOUT. Regards Raj
Cannot use applicationScope
Hello, I am a newbie running Apache Tomcat/5.5.20. My web.xml has these entries: context-param param-nameEmailId/param-name param-value[EMAIL PROTECTED]/param-value /context-param servlet servlet-nameTest JSP/servlet-name jsp-file/testjsp.jsp/jsp-file /servlet I have this in testjsp.jsp: html body PLEASE CONTACT: ${applicationScope.EmailId} br More contact: %= application.getAttribute(EmailId)% /body /html BUT, I don't get these values (EmailId) on the web page that is output. But I can see from the servlet generated, the automatic object, - application, is initialized. (Also I am not doing ELignore explcitly anywhere). I cannot figure out what am I doing wrong or I am not looking in right reference places. Please help. Thanks in advance. Regards Raj __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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: mod_jk replacement?
Hi, how to put wildcards into ProxyPass, for example if I want to send only jsp requests to tomcat and not html like below. ProxyPass /*.jsp ajp://127.0.0.1:8009/ the above config is not working, I have jsp files spread across multiple folders on tomcat and the same folder structure on apache has html pages, so I want to forward only jsp requests to tomcat thanks Raj Please Note: Due to Florida's very broad public records law, most written communications to or from College employees regarding College business are public records, available to the public and media upon request. Therefore, this email communication may be subject to public disclosure [EMAIL PROTECTED] 1/22/2007 4:14:54 AM Recently i'm using mod_proxy_ajp, as mod_jk replacement with apache. I don't have this in an production environment, but along this week I plan to do it. This is an extract of my apache config: ProxyPass /app/img/ ! ProxyPass /app/js/ ! ProxyPass /app/doc/ ! ProxyPass /app/css/ ! ProxyPass /app/ ajp://127.0.0.1:8009/app/ Alias /app /srv/www/tomcat5/base/webapps/app Directory /srv/www/tomcat5/base/webapps/app Options None allow from all /Directory -Mensaje original- De: JNeuhoff [mailto:[EMAIL PROTECTED] Enviado el: lunes, 22 de enero de 2007 0:27 Para: users@tomcat.apache.org Asunto: mod_jk replacement? Is there another connector software available between Apache 2.0.59 and Tomcat 5.5.17 on Windows 2003 which is more stable and suitable for a live web service? mod_jk 1.2.20 (which I believe is the latest version) appears to have some problems with managing TCP connections (see http://www.nabble.com/Apache-mod_jk-memory-leak--tf3023318.html for details). We are desparately looking for a working connection software between Apache and Tomcat. Alternatively, we are thinking of running a standalone Tomcat in which case we'd find to find a way of mapping some web-enabled directories with static resources (mainly PNG images and some simple PHP scripts) to Tomcat in addition to our Servlet. Is that possible? -- View this message in context: http://www.nabble.com/mod_jk-replacement--tf3050993.html#a8481132 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] -- La Información incluida en el presente correo electrónico es SECRETO PROFESIONAL Y CONFIDENCIAL, siendo para el uso exclusivo del destinatario arriba mencionado. Si usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que esta totalmente prohibida cualquier divulgación, distribución o reproducción de esta comunicación, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada. Gracias. The information contained in this e-mail is LEGALLY PRIVILEDGED AND CONFIDENTIAL and is intended only for the use of the addressee named above. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, or you have received this communication in error, please be aware that any dissemination, distribution or duplication of this communication is strictly prohibited, and please notify us immediately and return the original message to us at the address above. 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]
tomcat 5.5.16 cache problem
Hi, I am running tomcat 5.5.16 on Redhat, tomcat seems to be doing some kind of caching on servlets, I have deleted a servlet from WEB-INF/classes and I have restarted the tomcat, still I am able to access the servlet, I have checked every where on the box for the class file, couldn't find it. I am using invoker servlet to access the servlets. tomcat is hooked to apache using mod_jk. wondering if anybody else had this issue and any thoughts on solving this. thanks Raj Please Note: Due to Florida's very broad public records law, most written communications to or from College employees regarding College business are public records, available to the public and media upon request. Therefore, this email communication may be subject to public disclosure
Re: tomcat 5.5.16 cache problem
I have already tried both, deleted the application folder under work directory and also changed the application context setting reload=true, none of them seems to resolve the issue, it looks like as if the tomcat is storing the class files in other remote place, I have been using tomcat 4 for quite some time, just recently upgraded to 5.5.16, never had this issue on tomcat 4. thanks Raj Please Note: Due to Florida's very broad public records law, most written communications to or from College employees regarding College business are public records, available to the public and media upon request. Therefore, this email communication may be subject to public disclosure Stefan Negrea [EMAIL PROTECTED] 1/31/2007 12:24 PM Try to delete /tomcat/work/Catalina/localhost/Name of the web-app folder. That is the folder where tomcat caches everything. I have almost the same problem on the jsp's (even if I set the application to reload stuff every time it detects changes). Also, you might want to configure the application to reload modified content. That is done through application context settings (take a peek at the documentation). --- Raj Mettai [EMAIL PROTECTED] wrote: Hi, I am running tomcat 5.5.16 on Redhat, tomcat seems to be doing some kind of caching on servlets, I have deleted a servlet from WEB-INF/classes and I have restarted the tomcat, still I am able to access the servlet, I have checked every where on the box for the class file, couldn't find it. I am using invoker servlet to access the servlets. tomcat is hooked to apache using mod_jk. wondering if anybody else had this issue and any thoughts on solving this. thanks Raj Please Note: Due to Florida's very broad public records law, most written communications to or from College employees regarding College business are public records, available to the public and media upon request. Therefore, this email communication may be subject to public disclosure