7 Replies Latest reply on Dec 30, 2003 8:05 AM by javamac

    How To Replace Tomcat w/Jetty In 3.2.2

    dligda

      Hi,

      I would like to replace the Tomcat container with Jetty in 3.2.2. It appears to be more complicated than deleting 'jbossweb-tomcat41.sar' and replacing it with the Jetty .sar.

      Anyone know what else needs to be changed for this replacement?

      Thanks.

      David

        • 1. Re: How To Replace Tomcat w/Jetty In 3.2.2
          jonlee

          It shouldn't be more complicated than that. I've done exactly that with my 3.2.2 and it works fine - the source distribution provides a jetty-plugin.sar that I have renamed jbossweb-jetty.sar. What exactly seems to be the problem?

          • 2. Re: How To Replace Tomcat w/Jetty In 3.2.2
            kryptontri

            Hi jonlee,

            May i ask, do you find jetty faster than tomcat ? Which do you find more flexible/faster ?

            Thanks

            K

            • 3. Re: How To Replace Tomcat w/Jetty In 3.2.2
              jonlee

              In terms of response, they seem to be on a par. However, Jetty has configuration flexibilities with JBoss such as temp file re-mapping to prevent JSP recompilation on reboot.

              The non-blocking I/O (not provided on the bundled Jetty) for Jetty could also provide some performance boost under load. There are a bunch of it depends clauses depending on what you are serving. See the http://www.webperformanceinc.com/library/ServletReport/ for more details.

              Jetty does have a smaller memory footprint. Tomcat has some additional features depending on whether you need them. As with all these things, YMMV depending on your needs and your content composition and your load.

              • 4. Re: How To Replace Tomcat w/Jetty In 3.2.2
                dligda

                johlee,

                >the source distribution provides a jetty-plugin.sar that I have renamed jbossweb-jetty.sar.

                My mistake was not renaming the sar properly to jbossweb-jetty.sar. I was using the Jetty 4.2.14rc1 sar from the mortbay site and creating a sar of the same name. Unzipping it to jbossweb-jetty.sar worked like a charm.

                Thank you very much.

                David

                • 5. Re: How To Replace Tomcat w/Jetty In 3.2.2
                  mmcnamee

                  Is this ( http://prdownloads.sourceforge.net/jboss/jboss-3.2.2_jetty-4.2.11.zip ) an *official* JBoss release, it's come from the Jboss sourceforge download area.

                  • 6. Re: How To Replace Tomcat w/Jetty In 3.2.2
                    jonlee

                    These are official releases. Tomcat is now the default servlet container for JBoss so releases will normally come out first with the Tomcat bundle. However, AFAIK Jetty will still continue to be supported as well. It is just that Tomcat seems the more popular of requested download. However, some people like me still prefer Jetty for a variety of reasons.

                    • 7. Re: How To Replace Tomcat w/Jetty In 3.2.2
                      javamac

                      Ive deleted jbossweb-tomcat.sar and dropped the jboss-3.2-jetty-4.2.15.sar directory inside jboss-3.2.1_tomcat-4.1.24/server/default/deploy/jboss-3.2-jetty-4.2.15.sar and all my ear files deploy and run fine. The problem im having is with expanded war files like jmx-console. When I try to execute their url via a browser, Im getting a 500 error. Is there more configuration that I have to do?