You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Eddie O'Neil (JIRA)" <be...@incubator.apache.org> on 2005/02/01 16:45:21 UTC

[jira] Created: (BEEHIVE-220) actions don't seem to resolve correctly to shared flows

actions don't seem to resolve correctly to shared flows
-------------------------------------------------------

         Key: BEEHIVE-220
         URL: http://issues.apache.org/jira/browse/BEEHIVE-220
     Project: Beehive
        Type: Bug
  Components: NetUI  
    Versions: V1Beta    
 Environment: Win XP.  Tomcat 5.0.25.  Beehive build from SVN this morning.
    Reporter: Eddie O'Neil
     Fix For: V1Beta
 Attachments: reproWeb.war

Webapp is this:

  /pkg/Controller.jpf
         begin.do
      /index.jsp
  /WEB-INF/src/shared/SharedFlow.jpfs
                        home.do

With a <netui:anchor> in /index.jsp that references "home" as:

  <netui:anchor action="home">

the action "home" isn't resolved with the error:

  Action 'home' is not a valid action.

Repro will be attached shortly; to build, run:
  ant -f ant\buildWebapp.xml build -Dwebapp.dir=d:\dev\apache\beehive\trunk\reproWeb
  ant -f ant\buildWebapp.xml deploy -Dcontext.path=reproWeb -Dwebapp.dir=d:\dev\apache\beehive\trunk\reproWeb

then hit:

  http://localhost:8080/reproWeb/pkg/Controller.jpf

The same problem is showing up in the petstoreWeb.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (BEEHIVE-220) actions don't seem to resolve correctly to shared flows

Posted by "Alejandro Ramirez (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-220?page=comments#action_58414 ]
     
Alejandro Ramirez commented on BEEHIVE-220:
-------------------------------------------

Rich/Eddie,
I think this issue is due to the fact that there is no explicit reference the sharedFlow in the Jsp.  In order to invoke actions contained in sharedFlows from a jsp, you have to explicitly reference the shared flow that contains the action.

So, in the pkg/Controller.jpf you have:
@Jpf.Controller(
    simpleActions={
        @Jpf.SimpleAction(name="begin", path="index.jsp")
    },
    sharedFlowRefs={
        @Jpf.SharedFlowRef(name="shared", type=shared.SharedFlow.class)
    }
)

Then, you need to reference that action in the index.jsp as:
<netui:anchor action="shared.home">

I tried that and it worked.

> actions don't seem to resolve correctly to shared flows
> -------------------------------------------------------
>
>          Key: BEEHIVE-220
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-220
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>  Environment: Win XP.  Tomcat 5.0.25.  Beehive build from SVN this morning.
>     Reporter: Eddie O'Neil
>     Assignee: Rich Feit
>      Fix For: V1Beta
>  Attachments: reproWeb.war
>
> Webapp is this:
>   /pkg/Controller.jpf
>          begin.do
>       /index.jsp
>   /WEB-INF/src/shared/SharedFlow.jpfs
>                         home.do
> With a <netui:anchor> in /index.jsp that references "home" as:
>   <netui:anchor action="home">
> the action "home" isn't resolved with the error:
>   Action 'home' is not a valid action.
> Repro will be attached shortly; to build, run:
>   ant -f ant\buildWebapp.xml build -Dwebapp.dir=d:\dev\apache\beehive\trunk\reproWeb
>   ant -f ant\buildWebapp.xml deploy -Dcontext.path=reproWeb -Dwebapp.dir=d:\dev\apache\beehive\trunk\reproWeb
> then hit:
>   http://localhost:8080/reproWeb/pkg/Controller.jpf
> The same problem is showing up in the petstoreWeb.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (BEEHIVE-220) actions don't seem to resolve correctly to shared flows

Posted by "Eddie O'Neil (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-220?page=history ]
     
Eddie O'Neil resolved BEEHIVE-220:
----------------------------------

    Resolution: Invalid

This is an invalid case -- shared flow actions are referenced as:

  action="sharedName.home"

where sharedName is the name of the shared flow in the JPF.

> actions don't seem to resolve correctly to shared flows
> -------------------------------------------------------
>
>          Key: BEEHIVE-220
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-220
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>  Environment: Win XP.  Tomcat 5.0.25.  Beehive build from SVN this morning.
>     Reporter: Eddie O'Neil
>     Assignee: Rich Feit
>      Fix For: V1Beta
>  Attachments: reproWeb.war
>
> Webapp is this:
>   /pkg/Controller.jpf
>          begin.do
>       /index.jsp
>   /WEB-INF/src/shared/SharedFlow.jpfs
>                         home.do
> With a <netui:anchor> in /index.jsp that references "home" as:
>   <netui:anchor action="home">
> the action "home" isn't resolved with the error:
>   Action 'home' is not a valid action.
> Repro will be attached shortly; to build, run:
>   ant -f ant\buildWebapp.xml build -Dwebapp.dir=d:\dev\apache\beehive\trunk\reproWeb
>   ant -f ant\buildWebapp.xml deploy -Dcontext.path=reproWeb -Dwebapp.dir=d:\dev\apache\beehive\trunk\reproWeb
> then hit:
>   http://localhost:8080/reproWeb/pkg/Controller.jpf
> The same problem is showing up in the petstoreWeb.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (BEEHIVE-220) actions don't seem to resolve correctly to shared flows

Posted by "Julie Zhuo (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-220?page=comments#action_65343 ]
     
Julie Zhuo commented on BEEHIVE-220:
------------------------------------

Oops, means to comment on BEEHIVE-223. :)

> actions don't seem to resolve correctly to shared flows
> -------------------------------------------------------
>
>          Key: BEEHIVE-220
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-220
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>  Environment: Win XP.  Tomcat 5.0.25.  Beehive build from SVN this morning.
>     Reporter: Eddie O'Neil
>     Assignee: Rich Feit
>      Fix For: V1Beta
>  Attachments: reproWeb.war
>
> Webapp is this:
>   /pkg/Controller.jpf
>          begin.do
>       /index.jsp
>   /WEB-INF/src/shared/SharedFlow.jpfs
>                         home.do
> With a <netui:anchor> in /index.jsp that references "home" as:
>   <netui:anchor action="home">
> the action "home" isn't resolved with the error:
>   Action 'home' is not a valid action.
> Repro will be attached shortly; to build, run:
>   ant -f ant\buildWebapp.xml build -Dwebapp.dir=d:\dev\apache\beehive\trunk\reproWeb
>   ant -f ant\buildWebapp.xml deploy -Dcontext.path=reproWeb -Dwebapp.dir=d:\dev\apache\beehive\trunk\reproWeb
> then hit:
>   http://localhost:8080/reproWeb/pkg/Controller.jpf
> The same problem is showing up in the petstoreWeb.

-- 
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


[jira] Commented: (BEEHIVE-220) actions don't seem to resolve correctly to shared flows

Posted by "Eddie O'Neil (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-220?page=comments#action_58417 ]
     
Eddie O'Neil commented on BEEHIVE-220:
--------------------------------------

Ah, that's right.  Daryl and I forgot about that when we looked at it this morning -- still living in the old world of Global.app.

Pietro, can you try this out on your app?  

I'll open a separate issue to fix the petstoreWeb.

> actions don't seem to resolve correctly to shared flows
> -------------------------------------------------------
>
>          Key: BEEHIVE-220
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-220
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>  Environment: Win XP.  Tomcat 5.0.25.  Beehive build from SVN this morning.
>     Reporter: Eddie O'Neil
>     Assignee: Rich Feit
>      Fix For: V1Beta
>  Attachments: reproWeb.war
>
> Webapp is this:
>   /pkg/Controller.jpf
>          begin.do
>       /index.jsp
>   /WEB-INF/src/shared/SharedFlow.jpfs
>                         home.do
> With a <netui:anchor> in /index.jsp that references "home" as:
>   <netui:anchor action="home">
> the action "home" isn't resolved with the error:
>   Action 'home' is not a valid action.
> Repro will be attached shortly; to build, run:
>   ant -f ant\buildWebapp.xml build -Dwebapp.dir=d:\dev\apache\beehive\trunk\reproWeb
>   ant -f ant\buildWebapp.xml deploy -Dcontext.path=reproWeb -Dwebapp.dir=d:\dev\apache\beehive\trunk\reproWeb
> then hit:
>   http://localhost:8080/reproWeb/pkg/Controller.jpf
> The same problem is showing up in the petstoreWeb.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (BEEHIVE-220) actions don't seem to resolve correctly to shared flows

Posted by "Pietro Di Bello (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-220?page=comments#action_58592 ]
     
Pietro Di Bello commented on BEEHIVE-220:
-----------------------------------------

Hi Eddie, 
I don't think that this issue is the one that generate the "not valid action" in our webapp.
Actually we don't use the SharedFlow.jpfs  in our webapp (we also remove the  "shared" folder and the "global" folder under WEB-INF/src).
Our webapp is made of two simple jsp invoking (throughout a Controller) an Ldap Control for searching users in a directory server. If it's helpful I can attach a zip of the webapp...


> actions don't seem to resolve correctly to shared flows
> -------------------------------------------------------
>
>          Key: BEEHIVE-220
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-220
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>  Environment: Win XP.  Tomcat 5.0.25.  Beehive build from SVN this morning.
>     Reporter: Eddie O'Neil
>     Assignee: Rich Feit
>      Fix For: V1Beta
>  Attachments: reproWeb.war
>
> Webapp is this:
>   /pkg/Controller.jpf
>          begin.do
>       /index.jsp
>   /WEB-INF/src/shared/SharedFlow.jpfs
>                         home.do
> With a <netui:anchor> in /index.jsp that references "home" as:
>   <netui:anchor action="home">
> the action "home" isn't resolved with the error:
>   Action 'home' is not a valid action.
> Repro will be attached shortly; to build, run:
>   ant -f ant\buildWebapp.xml build -Dwebapp.dir=d:\dev\apache\beehive\trunk\reproWeb
>   ant -f ant\buildWebapp.xml deploy -Dcontext.path=reproWeb -Dwebapp.dir=d:\dev\apache\beehive\trunk\reproWeb
> then hit:
>   http://localhost:8080/reproWeb/pkg/Controller.jpf
> The same problem is showing up in the petstoreWeb.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Closed: (BEEHIVE-220) actions don't seem to resolve correctly to shared flows

Posted by "Julie Zhuo (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-220?page=all ]
     
Julie Zhuo closed BEEHIVE-220:
------------------------------


Verified at rev170022. Can not reproduce when change action "name" into "shared.name".

> actions don't seem to resolve correctly to shared flows
> -------------------------------------------------------
>
>          Key: BEEHIVE-220
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-220
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>  Environment: Win XP.  Tomcat 5.0.25.  Beehive build from SVN this morning.
>     Reporter: Eddie O'Neil
>     Assignee: Rich Feit
>      Fix For: V1Beta
>  Attachments: reproWeb.war
>
> Webapp is this:
>   /pkg/Controller.jpf
>          begin.do
>       /index.jsp
>   /WEB-INF/src/shared/SharedFlow.jpfs
>                         home.do
> With a <netui:anchor> in /index.jsp that references "home" as:
>   <netui:anchor action="home">
> the action "home" isn't resolved with the error:
>   Action 'home' is not a valid action.
> Repro will be attached shortly; to build, run:
>   ant -f ant\buildWebapp.xml build -Dwebapp.dir=d:\dev\apache\beehive\trunk\reproWeb
>   ant -f ant\buildWebapp.xml deploy -Dcontext.path=reproWeb -Dwebapp.dir=d:\dev\apache\beehive\trunk\reproWeb
> then hit:
>   http://localhost:8080/reproWeb/pkg/Controller.jpf
> The same problem is showing up in the petstoreWeb.

-- 
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


[jira] Assigned: (BEEHIVE-220) actions don't seem to resolve correctly to shared flows

Posted by "Eddie O'Neil (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-220?page=history ]

Eddie O'Neil reassigned BEEHIVE-220:
------------------------------------

    Assign To: Rich Feit

> actions don't seem to resolve correctly to shared flows
> -------------------------------------------------------
>
>          Key: BEEHIVE-220
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-220
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>  Environment: Win XP.  Tomcat 5.0.25.  Beehive build from SVN this morning.
>     Reporter: Eddie O'Neil
>     Assignee: Rich Feit
>      Fix For: V1Beta
>  Attachments: reproWeb.war
>
> Webapp is this:
>   /pkg/Controller.jpf
>          begin.do
>       /index.jsp
>   /WEB-INF/src/shared/SharedFlow.jpfs
>                         home.do
> With a <netui:anchor> in /index.jsp that references "home" as:
>   <netui:anchor action="home">
> the action "home" isn't resolved with the error:
>   Action 'home' is not a valid action.
> Repro will be attached shortly; to build, run:
>   ant -f ant\buildWebapp.xml build -Dwebapp.dir=d:\dev\apache\beehive\trunk\reproWeb
>   ant -f ant\buildWebapp.xml deploy -Dcontext.path=reproWeb -Dwebapp.dir=d:\dev\apache\beehive\trunk\reproWeb
> then hit:
>   http://localhost:8080/reproWeb/pkg/Controller.jpf
> The same problem is showing up in the petstoreWeb.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (BEEHIVE-220) actions don't seem to resolve correctly to shared flows

Posted by "Rich Feit (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-220?page=comments#action_59294 ]
     
Rich Feit commented on BEEHIVE-220:
-----------------------------------

Hi Pietro,

I haven't been looking at this issue because it's in a Resolved state.  Just noticed that it looks like it's not truly Resolved for you.  Could you either open a new bug (if it's a different issue) or reopen this one with the repro app you mentioned?

Thanks,
Rich

> actions don't seem to resolve correctly to shared flows
> -------------------------------------------------------
>
>          Key: BEEHIVE-220
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-220
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>  Environment: Win XP.  Tomcat 5.0.25.  Beehive build from SVN this morning.
>     Reporter: Eddie O'Neil
>     Assignee: Rich Feit
>      Fix For: V1Beta
>  Attachments: reproWeb.war
>
> Webapp is this:
>   /pkg/Controller.jpf
>          begin.do
>       /index.jsp
>   /WEB-INF/src/shared/SharedFlow.jpfs
>                         home.do
> With a <netui:anchor> in /index.jsp that references "home" as:
>   <netui:anchor action="home">
> the action "home" isn't resolved with the error:
>   Action 'home' is not a valid action.
> Repro will be attached shortly; to build, run:
>   ant -f ant\buildWebapp.xml build -Dwebapp.dir=d:\dev\apache\beehive\trunk\reproWeb
>   ant -f ant\buildWebapp.xml deploy -Dcontext.path=reproWeb -Dwebapp.dir=d:\dev\apache\beehive\trunk\reproWeb
> then hit:
>   http://localhost:8080/reproWeb/pkg/Controller.jpf
> The same problem is showing up in the petstoreWeb.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Updated: (BEEHIVE-220) actions don't seem to resolve correctly to shared flows

Posted by "Eddie O'Neil (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-220?page=history ]

Eddie O'Neil updated BEEHIVE-220:
---------------------------------

    Attachment: reproWeb.war

Not sure whether this will deploy on its own as a .war -- might still need to be built, but it will be interesting to find out.  :)

> actions don't seem to resolve correctly to shared flows
> -------------------------------------------------------
>
>          Key: BEEHIVE-220
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-220
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>  Environment: Win XP.  Tomcat 5.0.25.  Beehive build from SVN this morning.
>     Reporter: Eddie O'Neil
>      Fix For: V1Beta
>  Attachments: reproWeb.war
>
> Webapp is this:
>   /pkg/Controller.jpf
>          begin.do
>       /index.jsp
>   /WEB-INF/src/shared/SharedFlow.jpfs
>                         home.do
> With a <netui:anchor> in /index.jsp that references "home" as:
>   <netui:anchor action="home">
> the action "home" isn't resolved with the error:
>   Action 'home' is not a valid action.
> Repro will be attached shortly; to build, run:
>   ant -f ant\buildWebapp.xml build -Dwebapp.dir=d:\dev\apache\beehive\trunk\reproWeb
>   ant -f ant\buildWebapp.xml deploy -Dcontext.path=reproWeb -Dwebapp.dir=d:\dev\apache\beehive\trunk\reproWeb
> then hit:
>   http://localhost:8080/reproWeb/pkg/Controller.jpf
> The same problem is showing up in the petstoreWeb.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira