[jboss-user] [Beginners Corner] - Another war file deployment error :)

leonidMir do-not-reply at jboss.com
Mon Apr 7 18:42:59 EDT 2008


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?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142209#4142209

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142209



More information about the jboss-user mailing list