svn commit: r928175 - /tomcat/trunk/test/webapp-3.0/script-expr.jsp
Author: kkolinko Date: Sat Mar 27 09:11:45 2010 New Revision: 928175 URL: http://svn.apache.org/viewvc?rev=928175&view=rev Log: Use both single and double quotes in the test, for diversity Modified: tomcat/trunk/test/webapp-3.0/script-expr.jsp Modified: tomcat/trunk/test/webapp-3.0/script-expr.jsp URL: http://svn.apache.org/viewvc/tomcat/trunk/test/webapp-3.0/script-expr.jsp?rev=928175&r1=928174&r2=928175&view=diff == --- tomcat/trunk/test/webapp-3.0/script-expr.jsp (original) +++ tomcat/trunk/test/webapp-3.0/script-expr.jsp Sat Mar 27 09:11:45 2010 @@ -29,6 +29,6 @@ - + \ No newline at end of file - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
svn commit: r928183 - in /tomcat/site/trunk: docs/lists.html xdocs/lists.xml
Author: kkolinko Date: Sat Mar 27 11:26:52 2010 New Revision: 928183 URL: http://svn.apache.org/viewvc?rev=928183&view=rev Log: Updated lists.html: Fixed links to Nabble archives. Slightly rearranged the preface section and added a link to the location of raw mbox files. Modified: tomcat/site/trunk/docs/lists.html tomcat/site/trunk/xdocs/lists.xml Modified: tomcat/site/trunk/docs/lists.html URL: http://svn.apache.org/viewvc/tomcat/site/trunk/docs/lists.html?rev=928183&r1=928182&r2=928183&view=diff == --- tomcat/site/trunk/docs/lists.html (original) +++ tomcat/site/trunk/docs/lists.html Sat Mar 27 11:26:52 2010 @@ -200,21 +200,6 @@ message being marked as spam: -Users should consider subscribing to the -User Support and the -Announcements mailing lists. - -The Developer list is for people interested in -helping with the development and debugging of the server. - -Formatted archives are available in several places including http://mail-archives.apache.org/mod_mbox/";>the Apache Mail -Archives, http://marc.theaimsgroup.com/";>MARC, -http://www.nabble.com/";>Nabble, and -http://tomcat.markmail.org/";>MarkMail. - -You can also use the mail-to-news nntp://news.gmane.org/";>gateway offered by http://news.gmane.org/index.php?match=gmane.comp.apache";>GMANE -to access most of the lists with a news reader. - The following lists are available: @@ -242,6 +227,23 @@ to access most of the lists with a news Development mailing list, including commit messages +Users should consider subscribing to the +User Support and the +Announcements mailing lists. + +The Developer list is for people interested in +helping with the development and debugging of the server. + +Formatted archives are available in several places including http://mail-archives.apache.org/mod_mbox/";>the Apache Mail +Archives, http://marc.theaimsgroup.com/";>MARC, +http://www.nabble.com/";>Nabble, and +http://tomcat.markmail.org/";>MarkMail. +The raw mbox files are also http://tomcat.apache.org/mail/";>available. + + +You can also use the mail-to-news nntp://news.gmane.org/";>gateway offered by http://news.gmane.org/index.php?match=gmane.comp.apache";>GMANE +to access most of the lists with a news reader. + @@ -357,7 +359,7 @@ Tomcat questions to Eric or Rick themsel Apache, at http://marc.theaimsgroup.com/?l=tomcat-user";>MARC (searchable), at http://markmail.org/list/org.apache.tomcat.user/";>MarkMail -and at http://www.nabble.com/Tomcat---User-f342.html";>Nabble. +and at http://old.nabble.com/Tomcat---User-f342.html";>Nabble. @@ -528,7 +530,7 @@ issues. Other questions will be ignored. Apache, at http://marc.theaimsgroup.com/?l=tomcat-dev";>MARC (searchable) , at http://markmail.org/list/org.apache.tomcat.dev/";>MarkMail -and at http://www.nabble.com/Tomcat---Dev-f341.html";>Nabble. +and at http://old.nabble.com/Tomcat---Dev-f341.html";>Nabble. Modified: tomcat/site/trunk/xdocs/lists.xml URL: http://svn.apache.org/viewvc/tomcat/site/trunk/xdocs/lists.xml?rev=928183&r1=928182&r2=928183&view=diff == --- tomcat/site/trunk/xdocs/lists.xml (original) +++ tomcat/site/trunk/xdocs/lists.xml Sat Mar 27 11:26:52 2010 @@ -19,24 +19,6 @@ message being marked as spam: -Users should consider subscribing to the -User Support and the -Announcements mailing lists. - -The Developer list is for people interested in -helping with the development and debugging of the server. - -Formatted archives are available in several places including http://mail-archives.apache.org/mod_mbox/";>the Apache Mail -Archives, http://marc.theaimsgroup.com/";>MARC, -http://www.nabble.com/";>Nabble, and -http://tomcat.markmail.org/";>MarkMail. - -You can also use the mail-to-news nntp://news.gmane.org/";>gateway offered by http://news.gmane.org/index.php?match=gmane.comp.apache";>GMANE -to access most of the lists with a news reader. - The following lists are available: @@ -55,6 +37,26 @@ to access most of the lists with a news Development mailing list, including commit messages +Users should consider subscribing to the +User Support and the +Announcements mailing lists. + +The Developer list is for people interested in +helping with the development and debugging of the server. + +Formatted archives are available in several places including http://mail-archives.apache.org/mod_mbox/";>the Apache Mail +Archives, http://marc.theaimsgroup.com/";>MARC, +http://www.nabble.com/";>Nabble, and +http://tomcat.markmail.org/";>MarkMail. +The raw mbox files are also http://tomcat.apache.org/mail/";>available. + + +You can also use the mail-to-news nntp://news.gmane.org/";>gateway offered by http://news.gmane.org/index.php?match=gmane.comp.apache";>GMANE +to access most of the lists with a news reader. + @@ -139,7 +141,7
[Tomcat Wiki] Update of "FAQ/Bugs" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Bugs" page has been changed by KonstantinKolinko. The comment on this change is: Updated, corrected the links. http://wiki.apache.org/tomcat/FAQ/Bugs?action=diff&rev1=8&rev2=9 -- + = FAQ / Bugs = + == Preface == If you think you found a bug, [[http://tomcat.apache.org/bugreport.html|read this page]]. @@ -13, +15 @@ == Answers == <>'''I have a bug, what do I do?''' - Unless you have the source code reference in Tomcat which is wrong, it may not be a bug. E-mail the [[/Tomcat_User|Tomcat user list]] and confirm its a bug. Also [[http://tomcat.apache.org/bugreport.html|read this]] first from the tomcat site about reporting a bug. + Unless you have the source code reference in Tomcat which is wrong, it may not be a bug. E-mail the [[FAQ/Tomcat_User|Tomcat user list]] and confirm its a bug. Also [[http://tomcat.apache.org/bugreport.html|read this]] first from the tomcat site about reporting a bug. <>'''Why does feature ABC work in Servlet Container XYZ but not in Tomcat?''' @@ -26, +28 @@ * Is your description good? * Is your description complete? * Can a developer '''easily''' reproduce the bug in their own environment? - * Have you provided a patch? Is it against cvs? Using the correct file? Using cvs diff -u + * Have you provided a patch? Is it against the current sources from svn? Using the correct file? Using `svn diff` or `diff -u` ? * Is your patch coded well? * Is your solution "good"? @@ -34, +36 @@ <>'''What does it mean to contact the user list?''' - If you are reading this - you were probably instructed to contact the user list for help. Bugzilla is not a support forum. Bugzilla is intended to fix "real bugs" in Tomcat. It is not intended to help you diagnose errors you are experiencing. The outcome of a diagnosis can be a new bug in Bugzilla. Configuration questions do not belong in Bugzilla. See [[/Tomcat_User|Tomcat User]] for what the Tomcat User list is. + If you are reading this - you were probably instructed to contact the user list for help. Bugzilla is not a support forum. Bugzilla is intended to fix "real bugs" in Tomcat. It is not intended to help you diagnose errors you are experiencing. The outcome of a diagnosis can be a new bug in Bugzilla. Configuration questions do not belong in Bugzilla. See [[FAQ/Tomcat_User|Tomcat User]] for what the Tomcat User list is. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Async one thing left
AJP and NIO connectors are good. BIO connector has one use case where the request/response don't get recycled properly. If I disable the cache it works fine, so I need to track that one down, and then we will be good to go Filip - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "FAQ/Windows" by KonstantinKoli nko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Windows" page has been changed by KonstantinKolinko. The comment on this change is: Updated. http://wiki.apache.org/tomcat/FAQ/Windows?action=diff&rev1=6&rev2=7 -- <>'''When I start up tomcat (or when it is running), I get the error {{{java.lang.IllegalMonitorStateException: current thread not owner}}}''' - That is weird - but solved.(?) See the [[http://issues.apache.org/bugzilla/show_bug.cgi?id=13723|Tomcat Bug Report]] and [[http://developer.java.sun.com/developer/bugParade/bugs/4776385.html|Sun Bug Parade report]] for the answer. + That weird issue was observed many years ago and now is a history. See the [[http://issues.apache.org/bugzilla/show_bug.cgi?id=13723|Tomcat Bug Report #13723]] and [[http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4776385|Sun Bug Parade report #4776385]] for the answer. <>'''Can I turn off case sensitivity?''' - [[http://tomcat.apache.org/tomcat-4.1-doc/config/resources.html|Yes]] + It is [[http://tomcat.apache.org/tomcat-6.0-doc/config/context.html|possible]] in Tomcat 6 and earlier, but not recommended. <>'''Can I use NTLM authentication?''' @@ -34, +34 @@ <>'''I want to redeploy web applications, how do I prevent resources from getting locked?''' - Most locking issues will occur with JARs from /WEB-INF/lib, and are useally caused by access through URLs. Tomcat has mechanisms to allow avoiding locking. In Tomcat 5.0, a mechanism exists to prevent locking when accessing resources using the getResource method of the URL classloader (many applications, such as Xerces, do not set the use of caching to false before opening the URL connection, causing locking). If such a call occurs, resources inside the JARs will be extracted to the work directory of the web application. In Tomcat 5.5, this mechanism is disabled by default (as it has a non negligible influence on startup times, and is often useless), and can be enabled using the antiJARLocking attribute of the Context element. There is another lock prevention mechanism in Tomcat 5.5 (antiResourceLocking attribute), which will cause the web application files to be copied to the temp folder and run from this location. This has a larger impact on web application startup times, but obviously prevents locking on all resources of the web application. This also allows more flexible management operations as none of the web application resources will be locked, even while the web application is running (as a special note, when making changes JSPs without reloading the application, the changes has to be duplicated to the path where the web application resources have been copied in the temp folder). + Most locking issues will occur with JARs from /WEB-INF/lib, and are usually caused by access through URLs. Tomcat has mechanisms to allow avoiding locking. + + Since Tomcat 5.0, a mechanism exists to prevent locking when accessing resources using the getResource method of the URLClassLoader. Many applications, such as Xerces, do not set the use of caching to false before opening the URL connection to a JAR file, and that causes locking. In Tomcat 5.5, this mechanism is disabled by default (as it has a non negligible influence on startup times, and is often useless), and can be enabled using the `antiJARLocking` attribute of the [[http://tomcat.apache.org/tomcat-6.0-doc/config/context.html|Context]] element. If getResource call occurs, resources inside the JARs will be extracted to the work directory of the web application. There is an alternative to this since Tomcat 6.0.24: you can configure a [[http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/catalina/core/JreMemoryLeakPreventionListener.html|JreMemoryLeakPreventionListener]] in your `server.xml` and it will set the URL connection caching to be off by default. + + There is another lock prevention mechanism in Tomcat 5.5 (`antiResourceLocking` attribute), which will cause the web application files to be copied to the temp folder and run from this location. This has a larger impact on web application startup times, but obviously prevents locking on all resources of the web application. This also allows more flexible management operations as none of the web application resources will be locked, even while the web application is running (as a special note, when making changes to JSPs without reloading the application, the changes have to be duplicated to the path where the web application resources have been copied in the temp folder). <>'''Can I use UNC paths?''' @@ -56, +60 @@ Tomcat uses the Apache Commons Daemon. You can read its documentation at http://commons.apache.org/daemon/procrun.html As a short example, you can create a new Windows Service with the full version number in its name like this: - {{{bi
[Tomcat Wiki] Trivial Update of "FAQ/Security" by Konst antinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Security" page has been changed by KonstantinKolinko. The comment on this change is: Updated links, added mention of RemoteIPValve. http://wiki.apache.org/tomcat/FAQ/Security?action=diff&rev1=5&rev2=6 -- <>'''What is the default login for the manager and admin app?''' - The admin and manager application do not provide a default login. Doing so is a security flaw. You need to edit $CATALINA_HOME/conf/tomcat-users.xml if you are using the default install. [[http://tomcat.apache.org/tomcat-4.1-doc/manager-howto.html#Configuring%20Manager%20Application%20Access|Configuring Manager Application Access]] + The admin and manager application do not provide a default login. Doing so is a security flaw. You need to edit $CATALINA_HOME/conf/tomcat-users.xml if you are using the default install. [[http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Configuring%20Manager%20Application%20Access|Configuring Manager Application Access]] <>'''How do I restrict access by ip address or remote host?''' - By using the {{{RemoteHostValve}}} or {{{RemoteAddrValve}}}. Warning, these valves rely on accurate incoming ip addresses or hostnames. So they can fall victim to spoofing! [[http://tomcat.apache.org/tomcat-4.1-doc/config/valve.html|Valve Reference Link]] + By using the {{{RemoteHostValve}}} or {{{RemoteAddrValve}}}. Warning, these valves rely on accurate incoming ip addresses or hostnames. So they can fall victim to spoofing! See also {{{RemoteIpValve}}}. [[http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html|Valve Reference Link]] <>'''How do I use jsvc/procrun to run Tomcat on port 80 securely?''' @@ -61, +61 @@ <>'''How do I change the Server header in the response?''' - In server.xml - add a "server" attribute to the Connector element. http://tomcat.apache.org/tomcat-6.0-doc/config/http.html + In `server.xml` - add a "server" attribute to the Connector element. http://tomcat.apache.org/tomcat-6.0-doc/config/http.html - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
DO NOT REPLY [Bug 41992] Need ability to set OS process title
https://issues.apache.org/bugzilla/show_bug.cgi?id=41992 --- Comment #2 from Matthew Sacks 2010-03-27 22:21:23 UTC --- (In reply to comment #0) > Sun JDK (and maybe others) have cool feature: you can make symlink to "java" > executable, and execute > java from that symlink, and then you will see your tomcat java process in > process list with name of your > symlink and not java. This is very useful for administration. > > So it would be great if Tomcat supported one more parameter: OS environment > variable JAVA_EXEC. > > Example: > > # ./bin/startup.sh > Using CATALINA_BASE: /Users/yozh/devel/left/tomcat/apache-tomcat-6.0.10 > Using CATALINA_HOME: /Users/yozh/devel/left/tomcat/apache-tomcat-6.0.10 > Using CATALINA_TMPDIR: /Users/yozh/devel/left/tomcat/apache-tomcat-6.0.10/temp > Using JRE_HOME: > /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home > Using JAVA_EXEC: > /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java > # ps ax | egrep (java|tomcat) | grep -v grep > 1712 p1 S 0:04.30 > /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java > -Djava.util.logg > # ./bin/shutdown.sh > ... > # ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java > super-duper- > tomcat > # > JAVA_EXEC=/Users/yozh/devel/left/tomcat/apache-tomcat-6.0.10/super-duper-tomcat > ./bin/ > startup.sh > Using CATALINA_BASE: /Users/yozh/devel/left/tomcat/apache-tomcat-6.0.10 > Using CATALINA_HOME: /Users/yozh/devel/left/tomcat/apache-tomcat-6.0.10 > Using CATALINA_TMPDIR: /Users/yozh/devel/left/tomcat/apache-tomcat-6.0.10/temp > Using JRE_HOME: > /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home > Using JAVA_EXEC: > /Users/yozh/devel/left/tomcat/apache-tomcat-6.0.10/super-duper-tomcat > # ps ax | egrep (java|tomcat) | grep -v grep > > 1829 p1 R 0:03.86 > /Users/yozh/devel/left/tomcat/apache-tomcat-6.0.10/super-duper-tomcat - > Djava.util.loggi > # killall super-duper-tomcat > > # ps ax | egrep (java|tomcat) | grep -v grep > > > It is also possible to make hardlinks in $JAVA_HOME/bin/tmp/ to have process > name shown in "top" > output. > > I have tested patch only under Mac OS X. I'd be curious to gain some further clarification on this patch. Is the purpose of JAVA_EXEC to explicitly list where the java executable binary is located for purposes of administration and display? -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "FAQ/Miscellaneous" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Miscellaneous" page has been changed by KonstantinKolinko. The comment on this change is: Corrected code samples syntax, updated some links.. http://wiki.apache.org/tomcat/FAQ/Miscellaneous?action=diff&rev1=16&rev2=17 -- Are you seeing this? + {{{ - {{{ org.apache.jasper.JasperException: Unable to compile + org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null @@ -47, +48 @@ [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file - [javac] Since fork is true, ignoring compiler + [javac] Since fork is true, ignoring compiler - setting. }}} + setting. + }}} - If so, here is some solutions: + If so, here are some solutions: * [[http://marc.theaimsgroup.com/?l=tomcat-user&m=104949554010352&w=2|Environment variable issue]] * [[http://issues.apache.org/bugzilla/show_bug.cgi?id=16688|Environment issue]] or [[http://issues.apache.org/bugzilla/show_bug.cgi?id=20527|Ant issue]] @@ -107, +109 @@ In web.xml ... + {{{ - {{{ + 404 /error/404.html @@ -122, +125 @@ <>'''How do I configure Tomcat to NOT to store the sessions during shutdown?''' - [[http://tomcat.apache.org/tomcat-4.1-doc/config/manager.html|Look at the Session manager component and tweak accordingly. One way is to tell tomcat to persist sessions to a path which does not exist. (So tomcat will not store, or be able to load the sessions)]] + [[http://tomcat.apache.org/tomcat-6.0-doc/config/manager.html|Look at the Session manager component and tweak accordingly. One way is to tell tomcat to persist sessions to a path which does not exist. (So tomcat will not store, or be able to load the sessions)]] <>'''How do I disable tag pooling?''' - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "FAQ/Memory" by KonstantinKolin ko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Memory" page has been changed by KonstantinKolinko. The comment on this change is: Added links to the OutOfMemory and MemoryLeakProtection pages.. http://wiki.apache.org/tomcat/FAQ/Memory?action=diff&rev1=7&rev2=8 -- ##language:en #pragma section-numbers 2 - = FAQ/Memory = + = FAQ / Memory = <> @@ -47, +47 @@ * [[http://opensource2.atlassian.com/confluence/spring/pages/viewpage.action?pageId=2669|Your classloaders are not being garbage collected]]. * You run out of process memory (non java/GC memory), for example when using java.util.zip classes or JNI classes allocating process memory. See [[http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4797189|Instantiating Inflater/Deflater causes OutOfMemoryError; finalizers not called promptly enough]] + See also [[OutOfMemory]] and [[MemoryLeakProtection]]. + <>'''How much memory is Tomcat/webapp/??? using?''' * To find out how much memory Tomcat is using, you might be able to use the {{{Runtime}}} class provided by the JDK. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "FAQ/Logging" by KonstantinKoli nko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Logging" page has been changed by KonstantinKolinko. The comment on this change is: Updated. http://wiki.apache.org/tomcat/FAQ/Logging?action=diff&rev1=15&rev2=16 -- The Servlet Specification requires Servlet Containers like Tomcat to provide at least a rudimentary implementation of the {{{ServletContext#log}}} method. Tomcat provides a much richer implementation than required by the Spec, as follows: - * Prior to Tomcat 5.5, Tomcat provided a Logger element that you could configure and extend according to your needs. If you are using a Tomcat version previous to Tomcat 5.5, make sure to read the [[http://tomcat.apache.org/tomcat-4.1-doc/config/logger.html|Logger configuration reference]]. + * Prior to Tomcat 5.5, Tomcat provided a Logger element that you could configure and extend according to your needs. - * Starting with Tomcat 5.5, Logger was removed and [[http://jakarta.apache.org/commons/logging|Jakarta Commons-Logging]] {{{Log}}} is used everywhere in Tomcat. Read the Commons-Logging documentation if you'd like to know how to better use and configure Tomcat's internal logging. See also http://tomcat.apache.org/tomcat-5.5-doc/logging.html + * Starting with Tomcat 5.5, Logger was removed and [[http://commons.apache.org/logging/|Apache Commons-Logging]] {{{Log}}} is used everywhere in Tomcat. Read the Commons-Logging documentation if you'd like to know how to better use and configure Tomcat's internal logging. See also http://tomcat.apache.org/tomcat-5.5-doc/logging.html * To enable request logging similar to the Apache HTTP server, you may include the following line in the server.xml file, in the tag: . http://logging.apache.org/log4j|Log4J]] is recommended for production applications. + In addition, Tomcat does not swallow the System.out and System.err JVM output streams. You may use these streams for elementary logging if you wish, but a more robust approach such as commons-logging or [[http://logging.apache.org/log4j/|Log4J]] is recommended for production applications. <>'''What role does commons-logging play in logging?''' Tomcat wants to support multiple logging implementations, so it uses commons-logging. In case that's unclear, think of it like this. You are a Tomcat developer. The car you drive when logging is the commons-logging car. The engine of that car is either JULI or log4j. Without one of these engines, the car goes no where. However regardless of whether you use JULI or log4j, the steering wheel, break, gas pedal, etc. are the same. - Related FAQ: What role does JULI and log4j play in logging? + Related FAQ: [[#Q3|What role does JULI and log4j play in logging?]] <>'''What role does JULI and log4j play in logging?''' - First see: What role does commons-logging play in logging? + First see: [[#Q2|What role does commons-logging play in logging?]] Note in addition that in your own applications you could log directly with JULI or log4j. But once you choose one, you can't easily switch to the other later. If you use commons-logging you can. <>'''How do I configure commons-logging for use with Tomcat?''' - You need to specify a commons-logging configuration file and, if you wish, a logging implementation that supports commons-logging. JDK 1.4 (and later) java.util.Logging and Log4j are the two most commonly used logging toolkits for Tomcat. Tomcat 5.5 and Tomcat 6.0 use java.logging as default implementation for commons-logging. So this ''should'' work by default, but sometimes it doesn't (see [[#Q9]]). If you supply an external logging toolkit such as Log4J, it needs to be located in the $CATALINA_HOME/common/lib directory (for Tomcat 5.0 and earlier). Tomcat 5.5 and later uses commons-logging while bootstrapping so some people suggest adding Log4j to the bootstrap classpath by using the scripts in $CATALINA_HOME/bin (see [[http://markmail.org/message/3sgxfol3njcfutsm|Need for it to be in bootstrap classpath?]]). A better approch apparently working is: + You need to specify a commons-logging configuration file and, if you wish, a logging implementation that supports commons-logging. JDK 1.4 (and later) java.util.Logging and Log4j are the two most commonly used logging toolkits for Tomcat. Tomcat 5.5 and Tomcat 6.0 use java.logging as default implementation for commons-logging. So this ''should'' work by default, but sometimes it doesn't (see [[#Q9]]). + + If you supply an external logging toolkit such as Log4J, it needs to be located in the $CATALINA_HOME/common/lib directory (for Tomcat 5.0 and earlier). Tomcat 5.5 and later uses commons-logging while bootstrapping so some people suggest adding Log4j to the bootstrap classpath by using the scripts in $CATALINA_HOME/bin (see [[http://markmail.org/message/3sgxfol
[Tomcat Wiki] Update of "FAQ/Connectors" by KonstantinK olinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Connectors" page has been changed by KonstantinKolinko. The comment on this change is: Updated. http://wiki.apache.org/tomcat/FAQ/Connectors?action=diff&rev1=9&rev2=10 -- <>'''What is JK (or AJP)?''' - AJP is a wire protocol. It an optimized version of the HTTP protocol to allow a standalone web server such as Apache talk to Tomcat. Historically, Apache has always been much faster than Tomcat at serving static content. The idea is to let Apache serve the static content when possible, then proxy the request back to Tomcat for Tomcat related content. + AJP is a wire protocol. It an optimized version of the HTTP protocol to allow a standalone web server such as [[http://httpd.apache.org/|Apache]] to talk to Tomcat. Historically, Apache has been much faster than Tomcat at serving static content. The idea is to let Apache serve the static content when possible, but proxy the request to Tomcat for Tomcat related content. <>'''Which connector: mod_jserv, JK, JK2, mod_webapp or mod_proxy?''' @@ -53, +53 @@ <>'''How do I bind to a specific ip address?''' - Each Connector element allows an address property. For example: - - {{{}}} - - For a more complete description of the Connector config, see the [[http://tomcat.apache.org/tomcat-6.0-doc/config/http.html|HTTP Connector docs]] or the see the [[http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html|AJP Connector docs]]. + Each Connector element allows an `address` property. See the [[http://tomcat.apache.org/tomcat-6.0-doc/config/http.html|HTTP Connector docs]] or the see the [[http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html|AJP Connector docs]]. <>'''Where can I download a binary distribution of my connector?''' - You can't: you need to download the source and compile it for your platform. The source distributions are available from the [[http://tomcat.apache.org/download-connectors.cgi|standard location]]. Note that JPackage.org has RPM distributions for the connectors as well as tomcat itself: [[http://www.jpackage.org/|JPackage.org]] + You cannot: you need to download the source and compile it for your platform. The source distributions are available from the [[http://tomcat.apache.org/download-connectors.cgi|standard location]]. Note that JPackage.org has RPM distributions for the connectors as well as tomcat itself: [[http://www.jpackage.org/|JPackage.org]] <>'''I'm having strange UTF-8 issues with my request parameters.''' - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "FAQ/Database" by Konst antinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Database" page has been changed by KonstantinKolinko. The comment on this change is: Updated link. http://wiki.apache.org/tomcat/FAQ/Database?action=diff&rev1=2&rev2=3 -- Other Links of interest: - * [[http://tomcat.apache.org/tomcat-4.1-doc/jndi-datasource-examples-howto.html|JNDI Datasource HOW-TO]] + * [[http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html|JNDI Datasource HOW-TO]] Other notes: - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "FAQ/Developing" by KonstantinK olinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Developing" page has been changed by KonstantinKolinko. The comment on this change is: Updated. http://wiki.apache.org/tomcat/FAQ/Developing?action=diff&rev1=7&rev2=8 -- <>'''How do I remotely debug Tomcat using Eclipse?''' - This answer assumes that you have a project set up with all of the fixings and have some idea of what you're doing in this respect. If not then thats really outside the scope of this topic and more in the scope of you needing to go to [[[http://eclipse.org|eclipse.org]]] and read up on how to use your ide, and maybe practice a little bit before you come back to this. We're also going to assume you have some idea of what a debugger is and how to use one. + This answer assumes that you have a project set up with all of the fixings and have some idea of what you're doing in this respect. If not then thats really outside the scope of this topic and more in the scope of you needing to go to [[http://eclipse.org|eclipse.org]] and read up on how to use your ide, and maybe practice a little bit before you come back to this. We are also going to assume you have some idea of what a debugger is and how to use one. - Make sure tomcat is started and that your app is deployed and the sources, etc are all defined as resources in your app. If you have a servlet or something, set a breakpoint where its sure to hit on the next request. Go to "Run->Debug Configurations...". Click on "Remote Java Applications", then click "New". Type in the title and all. Notice that port 8000 from the Tomcat instructions. Save and run. Eclipse will connect to the VM that Tomcat is running under. Wow, that was easy! Now go type the url to submit to your servlet or whatever in your browser. Boom you hit the breakpoint right? Have fun! + Make sure Tomcat is started and that your app is deployed and the sources, etc are all defined as resources in your app. If you have a servlet or something, set a breakpoint where its sure to hit on the next request. Go to "Run->Debug Configurations...". Click on "Remote Java Applications", then click "New". Type in the title and all. Notice that port 8000 from the Tomcat instructions. Save and run. Eclipse will connect to the VM that Tomcat is running under. Wow, that was easy! Now go type the url to submit to your servlet or whatever in your browser. Boom you hit the breakpoint right? Have fun! <>'''How do I remotely debug Tomcat using NetBeans?''' @@ -48, +48 @@ <>'''How do I change the monitoring interval for modified resources and application reloading?''' - Modify the {{{checkInterval}}} attribute value on the relevant Loader element in your web application configuration file (yourapp.xml), or in the main configuration file {{{%CATALINA_HOME%/conf/server.xml}}} if that is the one you're using. For more information, please see the [[[http://tomcat.apache.org/faq/config/loader.html|Loader configuration reference]]]. + Monitoring interval for application reloading is controlled by the `backgroundProcessorDelay` property on `Context` element or on its parent containers: `Host` and `Engine`. See [[http://tomcat.apache.org/tomcat-6.0-doc/config/index.html|Tomcat Configuration Reference]]. By default there is a single backgroung processing thread that run by Engine. See its [[http://tomcat.apache.org/tomcat-6.0-doc/config/engine.html|configuration]] for the default delay value. + Monitoring intervals for the JSP pages are set in the [[http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html|Jasper servlet configuration]] in `web.xml`. + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "FAQ/Developing" by Kon stantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Developing" page has been changed by KonstantinKolinko. The comment on this change is: Prevent NetBeans term from turning into a link. Updated Jasper phrase wording.. http://wiki.apache.org/tomcat/FAQ/Developing?action=diff&rev1=8&rev2=9 -- Make sure Tomcat is started and that your app is deployed and the sources, etc are all defined as resources in your app. If you have a servlet or something, set a breakpoint where its sure to hit on the next request. Go to "Run->Debug Configurations...". Click on "Remote Java Applications", then click "New". Type in the title and all. Notice that port 8000 from the Tomcat instructions. Save and run. Eclipse will connect to the VM that Tomcat is running under. Wow, that was easy! Now go type the url to submit to your servlet or whatever in your browser. Boom you hit the breakpoint right? Have fun! - <>'''How do I remotely debug Tomcat using NetBeans?''' + <>'''How do I remotely debug Tomcat using !NetBeans?''' - This answer assumes that you have correctly set up a NetBeans project and that you know how to use the NetBeans debugger. If not, please go to http://www.netbeans.org/kb/using-netbeans/40/debug.html and read up on how to use NetBeans and its debugger. + This answer assumes that you have correctly set up a [[http://netbeans.org/|NetBeans]] project and that you know how to use the !NetBeans debugger. If not, please go to http://www.netbeans.org/kb/using-netbeans/40/debug.html and read up on how to use !NetBeans and its debugger. Make sure that Tomcat is started in debug mode as described above, that your application is deployed, and that the sources are all defined as resources in your application. If you have a servlet or JSP file, set a breakpoint where you think a problem might be occurring. Go to "Run->Attach Debugger". A dialog pops up to let you specify the following options: * Debugger: JPDA Debugger - * Connector: SocketAttach + * Connector: !SocketAttach * Host: The IP address of the host your Tomcat installation is running on (127.0.0.1 if it is your local machine). * Port: The port of your Tomcat debugging interface, which should be 8000 if you've followed the instructions above. When you press OK, you have a debugging connection very similar to local debugging. - Note that NetBeans has a second option -- you can debug JSP files and servlets locally using a Tomcat server that is bundled with the IDE. When you debug a JSP file or servlet in the IDE, the bundled Tomcat server automatically starts in debug mode, and the debugger connects to it. + Note that !NetBeans has a second option -- you can debug JSP files and servlets locally using a Tomcat server that is bundled with the IDE. When you debug a JSP file or servlet in the IDE, the bundled Tomcat server automatically starts in debug mode, and the debugger connects to it. <>'''How do I change the monitoring interval for modified resources and application reloading?''' Monitoring interval for application reloading is controlled by the `backgroundProcessorDelay` property on `Context` element or on its parent containers: `Host` and `Engine`. See [[http://tomcat.apache.org/tomcat-6.0-doc/config/index.html|Tomcat Configuration Reference]]. By default there is a single backgroung processing thread that run by Engine. See its [[http://tomcat.apache.org/tomcat-6.0-doc/config/engine.html|configuration]] for the default delay value. - Monitoring intervals for the JSP pages are set in the [[http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html|Jasper servlet configuration]] in `web.xml`. + Interval that controls reloading of the changed JSP pages is set in the [[http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html|Jasper configuration]] in `web.xml`. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "FAQ/FDA_Validation" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/FDA_Validation" page has been changed by KonstantinKolinko. The comment on this change is: Updated links and corrected some misprints. http://wiki.apache.org/tomcat/FAQ/FDA_Validation?action=diff&rev1=3&rev2=4 -- Several kinds. They include: - * There are numerous smaller [[http://jakarta.apache.org/site/vendors.html|vendors]] and several large ones, including IBM, HP, Sun, and Novell, who offer Tomcat consulting and support services, including application auditing, environment assessments, and risk analysis. + * There are numerous smaller [[SupportAndTraining|vendors]] and several large ones, including IBM, HP, Sun, and Novell, who offer Tomcat consulting and support services, including application auditing, environment assessments, and risk analysis. - * There are numerous vendors in addition to the above consultants, like [[http://www.covalent.net/|Covalent]] and [[http://www.jboss.org/services/prodsupport|JBoss]], who offer 24/7/365 enterprise-level support for Tomcat. + * There are numerous vendors in addition to the above consultants, like [[http://www.springsource.com/|SpringSource]] (formerly Covalent) and [[http://www.jboss.org/|JBoss]], who offer 24/7/365 enterprise-level support for Tomcat. * The Tomcat [[http://tomcat.apache.org/lists.html|mailing lists]] are extremely active and contain members of many of the above organizations, including contractors available for hire. <>'''How do I know I have a validated release? How do I know no one has tampered with the release package?''' - All Tomcat releases are signed using the Release Manager's [[http://www.pgpi.org/doc/pgpintro|PGP]] key. The key is also available in the KEYS file that ships with every Tomcat release. The same KEYS file is also available in the Tomcat CVS repository ([[http://www.apache.org/dist/tomcat/tomcat-5/KEYS|here]]). The PGP signatures are available on all the Tomcat download pages, and can (and should!) be used to verify the release really is the signed distribution. + All Tomcat releases are signed using the Release Manager's [[http://www.pgpi.org/doc/pgpintro|PGP]] key. The key is also available in the KEYS file that ships with every Tomcat release. The same KEYS file is also available in the Tomcat SVN repository ([[https://svn.apache.org/repos/asf/tomcat/trunk/KEYS|here]]). The PGP signatures are available on all the Tomcat download pages, and can (and should!) be used to verify the release really is the signed distribution. - As for tampering: every Tomcat release is also digested using the MD5 algorithm as specified in [[http://www.faqs.org/rfcs/rfc1321.html|RFC1321]]. The MD5 digest is included in all the download pages. Users run MD5 on their local machine to verify that the digest of what they downlaoded is the same as that published in the Apache download pages. That way, users are assured the distribution has not been modified since the Release Manager signed it. + As for tampering: every Tomcat release is also digested using the MD5 algorithm as specified in [[http://www.faqs.org/rfcs/rfc1321.html|RFC1321]]. The MD5 digest is included in all the download pages. Users run MD5 on their local machine to verify that the digest of what they downloaded is the same as that published in the Apache download pages. That way, users are assured the distribution has not been modified since the Release Manager signed it. <>'''What about security? I'm concerned about attacks.''' - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Trivial Update of "FAQ/Class_Not_Found " by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/Class_Not_Found" page has been changed by KonstantinKolinko. The comment on this change is: Removed obsolete TC 4.1 documentation link.. http://wiki.apache.org/tomcat/FAQ/Class_Not_Found?action=diff&rev1=9&rev2=10 -- This page discusses the various ways you see Class Not Found errors or very similar errors. It is strongly advised you read the following topics: - * Classloader HOWTO pages: [[http://tomcat.apache.org/tomcat-4.1-doc/class-loader-howto.html|Tomcat 4.1]], [[http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html|Tomcat 5.5]], [[http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html|Tomcat 6.0]]. + * Classloader HOWTO pages: [[http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html|Tomcat 6.0]], [[http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html|Tomcat 5.5]]. * [[http://marc.theaimsgroup.com/?t=10431752924&r=1&w=2|Don't]] [[http://marc.theaimsgroup.com/?t=10438044013&r=1&w=2|use]] [[http://marc.theaimsgroup.com/?t=9694765692&r=1&w=2|packageless]] [[http://marc.theaimsgroup.com/?t=10449102012&r=1&w=2|classes]] [[http://marc.theaimsgroup.com/?t=10426557623&r=1&w=2|and]] [[http://marc.theaimsgroup.com/?t=10424974831&r=1&w=2|declare]] [[http://marc.theaimsgroup.com/?t=10299695013&r=1&w=2|all]] [[http://marc.theaimsgroup.com/?t=10292218941&r=1&w=2|imported classes]]! * [[http://marc.theaimsgroup.com/?l=tomcat-user&m=103843452413727&w=2|Another answer to a classloader issue]] @@ -32, +32 @@ <>'''Why do I get {{{ java.lang.NoClassDefFoundError: org/xml/sax/InputSource }}}?''' - You have conflicting XML api jar files in your classpath. Read the README or RELEASE-NOTES for more information. + You have conflicting XML api jar files in your classpath. Read the README or RELEASE-NOTES for more information. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "UsefulLinks" by KonstantinKoli nko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "UsefulLinks" page has been changed by KonstantinKolinko. The comment on this change is: Removed broken and dangerously outdated links (like those mentioning mod_jk2). Though it would be nice to have something more up-to-date here.. http://wiki.apache.org/tomcat/UsefulLinks?action=diff&rev1=16&rev2=17 -- = Tomcat Connectors/JK = - * [[http://www.syltonline.de/arbeit/pociis6tc5jk2/iis6mitjk2.html|Tomcat5 with IIS6 (in IIS6-Mode) and JK2 via AJP13]] (in German) - - Got time for a translation? Contact [[http://www.syltonline.de/arbeit/pociis6tc5jk2/kontakt.php|the web page author]] - - * [[http://www.syltonline.de/arbeit/pociis6tc5jk2/jmx.html|Tomcat5 JK2 (via AJP13) JMX-Setup]] (in German) - - Got time for a translation? Contact [[http://www.syltonline.de/arbeit/pociis6tc5jk2/kontakt.php|the web page author]] - - * [[http://www.rit.edu/~ack5504/tomcat-iis6-howto/tomcat-iis6-howto.html|Tomcat and IIS 6 How-To]] - - The link is dead, but much of the information in it is based on [[http://www.mail-archive.com/tomcat-u...@jakarta.apache.org/msg107832.html|this thread]] on tomcat-users. + * [[http://www.rit.edu/~ack5504/tomcat-iis6-howto/tomcat-iis6-howto.html|Tomcat and IIS 6 How-To]] -- The link is dead, but much of the information in it is based on [[http://www.mail-archive.com/tomcat-u...@jakarta.apache.org/msg107832.html|this thread]] on tomcat-users. * [[http://tud.at/programm/apache-ssl-win32-howto.php3/|The Apache + SSL on Win32 HOWTO]] * [[http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html|Configuring Tomcat with IIS Web Server]] - * [[http://www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html|How To for Apache2, Tomcat4.1.x, mod_jk2, JSDK1.4 on Win2k]] - - * [[http://www.johnturner.com/howto/apache-tomcat-howto.html|John Turner's HowTo Series]] - ''excellent!'' - * [[http://raibledesigns.com/tomcat/index.html|Apache 2.x + Tomcat 4.x + Load Balancing (or Private JVMs)]] - * [[http://www.onjava.com/pub/a/onjava/2002/11/20/tomcat.html|Configuring Tomcat and Apache With JK 1.2]] - - * [[http://www.thinlizard.com/lizard/modjk2.html|Building mod_jk2 on Free``BSD 4.7]] - - * [[http://www.humph.com/docs/mod_jk.html|Building mod_jk and mod_jk2 for Mac``OS X 10.2.6 - 10.3]] (binaries available!) - - * [[http://cnr.berkeley.edu/~salazar/apache_tomcat.html|How to Install Apache 2.0.45 and Tomcat 4.1.x on Windows XP]] - * [[http://www.dynamicobjects.com/d2r/archives/002574.html|Configuring apache 2 + tomcat 5 + mysql + jdbc access on linux and windows]] - - * [[http://bruno.vernay.free.fr/HowTo/Apache-tomcat/bWebServer/references.html|Other links about Apache-Tomcat-Connectors]] - - * [[http://www.odindata.no/infopot/tomcat_iis_errors.htm|File upload and login using IIS 6 and Tomcat 5]] - - There are problems related to file upload (POST method) when using JK2.04 and there is a patch for it. The patch, however, creates other problems. Here is a description on how to solve these problems. = Building and Configuring Tomcat = @@ -60, +32 @@ == Configuring for UNIX and Linux == - * Apache Tomcat on Linux - Step-by-Step -* [[http://www.connecties.com/cymulacrum/tomcat5/book1.html|Tomcat 5]] -* [[http://www.connecties.com/cymulacrum/tomcat4/book1.html|Tomcat 4]] - * [[http://www.linuxjava.net/howto/webapp/|Installing Web Services with Linux / Apache / Tomcat / Mod_jk / Struts / Postgre``SQL / JDBC / Open``SSL]] - - * [[http://www.cardon.biz/docs/tomcat/|Apache Tomcat on Linux - Step-by-Step]] * [[http://www.klawitter.de/tomcat80.html|How to run Tomcat on Port 80]] @@ -74, +40 @@ * [[http://www.freebsd.org/doc/en/articles/java-tomcat/|Java and Jakarta Tomcat on Free``BSD]] - * [[http://www.reliablepenguin.com/clients/misc/tomcat/|Tomcat 5 / Apache 2 / JK2 / Red Hat 9]] - * [[http://c-jdbc.objectweb.org/current/doc/userGuide/html/|Tomcat / Clustered JDBC]] - - * [[http://java.internet.com/tutorials/Tomcat/|Using Apache Tomcat 4]] * [[http://www.coreservlets.com/Apache-Tomcat-Tutorial/#Introduction|Configuring and Using Apache Tomcat]] @@ -87, +49 @@ * For general information, see the `RUNNING.txt` file in the Tomcat distribution. - * [[http://jakarta.apache.org/tomcat/faq/os2.html|Running Tomcat on OS/2]] - * [[TomcatOnMacOS]]: Running Tomcat on MacOS X - * [[http://www.macdevcenter.com/lpt/a/2480|Installing Tomcat on MacOS X]] + * [[http://macdevcenter.com/lpt/a/2480|Installing Tomcat on MacOS X]] * [[http://www.agileskills2.org/EWDT|Running Tomcat in Eclipse for development with Tapestry]] - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: