1 Reply Latest reply on Jun 9, 2005 10:27 AM by Luca Stancapiano

    jdk1.5.0 and tomcat 5.5.9

    Luca Stancapiano Apprentice

      hi.....I've installed jboss 4.0.2 with jdk 1.5.0_03 and I dont't succeed to use the jdk1.5 features in my JSP while the servlets accept finely them .....when I use autoboxing in a jsp I've this error. It seems that jasper compiler is back to jdk1.4 :


      11:27:35,095 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
      org.apache.jasper.JasperException: Unable to compile class for JSP
      
      An error occurred at line: 22 in the jsp file: /pages/TablePre.jsp
      Generated servlet error:
      Type mismatch: cannot convert from int to Integer
      
      An error occurred at line: 25 in the jsp file: /pages/TablePre.jsp
      Generated servlet error:
      Type mismatch: cannot convert from Integer to int
      
      
       at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
       at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
       at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)
       at org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
       at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
       at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
       at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
       at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
       at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
       at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
       at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
       at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
       at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:604)
       at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:101)
       at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:137)
       at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:758)
       at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:890)
       at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460)
       at org.apache.jsp.pages.Table_jsp._jspx_meth_tiles_get_2(org.apache.jsp.pages.Table_jsp:221)
       at org.apache.jsp.pages.Table_jsp._jspx_meth_html_html_0(org.apache.jsp.pages.Table_jsp:132)
       at org.apache.jsp.pages.Table_jsp._jspService(org.apache.jsp.pages.Table_jsp:73)
       at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
       at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
       at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
       at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
       at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
       at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)
       at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:261)
       at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:237)
       at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:300)
       at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
       at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
       at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
       at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
       at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
       at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
       at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)
       at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:261)
       at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388)
       at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:316)
       at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
       at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
       at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
       at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
       at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
       at java.lang.Thread.run(Thread.java:595)
      11:27:35,119 ERROR [InsertTag] ServletException in '/pages/TablePromotore.jsp': Unable to compile class for JSP
      



      in my jsp I use:

      <% Integer i=0; %>