1 Reply Latest reply on Mar 30, 2010 1:35 AM by Debopam Poddar

    Jboss 5.1.0 jsp:root not working ...

    Debopam Poddar Newbie

      I am migrating application from Weblogic 8.1 to Jboss 5.1

       

      I am facing problem with the JSP rendering.

       

      My JSP source code is

       

       

      <%@ page contentType="text/html; charset=iso-8859-1" language="java"  errorPage="" %>
      <%@ taglib uri="/tags/struts-bean" prefix="bean" %>
      <%@ taglib uri="/tags/struts-html" prefix="html" %>
      <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
      <%@ taglib uri="http://gmacb.com/webui" prefix="ui" %>
      <bean:define
        id="model"
        type="com.gmacb.blt.web.contact.sales.pipeline.SalesPipelineModel"
        name="salesPipelineModel"
        scope="session"/>
      
      
      <jsp:root>
          <ui:head>
              <link rel="stylesheet" href="/contact/css/webui.css" type="text/css" rel="" />
              <script language="JavaScript" src="/contact/js/webui.js" type="text/javascript"></script>
              <script language="JavaScript">
                  function submitForDelete() {
                      if (confirm("Are you sure you want to delete the prospect(s)?"))
                      {
                          document.forms[0].action="/contact/deleteProspects.do";
                          document.forms[0].submit();
                      }
                  }
              </script>
          </ui:head>
          <ui:config imageFolder="/contact/images/">
          <body>
          <html:errors/>
              <br/>
                <html:form action="/salesListSearch.do" focus="salespipeline.company_name">
                  
                  <ui:pipeline label="Prospects List"
                               next="salesListSearch.do?next"
                               previos="salesListSearch.do?previos"
                              sort="salesListSearch.do"
                               list="%=model.getSalespipeline()%"
                 onclick="%=\"document.location.href='addProspects.do?prospects_id={prospect_id}'\"%">             
      
      
                            <ui:search action="salesListSearch.do" resetButton="yes">
                                        <ui:editColumn>
                                                           <ui:editItem label="Prospect ID:" >
                                                            <html:text  property="salespipeline.prospect_id"/>
                                                         </ui:editItem>
                                                      <ui:editItem label="Contact Last Name:" >
                                                             <html:text  property="salespipeline.lastname"/>
                                                      </ui:editItem>
                                                         <ui:editItem label="Contact First Name:" >
                                                            <html:text  property="salespipeline.firstname"/>
                                                         </ui:editItem>             
                                          </ui:editColumn>
                                              
                                           <ui:editColumn>
                                                      <ui:editItem label="Status:" >
                                                             <html:select property="salespipeline.status" >
                                                             <option>All</option>
                                                                      <html:options collection="statuslist" property="value" labelProperty="label"/>    
                                                                      <option>Converted</option>
                                                             </html:select>
                                                      </ui:editItem>
                                                         <ui:editItem label="Sales Director:" >
                                                                 <html:select property="salespipeline.salesdirector" >
                                                                                 <option>All</option>
                                                                      <html:options collection="salesDirectors" property="value" labelProperty="label"/>    
                                                             </html:select>
                                              
                                                            
                                                         </ui:editItem>             
                                                          <ui:editItem label="Company:" >
                                                             <html:text  property="salespipeline.company_name"/>
                                                         </ui:editItem>
      
      
                                          </ui:editColumn>
                 </ui:search>
      
      
                  <ui:security inRole="Contact Lead Manager">
                      <tr><td> </td></tr>
                      <tr><td align="center">
                          <html:button property="deleteButton" value="Delete" onclick="javascript:submitForDelete();"/>
                      </td></tr>
                  </ui:security>
      
      
                  <ui:pipelineColumn label="Prospect ID" property="prospect_id" sortable="yes" />
                  <ui:pipelineColumn label="Name" property="firstname" sortable="yes" />
                  <ui:pipelineColumn label="Company" property="company_name" sortable="yes" />
                  <ui:pipelineColumn label="Phone" property="businessphone" sortable="yes" />
                  <ui:pipelineColumn label="Status" property="status_reason" sortable="yes" />
                  <ui:pipelineColumn label="Status Date" property="statusdate" sortable="yes" />
                  <ui:pipelineColumn label="Sales Director" property="salesdirector" sortable="yes" />
      
      
              <ui:security inRole="Contact Lead Manager">   
                  <ui:pipelineColumn label="Dupe" property="canceldupe"  sortable="yes"
                      onclick="document.location.replace('cancelDupe.do?prospect_id={prospect_id}');"/>
                     <ui:pipelineColumnCheckbox label="Delete" property="prospect_id" />
              </ui:security> 
                 
      
      
                  </ui:pipeline>
      
      
              </html:form>
      
      
      
          </body>
          </ui:config>
      </jsp:root>
      
      

       

      and top.jsp source code is

       

       

      <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://gmacb.com/webui" version="1.2">
          <html>
              <ui:head>
                  <link rel="stylesheet" href="css/wholesale.css" type="text/css"/>
                  <script language="JavaScript" src="js/webui.js"></script>
              </ui:head>
              <ui:topFrameBody title="Contact & Lead management" >
                  <ui:topFrameMessages>
                      <ui:topFrameMessage id="ms1" >
                          <span style="color: #ffffff">Building profitable partnerships with correspondents. </span>
                      </ui:topFrameMessage>
                  </ui:topFrameMessages>
                  <ui:topFrameMenu>
                      <ui:topFrameMenuItem label="Home" href="index.do" target="_top"/>
                  </ui:topFrameMenu>
              </ui:topFrameBody>
          </html>
      </jsp:root>
      

       

       

      and output I am getting is This XML file does not appear to have any style information associated with it. The document tree is shown below.

       

      I tried both Firefox(3.6) and IE 6,both the cases I received same output.

       

      What needs to be changed to get the proper output?

        • 1. Re: Jboss 5.1.0 jsp:root not working ...
          Debopam Poddar Newbie

          I am getting following error log....

           

           

          2010-03-30 10:45:55,573 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/contact].[action]] (http-127.0.0.1-10006-4) Servlet.service() for servlet action threw exception
          org.apache.jasper.JasperException: /WEB-INF/jsp/top.jsp(7,42) The entity name must immediately follow the '&' in the entity reference.
              at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
              at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
              at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)
              at org.apache.jasper.compiler.JspDocumentParser.parse(JspDocumentParser.java:214)
              at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:239)
              at org.apache.jasper.compiler.ParserController.parseDirectives(ParserController.java:120)
              at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:166)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:333)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:313)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:300)
              at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:585)
              at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312)
              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
              at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:444)
              at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)
              at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)
              at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)
              at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388)
              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.doGet(ActionServlet.java:397)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at com.gmacb.blt.common.security.SimpleJdbcSecurityFilter.doFilter(SimpleJdbcSecurityFilter.java:67)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at com.gmacb.blt.sso.client.client.filter.ClasspathCasFilter.doFilter(ClasspathCasFilter.java:144)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
              at java.lang.Thread.run(Thread.java:595)
          2010-03-30 10:45:55,620 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/contact].[jsp]] (http-127.0.0.1-10006-6) Servlet.service() for servlet jsp threw exception
          org.apache.jasper.JasperException: /WEB-INF/jsp/prospects/prospectslist.jsp(12,5) Invalid standard action
              at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
              at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
              at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)
              at org.apache.jasper.compiler.Parser.parseStandardAction(Parser.java:1171)
              at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1460)
              at org.apache.jasper.compiler.Parser.parse(Parser.java:137)
              at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255)
              at org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
              at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:171)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:333)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:313)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:300)
              at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:585)
              at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312)
              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
              at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:444)
              at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)
              at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)
              at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)
              at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388)
              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.doGet(ActionServlet.java:397)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at com.gmacb.blt.common.security.SimpleJdbcSecurityFilter.doFilter(SimpleJdbcSecurityFilter.java:67)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at com.gmacb.blt.sso.client.client.filter.ClasspathCasFilter.doFilter(ClasspathCasFilter.java:144)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
              at java.lang.Thread.run(Thread.java:595)
          2010-03-30 10:45:55,620 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/contact].[action]] (http-127.0.0.1-10006-6) Servlet.service() for servlet action threw exception
          org.apache.jasper.JasperException: /WEB-INF/jsp/prospects/prospectslist.jsp(12,5) Invalid standard action
              at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
              at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
              at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)
              at org.apache.jasper.compiler.Parser.parseStandardAction(Parser.java:1171)
              at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1460)
              at org.apache.jasper.compiler.Parser.parse(Parser.java:137)
              at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255)
              at org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
              at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:171)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:333)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:313)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:300)
              at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:585)
              at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312)
              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
              at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:444)
              at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)
              at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)
              at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)
              at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388)
              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.doGet(ActionServlet.java:397)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at com.gmacb.blt.common.security.SimpleJdbcSecurityFilter.doFilter(SimpleJdbcSecurityFilter.java:67)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at com.gmacb.blt.sso.client.client.filter.ClasspathCasFilter.doFilter(ClasspathCasFilter.java:144)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
              at java.lang.Thread.run(Thread.java:595)