[Bug 54513] NullPointerException in AprEndpoint$Poller.run
https://issues.apache.org/bugzilla/show_bug.cgi?id=54513 --- Comment #8 from Mladen Turk --- Hmm, reading the code it seems that a socket is member of two pollsets (timeouts and connections). Is this correct. Note that socket can be member of only one pollset and 1.1.26 kind of enforces that. -- 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
Re: [VOTE] Release Apache Tomcat Native 1.1.26
On 02/01/2013 02:22 PM, Mark Thomas wrote: On 25/01/2013 16:01, jean-frederic clere wrote: Version 1.1.26 is bug fixing release. The proposed release artefacts can be found at [1], and the build was done using tag [2]. The VOTE will remain open for at least 48 hours. The Apache Tomcat Native 1.1.26 is [ ] Stable, go ahead and release [X] Broken because of ... But probably fixable without re-tagging. Yeah, Jean-Frederic had a problems compiling the binaries for this release. There is also package naming issues. I can do a clean binary build based on tagged source code. Regards -- ^TM - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[taglibs] TCK update
On Jan 29, 2013, at 11:56 PM, Jeremy Boynes wrote: > On Jan 28, 2013, at 3:46 AM, Mark Thomas wrote: > On 26/01/2013 21:51, Henri Yandell wrote: ... >> >> I've just checked the latest version of the TCK documentation for JSTL >> 1.2 and while the TCK has been updated so it will run on Java 7, the >> reference runtime remains Java 5. My interpretation of that is that the >> TCK must pass when running with a Java 5 JRE. > > My interpretation was that a product must pass the TCK in all its > configurations. In other words, you can't claim compatibility on Java7 unless > you've tested on Java7. If we test on Java7 and pass, we can claim we're a > compatible implementation in that mode; if we don't test on Java5 then we > can't claim compatibility on Java5 but that does not stop us being compatible > on Java7. I read it as being sufficient if we document what we require as a > resource. > > @Henri, I ran all tests on Java6 and have not tried SQL on Java7. I'll pull > the newer version and retest. The newer TCK does not have some of the scripts that were in the older one so I think the instructions on running it may have changed. The release notes say the User Guide is packaged separately from the TCK download. Mark, please could you check for any other updates related to this TCK. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Re: [taglibs] TCK update
On 02/02/2013 18:37, Jeremy Boynes wrote: > On Jan 29, 2013, at 11:56 PM, Jeremy Boynes wrote: >> On Jan 28, 2013, at 3:46 AM, Mark Thomas wrote: >> On 26/01/2013 21:51, Henri Yandell wrote: > ... >>> >>> I've just checked the latest version of the TCK documentation for JSTL >>> 1.2 and while the TCK has been updated so it will run on Java 7, the >>> reference runtime remains Java 5. My interpretation of that is that the >>> TCK must pass when running with a Java 5 JRE. >> >> My interpretation was that a product must pass the TCK in all its >> configurations. In other words, you can't claim compatibility on Java7 >> unless you've tested on Java7. If we test on Java7 and pass, we can claim >> we're a compatible implementation in that mode; if we don't test on Java5 >> then we can't claim compatibility on Java5 but that does not stop us being >> compatible on Java7. I read it as being sufficient if we document what we >> require as a resource. >> >> @Henri, I ran all tests on Java6 and have not tried SQL on Java7. I'll pull >> the newer version and retest. > > The newer TCK does not have some of the scripts that were in the older one so > I think the instructions on running it may have changed. The release notes > say the User Guide is packaged separately from the TCK download. Mark, please > could you check for any other updates related to this TCK. Everything that was available was downloaded and added to the ASF TCK repo. Mark - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Bug 54513] NullPointerException in AprEndpoint$Poller.run
https://issues.apache.org/bugzilla/show_bug.cgi?id=54513 --- Comment #9 from Mark Thomas --- (In reply to comment #8) > Hmm, reading the code it seems that a socket is member of two pollsets > (timeouts and connections). Is this correct. Note that socket can be member > of only one pollset and 1.1.26 kind of enforces that. Neither of those are pollsets. There are local lists of sockets. There are a handful of bugs I have found in the new AprEndpoint. Fixes are on the way. In the meantime, I would be helpful if you could look at the return value of Poll.pollset. The use of n++ twice inside the loop looks like a bug to me. -- 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] Update of "FAQ/KnownIssues" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "FAQ/KnownIssues" page has been changed by KonstantinKolinko: http://wiki.apache.org/tomcat/FAQ/KnownIssues?action=diff&rev1=12&rev2=13 Comment: Note that JRE bug was fixed a year ago. <> === What are the known issues with the Oracle JRE? === - * [[https://issues.apache.org/bugzilla/show_bug.cgi?id=50518|jps.exe and jvisualvm.exe cannot detect tomcat using jdk1.6.0_23 onwards]] + * [[https://issues.apache.org/bugzilla/show_bug.cgi?id=50518|jps.exe and jvisualvm.exe cannot detect tomcat using jdk1.6.0_23 onwards]] — Fixed in 1.6.0_25. <> - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Bug 54513] NullPointerException in AprEndpoint$Poller.run
https://issues.apache.org/bugzilla/show_bug.cgi?id=54513 --- Comment #10 from Mladen Turk --- Not sure what you mean by double increment. Is it? p->set[n++] = (jlong)(fd->rtnevents); p->set[n++] = P2J(fd->client_data); That should be fine. The returned array consist of pair of values odd being event and even being the socket. It was always like that. But you are right, there is a bug. Returned number should be n/2 not n. I'll fix that. If you create a shortcut in Java which calls .pollset(...) and divide by two in case the value is > 0 doesn't that help? Anyhow, I'll fix the native and create test 1.1.27-dev binaries for further test. -- 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
svn commit: r1441792 - /tomcat/native/branches/1.1.x/native/src/poll.c
Author: mturk Date: Sat Feb 2 19:25:49 2013 New Revision: 1441792 URL: http://svn.apache.org/viewvc?rev=1441792&view=rev Log: Fix BZ55413 by ensuring the returned value is number of event/sockets pairs Modified: tomcat/native/branches/1.1.x/native/src/poll.c Modified: tomcat/native/branches/1.1.x/native/src/poll.c URL: http://svn.apache.org/viewvc/tomcat/native/branches/1.1.x/native/src/poll.c?rev=1441792&r1=1441791&r2=1441792&view=diff == --- tomcat/native/branches/1.1.x/native/src/poll.c (original) +++ tomcat/native/branches/1.1.x/native/src/poll.c Sat Feb 2 19:25:49 2013 @@ -477,5 +477,5 @@ TCN_IMPLEMENT_CALL(jint, Poll, pollset)( } if (n > 0) (*e)->SetLongArrayRegion(e, set, 0, n, p->set); -return n; +return n / 2; } - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Bug 54513] NullPointerException in AprEndpoint$Poller.run
https://issues.apache.org/bugzilla/show_bug.cgi?id=54513 Mark Thomas changed: What|Removed |Added Component|Library |Connectors Version|unspecified |trunk Product|Tomcat Native |Tomcat 8 Target Milestone|--- | --- Comment #11 from Mark Thomas --- (In reply to comment #10) > Not sure what you mean by double increment. Is it? > > p->set[n++] = (jlong)(fd->rtnevents); > p->set[n++] = P2J(fd->client_data); > > That should be fine. > The returned array consist of pair of values odd being event and even being > the socket. It was always like that. > > But you are right, there is a bug. Returned number should be n/2 not n. > I'll fix that. Thanks. > If you create a shortcut in Java which calls .pollset(...) > and divide by two in case the value is > 0 doesn't that help? Already doing this locally. That was how I moved past this issue and found the others. > Anyhow, I'll fix the native and create test 1.1.27-dev binaries for further > test. Perfect. I see your commit, so I'm going to move this back to Tomact 8 to track the remaining AprEndpoint issies. -- 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
svn commit: r1441806 - in /tomcat/native/branches/1.1.x/native: include/tcn_version.h os/win32/libtcnative.rc
Author: mturk Date: Sat Feb 2 20:34:18 2013 New Revision: 1441806 URL: http://svn.apache.org/viewvc?rev=1441806&view=rev Log: Inc version number Modified: tomcat/native/branches/1.1.x/native/include/tcn_version.h tomcat/native/branches/1.1.x/native/os/win32/libtcnative.rc Modified: tomcat/native/branches/1.1.x/native/include/tcn_version.h URL: http://svn.apache.org/viewvc/tomcat/native/branches/1.1.x/native/include/tcn_version.h?rev=1441806&r1=1441805&r2=1441806&view=diff == --- tomcat/native/branches/1.1.x/native/include/tcn_version.h (original) +++ tomcat/native/branches/1.1.x/native/include/tcn_version.h Sat Feb 2 20:34:18 2013 @@ -69,13 +69,13 @@ extern "C" { #define TCN_MINOR_VERSION 1 /** patch level */ -#define TCN_PATCH_VERSION 26 +#define TCN_PATCH_VERSION 27 /** * This symbol is defined for internal, "development" copies of TCN. This * symbol will be #undef'd for releases. */ -#define TCN_IS_DEV_VERSION 0 +#define TCN_IS_DEV_VERSION 1 /** The formatted string of APU's version */ Modified: tomcat/native/branches/1.1.x/native/os/win32/libtcnative.rc URL: http://svn.apache.org/viewvc/tomcat/native/branches/1.1.x/native/os/win32/libtcnative.rc?rev=1441806&r1=1441805&r2=1441806&view=diff == --- tomcat/native/branches/1.1.x/native/os/win32/libtcnative.rc (original) +++ tomcat/native/branches/1.1.x/native/os/win32/libtcnative.rc Sat Feb 2 20:34:18 2013 @@ -20,7 +20,7 @@ LANGUAGE 0x9,0x1 "See the License for the specific language governing " \ "permissions and limitations under the License." -#define TCN_VERSION "1.1.26" +#define TCN_VERSION "1.1.27" 1000 ICON "apache.ico" 1001 DIALOGEX 0, 0, 252, 51 @@ -36,8 +36,8 @@ BEGIN END 1 VERSIONINFO - FILEVERSION 1,1,26,0 - PRODUCTVERSION 1,1,26,0 + FILEVERSION 1,1,27,0 + PRODUCTVERSION 1,1,27,0 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
svn commit: r1441807 - /tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java
Author: markt Date: Sat Feb 2 20:38:29 2013 New Revision: 1441807 URL: http://svn.apache.org/viewvc?rev=1441807&view=rev Log: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=54513 Multiple bugs in the new Poller implementation (r1433976) when the endpoint is stopped and then started - Ensure old Poller thread stops - Ensure old AsyncTimeout thread stops - Ensure old sendfile thread stops - Ensure sockets in keep-alive are closed Modified: tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java Modified: tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java?rev=1441807&r1=1441806&r2=1441807&view=diff == --- tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java (original) +++ tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java Sat Feb 2 20:38:29 2013 @@ -186,6 +186,15 @@ public class AprEndpoint extends Abstrac /** + * The socket poller. + */ +protected AsyncTimeout asyncTimeout = null; +public AsyncTimeout getAsyncTimeout() { +return asyncTimeout; +} + + +/** * The static file sender. */ protected Sendfile sendfile = null; @@ -609,7 +618,8 @@ public class AprEndpoint extends Abstrac startAcceptorThreads(); // Start async timeout thread -Thread timeoutThread = new Thread(new AsyncTimeout(), +asyncTimeout = new AsyncTimeout(); +Thread timeoutThread = new Thread(asyncTimeout, getName() + "-AsyncTimeout"); timeoutThread.setPriority(threadPriority); timeoutThread.setDaemon(true); @@ -629,6 +639,8 @@ public class AprEndpoint extends Abstrac } if (running) { running = false; +poller.stop(); +asyncTimeout.stop(); unlockAccept(); for (AbstractEndpoint.Acceptor acceptor : acceptors) { long waitLeft = 1; @@ -1000,6 +1012,9 @@ public class AprEndpoint extends Abstrac * Async timeout thread */ protected class AsyncTimeout implements Runnable { + +private volatile boolean asyncTimeoutRunning = true; + /** * The background thread that checks async requests and fires the * timeout if there has been no activity. @@ -1008,7 +1023,7 @@ public class AprEndpoint extends Abstrac public void run() { // Loop until we receive a shutdown command -while (running) { +while (asyncTimeoutRunning) { try { Thread.sleep(1000); } catch (InterruptedException e) { @@ -1029,7 +1044,7 @@ public class AprEndpoint extends Abstrac } // Loop if endpoint is paused -while (paused && running) { +while (paused && asyncTimeoutRunning) { try { Thread.sleep(1000); } catch (InterruptedException e) { @@ -1039,6 +1054,11 @@ public class AprEndpoint extends Abstrac } } + + +protected void stop() { +asyncTimeoutRunning = false; +} } @@ -1260,6 +1280,8 @@ public class AprEndpoint extends Abstrac public int getConnectionCount() { return connectionCount; } +private volatile boolean pollerRunning = true; + /** * Create the poller. With some versions of APR, the maximum poller size * will be 62 (recompiling APR is necessary to remove this limitation). @@ -1316,6 +1338,12 @@ public class AprEndpoint extends Abstrac } + +protected void stop() { +pollerRunning = false; +} + + /** * Destroy the poller. */ @@ -1325,6 +1353,7 @@ public class AprEndpoint extends Abstrac // still in the poller can cause problems try { synchronized (this) { +this.notify(); this.wait(pollTime / 1000); } } catch (InterruptedException e) { @@ -1351,7 +1380,7 @@ public class AprEndpoint extends Abstrac Long.valueOf(desc[n*2+1])).isComet(); if (!comet || (comet && !processSocket( desc[n*2+1], SocketStatus.STOP))) { -destroySocket(desc[n*2+1]); +destroySocket(desc[n*2+1], true); } } } @@ -1537,7 +1566,7 @@ public class AprEndpoint extends Abstrac int maintain = 0; // Loop until we receive a shutdown command -while (running) { +while (pollerRunning) { // Loo
[Bug 54513] NullPointerException in AprEndpoint$Poller.run
https://issues.apache.org/bugzilla/show_bug.cgi?id=54513 Mark Thomas changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #12 from Mark Thomas --- The root cause of the initial issue is the tc native bug that Mladen has now fixed. This affected Tomcat 7 and 8. The other issues (the poller threads not stopping, socket reads hanging) are Tomcat 8 specific and have been fixed in trunk. -- 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] Update of "HowTo" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "HowTo" page has been changed by KonstantinKolinko: http://wiki.apache.org/tomcat/HowTo?action=diff&rev1=120&rev2=121 Comment: Remove "How do I use log4j for all Tomcat log output?" entry. The text was old and wrong. This topic is covered by Tomcat docs. No. If you can edit Tomcat's startup scripts (or better create a {{{setenv.sh}}} file), you can add "-D" options to Java. But there is no way in Java to have different values of system properties for different classes in the same JVM. There are some other methods available, like using {{{ServletContext.getContextPath()}}} to get the context name of your web application and locate some resources accordingly, or to define {{{}}} elements in {{{WEB-INF/web.xml}}} file of your web application and then set the values for them in Tomcat context file ({{{META-INF/context.xml}}}). See http://tomcat.apache.org/tomcat-7.0-doc/config/context.html . - - == How do I use log4j for all Tomcat log output? == - To have Tomcat use log4j universally, place both `log4j.jar` and the Jakarta `commons-logging.jar` into the `$TOMCAT_HOME/common/lib` directory. Create your log4j properties file as `$TOMCAT_HOME/common/classes/log4j.properties` and configure the root logger. Here is the basic `log4j.properties` that I used to do this myself: - - {{{ - log4j.rootLogger=info, R - log4j.appender.R=org.apache.log4j.ConsoleAppender - log4j.appender.R.layout=org.apache.log4j.PatternLayout - log4j.appender.R.layout.ConversionPattern=%-5p %-30.30c{1} %x - %m%n - }}} - If you only need to use log4j in your own web app, just include log4j (and any log4j properties file) in your WAR file. == How do I configure Tomcat Connectors? == On the Tomcat FAQ, there is a list of Other Resources which should have information pointing you to the relevant pages. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Bug 54513] NullPointerException in AprEndpoint$Poller.run
https://issues.apache.org/bugzilla/show_bug.cgi?id=54513 --- Comment #13 from Mladen Turk --- Please try with the binaries from http://people.apache.org/~mturk/native/1.1.27-dev-20130202/ -- 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] Update of "HowTo" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "HowTo" page has been changed by KonstantinKolinko: http://wiki.apache.org/tomcat/HowTo?action=diff&rev1=121&rev2=122 Comment: Correction. "ROOT/index.jsp" was precompiled in Tomcat 5.5, but not in Tomcat 6 and later. See HowTo/FasterStartUp == How do I override the default home page loaded by Tomcat? == - After successfully installing Tomcat, you usually test it by loading http://localhost:8080 . The contents of that page are compiled into the `index_jsp` servlet. The page even warns against modifying the `index.jsp` files for this reason. Luckily, it is quite easy to override that page. Inside {{{$TOMCAT_HOME/conf/web.xml}}} there is a section called `` and it looks like this: + After successfully installing Tomcat, you usually test it by loading http://localhost:8080 . It is quite easy to override that page. Inside {{{$TOMCAT_HOME/conf/web.xml}}} there is a section called `` and it looks like this: {{{ - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Bug 54513] NullPointerException in AprEndpoint$Poller.run
https://issues.apache.org/bugzilla/show_bug.cgi?id=54513 --- Comment #14 from Mark Thomas --- Sure. Just as soon as you make those files world readable ;) -- 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] Update of "HowTo" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "HowTo" page has been changed by KonstantinKolinko: http://wiki.apache.org/tomcat/HowTo?action=diff&rev1=122&rev2=123 Comment: Remove "How do I edit the default JSP home page loaded by Tomcat?" entry. It was for Tomcat 5.5 and is not applicable for Tomcat 6 and later. }}} This change takes effect immediately and does not require a restart of Tomcat. - - == How do I edit the default JSP home page loaded by Tomcat? == - See [[EditDefaultJSPPage]] == How do I enable Server Side Includes (SSI)? == two things have to be done for tomcat to aknowledge SSI scripts: - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "HowTo" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "HowTo" page has been changed by KonstantinKolinko: http://wiki.apache.org/tomcat/HowTo?action=diff&rev1=123&rev2=124 Comment: Replace obsolete "configuring SSI" recipe with a link to documentation This change takes effect immediately and does not require a restart of Tomcat. == How do I enable Server Side Includes (SSI)? == + See http://tomcat.apache.org/tomcat-7.0-doc/ssi-howto.html - two things have to be done for tomcat to aknowledge SSI scripts: - - 1. Rename $CATALINA_BASE/server/lib/servlets-ssi.renametojar to $CATALINA_BASE/server/lib/servlets-ssi.jar. - - 2. Uncomment the section of web.xml found in $CATALINA_BASE/conf/web.xml that deals with SSI. it looks like this when it is uncommented: - - {{{ - - ssi - - org.apache.catalina.ssi.SSIServlet - - - buffered - 1 - - - debug - 0 - - - expires - 666 - - - isVirtualWebappRelative - 0 - - 4 - - }}} - additional information can be found at: http://tomcat.apache.org/tomcat-5.5-doc/ssi-howto.html == How do I install the Administration web app? == If you install Tomcat 5.5 binaries, the Administration web app is not bundled with it; this describes how to add the Administration web app to your Tomcat 5.5 installation. (Tomcat 4.1 comes with the Administration web app as part of the binary). - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "HowTo" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "HowTo" page has been changed by KonstantinKolinko: http://wiki.apache.org/tomcat/HowTo?action=diff&rev1=124&rev2=125 Comment: Administration webapp is not available for Tomcat 6 and later See http://tomcat.apache.org/tomcat-7.0-doc/ssi-howto.html == How do I install the Administration web app? == + === Tomcat 5.5 === If you install Tomcat 5.5 binaries, the Administration web app is not bundled with it; this describes how to add the Administration web app to your Tomcat 5.5 installation. (Tomcat 4.1 comes with the Administration web app as part of the binary). The following refers to a Tomcat 5.5 set up on Windows 2000, so your path names will be different on *nix platforms. In this example, Tomcat 5.5.17 in installed in ''c:\Program Files\Apache Software Foundation\Tomcat 5.5'' (this is my '''CATALINA_HOME'''). @@ -210, +211 @@ 1. Restart Tomcat. 1. Now when you visit ''http://localhost:8080/admin'' you should see a page that asks for a user name and password. If you still see the "no longer loaded" error message in your browser, you must either force a full reload of the web page (in Firefox, hold down Shift key while clicking on the Reload button) or just restart your browser completely. + + === Tomcat 6.0 and later === + Development of Administration web app was ceased and it is no longer provided for Tomcat 6.0 and later versions. + + An alternative is to use 3-rd party applications, such as PSI Probe. See [[AddOns]] page for links. == How do I add JARs or classes to the common classloader without adding them to $CATALINA_HOME/lib? == Either - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "HowTo" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "HowTo" page has been changed by KonstantinKolinko: http://wiki.apache.org/tomcat/HowTo?action=diff&rev1=125&rev2=126 Comment: Slightly improve wording == How do I add JARs or classes to the common classloader without adding them to $CATALINA_HOME/lib? == Either - a) Run Tomcat with separate {{{$CATALINA_BASE}}} and {{{$CATALINA_HOME}}} (as documented in {{{RUNNING.txt}}}) and place those classes into {{{$CATALINA_BASE/lib}}}, or + a) Configure Tomcat to run with separate {{{$CATALINA_BASE}}} and {{{$CATALINA_HOME}}} directories (as documented in {{{RUNNING.txt}}}), and place your JARs and classes into {{{$CATALINA_BASE/lib}}}, or b) Edit the file ''catalina.properties'' under {{{$CATALINA_BASE/conf}}}; there is a property called ''common.loader'' to which you can add additional paths to find JARs or classes for the common classloader. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "ClusteringOverview" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "ClusteringOverview" page has been changed by KonstantinKolinko: http://wiki.apache.org/tomcat/ClusteringOverview?action=diff&rev1=1&rev2=2 Comment: Add category link at the bottom of the page 4. Second Apache Tomcat installation (and verify) 5. Cluster + + [[CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "OutOfMemory" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "OutOfMemory" page has been changed by KonstantinKolinko: http://wiki.apache.org/tomcat/OutOfMemory?action=diff&rev1=10&rev2=11 Comment: Add category link at the bottom of the page 1. Examine each of the !WebappClassLoader objects in turn to find the one where started==false. 1. Trace the GC roots of this object to find out what is holding on to a reference to that object that shouldn't be. That will be the source of the leak. + + [[CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[jira] [Commented] (MTOMCAT-205) Two executions of the tomcat7 plugin in the same build makes the JNDI context of the second execution fail
[ https://issues.apache.org/jira/browse/MTOMCAT-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13569650#comment-13569650 ] Olivier Lamy (*$^¨%`£) commented on MTOMCAT-205: I think (probably someone else will confirm) it's not possible to have 2 different naming context in the same classloader. Which cause the issue here. In the log you have something like: {code} 2 f?vr. 2013 22:48:38 org.apache.catalina.core.NamingContextListener lifecycleEvent GRAVE: Creation of the naming context failed: javax.naming.OperationNotSupportedException: Context is read only {code} > Two executions of the tomcat7 plugin in the same build makes the JNDI context > of the second execution fail > -- > > Key: MTOMCAT-205 > URL: https://issues.apache.org/jira/browse/MTOMCAT-205 > Project: Apache Tomcat Maven Plugin > Issue Type: Bug > Components: tomcat7 >Affects Versions: 2.0 > Environment: windows 7, maven 2.2.1 >Reporter: Laurent Van Basselaere >Assignee: Olivier Lamy (*$^¨%`£) > Attachments: MTOMCAT-205.zip > > > When starting only one instance of a tomcat7 server with the run-war-only > mojo, it works. > If I start more than one server (necessary in our project as our integration > tests include interaction between several deployments of the app with various > configurations), all servers after the first one fail to deploy with a jndi > lookup error: > javax.naming.NameNotFoundException: Name [comp/env/jms/ConnectionFactory] is > not bound in this Context. Unable to find [comp]. > org.apache.naming.NamingContext.lookup(NamingContext.java:820) > org.apache.naming.NamingContext.lookup(NamingContext.java:168) > org.apache.naming.SelectorContext.lookup(SelectorContext.java:158) > javax.naming.InitialContext.lookup(InitialContext.java:392) > > org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:154) > org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:87) > org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152) > org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178) > > org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95) > > org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105) > > org.springframework.jndi.JndiObjectTargetSource.afterPropertiesSet(JndiObjectTargetSource.java:97) > > org.springframework.jndi.JndiObjectFactoryBean$JndiObjectProxyFactory.createJndiObjectProxy(JndiObjectFactoryBean.java:285) > > org.springframework.jndi.JndiObjectFactoryBean$JndiObjectProxyFactory.access$0(JndiObjectFactoryBean.java:276) > > org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:177) > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1479) > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1419) > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518) > > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) > > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) > > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) > > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) > > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192) > > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:567) > > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) > > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) > > org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:467) > > org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:483) > > org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:358) > > org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:325) >
[jira] [Commented] (MTOMCAT-204) ClassNotFoundException: org.apache.catalina.util.StringManager
[ https://issues.apache.org/jira/browse/MTOMCAT-204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13569651#comment-13569651 ] Olivier Lamy (*$^¨%`£) commented on MTOMCAT-204: you mean using mvn tomcat7:deploy ? This issue append on maven console or in tomcat logs ? > ClassNotFoundException: org.apache.catalina.util.StringManager > -- > > Key: MTOMCAT-204 > URL: https://issues.apache.org/jira/browse/MTOMCAT-204 > Project: Apache Tomcat Maven Plugin > Issue Type: Question > Components: tomcat7 > Environment: Microsoft Windows XP Professionnel Version 2002 Sertvice > Pack 3 >Reporter: Alain Perreault >Assignee: Olivier Lamy (*$^¨%`£) > > During deployment I get this exeption > org.apache.catalina.core.ContainerBase addChildInternalOrg.apache.cata > GRAVE: ContainerBase addChild: start: > org.apache.catalinaLifecycleException: Failed to start component > [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/MyServer]] > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java 154) > ... > Caused by: java.lang.NoClassDefFoundError: > Lorg/apache/catalina/util/StringManager; > at java.lang.Class.getDeclaredFieldFields0(Native Method) > at java.lang.Class.privateGetDeclaredFields (Unknown Source) > at java.lang.Class.getDeclaredFields (Unknown Source) > at org.apache.catalina.util.Introspection.getDeclaredFields > (Introspection.java:106) > ... > Caused by: java.lang.ClassNotFoundException: > org.apache.catalina.util.StringManager > I used apache-tomcat-7.0.35-windows-x86 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "HowTo" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "HowTo" page has been changed by KonstantinKolinko: http://wiki.apache.org/tomcat/HowTo?action=diff&rev1=126&rev2=127 Comment: Rewrite the recipe on Tomcat memory configuration. Use CATALINA_OPTS instead of JAVA_OPTS. ADS insists that the CN of every group be unique, but the Manager app. always uses the group CN=manager. The default can be changed, but it's hard to find and you have to do it over every time you upgrade. Instead, pick an attribute other than the common name -- for example, "description" -- that doesn't have to be unique, name it as the `RoleName` attribute of the `Realm` (in server.xml, which you'll be editing anyway), and set that attribute to "manager" in each group you create. Create an OU for each Tomcat instance's groups and give that OU's DN as the `RoleBase` in that instance's server.xml. Create a uniquely-named group in each instance's OU with the chosen attribute ("description" for example) set to "manager". == Where and how do I set memory related settings to improve Tomcat performance? == - When your web application is using large memory as this memory size default setting can be too small, 64MB by default,thus the application becomes slower because the garbage collector is invoked more often, and it can even run out of memory (outofmemory / heap space error ). One way to address this problem is to set a larger heap size . In Windows system, this can be done by editing / adding JAVA_OPTS variable (should be early in the file) in CATALINA_HOME/bin/catalina.bat or catalina.sh for Linux/Unix systems.Parameters to be added are , let say you want to increase it to 256 MB (as you required but make sure you have enough amount of physical memory/RAM and for 32bit system , use no more than 1-1.1 GB heap space size ) , use '-Xms256m -Xmx256m' .In some cases , it is better to set slightly lower size for -Xms . There are other parameters can be added , some of them :{{{'-XX:MaxNewSize -XX:NewSize -XX:MaxPermSize'}}} , depending on your application and requirements . + When your web application is using large memory as this memory size default setting can be too small. One way to address this problem is to set a larger heap size. - For catalina.bat there now should be a line in the file that looks like this: {{{ set JAVA_OPTS=-Xms256m -Xmx256m }}} + If you start Tomcat by using the standard '''script files''' (such as `CATALINA_HOME/bin/catalina.bat` or `catalina.sh`), this can be done by setting `CATALINA_OPTS` environment variable. The recommended way to do so is to create a `setenv.bat` or `setenv.sh` file, — read [[http://tomcat.apache.org/tomcat-7.0-doc/RUNNING.txt|RUNNING.txt]] for details. - For catalina.sh: {{{ JAVA_OPTS='-Xms256m -Xmx256m' }}} + Let say you want to increase it to 256 MB (as you required but make sure you have enough amount of physical memory/RAM and for 32bit system, use no more than 1.0-1.1 GB heap space size ). Set the `CATALINA_OPTS` to the value of {{{-Xms256m -Xmx256m}}}. In some cases it is better to set slightly lower size for `-Xms`. - For other parameters , go to * http://wiki.apache.org/tomcat/FAQ/Memory * http://wiki.apache.org/tomcat/OutOfMemory + For `setenv.bat` use the following line: {{{ set CATALINA_OPTS=-Xms256m -Xmx256m }}} <> + For `setenv.sh` use the following: {{{ CATALINA_OPTS='-Xms256m -Xmx256m' }}} - and Google and Yahoo are your friends. + There are other parameters that can be added, depending on your application and requirements, e.g: {{{'-XX:MaxPermSize'}}}. + + For other parameters, look at the following pages: + + * [[FAQ/Memory]] + * [[OutOfMemory]] + + If you are running Tomcat as a '''Windows service''', then environment variables and `setenv.bat` script have no effect. The relevant settings for the service wrapper application are stored in the Windows registry. They can be edited via Configuration application (`tomcatw.exe`). See "Java" tab in the configuration dialog. The`-Xms` and `-Xmx` options are configured in fields named "Initial memory pool" and "Maximum memory pool". Other options can be added to "Java Options" field as if they were specified on the command line of java executable. == How do I make my web application be the Tomcat default application? == Congratulations. You have created and tested a first web application (traditionally called "mywebapp"), users can access it via the URL "http://myhost.company.com/mywebapp";. You are very proud and satisfied. But now, how do you change the setup, so that "mywebapp" gets called when the user enters the URL "http://myhost.company.com"; ? - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[jira] [Commented] (MTOMCAT-190) Client Certificate settings for connector
[ https://issues.apache.org/jira/browse/MTOMCAT-190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13569655#comment-13569655 ] Marcel Silberhorn commented on MTOMCAT-190: --- hi again [~olamy], thank you for this deep link and: It works as expected..great! Thank you very much! > Client Certificate settings for connector > - > > Key: MTOMCAT-190 > URL: https://issues.apache.org/jira/browse/MTOMCAT-190 > Project: Apache Tomcat Maven Plugin > Issue Type: Improvement > Components: tomcat7 >Affects Versions: 2.0 >Reporter: Marcel Silberhorn >Assignee: Olivier Lamy (*$^¨%`£) > Labels: connector > Fix For: 2.1 > > > currently there seems to be no way to configure SSL connector settings like > clientAuth what make it useless for certain certificate login tests and I > always need a second, manually installed instance of Tomcat for this but I'm > not able to just run {{tomcat7:run}} > So it would be great so see some clientCert options in an upcoming version! -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "HowTo" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "HowTo" page has been changed by KonstantinKolinko: http://wiki.apache.org/tomcat/HowTo?action=diff&rev1=127&rev2=128 Comment: Add a warning. There should be a better recipe somewhere in the mailing list archives. Context context = (Context) host.findChild("myContext"); Realm realm = context.getRealm(); }}} + + '''Warning:''' The above recipe on how to obtain a `Context` for a web application is a bit obsolete and does not work in Tomcat 7 and later (as Server is no longer a singleton). There are other ways to achieve that. An easy one is to add a `Valve` or `Listener` to a context, as those classes have access to Tomcat internals. There may be other ways mentioned in the archives of the [[FAQ/Tomcat_User|users mailing list]]. + == How do I redirect System.out and System.err to my web page? == I have met a situation where I needed to redirect a portion of standard ouput (`System.out`, STDOUT) and standard error (`System.err`, STDERR) to my web page instead of a log file. An example of such an application is a compiler research platform that our resarch team is putting online for anybody to be able to quickly compile-test their programs on line. Naturally, the compilers dump some of their stuff to STDERR or STDOUT and they are not web application `.jar`. Thus, I needed badly these streams related to the compiler output to be redirected to my web editor interface. Having found no easy instructions on how to do that lead me writing up this quick HOWTO. The HOWTO is based on Servlets, but similar arrangements can be done for JSPs. The below example shows the essentials, with most non-essentials removed. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
svn commit: r1441824 - /tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/common/fmt/SetLocaleSupport.java
Author: jboynes Date: Sat Feb 2 22:47:11 2013 New Revision: 1441824 URL: http://svn.apache.org/viewvc?rev=1441824&view=rev Log: clean up IDE warnings Modified: tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/common/fmt/SetLocaleSupport.java Modified: tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/common/fmt/SetLocaleSupport.java URL: http://svn.apache.org/viewvc/tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/common/fmt/SetLocaleSupport.java?rev=1441824&r1=1441823&r2=1441824&view=diff == --- tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/common/fmt/SetLocaleSupport.java (original) +++ tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/common/fmt/SetLocaleSupport.java Sat Feb 2 22:47:11 2013 @@ -19,9 +19,10 @@ package org.apache.taglibs.standard.tag. import java.text.DateFormat; import java.text.NumberFormat; +import java.util.ArrayList; import java.util.Enumeration; +import java.util.List; import java.util.Locale; -import java.util.Vector; import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletRequest; @@ -92,7 +93,7 @@ public abstract class SetLocaleSupport e @Override public int doEndTag() throws JspException { -Locale locale = null; +Locale locale; if (value == null) { locale = Locale.getDefault(); @@ -147,10 +148,10 @@ public abstract class SetLocaleSupport e */ public static Locale parseLocale(String locale, String variant) { -Locale ret = null; +Locale ret; String language = locale; String country = null; -int index = -1; +int index; if (((index = locale.indexOf(HYPHEN)) > -1) || ((index = locale.indexOf(UNDERSCORE)) > -1)) { @@ -239,7 +240,7 @@ public abstract class SetLocaleSupport e boolean format, Locale[] avail) { -LocalizationContext locCtxt = null; +LocalizationContext locCtxt; // Get formatting locale from enclosing Tag parent = findAncestorWithClass(fromTag, BundleSupport.class); @@ -272,7 +273,7 @@ public abstract class SetLocaleSupport e * (in order of preference) against the available formatting * locales, and determining the best matching locale. */ -Locale match = null; +Locale match; Locale pref = getLocale(pc, Config.FMT_LOCALE); if (pref != null) { // Preferred locale is application-based @@ -304,22 +305,16 @@ public abstract class SetLocaleSupport e static { Locale[] dateLocales = DateFormat.getAvailableLocales(); Locale[] numberLocales = NumberFormat.getAvailableLocales(); -Vector vec = new Vector(dateLocales.length); -for (int i = 0; i < dateLocales.length; i++) { -for (int j = 0; j < numberLocales.length; j++) { -if (dateLocales[i].equals(numberLocales[j])) { -vec.add(dateLocales[i]); +List locales = new ArrayList(dateLocales.length); +for (Locale dateLocale : dateLocales) { +for (Locale numberLocale : numberLocales) { +if (dateLocale.equals(numberLocale)) { +locales.add(dateLocale); break; } } } -availableFormattingLocales = new Locale[vec.size()]; -availableFormattingLocales = (Locale[]) vec.toArray(availableFormattingLocales); -/* -for (int i=0; i
[Tomcat Wiki] Update of "HowTo" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "HowTo" page has been changed by KonstantinKolinko: http://wiki.apache.org/tomcat/HowTo?action=diff&rev1=128&rev2=129 Comment: Add "try" and "finally" PrintStream oStdOutBackup = System.out; PrintStream oStdErrBackup = System.err; + try { + - // Redired STDOUT and STDERR to the ServletOuputStream + // Redired STDOUT and STDERR to the ServletOutputStream - System.setOut(new PrintStream(out)); + System.setOut(new PrintStream(out)); - System.setErr(new PrintStream(out)); + System.setErr(new PrintStream(out)); - - try + try { - { // ... call compiler here that produces // tons of STDOUT/STDERR messages ... + } catch(Exception e) { + out.println(e); + } + + } finally { + + // Restore original STDOUT and STDERR + System.setOut(oStdOutBackup); + System.setErr(oStdErrBackup); + } - catch(Exception e) - { - out.println(e); - } - - // Restore original STDOUT and STDERR - System.setOut(oStdOutBackup); - System.setErr(oStdErrBackup); out.println(""); out.println(""); - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "HowTo" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "HowTo" page has been changed by KonstantinKolinko: http://wiki.apache.org/tomcat/HowTo?action=diff&rev1=129&rev2=130 Comment: Add note, update a link } } }}} - A few caveats arise, as for instance while the `System.out` and `System.err` are redirected as per above, no logging of these is done to files. You will need more legwork to do to make the additional logging. It is important to backup and restore the original streams as the above example does. Also, notice the use of `getOutputStream()`: when this method is called, the `getWriter()` method can no longer be used in the same response object. + A few caveats arise, as for instance while the `System.out` and `System.err` are redirected as per above, no logging of these is done to files. You will need more legwork to do to make the additional logging. It is important to backup and restore the original streams as the above example does. The servlet should not be used to process several requests in parallel (some synchronization should be added to the above code to prevent that). Also, notice the use of `getOutputStream()`: when this method is called, the `getWriter()` method can no longer be used in the same response object. Corrections and comments are most welcome! == How do I connect to a Websphere MQ (MQ Series) server using JMS and JNDI? == - Basically, this works just as described in http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html: Within your application, you are using the standard JNDI and JMS API calls. In web.xml (the container independent application descriptor), you specify resource references (stub resources). And in context.xml (the container specific application descriptor), you are actually configuring the JMS connection. + Basically, this works just as described in http://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howto.html: Within your application, you are using the standard JNDI and JMS API calls. In web.xml (the container independent application descriptor), you specify resource references (stub resources). And in context.xml (the container specific application descriptor), you are actually configuring the JMS connection. More to the point. Here's some example code, which might be added to a Servlet. The example is sending a message to an MQ server: - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "UsingDataSources" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "UsingDataSources" page has been changed by KonstantinKolinko: http://wiki.apache.org/tomcat/UsingDataSources?action=diff&rev1=5&rev2=6 Comment: Correct path and Tomcat version. Add category link. The usual procedure requires the application developer to set up a !DataSource in the web application server, specifying the driver class, JDBC URL (connect string), username, password, and various pooling options. Then, the developer must reference the !DataSource in his application's web.xml configuration file, and then access it properly in his servlet or JSP. Particularly during development, setting all of this up is tedious and error-prone. - With Tomcat 5.5, the process is vastly simplified. Tomcat allows you to configure !DataSources for your J2EE web application + With Tomcat the process is vastly simplified. Tomcat allows you to configure !DataSources for your J2EE web application in a context.xml file that is stored in your web application project. You don't have to mess with configuring the !DataSource separately in the Tomcat server.xml, or referencing it in your application's web.xml file. Here's how: === Install the JDBC Driver === - Install the .jar file(s) containing the JDBC driver in Tomcat's common/lib folder. You do not need to put them in your application's WEB-INF/lib folder. When working with J2EE !DataSources, the web application server manages connections for your application. + Install the .jar file(s) containing the JDBC driver in Tomcat's `$CATALINA_BASE/lib` folder. You do not need to put them in your application's `WEB-INF/lib` folder. When working with J2EE !DataSources, the web application server manages connections for your application. === Create META-INF/context.xml === @@ -76, +76 @@ === Please Note === - This technique is Tomcat-specific. If you deploy your web application to another application server (or even an older version of Tomcat), you will need to configure the database according to your application server's documentation, and reference it in your application's web.xml. + This technique is Tomcat-specific. If you deploy your web application to another application server, you will need to configure the database according to your application server's documentation, and reference it in your application's web.xml. + + [[CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "TomcatHibernate" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "TomcatHibernate" page has been changed by KonstantinKolinko: http://wiki.apache.org/tomcat/TomcatHibernate?action=diff&rev1=5&rev2=6 Comment: Add category link at the bottom of the page * Requires MySQL connectors to be in WEB-INF/lib (ideally) * Requires the Hibernate jars to be in WEB-INF/lib + + [[CategoryFAQ]] + - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "TomcatDataSourceRealms" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "TomcatDataSourceRealms" page has been changed by KonstantinKolinko: http://wiki.apache.org/tomcat/TomcatDataSourceRealms?action=diff&rev1=1&rev2=2 Comment: Add category link, s/CATALINA_HOME/CATALINA_BASE/ * [[http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html#JDBC%20Data%20Sources|JDBC Data Sources]] === IMPORTANT NOTE === - Using a JNDI JDBC data source resource requires the JDBC driver to be visible to Tomcat. Thus, the JDBC driver needs to be placed in $CATALINA_HOME/lib (for Tomcat 6). Once this is done, '''do not put this driver in the application's WEB-INF/lib directory'''. + Using a JNDI JDBC data source resource requires the JDBC driver to be visible to Tomcat. Thus, the JDBC driver needs to be placed in $CATALINA_BASE/lib (for Tomcat 6). Once this is done, '''do not put this driver in the application's WEB-INF/lib directory'''. The second component is the actual Realm. Documentation for setting this up can be found in the following locations: @@ -91, +91 @@ * Everything in META-INF/context.xml which provides an application - specific configuration * !GlobalNamingResources and META-INF/context.xml which provides for multiple applications selectively using authentication - * Everything in $CATALINA_HOME/conf/server.xml which provides a global Host or Engine configuration + * Everything in $CATALINA_BASE/conf/server.xml which provides a global Host or Engine configuration == Everything in META-INF/context.xml == This is appropriate when each web application might use different authentication and authorization databases. This is also the simplest configuration to manage, since all configuration elements are in one location. Finally, this configuration will produce the most portable (between Tomcat installations) war file. @@ -170, +170 @@ 1. Add Resource element to META-INF/context.xml 1. Add Realm element to META-INF/context.xml - == Resource in $CATALINA_HOME/conf/server.xml and Realm in META-INF/context.xml == + == Resource in $CATALINA_BASE/conf/server.xml and Realm in META-INF/context.xml == - This configuration can be appropriate when multiple applications need to use the same authentication and authorization database. The JNDI resource is described in the !GlobalNamingResources element of $CATALINA_HOME/conf/server.xml. Each application that requires authentication and authorization via this resource should a Realm definition in META-INF/context.xml referencing the global name. + This configuration can be appropriate when multiple applications need to use the same authentication and authorization database. The JNDI resource is described in the !GlobalNamingResources element of $CATALINA_BASE/conf/server.xml. Each application that requires authentication and authorization via this resource should a Realm definition in META-INF/context.xml referencing the global name. === Resource Element === The Resource element used in the !GlobalNamingResources is the same one that is described above. The only difference is its placement. Below is the default !GlobalNamingResources element (without comments) as shipped with Tomcat 6. @@ -185, +185 @@ pathname="conf/tomcat-users.xml" /> }}} - Adding the authentication and authorization resource to the above default implementation creates the following !GlobalNamingResources element in $CATALINA_HOME/conf/server.xml. + Adding the authentication and authorization resource to the above default implementation creates the following !GlobalNamingResources element in $CATALINA_BASE/conf/server.xml. {{{ @@ -210, +210 @@ }}} This entry makes the authentication and authorization database available to all applications by referencing the JNDI name jdbc/auth. - '''NOTE:''' In order to make the new Resource available, Tomcat will have to be restarted once the $CATALINA_HOME/conf/server.xml file has been modified. + '''NOTE:''' In order to make the new Resource available, Tomcat will have to be restarted once the $CATALINA_BASE/conf/server.xml file has been modified. === Realm Element === Finally, in order for the web application to use this authentication and authorization resource, a Realm element needs to be added to META-INF/context.xml. An example is shown below. @@ -227, +227 @@ Items to note are listed below. * '''localDataSource="true"''' is no longer present, since the Resource is no longer local. - * '''dataSourceName''' refers to the name of the Resource element in $CATALINA_HOME/conf/server.xml + * '''dataSourceName''' refers to the name of the Resource element in $CATALINA_BASE/conf/server.xml === Completed META-INF/context.xml === The completed META-INF/context.xml file is shown below. @@ -246, +246 @@ }}} === Summary for GlobalNamingResources and META-INF/context.
[Tomcat Wiki] Update of "HowTo" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "HowTo" page has been changed by KonstantinKolinko: http://wiki.apache.org/tomcat/HowTo?action=diff&rev1=130&rev2=131 Comment: Remove dead link. (The target site is occupied by a squatter). TOMCAT_HOME\bin\>catalina jpda start }}} * Use your IDE to connect to Tomcat through port 1044 - - If Eclipse happens to be your IDE of choice, you can get more information at [[http://www.jacoozi.com/index.php?option=com_content&task=view&id=119&Itemid=134|Remote Debugging with Eclipse (Jacoozi Article)]]. See also: [[FAQ/Developing]] - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
[Tomcat Wiki] Update of "HowTo" by KonstantinKolinko
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The "HowTo" page has been changed by KonstantinKolinko: http://wiki.apache.org/tomcat/HowTo?action=diff&rev1=131&rev2=132 Comment: Remove dead link. (The target site is occupied by a squatter). * Use your IDE to connect to Tomcat through port 1044 - If Eclipse happens to be your IDE of choice, you can get more information at [[http://www.jacoozi.com/index.php?option=com_content&task=view&id=119&Itemid=134|Remote Debugging with Eclipse (Jacoozi Article)]]. For IntelliJ IDEA you choose a remote debug target and set transport to "socket" and mode to "attach" , then you specify the host (127.0.0.1) and port (1044) + For IntelliJ IDEA you choose a remote debug target and set transport to "socket" and mode to "attach" , then you specify the host (127.0.0.1) and port (1044) + + See also: [[FAQ/Developing]] == How do I check whether Tomcat is UP or DOWN? There is no status command == Unfortunately, the `org.apache.catalina.util.ServerInfo` class does not determine if Tomcat is UP or DOWN. It is possible to do an HTTP GET on the root url but this is not accurate. In my case I sometimes use a regular Apache HTTPd to display a maintainence message while upgrading, etc. and using that method would give false positives. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
svn commit: r1441837 - /tomcat/taglibs/standard/trunk/impl/src/test/java/org/apache/taglibs/standard/tag/common/fmt/LocaleUtilTest.java
Author: jboynes Date: Sat Feb 2 23:38:56 2013 New Revision: 1441837 URL: http://svn.apache.org/viewvc?rev=1441837&view=rev Log: add tests for SetLocaleSupport parseLocale function prior to refactor Added: tomcat/taglibs/standard/trunk/impl/src/test/java/org/apache/taglibs/standard/tag/common/fmt/LocaleUtilTest.java (with props) Added: tomcat/taglibs/standard/trunk/impl/src/test/java/org/apache/taglibs/standard/tag/common/fmt/LocaleUtilTest.java URL: http://svn.apache.org/viewvc/tomcat/taglibs/standard/trunk/impl/src/test/java/org/apache/taglibs/standard/tag/common/fmt/LocaleUtilTest.java?rev=1441837&view=auto == --- tomcat/taglibs/standard/trunk/impl/src/test/java/org/apache/taglibs/standard/tag/common/fmt/LocaleUtilTest.java (added) +++ tomcat/taglibs/standard/trunk/impl/src/test/java/org/apache/taglibs/standard/tag/common/fmt/LocaleUtilTest.java Sat Feb 2 23:38:56 2013 @@ -0,0 +1,75 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.taglibs.standard.tag.common.fmt; + +import junit.framework.Assert; +import org.junit.Ignore; +import org.junit.Test; + +import java.util.Locale; + +public class LocaleUtilTest { + +private static final Locale DEFAULT = Locale.getDefault(); + +@Test +@Ignore("original causes NPE") +public void testUsesDefaultIfNull() { +Assert.assertEquals(DEFAULT, SetLocaleSupport.parseLocale(null, null)); +} + +@Test +@Ignore("original results in IllegalArgumentException") +public void testUsesDefaultIfEmpty() { +Assert.assertEquals(DEFAULT, SetLocaleSupport.parseLocale("", null)); +} + +@Test +public void testLocaleWithLanguage() { +Assert.assertEquals(new Locale("fr"), SetLocaleSupport.parseLocale("fr", null)); +} + +@Test +public void testLocaleUsingHyphen() { +Assert.assertEquals(new Locale("en", "DE"), SetLocaleSupport.parseLocale("en-DE", null)); +} + +@Test +public void testLocaleUsingUnderscore() { +Assert.assertEquals(new Locale("en", "IE"), SetLocaleSupport.parseLocale("en_IE", null)); +} + +@Test +public void testLocaleWithLanguageVariant() { +Assert.assertEquals(new Locale("fr", "", "xxx"), SetLocaleSupport.parseLocale("fr", "xxx")); +} + +@Test +public void testLocaleWithLanguageCountryVariant() { +Assert.assertEquals(new Locale("en", "GB", "cockney"), SetLocaleSupport.parseLocale("en-GB", "cockney")); +} + +@Test(expected = IllegalArgumentException.class) +public void testEmptyLanguageIsInvalid() { +SetLocaleSupport.parseLocale("-GB", null); +} + +@Test(expected = IllegalArgumentException.class) +public void testEmptyCountryIsInvalid() { +SetLocaleSupport.parseLocale("en-", null); +} +} Propchange: tomcat/taglibs/standard/trunk/impl/src/test/java/org/apache/taglibs/standard/tag/common/fmt/LocaleUtilTest.java -- svn:eol-style = native - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
svn commit: r1441843 - in /tomcat/taglibs/standard/trunk: impl/src/main/java/org/apache/taglibs/standard/tag/common/fmt/ impl/src/main/java/org/apache/taglibs/standard/tag/rt/fmt/ impl/src/test/java/o
Author: jboynes Date: Sun Feb 3 00:43:10 2013 New Revision: 1441843 URL: http://svn.apache.org/viewvc?rev=1441843&view=rev Log: refactor parsing of attributes used to specify a locale Added: tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/common/fmt/LocaleUtil.java (with props) Modified: tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/common/fmt/SetLocaleSupport.java tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/rt/fmt/ParseDateTag.java tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/rt/fmt/ParseNumberTag.java tomcat/taglibs/standard/trunk/impl/src/test/java/org/apache/taglibs/standard/tag/common/fmt/LocaleUtilTest.java (contents, props changed) tomcat/taglibs/standard/trunk/jstlel/src/main/java/org/apache/taglibs/standard/tag/el/fmt/ParseDateTag.java tomcat/taglibs/standard/trunk/jstlel/src/main/java/org/apache/taglibs/standard/tag/el/fmt/ParseNumberTag.java Added: tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/common/fmt/LocaleUtil.java URL: http://svn.apache.org/viewvc/tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/common/fmt/LocaleUtil.java?rev=1441843&view=auto == --- tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/common/fmt/LocaleUtil.java (added) +++ tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/common/fmt/LocaleUtil.java Sun Feb 3 00:43:10 2013 @@ -0,0 +1,103 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.taglibs.standard.tag.common.fmt; + +import org.apache.taglibs.standard.resources.Resources; + +import java.util.Locale; + +/** + * Utility functions for working with Locales. + * + * This implementation sticks with the Locale parsing rules defined by the JSTL Specification. + * When permitted, this should be updated to use the richer Locale parsing rules provided + * in Java 7 and later. + * + */ +public class LocaleUtil { +private static final char HYPHEN = '-'; +private static final char UNDERSCORE = '_'; + +/** + * Handles Locales that can be passed to tags as instances of String or Locale. + * If the parameter is an instance of Locale, it is simply returned. + * If the parameter is a String and is not empty, then it is parsed to a Locale + * using {@link LocaleUtil#parseLocale(String)}. + * Otherwise null will be returned. + * + * @param stringOrLocale locale represented as an instance of Locale or as a String + * @return the locale represented by the parameter, or null if the parameter is undefined + */ +public static Locale parseLocale(Object stringOrLocale) { +if (stringOrLocale instanceof Locale) { +return (Locale) stringOrLocale; +} else if (stringOrLocale instanceof String) { +String string = (String) stringOrLocale; +if (string.length() == 0) { +return null; +} else { +return parseLocale(string.trim()); +} +} else { +return null; +} +} + +/** + * See parseLocale(String, String) for details. + */ +public static Locale parseLocale(String locale) { +return parseLocale(locale, null); +} + +/** + * Parses the given locale string into its language and (optionally) + * country components, and returns the corresponding {@link Locale} object. + * + * @param locale the locale string to parse; must not be null or empty + * @param variant the variant + * @return the specified Locale + * @throws IllegalArgumentException if the given locale does not have a + * language component or has an empty country component + */ +public static Locale parseLocale(String locale, String variant) { + +String language; +String country; +int index; + +if (((index = locale.indexOf(HYPHEN)) > -1) || ((index = locale
svn commit: r1441847 - in /tomcat/taglibs/standard/trunk: impl/src/main/java/org/apache/taglibs/standard/tag/common/fmt/ impl/src/main/java/org/apache/taglibs/standard/tag/rt/fmt/ jstlel/src/main/java
Author: jboynes Date: Sun Feb 3 00:56:19 2013 New Revision: 1441847 URL: http://svn.apache.org/viewvc?rev=1441847&view=rev Log: rename method to make purpose clearer Modified: tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/common/fmt/LocaleUtil.java tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/rt/fmt/ParseDateTag.java tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/rt/fmt/ParseNumberTag.java tomcat/taglibs/standard/trunk/jstlel/src/main/java/org/apache/taglibs/standard/tag/el/fmt/ParseDateTag.java tomcat/taglibs/standard/trunk/jstlel/src/main/java/org/apache/taglibs/standard/tag/el/fmt/ParseNumberTag.java Modified: tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/common/fmt/LocaleUtil.java URL: http://svn.apache.org/viewvc/tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/common/fmt/LocaleUtil.java?rev=1441847&r1=1441846&r2=1441847&view=diff == --- tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/common/fmt/LocaleUtil.java (original) +++ tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/common/fmt/LocaleUtil.java Sun Feb 3 00:56:19 2013 @@ -43,7 +43,7 @@ public class LocaleUtil { * @param stringOrLocale locale represented as an instance of Locale or as a String * @return the locale represented by the parameter, or null if the parameter is undefined */ -public static Locale parseLocale(Object stringOrLocale) { +public static Locale parseLocaleAttributeValue(Object stringOrLocale) { if (stringOrLocale instanceof Locale) { return (Locale) stringOrLocale; } else if (stringOrLocale instanceof String) { Modified: tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/rt/fmt/ParseDateTag.java URL: http://svn.apache.org/viewvc/tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/rt/fmt/ParseDateTag.java?rev=1441847&r1=1441846&r2=1441847&view=diff == --- tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/rt/fmt/ParseDateTag.java (original) +++ tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/rt/fmt/ParseDateTag.java Sun Feb 3 00:56:19 2013 @@ -76,7 +76,7 @@ public class ParseDateTag extends ParseD // 'parseLocale' attribute public void setParseLocale(Object loc) throws JspTagException { -Locale locale = LocaleUtil.parseLocale(loc); +Locale locale = LocaleUtil.parseLocaleAttributeValue(loc); if (loc != null) { this.parseLocale = locale; } Modified: tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/rt/fmt/ParseNumberTag.java URL: http://svn.apache.org/viewvc/tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/rt/fmt/ParseNumberTag.java?rev=1441847&r1=1441846&r2=1441847&view=diff == --- tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/rt/fmt/ParseNumberTag.java (original) +++ tomcat/taglibs/standard/trunk/impl/src/main/java/org/apache/taglibs/standard/tag/rt/fmt/ParseNumberTag.java Sun Feb 3 00:56:19 2013 @@ -58,7 +58,7 @@ public class ParseNumberTag extends Pars // 'parseLocale' attribute public void setParseLocale(Object loc) throws JspTagException { -Locale locale = LocaleUtil.parseLocale(loc); +Locale locale = LocaleUtil.parseLocaleAttributeValue(loc); if (loc != null) { this.parseLocale = locale; } Modified: tomcat/taglibs/standard/trunk/jstlel/src/main/java/org/apache/taglibs/standard/tag/el/fmt/ParseDateTag.java URL: http://svn.apache.org/viewvc/tomcat/taglibs/standard/trunk/jstlel/src/main/java/org/apache/taglibs/standard/tag/el/fmt/ParseDateTag.java?rev=1441847&r1=1441846&r2=1441847&view=diff == --- tomcat/taglibs/standard/trunk/jstlel/src/main/java/org/apache/taglibs/standard/tag/el/fmt/ParseDateTag.java (original) +++ tomcat/taglibs/standard/trunk/jstlel/src/main/java/org/apache/taglibs/standard/tag/el/fmt/ParseDateTag.java Sun Feb 3 00:56:19 2013 @@ -191,7 +191,7 @@ public class ParseDateTag extends ParseD if (parseLocale_ != null) { Object obj = ExpressionEvaluatorManager.evaluate( "parseLocale", parseLocale_, Object.class, this, pageContext); -Locale locale = LocaleUtil.parseLocale(obj); +Locale locale = LocaleUtil.parseLocaleAttributeValue(obj); if (locale != null)
[Bug 54513] NullPointerException in AprEndpoint$Poller.run
https://issues.apache.org/bugzilla/show_bug.cgi?id=54513 --- Comment #15 from Mladen Turk --- Attrs should be fine now. -- 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
Bug report for Taglibs [2013/02/03]
+---+ | Bugzilla Bug ID | | +-+ | | Status: UNC=Unconfirmed NEW=New ASS=Assigned| | | OPN=ReopenedVER=Verified(Skipped Closed/Resolved) | | | +-+ | | | Severity: BLK=Blocker CRI=Critical REG=Regression MAJ=Major | | | | MIN=Minor NOR=NormalENH=Enhancement TRV=Trivial | | | | +-+ | | | | Date Posted | | | | | +--+ | | | | | Description | | | | | | | |38193|Ass|Enh|2006-01-09|[RDC] BuiltIn Grammar support for Field | |38600|Ass|Enh|2006-02-10|[RDC] Enable RDCs to be used in X+V markup (X+RDC)| |42413|New|Enh|2007-05-14|[PATCH] Log Taglib enhancements | |46052|New|Nor|2008-10-21|SetLocaleSupport is slow to initialize when many l| |48333|New|Enh|2009-12-02|TLD generator | +-+---+---+--+--+ | Total5 bugs | +---+ - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Bug report for Tomcat Connectors [2013/02/03]
+---+ | Bugzilla Bug ID | | +-+ | | Status: UNC=Unconfirmed NEW=New ASS=Assigned| | | OPN=ReopenedVER=Verified(Skipped Closed/Resolved) | | | +-+ | | | Severity: BLK=Blocker CRI=Critical REG=Regression MAJ=Major | | | | MIN=Minor NOR=NormalENH=Enhancement TRV=Trivial | | | | +-+ | | | | Date Posted | | | | | +--+ | | | | | Description | | | | | | | |34526|Opn|Nor|2005-04-19|Truncated content in decompressed requests from mo| |35959|Opn|Enh|2005-08-01|mod_jk not independant of UseCanonicalName| |43303|New|Enh|2007-09-04|Versioning under Windows not reported by many conn| |43968|Inf|Enh|2007-11-26|[patch] support ipv6 with mod_jk | |44290|Inf|Nor|2008-01-24|mod_jk/1.2.26: retry is not useful for an importan| |44349|Inf|Maj|2008-02-04|mod_jk/1.2.26 module does not read worker.status.s| |44379|New|Enh|2008-02-07|convert the output of strftime into UTF-8 | |44454|New|Nor|2008-02-19|busy count reported in mod_jk inflated, causes inc| |44571|New|Enh|2008-03-10|Limits busy per worker to a threshold | |45063|New|Nor|2008-05-22|JK-1.2.26 IIS ISAPI filter issue when running diff| |45313|New|Nor|2008-06-30|mod_jk 1.2.26 & apache 2.2.9 static compiled on so| |46337|New|Nor|2008-12-04|real worker name is wrong | |46676|New|Enh|2009-02-09|Configurable test request for Watchdog thread | |46767|New|Enh|2009-02-25|mod_jk to send DECLINED in case no fail-over tomca| |47327|New|Enh|2009-06-07|remote_user not logged in apache logfile | |47617|Inf|Enh|2009-07-31|include time spent doing ajp_get_endpoint() in err| |47678|New|Cri|2009-08-11|Unable to allocate shared memory when using isapi_| |47714|New|Cri|2009-08-20|Reponse mixed between users | |47750|New|Maj|2009-08-27|Loss of worker settings when changing via jkstatus| |47795|New|Maj|2009-09-07|service sticky_session not being set correctly wit| |47840|Inf|Min|2009-09-14|A broken worker name is written in the log file. | |48191|New|Maj|2009-11-13|Problem with mod_jk 1.2.28 - Can not render up the| |48460|New|Nor|2009-12-30|mod_proxy_ajp document has three misleading portio| |48490|New|Nor|2010-01-05|Changing a node to stopped in uriworkermap.propert| |48513|New|Enh|2010-01-09|IIS Quick setup instructions | |48564|New|Nor|2010-01-18|Unable to turn off retries for LB worker | |48830|New|Nor|2010-03-01|IIS shutdown blocked in endpoint service when serv| |48891|Opn|Enh|2010-03-11|Missing EOL-style settings in tomcat/jk/trunk | |49035|New|Maj|2010-04-01|data lost when post a multipart/form-data form| |49063|New|Enh|2010-04-07|Please add JkStripSession status in jk-status work| |49135|New|Enh|2010-04-16|SPDY Connector for The Tomcat | |49469|New|Enh|2010-06-19|Workers status page has negative number of connect| |49732|Opn|Nor|2010-08-10|reply_timeout can't wait forever. | |49822|New|Enh|2010-08-25|Add hash lb worker method | |49903|New|Enh|2010-09-09|Make workers file reloadable | |50186|New|Nor|2010-10-31|Wrong documentation of connection_pool_timeout / c| |52334|New|Maj|2011-12-14|recover_time is not properly used | |52483|New|Enh|2012-01-18|Print JkOptions's options in log file and jkstatus| |52651|New|Nor|2012-02-13|JKSHMFile size limitation | |53324|Opn|Nor|2012-05-30|Starting with mod_jk 1.2.35 I cannot modify worker| |53542|New|Min|2012-07-13|Spelling mistake on 503 service unavailable page | |53762|New|Nor|2012-08-22|JK status manager: mass nodes handling doesn't wor| |53883|New|Maj|2012-09-17|isapi_redirect v 1.2.37 crashes w3wp.exe on the p| |53977|New|Maj|2012-10-07|32bits isapi connector cannot work in wow64 mode | |54027|New|Cri|2012-10-18|isapi send request to outside address instead of i| |54112|Opn|Blk|2012-11-07|ISAPI redirector not working when IIS recycles| |54117|New|Maj|2012-11-08|access violation exception in isapi_redirect.dll | |54177|New|Nor|2012-11-20|jkmanager generates non-well-formed XML for certai| +-+---+---+--+--+ | Total 48 bugs | +---+ --
Bug report for Tomcat 8 [2013/02/03]
+---+ | Bugzilla Bug ID | | +-+ | | Status: UNC=Unconfirmed NEW=New ASS=Assigned| | | OPN=ReopenedVER=Verified(Skipped Closed/Resolved) | | | +-+ | | | Severity: BLK=Blocker CRI=Critical REG=Regression MAJ=Major | | | | MIN=Minor NOR=NormalENH=Enhancement TRV=Trivial | | | | +-+ | | | | Date Posted | | | | | +--+ | | | | | Description | | | | | | | |53737|Opn|Enh|2012-08-18|Use ServletContext.getJspConfigDescriptor() in Jas| |53930|New|Enh|2012-09-24|allow capture of catalina stdout/stderr to a comma| |53987|New|Enh|2012-10-09|Log uncovered HTTP methods in combined security co| |54095|New|Enh|2012-11-03|[patch] support gzipped versions of static resourc| |54475|New|Maj|2013-01-23|SMAP broken in Java 8 for JSP compile | |54503|New|Enh|2013-01-29|SAML2 based single sign on| +-+---+---+--+--+ | Total6 bugs | +---+ - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Bug report for Tomcat 6 [2013/02/03]
+---+ | Bugzilla Bug ID | | +-+ | | Status: UNC=Unconfirmed NEW=New ASS=Assigned| | | OPN=ReopenedVER=Verified(Skipped Closed/Resolved) | | | +-+ | | | Severity: BLK=Blocker CRI=Critical REG=Regression MAJ=Major | | | | MIN=Minor NOR=NormalENH=Enhancement TRV=Trivial | | | | +-+ | | | | Date Posted | | | | | +--+ | | | | | Description | | | | | | | |41679|New|Enh|2007-02-22|SemaphoreValve should be able to filter on url pat| |41883|Ass|Enh|2007-03-18|use abstract wrapper instead of plain X509Certific| |43001|New|Enh|2007-07-30|JspC lacks setMappedFile and setDie for use in Ant| |43400|New|Enh|2007-09-14|enum support for tag libs | |43548|Opn|Enh|2007-10-04|xml schema for tomcat-users.xml | |43682|New|Enh|2007-10-23|JULI: web-inf/classes/logging.properties to suppor| |43742|New|Enh|2007-10-30|.tag compiles performed one at a time -- extremel| |43979|New|Enh|2007-11-27|Add abstraction for Java and Classfile output | |44199|New|Enh|2008-01-10|expose current backlog queue size | |44225|New|Enh|2008-01-14|SSL connector tries to load the private keystore f| |44294|New|Enh|2008-01-25|Support for EL functions with varargs | |44645|New|Enh|2008-03-20|[Patch] JNDIRealm - Doesn't support JNDI "java.nam| |44787|New|Enh|2008-04-09|provide more error context on "java.lang.IllegalSt| |44818|New|Enh|2008-04-13|tomcat hangs with GET when content-length is defin| |45014|New|Enh|2008-05-15|Request and Response classes should have wrappers | |45282|New|Enh|2008-06-25|NioReceiver doesn't close cleanly, leaving sockets| |45428|New|Enh|2008-07-18|warn if the tomcat stop doesn't complete | |45832|New|Enh|2008-09-18|add DIGEST authentication support to Ant tasks| |45878|New|Enh|2008-09-24|Generated jars do not contain proper manifests or | |45879|Opn|Enh|2008-09-24|Windows installer fails to install NOTICE and RELE| |45931|Opn|Enh|2008-10-01|trimSpaces incorrectly modifies output| |46173|New|Enh|2008-11-09|Small patch for manager app: Setting an optional c| |46263|New|Enh|2008-11-21|Tomcat reloading of context.xml does not update do| |46284|New|Enh|2008-11-24|Add flag to DeltaManager that blocks processing cl| |46350|New|Enh|2008-12-05|Maven repository should contain source bundles| |46727|New|Enh|2009-02-17|DefaultServlet - serving multiple encodings | |46902|New|Enh|2009-03-24|LoginValve to bypass restrictions of j_security_ch| |47214|New|Enh|2009-05-17|Inner classes that are explicitly referenced - sho| |47242|New|Enh|2009-05-22|request for AJP command line client | |47281|New|Enh|2009-05-28|Efficiency of the JDBCStore | |47407|New|Enh|2009-06-23|HttpSessionListener doesn't operate in the session| |47467|New|Enh|2009-07-02|Deployment of the war file by URL when contextpath| |47834|New|Enh|2009-09-14|TldConfig throws Exception when exploring unpacked| |47919|New|Enh|2009-09-30|Log Tomcat & Java environment variables in additio| |48358|Opn|Enh|2009-12-09|JSP-unloading reloaded| |48543|New|Enh|2010-01-14|[Patch] More flexibility in specifying -Dcatalina.| |48672|New|Enh|2010-02-03|Tomcat Virtual Host Manager (/host-manager) have b| |48674|New|Enh|2010-02-03|Tomcat Virtual Host Manager application doesn't pe| |48743|New|Enh|2010-02-15|Make the SLEEP variable in catalina.sh settable fr| |48899|New|Enh|2010-03-12|Guess URI charset should solve lot of problems| |48922|New|Enh|2010-03-16|org.apache.catalina.connector.Request clone static| |48928|New|Enh|2010-03-17|An alternative solution to preloading classes when| |49161|New|Enh|2010-04-21|Unknown Publisher when installing tomcat 6.0.26 | |49176|Opn|Enh|2010-04-23|Jasper in Dev Mode Is Memory Inefficient | |49464|New|Enh|2010-06-18|DefaultServlet and CharacterEncoding | |49531|New|Enh|2010-06-30|singlesignon failover not working on DeltaManager/| |49804|New|Enh|2010-08-23|Allow Embedded.redirectStreams value to be configu| |49939|New|Enh|2010-09-16|Expose a method via JMX which empties the webapp f| |49943|New|Enh|2010-09-16|Logging (via juli) does not reread configuration c| |50285|New|Enh|2010-11-17|Standard HTTP and AJP connectors silently ignore a| |50288|New|Enh|2010-11-17|Uploading a war file that already exists should au| |50692|
Bug report for Tomcat 7 [2013/02/03]
+---+ | Bugzilla Bug ID | | +-+ | | Status: UNC=Unconfirmed NEW=New ASS=Assigned| | | OPN=ReopenedVER=Verified(Skipped Closed/Resolved) | | | +-+ | | | Severity: BLK=Blocker CRI=Critical REG=Regression MAJ=Major | | | | MIN=Minor NOR=NormalENH=Enhancement TRV=Trivial | | | | +-+ | | | | Date Posted | | | | | +--+ | | | | | Description | | | | | | | |16579|New|Enh|2003-01-30|documentation page layout/style breaks wrapping to| |18500|New|Enh|2003-03-30|Host aliases to match by regular expression | |28039|Opn|Enh|2004-03-30|Cluster Support for SingleSignOn | |40728|Inf|Enh|2006-10-11|Catalina MBeans use non-serializable classes | |40881|Opn|Enh|2006-11-02|Unable to receive message through TCP channel -> | |41007|Opn|Enh|2006-11-20|Can't define customized 503 error page| |43866|New|Enh|2007-11-14|add support for session attribute propagation with| |43925|Opn|Enh|2007-11-21|org.apache.jasper.runtime.BodyContentImpl causing | |44216|New|Enh|2008-01-11|Don't reuse session ID even if emptySessionPath=tr| |48550|Inf|Enh|2010-01-14|Update examples and default server.xml to use UTF-| |49395|New|Enh|2010-06-06|manager.findLeaks : display the date when the leak| |49589|New|Enh|2010-07-12|Tag handlers with constant attribute values are al| |49785|New|Enh|2010-08-19|Enabling TLS for JNDIRealm| |49821|New|Enh|2010-08-25|Tomcat CLI| |50019|New|Enh|2010-09-28|Adding JNDI "lookup-name" support In XML and Resou| |50175|New|Enh|2010-10-28|Enhance memory leak detection by selectively apply| |50234|New|Enh|2010-11-08|JspC use servlet 3.0 features | |50504|New|Enh|2010-12-21|Allow setting query string character set trough re| |50670|New|Enh|2011-01-27|Tribes | RpcChannel | Add option to specify extern| |51195|New|Enh|2011-05-13|"Find leaks" reports a false positive memory/class| |51294|Opn|Enh|2011-05-30|Since 7.0.12 do not work option unpackWARs=true fo| |51423|Inf|Enh|2011-06-23|[Patch] to add a path and a version parameters to | |51463|New|Enh|2011-07-01|Tomcat.setBaseDir (package org.apache.catalina.st| |51496|New|Enh|2011-07-11|NSIS - Warn that duplicate service name will resul| |51497|New|Enh|2011-07-11|Use canonical IPv6 text representation in logs| |51526|New|Enh|2011-07-18|Process web application context config with embedd| |51587|New|Enh|2011-07-29|Implement status and uptime commands | |51953|New|Enh|2011-10-04|Proposal: netmask filtering valve and filter | |52092|New|Enh|2011-10-26|Please make AsyncFileHandler and OneLineFormatter | |52235|New|Enh|2011-11-23|Please do a bit of SEO tuning for the web site| |52236|New|Enh|2011-11-23|Idea: support 'overlays' shaped like Maven overlay| |52323|New|Enh|2011-12-13|Cobertura test code coverage support for build.xml| |52381|New|Enh|2011-12-22|Please add OSGi metadata | |52448|New|Enh|2012-01-11|Cache jar indexes in WebappClassLoader to speed up| |52489|New|Enh|2012-01-19|Enhancement request for code signing of war files | |52558|New|Enh|2012-01-30|CometConnectionManagerValve is adding non-serializ| |52688|New|Enh|2012-02-16|Add ability to remove old access log files| |52751|Opn|Enh|2012-02-23|Optimized configuration of the system info display| |52952|New|Enh|2012-03-20|Improve ExtensionValidator handling for embedded s| |53085|New|Enh|2012-04-16|[perf] [concurrency] DefaultInstanceManager.annota| |53387|New|Enh|2012-06-08|SSI: Allow to use $1 to get result of regular expr| |53411|Opn|Enh|2012-06-13|NullPointerException in org.apache.tomcat.util.buf| |53469|Inf|Nor|2012-06-26|possible bug in Response.normalize(CharChunk cc) | |53492|New|Enh|2012-07-01|Make JspC shell multithreaded | |53553|New|Enh|2012-07-16|[PATCH] Deploy uploaded WAR with context.xml from | |53602|New|Enh|2012-07-25|Support for HTTP status code 451 | |53620|New|Enh|2012-07-30|[juli] delay opening a file until something gets l| |53665|New|Enh|2012-08-06|Minor JNDI Howto document enhancement concerning m| |53776|New|Enh|2012-08-24|Multitenancy support for JDBCRealm| |53777|New|Enh|2012-08-24|Ability to bundle JAAS Configuration in Webappp | |54013|New|Enh|2012-10-16|Catalina.sh force kill to wait till process exits | |54083|
Bug report for Tomcat Native [2013/02/03]
+---+ | Bugzilla Bug ID | | +-+ | | Status: UNC=Unconfirmed NEW=New ASS=Assigned| | | OPN=ReopenedVER=Verified(Skipped Closed/Resolved) | | | +-+ | | | Severity: BLK=Blocker CRI=Critical REG=Regression MAJ=Major | | | | MIN=Minor NOR=NormalENH=Enhancement TRV=Trivial | | | | +-+ | | | | Date Posted | | | | | +--+ | | | | | Description | | | | | | | |46179|Opn|Maj|2008-11-10|apr ssl client authentication | |48655|Inf|Nor|2010-02-02|Active multipart downloads prevent tomcat shutdown| |49038|Inf|Nor|2010-04-02|Crash in tcnative | |51655|New|Nor|2011-08-12|Index page does not say what native does | |51813|New|Cri|2011-09-14|Tomcat randomly crashes with [libtcnative-1.so.1+0| |52153|New|Maj|2011-11-08|periodic JVM crash (access violation) on buffer fl| |52231|New|Nor|2011-11-23|Ant Tasks need to reflect changes in manager comma| |52319|New|Maj|2011-12-12|Tomcat 6 crashes with [libapr-1.so.0+0x196da] sig| |52627|New|Min|2012-02-08|Segmentation fault in org.apache.tomcat.jni.File.i| |53110|New|Cri|2012-04-20|Access Violation Error while creating SHM | |53605|New|Nor|2012-07-26|use tcnative-1.1.24 Tomcat shutdown still crash | |53847|Inf|Nor|2012-09-10|High CPU usage in tomcat native 1.22+ | |53937|New|Reg|2012-09-26|Double call to apr_pool_destroy() if OCSP checking| |53940|New|Enh|2012-09-27|Added support for new CRL loading after expiration| |53952|New|Nor|2012-10-02|Add support for TLS 1.1 and 1.2 | |54085|New|Nor|2012-11-01|ssl_socket_recv sometimes loops infinitely with no| +-+---+---+--+--+ | Total 16 bugs | +---+ - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Bug report for Tomcat Modules [2013/02/03]
+---+ | Bugzilla Bug ID | | +-+ | | Status: UNC=Unconfirmed NEW=New ASS=Assigned| | | OPN=ReopenedVER=Verified(Skipped Closed/Resolved) | | | +-+ | | | Severity: BLK=Blocker CRI=Critical REG=Regression MAJ=Major | | | | MIN=Minor NOR=NormalENH=Enhancement TRV=Trivial | | | | +-+ | | | | Date Posted | | | | | +--+ | | | | | Description | | | | | | | |48240|New|Nor|2009-11-19|Tomcat-Lite missing @Override markers | |48268|New|Nor|2009-11-23|Patch to fix generics in tomcat-lite | |48861|New|Nor|2010-03-04|Files without AL headers | |49685|New|Nor|2010-08-02|Unsafe synchronization in class ManagedBean | |49686|New|Nor|2010-08-02|Using an instance lock to protect static shared da| |50571|Inf|Nor|2011-01-11|Tomcat 7 JDBC connection pool exception enhancemen| |51595|Inf|Nor|2011-08-01|org.apache.tomcat.jdbc.pool.jmx.ConnectionPool sho| |51879|Inf|Enh|2011-09-22|Improve access to Native Connection Methods | |52024|Inf|Enh|2011-10-13|Custom interceptor to support automatic failover o| |52318|Opn|Cri|2011-12-11|Version in tomcat-jdbc POM is conflicted with Vers| |53088|Opn|Min|2012-04-17|Give PoolCleaner TimerTask a better name | |53198|New|Cri|2012-05-07|'driverClassName' Data Source Property Being Manda| |53199|Inf|Enh|2012-05-07|Refactor ConnectionPool to use ScheduledExecutorSe| |53200|New|Enh|2012-05-07|Be able to use SlowQueryReport without reporting f| |53770|New|Enh|2012-08-23|tomcat-pool: always log validation query syntax er| |53853|New|Nor|2012-09-11|Can tomcat-jdbc consider Thread#getContextClassLoa| |53905|New|Nor|2012-09-19|Connection pool not reusing connections. | |53968|New|Nor|2012-10-04|Database password is exposed via JMX in getDbPrope| |54225|New|Nor|2012-11-30|if initSQL property is set to an empty string a Nu| |54227|New|Nor|2012-11-30|maxAge should be checked on borrow| |54235|New|Nor|2012-12-03|tomcat jdbc pool stackoverflow error used with spr| |54337|New|Nor|2012-12-21|StatementCache leaks statements/cursors | |54395|New|Nor|2013-01-09|JdbcInterceptor config parameter parsing errors | |54437|New|Enh|2013-01-16|Update PoolProperties javadoc for ConnectState int| +-+---+---+--+--+ | Total 24 bugs | +---+ - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org