Bug 794402 (JBEPP-1446) - Consistent initialization order of servlets/portlets at deploy and hot-deploy
Summary: Consistent initialization order of servlets/portlets at deploy and hot-deploy
Keywords:
Status: CLOSED NEXTRELEASE
Alias: JBEPP-1446
Product: JBoss Enterprise Portal Platform 5
Classification: JBoss
Component: Portal
Version: 5.1.1.GA
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 5.2.1.GA
Assignee: Matt Wringe
QA Contact:
URL: http://jira.jboss.org/jira/browse/JBE...
Whiteboard:
Depends On:
Blocks: JBEPP-1505 807499
TreeView+ depends on / blocked
 
Reported: 2011-12-08 12:18 UTC by Martin Weiler
Modified: 2012-03-28 01:07 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Spring-specific portlet and servlet initialization ordering requirements caused Spring-based portlets to work when the server was first started, but fail on hot deployment. The fix introduces updates to the WCI component that allow manual registration of web applications that use a servlet. By specifying the load-on-start values between the registration portlet and the spring portlet, the way a portlet is initialized in relation to a servlet can be controlled. This fix only controls when the web application is registered in WCI with regards to another servlet, and not the servlet ordering with respect to portlets. There are multiple steps which need to be manually configured. Refer to the Bugzilla directly for more information and links to setup information.
Clone Of:
: 807499 (view as bug list)
Environment:
Last Closed: 2012-02-07 15:53:46 UTC
Type: Feature Request
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBEPP-1446 0 Major Closed Consistent initialization order of servlets/portlets at deploy and hot-deploy 2012-08-08 08:41:13 UTC
Red Hat Issue Tracker JBEPP-1505 0 Major Closed Update WCI 2012-08-08 08:41:13 UTC

Description Martin Weiler 2011-12-08 12:18:29 UTC
Help Desk Ticket Reference: https://na7.salesforce.com/500A0000008ynCM
project_key: JBEPP

Different initialization order prevents hot-deployment of Spring Portlets, which need the Spring RootContext (servlet) to be initialized first - see GTNPC-76 for details.

Comment 1 Martin Weiler 2011-12-08 12:18:50 UTC
Link: Added: This issue depends GTNPC-76


Comment 2 Martin Weiler 2011-12-08 12:19:13 UTC
Link: Removed: This issue depends GTNPC-76 


Comment 3 Martin Weiler 2011-12-08 12:19:39 UTC
Link: Added: This issue is a dependency of GTNPC-76


Comment 5 Thomas Heute 2011-12-15 10:21:36 UTC
The Spring portlet bridge expects ordering that it shouldn't rely on. We cannot fix the Spring Portlet Bridge but we will investigate one more time if a workaround can be introduced. Ideally Spring Portlet Bridge would be fixed by the developers though.

Comment 6 Thomas Heute 2011-12-15 10:21:36 UTC
Labels: Added: EPP_5_2_1_Candidate


Comment 8 Thomas Heute 2012-01-13 15:11:15 UTC
Labels: Removed: EPP_5_2_1_Candidate 


Comment 9 Matt Wringe 2012-02-07 15:52:34 UTC
Link: Added: This issue is a dependency of JBEPP-1505


Comment 10 Matt Wringe 2012-02-07 15:53:46 UTC
Added option to specify the deployment of a webapp in wci with respect to the initialization of a servlet.

Comment 11 Jared MORGAN 2012-03-27 03:59:25 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
== HELPDESK CASE THAT WILL REQUIRE CCFR ==

CAUSE:

CONSEQUENCE:

FIX:

RESULT:

Comment 14 Matt Wringe 2012-03-27 14:41:53 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1,9 +1,9 @@
 == HELPDESK CASE THAT WILL REQUIRE CCFR ==
 
-CAUSE:
+CAUSE: The spring portlets require the initalization ordering to be specified between a portlet and a servlet. This is not specified in the portlet specification, and is an issue on the part of the spring portlets for having this requirement.
 
-CONSEQUENCE:
+CONSEQUENCE: Spring based portlets work when the server is first started, but fail on hot deploy due to the requirement on portlet and servlet ordering.
 
-FIX:
+FIX: The WCI component has been updated to allow for the manual registration of a web application using a servlet. By specifying the load-on-start values between this registration portlet and the spring portlet, we can affect when the initialisation of a portlet happens with regard to a servlet. Note that this only guarantees when WCI will register a portlet, not when the PC initialises the portlet. Since the PC needs the web application to be registered in WCI, we can only guarantee that a servlet can be started before a portlet is initialise, which is the case for the spring portlet.
 
-RESULT:+RESULT: Spring based portlets can now be configured to be hot deployable. There are multiple steps which need to be manually configured. See https://community.jboss.org/wiki/AdvancedWCIRegistrationFeatures

Comment 15 Jared MORGAN 2012-03-28 00:58:54 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1,9 +1 @@
-== HELPDESK CASE THAT WILL REQUIRE CCFR ==
+Spring-specific portlet and servlet initialization ordering requirements caused Spring-based portlets to work when the server was first started, but fail on hot deployment. The fix introduces updates to the WCI component that allow manual registration of web applications that use a servlet. By specifying the load-on-start values between the registration portlet and the spring portlet, the way a portlet is initialized in relation to a servlet can be controlled. The fix only affects the point when WCI registers a portlet, not when the portlet is initialized. There are multiple steps which need to be manually configured. See https://community.jboss.org/wiki/AdvancedWCIRegistrationFeatures for more information.-
-CAUSE: The spring portlets require the initalization ordering to be specified between a portlet and a servlet. This is not specified in the portlet specification, and is an issue on the part of the spring portlets for having this requirement.
-
-CONSEQUENCE: Spring based portlets work when the server is first started, but fail on hot deploy due to the requirement on portlet and servlet ordering.
-
-FIX: The WCI component has been updated to allow for the manual registration of a web application using a servlet. By specifying the load-on-start values between this registration portlet and the spring portlet, we can affect when the initialisation of a portlet happens with regard to a servlet. Note that this only guarantees when WCI will register a portlet, not when the PC initialises the portlet. Since the PC needs the web application to be registered in WCI, we can only guarantee that a servlet can be started before a portlet is initialise, which is the case for the spring portlet.
-
-RESULT: Spring based portlets can now be configured to be hot deployable. There are multiple steps which need to be manually configured. See https://community.jboss.org/wiki/AdvancedWCIRegistrationFeatures

Comment 16 Jared MORGAN 2012-03-28 01:07:06 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-Spring-specific portlet and servlet initialization ordering requirements caused Spring-based portlets to work when the server was first started, but fail on hot deployment. The fix introduces updates to the WCI component that allow manual registration of web applications that use a servlet. By specifying the load-on-start values between the registration portlet and the spring portlet, the way a portlet is initialized in relation to a servlet can be controlled. The fix only affects the point when WCI registers a portlet, not when the portlet is initialized. There are multiple steps which need to be manually configured. See https://community.jboss.org/wiki/AdvancedWCIRegistrationFeatures for more information.+Spring-specific portlet and servlet initialization ordering requirements caused Spring-based portlets to work when the server was first started, but fail on hot deployment. The fix introduces updates to the WCI component that allow manual registration of web applications that use a servlet. By specifying the load-on-start values between the registration portlet and the spring portlet, the way a portlet is initialized in relation to a servlet can be controlled. This fix only controls when the web application is registered in WCI with regards to another servlet, and not the servlet ordering with respect to portlets. There are multiple steps which need to be manually configured. Refer to the Bugzilla directly for more information and links to setup information.


Note You need to log in before you can comment on or make changes to this bug.