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?
May i ask, do you find jetty faster than tomcat ? Which do you find more flexible/faster ?
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.
>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.
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.
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?