Re: [OT] Http11NioProtocol error 505 (or 400)
Christopher Schultz wrote: ... I would thus imagine that the Tomcat developers in their wisdom seeked to prevent this (NB for non-native English speakers: seeked is an incorrect past imperfect conjugation of seek. The proper past imperfect conjugation is sought. I know, right?) Thanks. I sought it was ze right vörd, because the disk-head sought the cylinder sounds strange. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to configure Tomcat-6 to use TLS based SMTP with exchange
OK, thanx Chris. द्वारा: Christopher Schultz ch...@christopherschultz.net To: Tomcat Users List users@tomcat.apache.org Cc: भेजे गए: बुधवार, 29 दिसंबर, 2010 8:47:43 AM विषय: Re: How to configure Tomcat-6 to use TLS based SMTP with exchange -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 RV, On 12/28/2010 8:56 AM, Mupparthy Ravindranath wrote: thank you for the link. However, I am not writing any code here. I am just using tomcat. Tomcat doesn't provide email services directly: it only provides a javax.mail.Session object that you can use. See the Tomcat docs (which are admittedly thin on details): http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html#JavaMail_Sessions Is there a configuration property that accepts some string similar to mail.smtp.starttls.enable = true ? Try looking at the documentation for JavaMail. That was where Pid was trying to steer you. Try following his reference and reading some of the material about configuration that comes up. You are unlikely to have to write any code. Good luck, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk0aqFcACgkQ9CaO5/Lv0PBuegCeOw7eqxkLl+ZXloiuhnJhrMbn R6wAn1Lv3s5PE1/w4oyQ43ePBPnVGXeB =6L4a -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Increase tomcat log level
Hello Team, Please let us know how to increase the tomcat log level. I am using tomcat 5.5.15 version and jdk 1.6.0_17. Let me know in case you need further details.
Re: Increase tomcat log level
Am Mittwoch, den 29.12.2010, 04:31 -0800 schrieb Amol Puglia: Hello Team, Please let us know how to increase the tomcat log level. I am using tomcat 5.5.15 version and jdk 1.6.0_17. Let me know in case you need further details. Have you tried to read http://tomcat.apache.org/tomcat-5.5-doc/logging.html Hth Felix - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Increase tomcat log level
Felix Schumacher wrote: Am Mittwoch, den 29.12.2010, 04:31 -0800 schrieb Amol Puglia: Hello Team, Please let us know how to increase the tomcat log level. I am using tomcat 5.5.15 version and jdk 1.6.0_17. Let me know in case you need further details. Have you tried to read http://tomcat.apache.org/tomcat-5.5-doc/logging.html +1 Exactly. Why should you be spared, he ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 5.5/HTTPD cluster question
On 12/28/10 9:13 PM, Don Hill wrote: We are on 64bit JVM 1.6 the heap is 8GB for each Tomcat instance. The OS is RHEL 4.0 64 bit Great. Which versions of HTTPD 1.3 and Tomcat 5.5 are they? p On Tue, Dec 28, 2010 at 7:30 AM, Pid p...@pidster.com wrote: On 12/27/10 4:42 PM, Don Hill wrote: Thanks. I am trying to get them to migrate. It seems that part of there bottleneck could be the MAX clients on HTTPD. They get high volumes at times and have like 1800-3000 active sessions. Any other input would be great like tuning tomcat to workers and the best strategy to setup a tomcat/httpd env. Don On Mon, Dec 27, 2010 at 9:34 AM, André Warnier a...@ice-sa.com wrote: Don Hill wrote: Hi. I am working on a tomcat 5.5 cluster which is using ajp/1.3 and mod_jk and trying to determine the best cluster design given the hardware. I have 2 xeon 2.3 ghz 2 CPU machines with 38GB ram machine. Currently here is the config I am using. The TOMCAT and HTTPD servers are on the same physical machine. Each machine is running HTTPD 1.3 with prefork, the MaxClients is 256 due compiled in limits. Each machine has 4 virtualhosts running through one instance of HTTPD. Two of the VHOSTS are the same app running on Tomcat 5.5 with 8GB RAM(configured by customer). The workers are configured to each VHOST meaning for each machine there are 4 workers defined and one worker is defined for each VHOST. I will try and depict this below. The current load balancing is controlled by F5 and manages the load across 2 machines, 4 VHOST for each app. Based on this info can someone recommend if this configuration could be improved and if so what would you recommend ? The very first thing that I would recommend, would be to use the current versions of both httpd and tomcat. The versions you mention above are several years old, and no longer being developed, except maybe for security patches. See : http://httpd.apache.org/docs/1.3/ See : http://tomcat.apache.org/whichversion.html Are you using a 64bit JVM? What version is it? Is your OS a 64bit version? Which OS is it? p 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Setting max file upload size
I am trying to upload the larger file through my app developed using Struts 1.3.8. I did change the config in struts to upload file upto 3GB but that doesn't work. So now I am trying to find the configuration in Tomcat where I can set the max size for file upload. Is there any? Anjib - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Setting max file upload size
Set Connector maxPostSize=very large number / in server.xml. 3 GB might be very large. I don't know if the value is a long or an int in the internals of Tomcat. This is from my live server. Connector port=8080 maxHttpHeaderSize=8192 maxThreads=300 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=1024 connectionTimeout=2 disableUploadTimeout=true compression=on maxPostSize=104857600 / Ronald. Op woensdag, 29 december 2010 17:03 schreef Anjib Mulepati anji...@hotmail.com: I am trying to upload the larger file through my app developed using Struts 1.3.8. I did change the config in struts to upload file upto 3GB but that doesn't work. So now I am trying to find the configuration in Tomcat where I can set the max size for file upload. Is there any? Anjib - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Setting max file upload size
And if you are uploading this through a browser form, don't forget that the browser is probably going to encode that file in Base64 encoding, which will roughly inflate the size by 1/3 of the original. I don't know if Tomcat's maxPostSize counts the size prior, or after decoding. Ronald Klop wrote: Set Connector maxPostSize=very large number / in server.xml. 3 GB might be very large. I don't know if the value is a long or an int in the internals of Tomcat. This is from my live server. Connector port=8080 maxHttpHeaderSize=8192 maxThreads=300 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=1024 connectionTimeout=2 disableUploadTimeout=true compression=on maxPostSize=104857600 / Ronald. Op woensdag, 29 december 2010 17:03 schreef Anjib Mulepati anji...@hotmail.com: I am trying to upload the larger file through my app developed using Struts 1.3.8. I did change the config in struts to upload file upto 3GB but that doesn't work. So now I am trying to find the configuration in Tomcat where I can set the max size for file upload. Is there any? Anjib - 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
NetBeans Tomcat 5.5 problem
Hello, I use NetBeans 6.9 to create JavaServer Faces web application. I need Tomcat 5.5 because my web hosting only support this version. When i download Tomcat 6.0 from this site it works fine, but when i download Tomcat 5.5 and run application NetBeans writes me message that server can not start. Does anyone know what could be the problem since i am fighting with this three days, i tried everything but i am running out of ideas. Thank you very much and happy holidays, Sasa!
Shared SSL
Hello, I am trying to use a shared SSL to configure the app for multiple clients using Tomcat 5.5. It works fine for one client and trying to share the same for another client. SSL : TestServer1.mycomp.com Host name=TestServer1.mycomp.com appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path=/web docBase=C:/Program Files/App/client1/web crossContext=false debug=0 / /Host The above works fine, but when I try to add another client, Host name=TestServer1.mycomp.com appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path=/client2/web docBase=C:/Program Files/App/client2/web crossContext=false debug=0 / /Host I get the error child name cannot be unique. I am using Tomcat to configure for the first time. I can understand this is due to the same host name. Since we have only one SSL created to share, any help would be greatly appreciated. Regards, Sur
Re: Shared SSL
Surya Mohan wrote: Hello, I am trying to use a shared SSL to configure the app for multiple clients using Tomcat 5.5. It works fine for one client and trying to share the same for another client. SSL : TestServer1.mycomp.com Host name=TestServer1.mycomp.com appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path=/web docBase=C:/Program Files/App/client1/web crossContext=false debug=0 / /Host The above works fine, but when I try to add another client, Host name=TestServer1.mycomp.com appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path=/client2/web docBase=C:/Program Files/App/client2/web crossContext=false debug=0 / /Host I get the error child name cannot be unique. I am using Tomcat to configure for the first time. I can understand this is due to the same host name. Since we have only one SSL created to share, any help would be greatly appreciated. Try : Host name=TestServer1.mycomp.com appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path=/web docBase=C:/Program Files/App/client1/web crossContext=false debug=0 / Context path=/client2/web docBase=C:/Program Files/App/client2/web crossContext=false debug=0 / /Host (and remove the second Host..) And go read : http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html (particularly the section A word on Contexts and following) Note : you are not adding another client, you are adding another context or web application. Your usage of client (as a commercial term) is confusing in this context (technical). In this (technical) context, a client is understood as a browser, which accesses a server (Tomcat). That for you the application client1 and the application client2 would effectively each correspond to a different customer (commercially) is, literally, your business. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: NetBeans Tomcat 5.5 problem
This is probably best asked on the NetBeans mailing lists or forums. However, I use NetBeans 6.9.1 and Tomcat 6.0.29 or Tomcat 5.5.31 all the time with no issues. NetBeans 7 is required to support Tomcat 7.0.x. You don't say: a. Complete version of Tomcat (hint, 5.5.x) b. Java version c. Platform d. Actual error message that NetBeans generates The way NetBeans works is that it uses catalina.sh (catalina.bat on Windows) to start and stop Tomcat. If you're working on Windows, you'll need to download the zip archive of the core distribution and use that (not the service installer). In the NetBeans Services pane, add a new server (under Servers) and point the location of the server to where you unzipped the archive. Make sure that the type of server you add is Tomcat 5.5. I don't think NetBeans will let you add a 5.5 server as a 6.0 server or vice versa. If you right-mouse click on the added server, you'll be able to look at the properties of a particular server. For a single instance of Tomcat 5.5.x, make sure that the values for Catalina Home and Catalina Base point to where you unzipped the archive. There should be no need to change the other properties. Make sure that you (as a user) have appropriate file permissions to the Tomcat installation. . . . . just my two cents. /mde/ - Original Message - From:Sasa Rakic sas...@gmail.com To:users@tomcat.apache.org Cc: Sent:Wednesday, December 29, 2010 11:42:36 AM Subject:NetBeans Tomcat 5.5 problem Hello, I use NetBeans 6.9 to create JavaServer Faces web application. I need Tomcat 5.5 because my web hosting only support this version. When i download Tomcat 6.0 from this site it works fine, but when i download Tomcat 5.5 and run application NetBeans writes me message that server can not start. Does anyone know what could be the problem since i am fighting with this three days, i tried everything but i am running out of ideas. Thank you very much and happy holidays, Sasa! - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: NetBeans Tomcat 5.5 problem
I use same versions of NetBeans Tomcat 6.0.26 and Tomcat 5.5.31 and i already did everything you told me about adding new server but it still not works. And i think the server starts because i can access with http://localhost:8080/ Tomcat start page from my browser after i run project. But in my project run output says : Deployment error: Starting of Tomcat failed. See the server log for details. Tomcat 5.5 log: Dec 30, 2010 3:07:45 AM org.apache.catalina.core.ApplicationContext log INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]] Dec 30, 2010 3:07:45 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Dec 30, 2010 3:07:45 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Dec 30, 2010 3:07:45 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Dec 30, 2010 3:07:45 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() in Tomcat 5.5 output says: Using CATALINA_BASE: C:\Users\Sasha\Desktop\apache-tomcat-5.5.31 Using CATALINA_HOME: C:\Users\Sasha\Desktop\apache-tomcat-5.5.31 Using CATALINA_TMPDIR: C:\Users\Sasha\Desktop\apache-tomcat-5.5.31\temp Using JRE_HOME:C:\Program Files\Java\jdk1.6.0_13 Using CLASSPATH: C:\Users\Sasha\Desktop\apache-tomcat-5.5.31\bin\bootstrap.jar Dec 30, 2010 3:07:43 AM org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.20. Dec 30, 2010 3:07:43 AM org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. Dec 30, 2010 3:07:44 AM org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Dec 30, 2010 3:07:44 AM org.apache.coyote.ajp.AjpAprProtocol init INFO: Initializing Coyote AJP/1.3 on ajp-8009 Dec 30, 2010 3:07:44 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1121 ms Dec 30, 2010 3:07:44 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Dec 30, 2010 3:07:44 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.31 Dec 30, 2010 3:07:44 AM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Dec 30, 2010 3:07:45 AM org.apache.coyote.http11.Http11AprProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Dec 30, 2010 3:07:45 AM org.apache.coyote.ajp.AjpAprProtocol start INFO: Starting Coyote AJP/1.3 on ajp-8009 Dec 30, 2010 3:07:45 AM org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource Dec 30, 2010 3:07:45 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 1041 ms. Tomcet 6.0.26 works perfectly fine!
Re: NetBeans Tomcat 5.5 problem
Java 6.23 and windows 7
Tomcat security problem..please help
Hi all , I have added security manager in a filter initialization method in my webb app. I have deployed webapp in tomcat and when I start tomcat it is throwing the following error. Kindly help me in this. How to avoid this?What should I do in the security policy? Dec 30, 2010 11:41:25 AM org.apache.tomcat.util.modeler.Registry registerComponent SEVERE: Error registering Catalina:j2eeType=Filter,name=jaas,WebModule=//localhost/cskip,J2EEApplication=none,J2EEServer=none java.security.AccessControlException: access denied (javax.management.MBeanPermission org.apache.tomcat.util.modeler.BaseModelMBean#-[Catalina:J2EEApplication=none,J2EEServer=none,WebModule=//localhost/cskip,j2eeType=Filter,name=jaas] registerMBean) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) at java.security.AccessController.checkPermission(AccessController.java:546) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanPermission(DefaultMBeanServerInterceptor.java:1806) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:309) at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482) at org.apache.tomcat.util.modeler.Registry.registerComponent(Registry.java:806) at org.apache.catalina.core.ApplicationFilterConfig.registerJMX(ApplicationFilterConfig.java:457) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:299) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:115) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4001) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4651) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:785) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:581) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Dec 30, 2010 11:41:25 AM org.apache.catalina.core.ApplicationFilterConfig registerJMX INFO: JMX registration failed for filter of type [com.ge.capital.cskip.jaas.filter.JAASFilter] and name [jaas] java.security.AccessControlException: access denied (javax.management.MBeanPermission org.apache.tomcat.util.modeler.BaseModelMBean#-[Catalina:J2EEApplication=none,J2EEServer=none,WebModule=//localhost/cskip,j2eeType=Filter,name=jaas] registerMBean) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) at java.security.AccessController.checkPermission(AccessController.java:546) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanPermission(DefaultMBeanServerInterceptor.java:1806) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:309) at