[ http://jira.jboss.com/jira/browse/JBAS-1543?page=history ]
     
Adrian Brock closed JBAS-1543:
------------------------------

    Resolution: Rejected

.sar files are deployed before -service.xml files

Put your system property config at the top of conf/jboss-service.xml
to ensure it is set BEFORE other deployments try to read the system property.

> ClusteredHttpSession doesn't retrieve Cluster Partition name from 
> SystemPropertiesService
> -----------------------------------------------------------------------------------------
>
>          Key: JBAS-1543
>          URL: http://jira.jboss.com/jira/browse/JBAS-1543
>      Project: JBoss Application Server
>         Type: Bug
>   Components: Clustering
>     Versions:  JBossAS-4.0.1 SP1
>  Environment: Linux JSDK 1.4.2-06 and also Windows 2000 Pro 1.4.2
>     Reporter: Nicolas Martignole
>     Priority: Minor

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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to