[ 
https://issues.jboss.org/browse/WELD-828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12575651#comment-12575651
 ] 

Pete Muir commented on WELD-828:
--------------------------------

On debugging the issue is that on node1 the BDA id in use is 
org.jboss.weld.bean-jboss.classloader:id="vfs:///Users/pmuir/workspace/jbossas6/build/target/jboss-6.0.0.Final/server/all/deploy/weld-numberguess.war
and on node 2 it's 
org.jboss.weld.bean-jboss.classloader:id="vfs:///Users/pmuir/workspace/jbossas6/build/target/jboss-6.0.0.Final/server/all2/deploy/weld-numberguess.war
 (the difference is in the two profile names).

Weld requires that the BDA id be unique across the server, and consistent 
across the cluster -- the second requirement isn't met right now.

Proposed fix is simply to trim out the everything up to deploy/


> Clustering numberguess example doesn't work
> -------------------------------------------
>
>                 Key: WELD-828
>                 URL: https://issues.jboss.org/browse/WELD-828
>             Project: Weld
>          Issue Type: Bug
>          Components: Weld/CDI
>    Affects Versions: 6.0.0.Final
>         Environment: JBoss 6.0.0.Final
>            Reporter: Ondrej Skutka
>
>  - Created cluster according to the readme 
>  - Ran "mvn -Pjboss6cluster,ftest-jboss-cluster-6"
>  - The test failed:
> FAILED: guessingWithFailoverTest
> java.lang.AssertionError: Page should contain message Higher! expected:<true> 
> but was:<false>
>       at 
> org.jboss.weld.examples.numberguess.clustertest.selenium.NumberGuessClusteringTest.guessingWithFailoverTest(NumberGuessClusteringTest.java:123)
>       at 
> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:74)
>       at 
> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
>       at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
>       at 
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
>       at 
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
> And indeed, when running manually and shutting down one of the nodes in 
> cluster, it failes to synchronize the session:
> 13:39:03,909 WARN  
> [org.jboss.web.tomcat.service.session.distributedcache.ispn.DistributedCacheManager]
>  Problem accessing session [3V****vgLw__]: 
> org.jboss.weld.exceptions.IllegalStateException: WELD-000612 Unable to 
> deserialize field. Declaring bean id 
> org.jboss.weld.bean-jboss.classloader:id="vfs:///home/ony/Programming/jboss-6.0.0.Final/server/all/farm/weld-numberguess.war"-ManagedBean-class
>  org.jboss.weld.examples.numberguess.Game, declaring class 
> public@SessionScoped @Named class org.jboss.weld.examples.numberguess.Game, 
> field name randomNumber

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
weld-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/weld-issues

Reply via email to