8 Replies Latest reply on Apr 10, 2008 9:56 AM by jaikiran

    Another war file deployment error :)

    leonidmir

      Hi all,
      I am just starting with JBOSS, so be easy with me :).
      I deployed a .war file (using ant) with the following structure:
      queot.war:
      - queote.jsp
      + META-INF
      - MANIFEST.MF
      + META-INF
      - web.xml
      + lib
      - jstl.jar
      - standard.jar

      After the deployement I am trying to access the following url:
      http://localhost:8080/quote/quote

      And get the following error:

      org.apache.jasper.JasperException: Unable to compile class for JSP:
      
      An error occurred at line: 18 in the jsp file: /quote.jsp
      Arrays cannot be resolved
      15: "Everything that is really great and inspiring is created by" +
      16: "the individual who can labor in freedom"
      17: };
      18: ArrayList list = new ArrayList(Arrays.asList(quotes));
      19: Random r = new Random( );
      20: int x = r.nextInt(list.size( ));
      21: String saying = (String)list.get(x);
      
      
      Stacktrace:
       org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
       org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
       org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
       org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
       org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
       org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
       org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
       org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312)
       org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      
      


      I suspect it is something with the importing of the relevant libraries.
      Someone can suggest?