Bug 974433
Summary: | Running JPP in Domain mode throws an exception when jvmRoute or instance-id is used for profile full which is non clustered. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [JBoss] JBoss Enterprise Portal Platform 6 | Reporter: | Dominik Pospisil <dpospisi> | ||||||
Component: | Portal | Assignee: | Lucas Ponce <lponce> | ||||||
Status: | VERIFIED --- | QA Contact: | Martin Vecera <mvecera> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 6.1.0 | CC: | bdawidow, epp-bugs, nobody, tkyjovsk | ||||||
Target Milestone: | ER02 | Keywords: | Reopened | ||||||
Target Release: | 6.2.0 | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2013-06-28 10:47:55 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Dominik Pospisil
2013-06-14 07:56:57 UTC
Created attachment 761961 [details]
Test case
The issue can be reproduced in JBoss EAP 6.1 (AS 7.2.0.Final-redhat-8). When the standalone.xml has the "jvmRoute" system property, the profile is expecting to work under a clustering configuration. If the "jvmRoute" property is set but there is not distributable cache configuration in Infinispan, this issue can be reproduced. I think this is a bug, due a customer can have a "farming" architecture, this means, you can have a load balancer with sticky session flag, but not clustering in the backend. In this case, there are two possible workarounds: - If a customer doesn't want to use clustering but they want to use "jvmRoute", <distributable /> mark should be removed from web.xml applications. - Or update standalone.xml to standalone-ha.xml to have clustering configuration enabled. The attachment is a simple web application where the issue can be tested. The steps to reproduce are: 1.- unzip EAP 6.1. 2.- use the standalone.xml profile. 3.- add jvmRoute in standalone.xml as a system property with value = "test". 4.- Deploy attachment application into EAP 6.1. Created attachment 761973 [details]
Test case 2
Other test case with serializable objects in session, so error can be reproduced with a valid <distributable > application.
If <distributable /> tag is present, developer is responsible to make serializable all objects that are going to be stored in the http session.
But in this case, error is still happening.
Corresponding EAP bug is marked to be fixed in EAP 6.1.1 - we won't be able to pick it up for JPP 6.1.0.GA. I'm closing as DEFERRED - aas there is no futher JPP release to move it to at this point. Status depends on EAP fix availability in the future. Should be reopened once 6.2.0 is added to the system. No way to mark it atm. Re-opening to ensure this is fixed in JPP 6.2.0 release based on EAP 6.3.0. Hello All, The issue does not happens when using standalone*.xml in JPP-6.1. However, the issue is reproducible when running in Domain mode and only for profiles full and default since they do not have clustering features. How to reproduce: 1) Add the below system property, along with the other portal properties that are already present. <system-properties> <property name="java.net.preferIPv4Stack" value="true"/> ... ... <property name="jvmRoute" value="node1"/> </system-properties> 2) Below is how the <server-groups> is defined in the domain.xml <server-groups> <server-group name="main-server-group" profile="full"> <jvm name="default"> ... </jvm> <socket-binding-group ref="full-sockets"/> </server-group> <server-group name="other-server-group" profile="full-ha"> <jvm name="default"> ... </jvm> <socket-binding-group ref="full-ha-sockets"/> </server-group> <server-groups> 3) Server entry in host.xml <servers> <server name="server-one" group="main-server-group" auto-start="true"> </server> <server name="server-two" group="other-server-group" auto-start="true"> <socket-bindings port-offset="150"/> </server> <servers> 4) The /portal.war/WEB-INF/web.xml , /gatein/extensions/gatein-wsrp-integration.ear/wsrp-admin-gui.war/WEB-INF/web.xml and /gatein/extensions/jpp-branding-extension.ear/jpp-branding-extension.war/WEB-INF/web.xml already has <distributable/> applied. 5) Start the server and the above reported exception can be seen. Removing the <distributable/> tag gets rid of the issue. But since JBoss is running in the Domain mode, changes to the GateIn is applied to all the profiles. Also was seen that gatein.ear does not gets deplyed for the profiles full-ha and ha. I reproduced all described issues with 6.1.0 ER1 or CR3(==GA). Retested with 6.2.0.ER2: - standalone.xml startup exceptions - OK - standalone.xml + web-serializable.war - OK - domain.xml server-one:full & server-two:full-ha (Anurag's test case) - OK, gatein.ear deployed fine on both nodes - domain.xml server-one:default & server-one:ha - OK, gatein.ear deployed fine on both nodes |