Here is the code snippet from JSP. Also let me tell you that, the JSP 
works fine without error if I run the application thru JDeveloper. This is 
an issue only when I use shared-lib feature on OC4J app server. 


              <logic:notEqual name="menuCmdSessAtt" value="GFindCustomer">
                  <display:table 
requestURI="<%=(request.getAttribute(Globals.ORIGINAL_URI_KEY)).toString()%>" 

                                 class="listTable"
                                 name="sessionScope.customerListSessAtt"
                                 defaultsort="2"
 decorator="org.nexweb.qol.gcc.common.DisplaytagTableDecorator" 
                                 export="false">
                      <display:column property="plateId" title="License 
Plate" sortable="true"/>
                      <display:column property="custName" title="Customer 
Name" sortable="true"/>
                      <display:column property="custStatus" 
title="Customer Status" sortable="true"/> 
                      <display:column property="custRationCardStatus" 
title="Ration Card Status" sortable="true"/>
                      <display:column property="rationCardType" 
title="Ration Card Type" sortable="true"/>
                  </display:table>
                 </logic:notEqual>



From:   Miguel <mig...@almeida.at>
To:     displaytag-user@lists.sourceforge.net
Date:   07/22/2010 07:56 AM
Subject:        Re: [displaytag-user] servletException: Tag "column" 
should ne nested in "table"


Hi Jasmin,

It would be useful to show us the actual jsp page where the tag is being 
used. More specifically, if - like the exception points out - Tag "column" 
should ne nested in "table".


Miguel Almeida


On Thu, 2010-07-22 at 07:05 -0400, Jasmin Mehta wrote:
I am using Application Server OC4J 10.1.3.  My application deployed fine. 
I have configured displaytag library as a shared-lib and importing it to 
the application during the deployment. 

I am getting this exception at runtime: 

[20 Jul 2010 15:11:34] DEBUG [TableTag] [null] doStartTag called 
[20 Jul 2010 15:11:34] DEBUG [LookupUtil] getBeanValue - bean: 
{customerListSessAtt} 
[20 Jul 2010 15:11:34] DEBUG [TableTag] [null] setting media [html] in 
this.pageContext 
[20 Jul 2010 15:11:34] DEBUG [TableTag] [null] doIteration called 
[20 Jul 2010 15:11:34] ERROR [ColumnTag] Exception: [.ColumnTag] Tag 
"column" should ne nested in "table" 
[20 Jul 2010 15:11:34] DEBUG [TableTag] [null] release() called 
[20 Jul 2010 15:11:34] DEBUG [ExceptionCatcher] Attempting to handle a 
thrown exception 
[20 Jul 2010 15:11:34] DEBUG [ExceptionCatcher] Calling exceptionCommand 
'servlet-exception' 
[20 Jul 2010 15:11:34] DEBUG [ActionCommandBase] Executing 
org.apache.struts.chain.commands.servlet.ExceptionHandler 
[20 Jul 2010 15:11:34] DEBUG [AbstractExceptionHandler] See if 
actionConfig 
ActionConfig[cancellable=false,path=/CustomerFind,validate=false,input=/WEB-INF/jsp/customerFind.jsp,name=CustomerFindForm,parameter=method,scope=session,type=org.nexweb.qol.gcc.actions.CustomerFindAction
 
has an exceptionConfig for javax.servlet.ServletException 
[20 Jul 2010 15:11:34] DEBUG [ActionConfig] findException: look locally 
for javax.servlet.ServletException 
[20 Jul 2010 15:11:34] DEBUG [ActionConfig] findException: look globally 
for javax.servlet.ServletException 
[20 Jul 2010 15:11:34] DEBUG [ActionConfig] findException: look locally 
for java.lang.Exception 
[20 Jul 2010 15:11:34] DEBUG [ActionConfig] findException: look globally 
for java.lang.Exception 
[20 Jul 2010 15:11:34] DEBUG [ActionConfig] findException: look locally 
for java.lang.Throwable 
[20 Jul 2010 15:11:34] DEBUG [ActionConfig] findException: look globally 
for java.lang.Throwable 
[20 Jul 2010 15:11:34] DEBUG [ActionConfig] findException: look locally 
for java.lang.Object 
[20 Jul 2010 15:11:34] DEBUG [ActionConfig] findException: look globally 
for java.lang.Object 
[20 Jul 2010 15:11:34] WARN  [AbstractExceptionHandler] Unhandled 
exception 
javax.servlet.ServletException: Tag "column" should ne nested in "table" 
        at 
com.evermind.server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:809)
 

        at 
com.evermind.server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:756)
 

        at 
_web_2d_inf._jsp._customerFind._jspService(_customerFind.java:1835) 
        at 
com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) 
        at 
oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453) 
        at 
oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591) 
        at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515) 
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) 
        at 
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
 

        at 
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
 

        at 
com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
 

        at 
com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:50)
 

        at 
com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
 

        at 
oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283) 
        at 
com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
 

        at 
org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java:113)
 

        at 
org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:96)
 

        at 
org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:54)
 

        at 
org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
 

        at 
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190) 
        at 
org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304) 

        at 
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190) 
        at 
org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
 

        at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) 
        at 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462) 
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:763) 
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) 
        at 
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
 

        at 
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
 

        at 
com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
 

        at 
com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
 

        at 
com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302) 

        at 
com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190) 

        at 
oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
 

        at 
com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
 

        at java.lang.Thread.run(Thread.java:595) 


My server.xml has below entry 

        <shared-library name="nex.Displaytag" version="1.1.1"> 
                <code-source path="displaytag-1.1.1.jar"/> 
                <code-source path="displaytag-export-poi-1.1.1.jar"/> 
                <code-source path="itext_1.5.4.jar"/> 
                <code-source path="poi-3.0-FINAL.jar"/> 
                <import-shared-library name="nex.apache.commons.lang" 
max-version="2.4"/> 
                <import-shared-library name="nex.apache.commons.logging" 
max-version="1.0.4"/> 
                <import-shared-library name="nex.Struts" 
max-version="1.3.9"/> 
        </shared-library> 

where all imported shared library are configured as below: 

        <shared-library name="nex.apache.commons.logging" version="1.0.4"> 

                <code-source path="commons-logging-1.0.4.jar"/> 
                <import-shared-library name="nex.4jLog" 
max-version="1.2.13"/> 
        </shared-library> 
        <shared-library name="nex.apache.commons.lang" version="2.4"> 
                <code-source path="commons-lang-2.4.jar"/> 
        </shared-library> 
        <shared-library name="nex.Struts" version="1.3.9"> 
                <code-source path="antlr-2.7.2.jar"/> 
                <code-source path="bsf-2.3.0.jar"/> 
                <code-source path="commons-beanutils-1.7.0.jar"/> 
                <code-source path="commons-chain-1.1.jar"/> 
                <code-source path="commons-digester-1.8.jar"/> 
                <code-source path="commons-fileupload-1.1.1.jar"/> 
                <code-source path="commons-io-1.1.jar"/> 
                <code-source path="commons-validator-1.3.1.jar"/> 
                <code-source path="oro-2.0.8.jar"/> 
                <code-source path="struts-core-1.3.9.jar"/> 
                <code-source path="struts-el-1.3.9.jar"/> 
                <code-source path="struts-extras-1.3.9.jar"/> 
                <code-source path="struts-faces-1.3.9.jar"/> 
                <code-source path="struts-mailreader-dao-1.3.9.jar"/> 
                <code-source path="struts-scripting-1.3.9.jar"/> 
                <code-source path="struts-taglib-1.3.9.jar"/> 
                <code-source path="struts-tiles-1.3.9.jar"/> 
                <import-shared-library name="nex.apache.commons.logging" 
max-version="1.0.4"/> 
        </shared-library> 
        <shared-library name="nex.4jLog" version="1.2.13"> 
                <code-source path="log4j-1.2.13.jar"/> 
        </shared-library>

******************************************************************************
This email and any files transmitted with it are intended solely for 
the use of the individual or agency to whom they are addressed. 
If you have received this email in error please notify the Navy 
Exchange Service Command e-mail administrator. This footnote 
also confirms that this email message has been scanned for the
presence of computer viruses.

Thank You!            
******************************************************************************

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________ displaytag-user mailing 
list displaytag-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/displaytag-user



------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to