How to increate maxThread attribute value?
Hi folk I'm using Tomcat 4.1.27. My web application ,at one point of time does some 2000 database inserts. I have no plm when the no of insert operations to the DB is less (about 100). When the no of inserts exceeds, it shows the following error in the Tomcat server console: Thread pool - All threads are busy,waiting.Please increase maxThreads or check the Servlet status 75 75. So I did edit the server.xml file's tag: !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector port=8080 maxThreads=1000 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / But , I still get the same error Please tell me what is the maximum value I can give for maxThread attribute? Or How can I correct this plm? Thankx in advance Latha - Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time.
Plm with web.xml - Tomcat 4.1.27
Hi Tomcat users, I placed the web.xml in WEB-INF folder . Its working well with Tomcat 5.0.19. But tried with Tomcat 4.1.27, it shows the following error. Mar 10, 2004 4:18:55 PM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Mar 10, 2004 4:18:56 PM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Mar 10, 2004 4:18:58 PM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Mar 10, 2004 4:19:02 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.27 Mar 10, 2004 4:19:09 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=tru e Mar 10, 2004 4:19:09 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNul l=true Mar 10, 2004 4:19:11 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', retur nNull=true Mar 10, 2004 4:19:19 PM org.apache.commons.digester.Digester endElement SEVERE: End event threw exception java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.jav a:252) at org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:50 5) at org.apache.commons.digester.Rule.end(Rule.java:276) at org.apache.commons.digester.Digester.endElement(Digester.java:1058) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source ) at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown S ource) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement( Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Dispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un known Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo nfig.java:282) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63 9) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi g.java:243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3 568) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase .java:821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80 7) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep loyer.java:307) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j ava:559) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401 ) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java :358) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347 ) at org.apache.catalina.core.StandardService.start(StandardService.java:4 97) at org.apache.catalina.core.StandardServer.start(StandardServer.java:219 0) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
Re: Plm with web.xml - Tomcat 4.1.27
Good Morning Doug, Let me try this and let u know... Thanks for the reply Latha Parsons Technical Services [EMAIL PROTECTED] wrote: Latha, For TC4 you need the web.xml to be this: PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; testServlet Testing yourPackageName.testServlet testServlet /testServlet In TC4 you have to have both (if I understand correctly) and when you map you don't need the /servlet in the pattern. Give it a try. Note all servlet tags must be grouped together and occur before the mapping tags. Doug www.parsonstechnical.com My xml file is as follows: PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; testServlet /servlet/testServlet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Search - Find what youre looking for faster.
Re: Application developed for Tomcat 4.1.27 failed to tun with Tomcat 5.0.19....
Thankx for the reply... I tried it with web.xml I here explain my development env.. I have placed jar , html and jsp pages inside myFolder. I have the folder structure WEB-INF\classes inside myFolder and placed the servelt files there. My java files invoke the servlet files as http://machinename:8080/myFolder/servlet/ServletName Before that i have uncommented the element servlet-mapping servlet-nameinvoker/servlet-name url-pattern/servlet/*/url-pattern /servlet-mapping in the tomcatRoot/conf/web.xml file. Please note, i donot have a separate web application descriptor that is web.xml inside myFolder\WEB-INF\. I have changed the one in tomcatRoot/conf/ folder. Its working perfectly. But my client now upgraded his system to have Tomcat 5.0.19. and reported me that the application is not working in the lattest version. I went thro the documentation of Tomcat 5.0.19.It says the following : As Tomcat 5 is a new release of Tomcat, keep in mind that some of the issues and solutions vary between the major versions of Tomcat (4.x versus 5). As you search around the web, there will be some documentation that is not relevant to Tomcat 5, but 3.x and 4.x. Doing 3.x or 4.x things to 5 will probably not work in most cases as the server.xml files are very different. Enabling invoker servlet: Starting with Tomcat 4.1.12, the invoker servlet is no longer available by default in all webapps. Enabling it for all webapps is possible by editing $CATALINA_HOME/conf/web.xml to uncomment the /servlet/* servlet-mapping definition. Using the invoker servlet in a production environment is not recommended and is unsupported. I understand that I have to have my application specific web.xml file inside myFolder\WEB-INF. I designed it to have the following stucture web-app Servlet servelt-NameTestServlet/servlet-Name url-pattern/TestServlet/url-pattern /Servlet /web-app Its now working if the calling statement is http://machineName:8080/webapps/myFolder/TestServlet. But all my files in Tomcat 4.1.27,invoke servlets as http://machineName:8080/webapps/myFolder/servlet/TestServlet. So I tried changing the web.xml as web-app Servlet servelt-NameTestServlet/servlet-Name url-patternservlet/TestServlet/url-pattern /Servlet /web-app Its not working when invoked as http://machineName:8080/webapps/myFolder/servlet/TestServlet. How Should I configure web.xml/server.xml or change the folder structure specifically to Tomcat 5.0.19? Please suggest me... Thankx Latha deepak shripat mane [EMAIL PROTECTED] wrote: Hello.. u can check ur web.xml file.. According to me.. u have some servlet file. so u mst specified path into web.xml file.. Check that u can out ur jar file folder in following path. ./WEB-INF/lib Deepak On Tue, 09 Mar 2004 S.Latha Kamatchi wrote : Dear Tomcat users, I run my web application with Tomcat 4.1.27. My own folder name is myFolder. I put it under webapps folder. I have placed jar , html and jsp pages inside myFolder. I have the folder structure WEB-INF\classes inside myFolder and placed the servelt files there. Its working perfectly. But my client now upgraded his system to have Tomcat 5.0.19. and reported me that the application is not working in the lattest version. Should I configure web.xml/server.xml or change the folder structure specifically to Tomcat 5.0.19? Please suggest me... Thankx Latha - Do you Yahoo!? Yahoo! Search - Find what youre looking for faster. - Do you Yahoo!? Yahoo! Search - Find what youre looking for faster.
Re: Application developed for Tomcat 4.1.27 failed to tun with Tomcat 5.0.19....
Yes Mr.Antanio, As u said i used the invoker servlet... My application files (Applet and bean files ) invokes servlets as http://machineName:8080/webapps/myFolder/servlet/ServletName I understand that I have to have my application specific web.xml file inside myFolder\WEB-INF. I designed it to have the following stucture web-app Servlet servelt-NameTestServlet/servlet-Name url-pattern/TestServlet/url-pattern /Servlet /web-app Its now working if the calling statement is http://machineName:8080/webapps/myFolder/TestServlet. But all my files in Tomcat 4.1.27,invoke servlets as http://machineName:8080/webapps/myFolder/servlet/TestServlet. So I tried changing the web.xml as web-app Servlet servelt-NameTestServlet/servlet-Name url-patternservlet/TestServlet/url-pattern /Servlet /web-app Its not working when invoked as http://machineName:8080/webapps/myFolder/servlet/TestServlet. nín [EMAIL PROTECTED] wrote: Hi, Does your app map all servlets? Or did you (lazily) use the invoker servlet? The invoker servlet comes commented out in Tomcat 5. You have two options: - Correct your app. (My advice, it makes your app more portable) - Uncomment the invoker (Quick kludge, but it also works) Yours, Antonio Fiol S.Latha Kamatchi wrote: Dear Tomcat users, I run my web application with Tomcat 4.1.27. My own folder name is myFolder. I put it under webapps folder. I have placed jar , html and jsp pages inside myFolder. I have the folder structure WEB-INF\classes inside myFolder and placed the servelt files there. Its working perfectly. But my client now upgraded his system to have Tomcat 5.0.19. and reported me that the application is not working in the lattest version. Should I configure web.xml/server.xml or change the folder structure specifically to Tomcat 5.0.19? Please suggest me... Thankx Latha - Do you Yahoo!? Yahoo! Search - Find what youre looking for faster. ATTACHMENT part 2 application/x-pkcs7-signature name=smime.p7s - Do you Yahoo!? Yahoo! Search - Find what youre looking for faster.
Application developed for Tomcat 4.1.27 failed to tun with Tomcat 5.0.19....
Dear Tomcat users, I run my web application with Tomcat 4.1.27. My own folder name is myFolder. I put it under webapps folder. I have placed jar , html and jsp pages inside myFolder. I have the folder structure WEB-INF\classes inside myFolder and placed the servelt files there. Its working perfectly. But my client now upgraded his system to have Tomcat 5.0.19. and reported me that the application is not working in the lattest version. Should I configure web.xml/server.xml or change the folder structure specifically to Tomcat 5.0.19? Please suggest me... Thankx Latha - Do you Yahoo!? Yahoo! Search - Find what youre looking for faster.