Re: xml validation on -- good idea or not?
I'm tempted to say that it should be removed if it's unstable. I don't know that much about the guts of Tomcat but we've seen errors thrown by some of those classes in the commits. Thanks for your advice on the matter. I think we'll run with xmlValidation="false" from now on. - Julian >>> Mark Thomas 5/21/2009 3:51 AM >>> Bill Barker wrote: > "Julian Dunn" wrote in message > news:4a14199c.4caf.003...@cbc.ca... >> Hi, >> >> Is it a good idea to run with xmlValidation="true" in server.xml? >> > > In a development enviroment, it can be helpful (especially if you change > web.xml often). I would generally discurage it in a production environment > since the app will take slightly longer to load. > >> I had this on for a while, but then it mysteriously stopped working -- >> the container could no longer validate DTDs, refused to load webapps, >> etc. >> > > And another good reason to not use it in production ;). > >> What does xmlValidation="true" actually do? >> > > Xie is basically right, except that Tomcat *should* be using the schemas > that it ships with. So not having an internet connection is not supposed to > be a problem. It is worth noting that there are a bunch of issues with validation in 6.0.x and, I suspect, 5.5.x as well. See: http://svn.apache.org/viewvc?rev=751502&view=rev http://svn.apache.org/viewvc?rev=752589&view=rev http://svn.apache.org/viewvc?rev=752584&view=rev http://svn.apache.org/viewvc?rev=753035&view=rev http://svn.apache.org/viewvc?rev=753036&view=rev Given that it has been broken for all of 6.0.x, I was debating removing xml validation completely in Tomcat 7. I'd be interested in any views people have on this. 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
xml validation on -- good idea or not?
Hi, Is it a good idea to run with xmlValidation="true" in server.xml? I had this on for a while, but then it mysteriously stopped working -- the container could no longer validate DTDs, refused to load webapps, etc. What does xmlValidation="true" actually do? I am using Tomcat 5.5.23. - Julian - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
any way to inhibit Tomcat from deleting context descriptors if the WAR file disappears?
Is there any way to stop Tomcat from deleting my Context descriptor files if the WAR file somehow disappears? (Other than chmod 400 that is :-) ) - Julian -- -- Julian C. Dunn, P.Eng. <[EMAIL PROTECTED]> -- Assistant Team Lead / Chef d'équipe adjoint -- Media Production Support / Soutien à la production des médias -- Canadian Broadcasting Corporation / Société Radio-Canada -- Office/Bureau: 2C310-N * Tel.: (416) 205-3311 x6988 * DID: 1-151-6988 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
best practices for WAR deployment in a cluster?
I apologize if this has been asked before or if it's mentioned in a FAQ (that I haven't found yet) but what are the best practices for deploying webapps across a cluster? The situation I will soon have is 6 application servers running Tomcat 5.5 and the manager webapp, each able to mount a filer over NFS. The build/deployment tool in use is Maven 2.x. Should I: a) Put the WAR files on the filer and just set up contexts like this On a new release, overwrite the foo.war and reload the context on all the app servers or b) Put the WAR files on local storage on each app server and use M2's cargo plugin to redeploy the WAR file on each release? c) Other? - Juilan -- -- Julian C. Dunn, P.Eng. <[EMAIL PROTECTED]> -- Assistant Team Lead, Media Production Support, CBC Technology -- Digital Programming and Business Development, Canadian Broadcasting Corporation -- Office: 2C310-N * Tel.: (416) 205-3311 x6988 * DID: 1-151-6988 - 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: need help with Tomcat-generated redirects
>>> On Wed, Jan 2, 2008 at 9:10 PM, "Bill Barker" <[EMAIL PROTECTED]> wrote: > "Rainer Jung" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Hi Julian, >> >> Julian Dunn schrieb: >>>> How do you connect Apache to Tomcat? If you are using mod_jk, the >>>> module gets the port it sends to Tomcat via ap_get_server_port(), >>>> which in turn depends on UseCanonicalName. If this is set to On, >>>> the port is also determined from the port in ServerName. >>> >>> I'm using mod_jk 1.2.6 and Apache 2.0.59. UseCanonicalName is already >>> on in the Apache server, and the ServerName is set to www.site.com:80 >>> in the VirtualHost. I also tried to set ServerName globally and that >>> didn't make a difference. >>> >>> This allows mod_rewrite to send the correct port # in rewrites, but >>> Tomcat doesn't seem to pick this up for some reason. >>> >>> By the way, don't laugh, but this is a legacy Tomcat 3.3.1a >>> application so I need something for that version of Tomcat. >> >> I'm not laughing (at least I try to). Since I'm relatively sure about >> the jk feature: what about updating to a recent jk version. 1.2.6 is >> ..., we are at 1.2.26. >> > > Assuming that you are using the AJP13Interceptor, then updating the mod_jk > version should be enough. The problem is that mod_jk 1.2.6 doesn't respect > the UseCanonicalName directive and sends the actual port that Apache is > listening on. > > If you are using the CoyoteConnector (which was released as an addon to > 3.3.1a), then I think that the proxyPort directive will work. This > connector also ships with 3.3.2, which is a fairly painless upgrade (as > opposed to 5.5.x or 6.0.x). Ok, thanks for your advice, Bill - I'll see what we can do about building a more recent mod_jk to prop this environment up for now. We are using AJP/1.3 so I think that should be fairly safe. - Julian - 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: need help with Tomcat-generated redirects
>>> On Wed, Jan 2, 2008 at 4:48 PM, Rainer Jung <[EMAIL PROTECTED]> wrote: >> I have some applications running under a Tomcat installation set up >> in this way: >> >> [load balancer on port 80] ---> [Apache server on port 5001] --> >> [Tomcat server on port 7001] >> >> One of the Tomcat applications sends a redirect to Apache because >> there is a directive. However, the redirect that is >> sent says: >> >> www.site.com:5001/foo/bar.jsp >> >> instead of >> >> www.site.com/foo/bar.jsp >> >> On the Apache side, I already have ServerName set to www.site.com:80 >> to solve this problem for mod_rewrite. What is the corresponding >> directive for Tomcat? > > How do you connect Apache to Tomcat? > If you are using mod_jk, the module gets the port it sends to Tomcat via > ap_get_server_port(), which in turn depends on UseCanonicalName. If this > is set to On, the port is also determined from the port in ServerName. I'm using mod_jk 1.2.6 and Apache 2.0.59. UseCanonicalName is already on in the Apache server, and the ServerName is set to www.site.com:80 in the VirtualHost. I also tried to set ServerName globally and that didn't make a difference. This allows mod_rewrite to send the correct port # in rewrites, but Tomcat doesn't seem to pick this up for some reason. By the way, don't laugh, but this is a legacy Tomcat 3.3.1a application so I need something for that version of Tomcat. - Julian - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
need help with Tomcat-generated redirects
Hi, I have some applications running under a Tomcat installation set up in this way: [load balancer on port 80] ---> [Apache server on port 5001] --> [Tomcat server on port 7001] One of the Tomcat applications sends a redirect to Apache because there is a directive. However, the redirect that is sent says: www.site.com:5001/foo/bar.jsp instead of www.site.com/foo/bar.jsp On the Apache side, I already have ServerName set to www.site.com:80 to solve this problem for mod_rewrite. What is the corresponding directive for Tomcat? - Julian -- -- Julian C. Dunn, P.Eng. <[EMAIL PROTECTED]> -- Assistant Team Lead, Media Production Support, CBC Technology -- Digital Programming and Business Development -- Office: 2C310-N * Tel.: (416) 205-3311 x6988 * DID: 1-151-6988 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]