0 Replies Latest reply on Jul 4, 2005 8:26 AM by Conrad Crampton

    Compilation error - struts logic notMatch tag

    Conrad Crampton Newbie

      Hi,
      Can someone help me with this? I have jsp that contains some struts logic tags viz...

      <logic:notPresent name="org">
      <tr>
       <td colspan="8" style="border-bottom: solid 1px black; background-color:slategray"><b><bean:write name="officerDuty" property="organisationUnit" /></b></td>
      </tr>
      </logic:notPresent>
      <logic:present name="org">
      <logic:notMatch name="officerDuty" property="organisationUnit" value="<%=pageContext.getAttribute(\"org\")%>">
      <tr>
       <td colspan="8" style="border-bottom: solid 1px black; background-color:slategray"><b><bean:write name="officerDuty" property="organisationUnit" /></b></td>
      </tr>
      </logic:notMatch>
      </logic:present>
      

      when running on JBoss 3.2.3 I get the following error


      Generated servlet error:
      [javac] Compiling 1 source file
      [javac] /srv/www/jboss/default/work/MainEngine/localhost/isis/viewDuties_jsp.java:306: cannot resolve symbol
      [javac] symbol : method setValue (java.lang.Object)
      [javac] location: class org.apache.struts.taglib.logic.NotMatchTag
      [javac] _jspx_th_logic_notMatch_0.setValue(pageContext.getAttribute("org"));
      [javac] ^
      [javac] 1 error



      at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
      at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
      at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
      at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
      at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575)
      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)
      at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:822)
      at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:398)
      at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137)
      at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177)
      at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756)
      at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:881)
      at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473)
      at org.apache.jsp.mainLayout_jsp._jspx_meth_tiles_insert_2(mainLayout_jsp.java:189)
      at org.apache.jsp.mainLayout_jsp._jspService(mainLayout_jsp.java:98)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
      at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
      at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)
      at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:254)
      at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:309)
      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
      ...........

      as one can see, the logic:present tag doesn't seem to cause a problem, but the logic:notMatch tag does. This work within JDeveloper using oc4j no problems. This is the first attempt at using JBoss as would like to move from Oracle App server, but if I can't deploy as simple Struts app, it looks like a non starter. The JBoss installation is a simple one on a Linux (suse) box. Nothing has ever been deployed on this before so there aren't loads of other things in the mix. Can't be any more specific on the install as I didn't do it.

      Thanks
      Conrad