4 Replies Latest reply on Oct 8, 2004 11:23 AM by otisg

    JBoss 3.2.5 & Jetty combination?

    otisg

      Hello,

      I've got JBoss 3.2.3 with Jetty (jboss-3.2.3_jetty-4.2.14) and was going to upgrade to the latest JBoss in version 3 series - JBoss 3.2.5. However, it appears that there is no distribution that comes with Jetty any more.

      Does anyone know what it takes to replace Tomcat with Jetty in 3.2.5 version?
      I see that the Jetty team released a JBoss 3.2.5 + Jetty 5.0.0 SAR (http://sourceforge.net/project/showfiles.php?group_id=7322&package_id=68203).

      Is this just a drop-in, or does one need to change some of the JBoss XML descriptors after removing JBossWeb/Tomcat SAR and replacing it with the above Jetty one?

      Thanks,
      Otis

        • 1. Re: JBoss 3.2.5 & Jetty combination?
          frankgrimes

          Simply dropping in a correct jetty-jboss.sar (built against the right version of jboss) and deleting the tomcat sar is all you should need to do.

          • 2. Re: JBoss 3.2.5 & Jetty combination?
            otisg

            Hello,

            I tried just replacing the SARs, but I'm getting this error:

            javax.servlet.ServletException: javax.servlet.jsp.JspException: String index out of range: -1
            at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:821)
            at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)


            This results in "HTTP ERROR: 500".

            Any ideas what could be wrong?

            Thanks,
            Otis

            • 3. Re: JBoss 3.2.5 & Jetty combination?
              frankgrimes

              In moving from jetty-4.2.14 to jetty-5.0.0, you are moving from a servlet 2.3 to a servlet 2.4 web container. (and probably a different Jasper version too JSP 1.2 v.s JSP 2.0)

              Do you get the same error with jetty-4.2.22-jboss-3.2.5.sar?
              If so, you might want to take this up on the Jetty forums.

              Since Jboss no longer ships with Jetty, they are less inclined to help out with this than the Jetty people.
              I've found the Jetty developers very helpful and responsive in my experience.

              • 4. Re: JBoss 3.2.5 & Jetty combination?
                otisg

                Aha! I didnn't realize Jetty 5.0.0 was using Servlet 2.4 API. Thanks for pointing this out. In the mean time, I notied that using JSTL's c:import was the cause of the above error. I wonder if there is JSTL for Servlet 2.4 API available from Jakarta Taglibs project.