Friday March 02, 2007
Upgrading to Tomcat 6
Erik did it, so I tried it as well. This site is now running Tomcat 6.0.10 and it has to be the least painful major Tomcat upgrade I've ever done. By major, I mean upgrading from one version number (5.5.17) to the next. Apparently, no XML files changed (like they did from 4.1.x -> 5.0.x -> 5.5.x) because I was able to copy over conf/server.xml and conf/Catalina/** without any issues. The only change I had to make was to copy commons-logging.jar from Roller's WEB-INF/lib to JSPWiki's.
I have seen a couple of the following errors in my log files since I upgraded, so if you see any strange behavior, please let me know.
2-Mar-2007 12:36:10 AM org.apache.tomcat.util.http.Parameters processParameters
WARNING: Parameters: Character decoding failed. Parameter skipped.
java.io.CharConversionException: EOF
at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:83)
at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:49)
at org.apache.tomcat.util.http.Parameters.urlDecode(Parameters.java:410)
at org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java:392)
at org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java:508)
at org.apache.tomcat.util.http.Parameters.handleQueryParameters(Parameters.java:266)
at org.apache.catalina.connector.Request.parseParameters(Request.java:2404)
at org.apache.catalina.connector.Request.getParameterValues(Request.java:1089)
at org.apache.catalina.connector.RequestFacade.getParameterValues(RequestFacade.java:396)
at javax.servlet.ServletRequestWrapper.getParameterValues(ServletRequestWrapper.java:189)
at org.acegisecurity.wrapper.SavedRequestAwareWrapper.getParameter(SavedRequestAwareWrapper.java:325)
at org.apache.roller.ui.rendering.velocity.deprecated.OldPageRequest.(OldPageRequest.java:164)
at org.apache.roller.ui.rendering.velocity.deprecated.RedirectServlet.figurePageRedirect(RedirectServlet.java:285)
at org.apache.roller.ui.rendering.velocity.deprecated.RedirectServlet.doGet(RedirectServlet.java:131)
I tested AppFuse 2.0 on Tomcat 6.0.10 earlier today and impressed that 1) Cargo worked perfectly and 2) most of the web frameworks worked. Which one didn't? You guessed it - good ol' JSF. That's OK though, the JSF version of AppFuse (MyFaces 1.1.5 with Facelets 1.1.11) doesn't work with Jetty 6.1.1 either. The good news is I found a workaround - removing the el-api dependency from my pom.xml makes it work on both.
<dependency>
<groupId>javax.el</groupId>
<artifactId>el-api</artifactId>
<version>1.2</version>
</dependency>
If I remove this dependency, everything works fine on Tomcat 6.0.10 and Jetty 6.1.1. Unfortunately, it seems this dependency is needed for Tomcat 5.x. Hopefully some fancy stuff with Maven profiles can fix this incompatibility. Posted in Java at Mar 02 2007, 12:44:46 AM MST 9 Comments
Search This Site
Recent Entries
- Fantastic Fun in Jackson Hole
- How We Hired a Team of 10 in 2 Months
- Jack's Skiing Like A Madman!
- My Future of Web Frameworks Presentation
- My Guest Room Remodel is finished!
- Web Application Testing with Selenium by Jason Huggins
- Web Application Testing with Selenium at Agile Denver next Monday
- 17" MacBook Pro Stolen from Living Room
- Using JRebel with IntelliJ IDEA on OS X
- Reviews for Grails: A Quick-Start Guide and Kanban and Scrum
Posted by Remm on March 02, 2007 at 04:55 AM MST #
Posted by David Rabinowitz on March 03, 2007 at 03:16 AM MST #
Posted by magomarcelo on March 04, 2007 at 05:18 PM MST #
There was also a discussion about Tomcat on TSS (aparently APR is super fast :) ), but I would believe more results from Appfuse :).
Thank you,
D.
Posted by Demetrios Kyriakis on March 07, 2007 at 03:58 AM MST #
Posted by rupan on March 28, 2007 at 06:53 AM MDT #
Posted by mark_k on April 05, 2007 at 09:39 PM MDT #
Posted by mark_k on April 06, 2007 at 06:05 AM MDT #
Posted by Nigel in NZ on May 27, 2007 at 06:40 PM MDT #
Posted by tony on July 19, 2007 at 10:20 AM MDT #