Problem with farm folder scanning
synbios May 23, 2005 10:56 AMHello,
I've configured 2 JBoss instances (4.0.2) on the same machine that work in a cluster named WKEIPTRANSFO.
I've configured farm-service.xml like this :
<?xml version="1.0" encoding="UTF-8"?> <server> <classpath codebase="lib" archives="jbossha.jar"/> <mbean code="org.jboss.ha.framework.server.FarmMemberService" name="jboss:service=FarmMember,partition=${jboss.partition.name:DefaultPartition}"> <depends>jboss:service=${jboss.partition.name:DefaultPartition}</depends> <depends>jboss.ejb:service=EJBDeployer</depends> <depends>jboss.web:service=WebServer</depends> <attribute name="Deployer">jboss.system:service=MainDeployer</attribute> <attribute name="PartitionName">${jboss.partition.name:DefaultPartition}</attribute> <attribute name="ScanPeriod">5000</attribute> <attribute name="URLs">.\farm</attribute> </mbean> </server>
Then I start the two servers and move an ear to the farm directory. I obtain the following exceptions. Anyone has an idea ?
Thanks
16:38:48,666 INFO [WKEIPTRANSFO] New cluster view for partition WKEIPTRANSFO (id: 1, delta: 1) : [192.168.17.33:1099, 192.168.17.33:1199] 16:38:48,667 INFO [WKEIPTRANSFO] Merging partitions... 16:38:48,667 INFO [WKEIPTRANSFO] Dead members: 0 16:38:48,667 INFO [WKEIPTRANSFO] Originating groups: [[mbwk01:33168 (additional data: 18 bytes)|0] [mbwk01:33168 (additional data: 18 bytes)], [mbwk01:33170 (additional data: 18 bytes)|0] [mbwk01:33170 (additional data: 18 bytes)]] 16:38:48,672 ERROR [GMS] [mbwk01:33168 (additional data: 18 bytes)] received view <= current view; discarding it (current vid: [mbwk01:33168 (additional data: 18 bytes)|1], new vid: [mbwk01:33168 (additional data: 18 bytes)|1]) 16:39:41,919 INFO [STDOUT] java.lang.NullPointerException 16:39:41,920 INFO [STDOUT] at org.jboss.net.protocol.file.FileURLLister$1.accept(FileURLLister.java:55) 16:39:41,920 INFO [STDOUT] at java.io.File.listFiles(File.java:1076) 16:39:41,920 INFO [STDOUT] at org.jboss.net.protocol.file.FileURLLister.listFiles(FileURLLister.java:49) 16:39:41,920 INFO [STDOUT] at org.jboss.net.protocol.file.FileURLLister.listMembers(FileURLLister.java:40) 16:39:41,920 INFO [STDOUT] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:399) 16:39:41,920 INFO [STDOUT] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204) 16:39:41,920 INFO [STDOUT] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215) 16:39:41,921 INFO [STDOUT] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194) 16:39:41,921 INFO [EARDeployer] Init J2EE application: file:/LIBRE/wkeditions/jboss-4.0.2/server/jboss1/farm/EIPTransfo_d.ear/ 16:39:46,633 INFO [EjbModule] Deploying SB.DocumentManagementFacade 16:39:46,731 INFO [EjbModule] Deploying SBSatefull.DMIntegrationProcessContext 16:39:46,794 INFO [EjbModule] Deploying SB.DocumentTransformationFacade 16:39:47,309 INFO [EJBDeployer] Deployed: file:/LIBRE/wkeditions/jboss-4.0.2/server/jboss1/farm/EIPTransfo_d.ear/EIPejbTransfo_d.jar/ 16:39:47,392 INFO [EARDeployer] Started J2EE application: file:/LIBRE/wkeditions/jboss-4.0.2/server/jboss1/farm/EIPTransfo_d.ear/ 16:39:47,393 INFO [STDOUT] java.io.FileNotFoundException: /LIBRE/wkeditions/jboss-4.0.2/server/jboss1/farm/EIPTransfo_d.ear (Is a directory) 16:39:47,394 INFO [STDOUT] at java.io.FileInputStream.open(Native Method) 16:39:47,394 INFO [STDOUT] at java.io.FileInputStream.<init>(FileInputStream.java:106) 16:39:47,394 INFO [STDOUT] at org.jboss.ha.framework.server.FarmMemberService.getFileContent(FarmMemberService.java:331) 16:39:47,394 INFO [STDOUT] at org.jboss.ha.framework.server.FarmMemberService.deploy(FarmMemberService.java:401) 16:39:47,394 INFO [STDOUT] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:501) 16:39:47,395 INFO [STDOUT] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204) 16:39:47,395 INFO [STDOUT] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215) 16:39:47,395 INFO [STDOUT] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)