beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Hanson (JIRA)" <...@beehive.apache.org>
Subject [jira] Updated: (BEEHIVE-933) Page Flow Tutorial: Step 8: Adding Actions to a Shared Flow causes error
Date Thu, 15 Sep 2005 22:23:54 GMT
     [ http://issues.apache.org/jira/browse/BEEHIVE-933?page=all ]

Steve Hanson updated BEEHIVE-933:
---------------------------------

    Attachment: pageflow_tutorial.zip

A more exact repro of this bug:

(1) Download and unzip the attached ZIP file.  (This ZIP file contains the web app created
when you complete all steps of the netui tutorial.) 
(2) Edit pageflow_tutorial/build.properties to fit your local environment.
(3) Start Tomcat 5.0.28.
(4) Compile the web app: 
           ant clean build war
(5) Deploy to Tomcat: 
            cp pageflow_tutorial.war $CATALINA_HOME/webapps
(6) Hit the URL:
             http://localhost:8080/pageflow_tutorial/Controller.jpf

Result: Tomcat will throw the exception reported.

I believe the problem is caused because Tomcat cannot resolve the action "shared.showHelp"
referred to on the JSP page pageflow_tutorial/web/index.jsp

To return the web app to a running state, back out of the 8th step in the netui tutorial:


(1) Remove the following tags from pageflow_tutorial/web/index.jsp

    <netui:anchor action="shared.showHelp" popup="true">Help
        <netui:configurePopup location="false" width="550" height="150">
        </netui:configurePopup>
    </netui:anchor> 

(2) Remove the simple action declaration from pageflow_tutorial/src/shared/SharedFlow.java

,
    simpleActions={
	        @Jpf.SimpleAction(name="showHelp", path="/help.jsp")
	}

(3) Shutdown Tomcat, and manually delete 
    $CATALINA_HOME/webapps/pageflow_tutorial 
        and 
    $CATALINA_HOME/webapps/pageflow_tutorial.war

(After throwing this exception, Tomcat doesn' t like to let go of the web app.)

(4) Restart Tomcat

(5) Recompile, redeploy, and hit the URL again.

Tomcat should not throw an exception now. 
    

> Page Flow Tutorial: Step 8: Adding Actions to a Shared Flow causes error
> ------------------------------------------------------------------------
>
>          Key: BEEHIVE-933
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-933
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Steve Hanson
>     Assignee: Eddie O'Neil
>     Priority: Blocker
>      Fix For: V1
>  Attachments: pageflow_tutorial.zip
>
> The last step in the netui tutorial (Step 8: Adding Actions to a Shared Flow) will not
complete.
> Build and deployment of the last step complete successfully , but when you call the URL

>     http://localhost:8080/pageflow_tutorial/Controller.jpf
> Tomcat gives you the following error:
> org.apache.jasper.JasperException
> 	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
> 	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> 	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	org.apache.beehive.netui.pageflow.PageFlowPageFilter.runPage(PageFlowPageFilter.java:303)
> 	org.apache.beehive.netui.pageflow.PageFlowPageFilter.doFilter(PageFlowPageFilter.java:218)
> 	org.apache.beehive.netui.pageflow.internal.DefaultForwardRedirectHandler.forward(DefaultForwardRedirectHandler.java:127)
> 	org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.doForward(PageFlowRequestProcessor.java:1825)
> 	org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processForwardConfig(PageFlowRequestProcessor.java:1699)
> 	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
> 	org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:601)
> 	org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:887)
> 	org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:611)
> 	org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:157)
> 	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	org.apache.beehive.netui.pageflow.internal.DefaultForwardRedirectHandler.forward(DefaultForwardRedirectHandler.java:127)
> 	org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.doForward(PageFlowRequestProcessor.java:1825)
> 	org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processPageFlowRequest(PageFlowRequestProcessor.java:785)
> 	org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:520)
> 	org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:887)
> 	org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:611)
> 	org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:157)
> 	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> root cause
> java.lang.NullPointerException
> 	org.apache.struts.config.impl.ModuleConfigImpl.findActionConfig(ModuleConfigImpl.java:323)
> 	org.apache.beehive.netui.tags.internal.PageFlowTagUtils.getActionMapping(PageFlowTagUtils.java:224)
> 	org.apache.beehive.netui.tags.internal.PageFlowTagUtils.isAction(PageFlowTagUtils.java:130)
> 	org.apache.beehive.netui.tags.html.AnchorBase.createAnchorBeginTag(AnchorBase.java:360)
> 	org.apache.beehive.netui.tags.html.Anchor.doEndTag(Anchor.java:337)
> 	org.apache.jsp.index_jsp._jspx_meth_netui_anchor_1(index_jsp.java:245)
> 	org.apache.jsp.index_jsp._jspx_meth_netui_body_0(index_jsp.java:166)
> 	org.apache.jsp.index_jsp._jspx_meth_netui_html_0(index_jsp.java:110)
> 	org.apache.jsp.index_jsp._jspService(index_jsp.java:69)
> 	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
> 	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> 	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	org.apache.beehive.netui.pageflow.PageFlowPageFilter.runPage(PageFlowPageFilter.java:303)
> 	org.apache.beehive.netui.pageflow.PageFlowPageFilter.doFilter(PageFlowPageFilter.java:218)
> 	org.apache.beehive.netui.pageflow.internal.DefaultForwardRedirectHandler.forward(DefaultForwardRedirectHandler.java:127)
> 	org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.doForward(PageFlowRequestProcessor.java:1825)
> 	org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processForwardConfig(PageFlowRequestProcessor.java:1699)
> 	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
> 	org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:601)
> 	org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:887)
> 	org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:611)
> 	org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:157)
> 	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	org.apache.beehive.netui.pageflow.internal.DefaultForwardRedirectHandler.forward(DefaultForwardRedirectHandler.java:127)
> 	org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.doForward(PageFlowRequestProcessor.java:1825)
> 	org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processPageFlowRequest(PageFlowRequestProcessor.java:785)
> 	org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:520)
> 	org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:887)
> 	org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:611)
> 	org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:157)
> 	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message