5 Replies Latest reply on Mar 25, 2003 12:24 PM by Denise Oliveira

    Jetty JSP Compile Problem

    Sean Radford Novice

      Platform: Linux and Windows 2000
      JBoss: 3.0.1RC1 with Jetty

      I have a simple JSP which when it is being compile produces the following error:

      HTTP ERROR: 500 Unable to compile class for JSP C:\DOCUME~1\sradford\LOCALS~1\Temp\Jetty__8080___survey\Login\survey$jsp.java:76: Incompatible type for method. Explicit cast needed to convert java.lang.Throwable to java.lang.Exception. if (pageContext != null) pageContext.handlePageException(t); ^ 1 error

      The Java source being generated for the problem JSP is (the offending line being a few lines from the end):

      package org.apache.jsp;

      import javax.servlet.*;
      import javax.servlet.http.*;
      import javax.servlet.jsp.*;
      import org.apache.jasper.runtime.*;


      public class survey$jsp extends HttpJspBase {


      static {
      }
      public survey$jsp( ) {
      }

      private static boolean _jspx_inited = false;

      public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
      }

      public void _jspService(HttpServletRequest request, HttpServletResponse response)
      throws java.io.IOException, ServletException {

      JspFactory _jspxFactory = null;
      PageContext pageContext = null;
      HttpSession session = null;
      ServletContext application = null;
      ServletConfig config = null;
      JspWriter out = null;
      Object page = this;
      String _value = null;
      try {

      if (_jspx_inited == false) {
      synchronized (this) {
      if (_jspx_inited == false) {
      _jspx_init();
      _jspx_inited = true;
      }
      }
      }
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html;charset=ISO-8859-1");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      "../Error/error.jsp", true, 8192, true);

      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();

      // HTML // begin [file="/Login/survey.jsp";from=(0,46);to=(1,0)]
      out.write("\r\n");

      // end
      // begin [file="/Login/survey.jsp";from=(1,2);to=(3,0)]

      String surveyId = request.getParameter("survey_id");
      // end
      // HTML // begin [file="/Login/survey.jsp";from=(3,2);to=(10,37)]
      out.write("\r\n\r\n \r\n\t<frameset rows=\"0,*,0\" frameborder=\"0\" border=\"0\" framespacing=\"0\">\r\n\t\t<frame scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" src=\"./blank.htm\">\r\n\t\t<frameset rows=\"0,*,0\" frameborder=\"0\" border=\"0\" framespacing=\"0\">\r\n\t\t\t<frame scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" src=\"./blank.htm\">\r\n\t\t\t<frame src=\"./index.jsp?survey_id=");

      // end
      // begin [file="/Login/survey.jsp";from=(10,40);to=(10,50)]
      out.print( surveyId );
      // end
      // HTML // begin [file="/Login/survey.jsp";from=(10,52);to=(19,0)]
      out.write("\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\">\r\n\t\t\t<frame scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" src=\"./blank.htm\">\r\n\t\t\r\n\t\t<frame scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" src=\"./blank.htm\">\r\n\t\r\n\r\n\r\n\r\n\r\n");

      // end

      } catch (Throwable t) {
      if (out != null && out.getBufferSize() != 0)
      out.clearBuffer();
      if (pageContext != null) pageContext.handlePageException(t);
      } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
      }
      }
      }

      Is this a bug? Or am I somehow causing it?

      Regards,

      Sean


        • 1. Re: Jetty JSP Compile Problem
          Sean Radford Novice

          My fault!!

          Well not exactly.

          The war I had been provided with contained a copy of j2ee.jar!!! (and an old version that did not have an oveloaded handleException method in PageContext).


          Arghhh


          Sean

          • 2. Re: Jetty JSP Compile Problem
            Denise Oliveira Newbie

            Please...

            I'm having the same problem! I'm not using JBoss with Tomcat. I'm using Jboss 3.0.6 in win 2k.

            I’ve tried to put j2ee12.jar into classpath, but it generated another problem at server.log (that comes below).

            Do I have to use JBoss with Tomcat or am I missing something at configuration?

            I'd appreciate some help. I've already read the past messages, but haven’t found a way to solve the problem.

            Thank you in advance.

            Denise.
            ++++++++++++

            2003-03-25 10:36:31,341 ERROR [org.jboss.deployment.MainDeployer] could not start deployment: file:/C:/jboss-3.0.6/server/default/deploy/http-invoker.sar/invoker.war/
            java.lang.NoSuchMethodError
            at org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.java:202)
            at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:139)
            at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:350)
            at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:265)
            at org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
            at org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:426)
            at org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:150)
            at org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:490)
            at org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.java:85)
            at org.jboss.jetty.Jetty.deploy(Jetty.java:368)
            at org.jboss.jetty.JettyService.performDeploy(JettyService.java:249)
            at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
            at org.jboss.deployment.MainDeployer.addDeployer(MainDeployer.java:230)
            at java.lang.reflect.Method.invoke(Native Method)
            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
            at org.jboss.deployment.SubDeployerSupport.startService(SubDeployerSupport.java:98)
            at org.jboss.jetty.JettyService.startService(JettyService.java:178)
            at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
            at java.lang.reflect.Method.invoke(Native Method)
            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
            at $Proxy4.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:413)
            at java.lang.reflect.Method.invoke(Native Method)
            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
            at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
            at $Proxy2.start(Unknown Source)
            at org.jboss.deployment.SARDeployer.start(SARDeployer.java:230)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
            at java.lang.reflect.Method.invoke(Native Method)
            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
            at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
            at $Proxy3.deploy(Unknown Source)
            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:656)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:261)
            at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
            at java.lang.reflect.Method.invoke(Native Method)
            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:413)
            at java.lang.reflect.Method.invoke(Native Method)
            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
            at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
            at $Proxy2.start(Unknown Source)
            at org.jboss.deployment.SARDeployer.start(SARDeployer.java:230)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:575)
            at java.lang.reflect.Method.invoke(Native Method)
            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:325)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:222)
            at org.jboss.Main.boot(Main.java:148)
            at org.jboss.Main$1.run(Main.java:381)
            at java.lang.Thread.run(Thread.java:484)

            • 3. Re: Jetty JSP Compile Problem
              Denise Oliveira Newbie

              Please...

              I'm having the same problem! I'm not using JBoss with Tomcat. I'm using Jboss 3.0.6 in win 2k.

              I’ve tried to put j2ee12.jar into classpath, but it generated another problem at server.log (that comes below).

              Do I have to use JBoss with Tomcat or am I missing something at configuration?

              I'd appreciate some help. I've already read the past messages, but haven’t found a way to solve the problem.

              Thank you in advance.

              Denise.

              ++++++++++++++++++++

              2003-03-25 10:36:31,341 ERROR [org.jboss.deployment.MainDeployer] could not start deployment: file:/C:/jboss-3.0.6/server/default/deploy/http-invoker.sar/invoker.war/
              java.lang.NoSuchMethodError
              at org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.java:202)
              at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:139)
              at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:350)
              at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:265)
              at org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
              at org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:426)
              at org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:150)
              at org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:490)
              at org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.java:85)
              at org.jboss.jetty.Jetty.deploy(Jetty.java:368)
              at org.jboss.jetty.JettyService.performDeploy(JettyService.java:249)
              at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
              at org.jboss.deployment.MainDeployer.addDeployer(MainDeployer.java:230)
              at java.lang.reflect.Method.invoke(Native Method)
              at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
              at org.jboss.deployment.SubDeployerSupport.startService(SubDeployerSupport.java:98)
              at org.jboss.jetty.JettyService.startService(JettyService.java:178)
              at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
              at java.lang.reflect.Method.invoke(Native Method)
              at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
              at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
              at $Proxy4.start(Unknown Source)
              at org.jboss.system.ServiceController.start(ServiceController.java:413)
              at java.lang.reflect.Method.invoke(Native Method)
              at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
              at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
              at $Proxy2.start(Unknown Source)
              at org.jboss.deployment.SARDeployer.start(SARDeployer.java:230)
              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
              at java.lang.reflect.Method.invoke(Native Method)
              at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
              at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
              at $Proxy3.deploy(Unknown Source)
              at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
              at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:656)
              at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:261)
              at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
              at java.lang.reflect.Method.invoke(Native Method)
              at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
              at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
              at $Proxy0.start(Unknown Source)
              at org.jboss.system.ServiceController.start(ServiceController.java:413)
              at java.lang.reflect.Method.invoke(Native Method)
              at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
              at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
              at $Proxy2.start(Unknown Source)
              at org.jboss.deployment.SARDeployer.start(SARDeployer.java:230)
              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:575)
              at java.lang.reflect.Method.invoke(Native Method)
              at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
              at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:325)
              at org.jboss.system.server.ServerImpl.start(ServerImpl.java:222)
              at org.jboss.Main.boot(Main.java:148)
              at org.jboss.Main$1.run(Main.java:381)
              at java.lang.Thread.run(Thread.java:484)

              • 4. Re: Jetty JSP Compile Problem
                Denise Oliveira Newbie

                Please...

                I'm having the same problem! I'm not using JBoss with Tomcat. I'm using Jboss 3.0.6 in win 2k.

                I’ve tried to put j2ee12.jar into classpath, but it generated another problem at server.log (that comes below).

                Do I have to use JBoss with Tomcat or am I missing something at configuration?

                I'd appreciate some help. I've already read the past messages, but haven’t found a way to solve the problem.

                Thank you in advance.

                Denise.

                ++++++++++++++++++++

                2003-03-25 10:36:31,341 ERROR [org.jboss.deployment.MainDeployer] could not start deployment: file:/C:/jboss-3.0.6/server/default/deploy/http-invoker.sar/invoker.war/
                java.lang.NoSuchMethodError
                at org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.java:202)
                at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:139)
                at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:350)
                at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:265)
                at org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
                at org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:426)
                at org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:150)
                at org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:490)
                at org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.java:85)
                at org.jboss.jetty.Jetty.deploy(Jetty.java:368)
                at org.jboss.jetty.JettyService.performDeploy(JettyService.java:249)
                at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
                at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
                at org.jboss.deployment.MainDeployer.addDeployer(MainDeployer.java:230)
                at java.lang.reflect.Method.invoke(Native Method)
                at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
                at org.jboss.deployment.SubDeployerSupport.startService(SubDeployerSupport.java:98)
                at org.jboss.jetty.JettyService.startService(JettyService.java:178)
                at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
                at java.lang.reflect.Method.invoke(Native Method)
                at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
                at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
                at $Proxy4.start(Unknown Source)
                at org.jboss.system.ServiceController.start(ServiceController.java:413)
                at java.lang.reflect.Method.invoke(Native Method)
                at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
                at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
                at $Proxy2.start(Unknown Source)
                at org.jboss.deployment.SARDeployer.start(SARDeployer.java:230)
                at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
                at java.lang.reflect.Method.invoke(Native Method)
                at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
                at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
                at $Proxy3.deploy(Unknown Source)
                at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
                at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:656)
                at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
                at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:261)
                at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
                at java.lang.reflect.Method.invoke(Native Method)
                at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
                at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
                at $Proxy0.start(Unknown Source)
                at org.jboss.system.ServiceController.start(ServiceController.java:413)
                at java.lang.reflect.Method.invoke(Native Method)
                at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
                at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
                at $Proxy2.start(Unknown Source)
                at org.jboss.deployment.SARDeployer.start(SARDeployer.java:230)
                at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:575)
                at java.lang.reflect.Method.invoke(Native Method)
                at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
                at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:325)
                at org.jboss.system.server.ServerImpl.start(ServerImpl.java:222)
                at org.jboss.Main.boot(Main.java:148)
                at org.jboss.Main$1.run(Main.java:381)
                at java.lang.Thread.run(Thread.java:484)

                • 5. Re: Jetty JSP Compile Problem
                  Denise Oliveira Newbie

                  I'm not using JBoss with Tomcat. I'm using Jboss 3.0.6 in win 2k.

                  And when I run my jsp I get this error:


                  HTTP ERROR: 500 Unable to compile class for JSP C:\DOCUME~1\DENISE~1\CONFIG~1\Temp\Jetty_0_0_0_0_8080__\index_0005flogin$jsp.java:6: Class or interface declaration expected. import javax.servlet.*; ^ C:\DOCUME~1\DENISE~1\CONFIG~1\Temp\Jetty_0_0_0_0_8080__\index_0005flogin$jsp.java:12: Superclass org.apache.jsp.HttpJspBase of class org.apache.jsp.index_0005flogin$jsp not found. public class index_0005flogin$jsp extends HttpJspBase { ^ 2 errors


                  I’ve tried to put j2ee12.jar into classpath, but it generated another problem at server.log (that comes below).

                  Do I have to use JBoss with Tomcat or am I missing something at configuration?

                  I'd appreciate some help. I've already read the past messages, but haven’t found a way to solve the problem.

                  Thank you in advance.

                  Denise.


                  +++++++++++++++++++++++


                  2003-03-25 10:36:31,341 ERROR [org.jboss.deployment.MainDeployer] could not start deployment: file:/C:/jboss-3.0.6/server/default/deploy/http-invoker.sar/invoker.war/
                  java.lang.NoSuchMethodError
                  at org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.java:202)
                  at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:139)
                  at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:350)
                  at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:265)
                  at org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
                  at org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:426)
                  at org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:150)
                  at org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:490)
                  at org.mortbay.j2ee.J2EEWebApplicationContext.start(J2EEWebApplicationContext.java:85)
                  at org.jboss.jetty.Jetty.deploy(Jetty.java:368)
                  at org.jboss.jetty.JettyService.performDeploy(JettyService.java:249)
                  at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
                  at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
                  at org.jboss.deployment.MainDeployer.addDeployer(MainDeployer.java:230)
                  at java.lang.reflect.Method.invoke(Native Method)
                  at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
                  at org.jboss.deployment.SubDeployerSupport.startService(SubDeployerSupport.java:98)
                  at org.jboss.jetty.JettyService.startService(JettyService.java:178)
                  at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
                  at java.lang.reflect.Method.invoke(Native Method)
                  at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
                  at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
                  at $Proxy4.start(Unknown Source)
                  at org.jboss.system.ServiceController.start(ServiceController.java:413)
                  at java.lang.reflect.Method.invoke(Native Method)
                  at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
                  at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
                  at $Proxy2.start(Unknown Source)
                  at org.jboss.deployment.SARDeployer.start(SARDeployer.java:230)
                  at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
                  at java.lang.reflect.Method.invoke(Native Method)
                  at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
                  at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
                  at $Proxy3.deploy(Unknown Source)
                  at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:435)
                  at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:656)
                  at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
                  at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:261)
                  at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
                  at java.lang.reflect.Method.invoke(Native Method)
                  at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
                  at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:1003)
                  at $Proxy0.start(Unknown Source)
                  at org.jboss.system.ServiceController.start(ServiceController.java:413)
                  at java.lang.reflect.Method.invoke(Native Method)
                  at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
                  at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
                  at $Proxy2.start(Unknown Source)
                  at org.jboss.deployment.SARDeployer.start(SARDeployer.java:230)
                  at org.jboss.deployment.MainDeployer.start(MainDeployer.java:814)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:627)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:575)
                  at java.lang.reflect.Method.invoke(Native Method)
                  at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
                  at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:325)
                  at org.jboss.system.server.ServerImpl.start(ServerImpl.java:222)
                  at org.jboss.Main.boot(Main.java:148)
                  at org.jboss.Main$1.run(Main.java:381)
                  at java.lang.Thread.run(Thread.java:484)