Details
-
Bug
-
Resolution: Won't Do
-
Minor
-
None
-
JBossAS-4.0.1 SP1
-
None
Description
Hi
I tried to define the Cluster partition name using the SystemPropertiesService.
It is configured from server/all/properties-service.xml as:
<mbean code="org.jboss.varia.property.SystemPropertiesService"
name="jboss:type=Service,name=SystemProperties">
<attribute name="Properties">jboss.partition.name=MyTestPartition</attribute>
</mbean>
First, I add to rename the file to aaaproperties-services.xml so that the Deployer reads this file before it starts the Clustering and HAJNDI services.
Once started, JBoss created the cluster successfully:
17:20:15,229 INFO [MyTestPartition] Initializing
17:20:15,471 INFO [STDOUT]
-------------------------------------------------------
GMS: address is localhost:33115 (additional data: 14 bytes)
-------------------------------------------------------
17:20:17,532 INFO [MyTestPartition] Number of cluster members: 1
17:20:17,532 INFO [MyTestPartition] Other members: 0
17:20:17,532 INFO [MyTestPartition] Fetching state (will wait for 30000 milliseconds):
17:20:17,654 INFO [HANamingService] Listening on /127.0.0.1:1200
17:20:17,662 INFO [DetachedHANamingService$AutomaticDiscovery] Listening on /127.0.0.1:1102, group=230.0.0.4, HA-JNDI address=127.0.0.1:12
However, the clustering/HTTPSession service failed to start and I got the following message:
17:20:40,472 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
MBeans waiting for other MBeans:
ObjectName: jboss.j2ee:jndiName=clustering/HTTPSession,service=EJB
state: NOTYETINSTALLED
I Depend On: jboss:service=DefaultPartition
jboss:service=invoker,type=jrmp
Depends On Me: jboss:service=ClusteredHttpSession
ObjectName: jboss:service=ClusteredHttpSession
state: CONFIGURED
I Depend On: jboss.j2ee:jndiName=clustering/HTTPSession,service=EJB
Depends On Me:
MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
ObjectName: jboss:service=DefaultPartition
state: NOTYETINSTALLED
I Depend On:
Depends On Me: jboss.j2ee:jndiName=clustering/HTTPSession,service=EJB
This service is configured from the following file:
jboss-4.0.1sp1/server/all/deploy/jbossha-httpsession.sar/ClusteredHttpSessionEB.jar/META-INF/jboss.xml
that contains the following lines:
<cluster-config>
<partition-name>${jboss.partition.name:DefaultPartition}</partition-name>
</cluster-config>
<depends>jboss:service=${jboss.partition.name:DefaultPartition}</depends>
<depends>jboss:service=invoker,type=jrmp</depends>
</container-configuration>
</container-configurations>
Problem is apparently the ${jboss.partition.nam...} env property is not read and thus,
it always switch to DefaultPartition.
If I rename DefaultPartition to MyTestPartition it works.
Thanks for your help
Nicolas