You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Rene Gielen (JIRA)" <ji...@apache.org> on 2007/02/01 01:05:17 UTC

[jira] Created: (WW-1695) Annotation based action configuration fails in porlet environment

Annotation based action configuration fails in porlet environment
-----------------------------------------------------------------

                 Key: WW-1695
                 URL: https://issues.apache.org/struts/browse/WW-1695
             Project: Struts 2
          Issue Type: Bug
          Components: Configuration, Portlet Integration
    Affects Versions: 2.0.4
         Environment: Liferay 4.2.1
            Reporter: Rene Gielen
         Assigned To: Rene Gielen
             Fix For: 2.0.5


Annotation based configuration for actions seems to fail at least in my portlet environment (Liferay 4.2.1), resulting in infinite loop while scanning for action classes in configured packages. Had no time to dig deeper yet, but the issue is reproducible

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-1695) Annotation based action configuration fails in porlet environment

Posted by "Rene Gielen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rene Gielen updated WW-1695:
----------------------------

    Fix Version/s:     (was: 2.0.5)
                   2.0.x

> Annotation based action configuration fails in porlet environment
> -----------------------------------------------------------------
>
>                 Key: WW-1695
>                 URL: https://issues.apache.org/struts/browse/WW-1695
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Configuration, Portlet Integration
>    Affects Versions: 2.0.4
>         Environment: Liferay 4.2.1
>            Reporter: Rene Gielen
>         Assigned To: Rene Gielen
>             Fix For: 2.0.x
>
>
> Annotation based configuration for actions seems to fail at least in my portlet environment (Liferay 4.2.1), resulting in infinite loop while scanning for action classes in configured packages. Had no time to dig deeper yet, but the issue is reproducible

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WW-1695) Annotation based action configuration fails in porlet environment

Posted by "Nils-Helge Garli (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nils-Helge Garli resolved WW-1695.
----------------------------------

       Resolution: Cannot Reproduce
    Fix Version/s:     (was: 2.1.3)
                   2.1.1

Can't reproduce this. If you encounter the problem again, please re-open and include some more relevant information.

> Annotation based action configuration fails in porlet environment
> -----------------------------------------------------------------
>
>                 Key: WW-1695
>                 URL: https://issues.apache.org/struts/browse/WW-1695
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Portlet, XML Configuration
>    Affects Versions: 2.0.4, 2.0.9
>         Environment: Liferay 4.2.1, Liferay 4.3.0
>            Reporter: Rene Gielen
>             Fix For: 2.1.1
>
>         Attachments: myportlet.zip
>
>
> Annotation based configuration for actions seems to fail at least in my portlet environment (Liferay 4.2.1), resulting in infinite loop while scanning for action classes in configured packages. Had no time to dig deeper yet, but the issue is reproducible

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-1695) Annotation based action configuration fails in porlet environment

Posted by "Rene Gielen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41837 ] 

Rene Gielen commented on WW-1695:
---------------------------------

Yes, I will give it a try with 2.1 codebase today and report.

> Annotation based action configuration fails in porlet environment
> -----------------------------------------------------------------
>
>                 Key: WW-1695
>                 URL: https://issues.apache.org/struts/browse/WW-1695
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Configuration, Portlet Integration
>    Affects Versions: 2.0.4
>         Environment: Liferay 4.2.1
>            Reporter: Rene Gielen
>            Assignee: Rene Gielen
>             Fix For: 2.1.0
>
>
> Annotation based configuration for actions seems to fail at least in my portlet environment (Liferay 4.2.1), resulting in infinite loop while scanning for action classes in configured packages. Had no time to dig deeper yet, but the issue is reproducible

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-1695) Annotation based action configuration fails in porlet environment

Posted by "Ted Husted (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Husted updated WW-1695:
---------------------------

    Fix Version/s:     (was: 2.0.x)
                   2.1.0

This could be addressed when Portlet support is reduced to a plugin. 


> Annotation based action configuration fails in porlet environment
> -----------------------------------------------------------------
>
>                 Key: WW-1695
>                 URL: https://issues.apache.org/struts/browse/WW-1695
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Configuration, Portlet Integration
>    Affects Versions: 2.0.4
>         Environment: Liferay 4.2.1
>            Reporter: Rene Gielen
>         Assigned To: Rene Gielen
>             Fix For: 2.1.0
>
>
> Annotation based configuration for actions seems to fail at least in my portlet environment (Liferay 4.2.1), resulting in infinite loop while scanning for action classes in configured packages. Had no time to dig deeper yet, but the issue is reproducible

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-1695) Annotation based action configuration fails in porlet environment

Posted by "Nils-Helge Garli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41773 ] 

Nils-Helge Garli commented on WW-1695:
--------------------------------------

Do you have an example to reproduce the problem?

> Annotation based action configuration fails in porlet environment
> -----------------------------------------------------------------
>
>                 Key: WW-1695
>                 URL: https://issues.apache.org/struts/browse/WW-1695
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Configuration, Portlet Integration
>    Affects Versions: 2.0.4
>         Environment: Liferay 4.2.1
>            Reporter: Rene Gielen
>            Assignee: Rene Gielen
>             Fix For: 2.1.0
>
>
> Annotation based configuration for actions seems to fail at least in my portlet environment (Liferay 4.2.1), resulting in infinite loop while scanning for action classes in configured packages. Had no time to dig deeper yet, but the issue is reproducible

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-1695) Annotation based action configuration fails in porlet environment

Posted by "Nils-Helge Garli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41805 ] 

Nils-Helge Garli commented on WW-1695:
--------------------------------------

I have tried with a simple example with a @Result annotation, and it worked just fine. Could you upload an example that reproduces the problem?

> Annotation based action configuration fails in porlet environment
> -----------------------------------------------------------------
>
>                 Key: WW-1695
>                 URL: https://issues.apache.org/struts/browse/WW-1695
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Configuration, Portlet Integration
>    Affects Versions: 2.0.4
>         Environment: Liferay 4.2.1
>            Reporter: Rene Gielen
>            Assignee: Rene Gielen
>             Fix For: 2.1.0
>
>
> Annotation based configuration for actions seems to fail at least in my portlet environment (Liferay 4.2.1), resulting in infinite loop while scanning for action classes in configured packages. Had no time to dig deeper yet, but the issue is reproducible

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-1695) Annotation based action configuration fails in porlet environment

Posted by "Nils-Helge Garli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41890 ] 

Nils-Helge Garli commented on WW-1695:
--------------------------------------

Odd that it works with pluto and not with liferay....

Do you need some special descriptors to deploy the portlet in liferay? I tried following a tutorial I found, but I can't seem to find the portlet anywhere within Liferay.

> Annotation based action configuration fails in porlet environment
> -----------------------------------------------------------------
>
>                 Key: WW-1695
>                 URL: https://issues.apache.org/struts/browse/WW-1695
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Configuration, Portlet Integration
>    Affects Versions: 2.0.4, 2.0.9
>         Environment: Liferay 4.2.1, Liferay 4.3.0
>            Reporter: Rene Gielen
>             Fix For: 2.1.0
>
>         Attachments: myportlet.zip
>
>
> Annotation based configuration for actions seems to fail at least in my portlet environment (Liferay 4.2.1), resulting in infinite loop while scanning for action classes in configured packages. Had no time to dig deeper yet, but the issue is reproducible

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-1695) Annotation based action configuration fails in porlet environment

Posted by "Rene Gielen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rene Gielen updated WW-1695:
----------------------------

    Attachment: myportlet.zip

Attached is a portlet based on Nils' embedded pluto example, against 2.0.9. The IndexAction for edit mode was modified to support a result configured by annotation, pointing to /foo.jsp if you enter foo in the first textbox.

When run with embedded pluto (mvn jetty:run), everything works fine.

But if you build a war and deploy it to Liferay 4.3.0, the portlet does not get initialized, instead it falls into an infinite loop after files were copied successfully.

After all, it seems not to be an issue of the annotation in particular, but rather the zero config plugin. Even without using the annotation, simply configuring actionPackages parameter causes the broken deployment.

I wonder if this could be a classloader issue....

> Annotation based action configuration fails in porlet environment
> -----------------------------------------------------------------
>
>                 Key: WW-1695
>                 URL: https://issues.apache.org/struts/browse/WW-1695
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Configuration, Portlet Integration
>    Affects Versions: 2.0.4
>         Environment: Liferay 4.2.1
>            Reporter: Rene Gielen
>            Assignee: Rene Gielen
>             Fix For: 2.1.0
>
>         Attachments: myportlet.zip
>
>
> Annotation based configuration for actions seems to fail at least in my portlet environment (Liferay 4.2.1), resulting in infinite loop while scanning for action classes in configured packages. Had no time to dig deeper yet, but the issue is reproducible

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-1695) Annotation based action configuration fails in porlet environment

Posted by "Nils-Helge Garli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41896 ] 

Nils-Helge Garli commented on WW-1695:
--------------------------------------

That's weird....It works perfectly here....? Have you tried nuking your liferay installation and create a new one?

> Annotation based action configuration fails in porlet environment
> -----------------------------------------------------------------
>
>                 Key: WW-1695
>                 URL: https://issues.apache.org/struts/browse/WW-1695
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Configuration, Portlet Integration
>    Affects Versions: 2.0.4, 2.0.9
>         Environment: Liferay 4.2.1, Liferay 4.3.0
>            Reporter: Rene Gielen
>             Fix For: 2.1.0
>
>         Attachments: myportlet.zip
>
>
> Annotation based configuration for actions seems to fail at least in my portlet environment (Liferay 4.2.1), resulting in infinite loop while scanning for action classes in configured packages. Had no time to dig deeper yet, but the issue is reproducible

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-1695) Annotation based action configuration fails in porlet environment

Posted by "Rene Gielen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rene Gielen updated WW-1695:
----------------------------

          Environment: Liferay 4.2.1, Liferay 4.3.0  (was: Liferay 4.2.1)
    Affects Version/s: 2.0.9
             Assignee:     (was: Rene Gielen)

> Annotation based action configuration fails in porlet environment
> -----------------------------------------------------------------
>
>                 Key: WW-1695
>                 URL: https://issues.apache.org/struts/browse/WW-1695
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Configuration, Portlet Integration
>    Affects Versions: 2.0.4, 2.0.9
>         Environment: Liferay 4.2.1, Liferay 4.3.0
>            Reporter: Rene Gielen
>             Fix For: 2.1.0
>
>         Attachments: myportlet.zip
>
>
> Annotation based configuration for actions seems to fail at least in my portlet environment (Liferay 4.2.1), resulting in infinite loop while scanning for action classes in configured packages. Had no time to dig deeper yet, but the issue is reproducible

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-1695) Annotation based action configuration fails in porlet environment

Posted by "Rene Gielen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41891 ] 

Rene Gielen commented on WW-1695:
---------------------------------

No, nothing special - just mvn package, then hotdeploy the war - should be found under "Undefined" category

I've noticed some strange behaviour of LR4.3 lately: it looks like LR always wants to validate portlet.xml against the schema web uri. If you don't have an internet connection on your machine, this might cause the portlet not being registered although everything looks like it is deployed correctly...

> Annotation based action configuration fails in porlet environment
> -----------------------------------------------------------------
>
>                 Key: WW-1695
>                 URL: https://issues.apache.org/struts/browse/WW-1695
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Configuration, Portlet Integration
>    Affects Versions: 2.0.4, 2.0.9
>         Environment: Liferay 4.2.1, Liferay 4.3.0
>            Reporter: Rene Gielen
>             Fix For: 2.1.0
>
>         Attachments: myportlet.zip
>
>
> Annotation based configuration for actions seems to fail at least in my portlet environment (Liferay 4.2.1), resulting in infinite loop while scanning for action classes in configured packages. Had no time to dig deeper yet, but the issue is reproducible

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.