3 Replies Latest reply on Sep 24, 2002 6:15 PM by rganesan

    jsp error - enumeration

    rganesan Newbie

      I am doing a conversion from weblogic to jboss. my index.jsp page have a declaration for

      Enumeration enum = request.getParameterNames();

      and i am getting an error when I run this jsp page.

      error : class org.apache.jsp.Enumeration not found.

      Help

        • 1. Re: jsp error - enumeration
          Julian Gosnell Expert

          Do you want a java.util.Enumeration or an org.apache.jsp.Enumeration ?

          Try fully specifying the class name, or not importing with a '*'.

          If this is not your problem - please post the whole exception.

          Jules

          • 2. Re: jsp error - enumeration
            rganesan Newbie

            I copied the error ........

            org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.


            An error occurred between lines: 219 and 242 in the jsp file: /Web/gateway.jsp

            Generated servlet error:
            Y:\jboss-3.0.0_tomcat-4.0.3\catalina\work\localhost\Inview\Web\gateway$jsp.java:121: Class org.apache.jsp.Enumeration not found.
            Enumeration enum = request.getParameterNames();
            ^
            1 error, 1 warning

            at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
            at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
            at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
            at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
            at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
            at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
            at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
            at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
            at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
            at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
            at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
            at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
            at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
            at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
            at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
            at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
            at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
            at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
            at java.lang.Thread.run(Thread.java:536)

            • 3. Re: jsp error - enumeration
              rganesan Newbie

              i figured it out .... thanks