0 Replies Latest reply on Sep 29, 2004 9:05 AM by Matthew Lewis

    Problems Configuring JBoss for Clustering

    Matthew Lewis Newbie

      After setting up both machines and running them with -c all I am able to successully see both members. Now after dropping the EAR file in the server/all/deploy folder I get the following errors. Can someone help?

      Note: If running the same application in the server/default/deploy folder I have no errors and everything works great. I think it is a simple configuration problem once I am in a cluster.

      ===============================================================================
      .
      JBoss Bootstrap Environment
      .
      JBOSS_HOME: C:\jboss-3.2.5\bin\\..
      .
      JAVA: C:\j2sdk1.4.2_05\bin\java
      .
      JAVA_OPTS: -Dprogram.name=run.bat
      .
      CLASSPATH: C:\j2sdk1.4.2_05\lib\tools.jar;C:\jboss-3.2.5\bin\\run.jar
      .
      ===============================================================================
      .
      14:06:11,812 INFO [Server] Starting JBoss (MX MicroKernel)...
      14:06:11,828 INFO [Server] Release ID: JBoss [WonderLand] 3.2.5 (build: CVSTag=JBoss_3_2_5 date=200406251954)
      14:06:11,828 INFO [Server] Home Dir: C:\jboss-3.2.5
      14:06:11,828 INFO [Server] Home URL: file:/C:/jboss-3.2.5/
      14:06:11,828 INFO [Server] Library URL: file:/C:/jboss-3.2.5/lib/
      14:06:11,828 INFO [Server] Patch URL: null
      14:06:11,828 INFO [Server] Server Name: all
      14:06:11,828 INFO [Server] Server Home Dir: C:\jboss-3.2.5\server\all
      14:06:11,828 INFO [Server] Server Home URL: file:/C:/jboss-3.2.5/server/all/
      14:06:11,828 INFO [Server] Server Data Dir: C:\jboss-3.2.5\server\all\data
      14:06:11,828 INFO [Server] Server Temp Dir: C:\jboss-3.2.5\server\all\tmp
      14:06:11,828 INFO [Server] Server Config URL: file:/C:/jboss-3.2.5/server/all/conf/
      14:06:11,828 INFO [Server] Server Library URL: file:/C:/jboss-3.2.5/server/all/lib/
      14:06:11,828 INFO [Server] Root Deployment Filename: jboss-service.xml
      14:06:11,843 INFO [Server] Starting General Purpose Architecture (GPA)...
      14:06:12,359 INFO [ServerInfo] Java version: 1.4.2_05,Sun Microsystems Inc.
      14:06:12,359 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.4.2_05-b04,Sun Microsystems Inc.
      14:06:12,359 INFO [ServerInfo] OS-System: Windows 2000 5.0,x86
      14:06:12,781 INFO [Server] Core system initialized
      14:06:17,203 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
      14:06:17,625 INFO [WebService] Using RMI server codebase: http://divoas002:8083/
      14:06:17,750 INFO [NamingService] Started jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory@ad093076
      14:06:22,562 INFO [EjbModule] Deploying ClusteredHTTPSession
      14:06:22,890 INFO [EJBDeployer] Deployed: file:/C:/jboss-3.2.5/server/all/deploy/jbossha-httpsession.sar/ClusteredHttpSessionEB.jar/
      14:06:27,453 INFO [RARMetaData] Loading JBoss Resource Adapter for JDBC 2 XA drivers
      14:06:27,453 INFO [RARMetaData] Required license terms present. See deployment descriptor.
      14:06:29,515 INFO [ConfiguratorFactory] properties are neither a URL nor a file
      14:06:29,984 INFO [DefaultPartition] Initializing
      14:06:30,281 INFO [UDP] unicast sockets will use interface 10.8.12.4
      14:06:30,593 INFO [UDP] socket information:
      local_addr=divoas002:2648 (additional data: 14 bytes), mcast_addr=228.1.2.3:45566, bind_addr=/10.8.12.4, ttl=32
      socket: bound to 10.8.12.4:2648, receive buffer size=150000, send buffer size=800000
      multicast socket: bound to 10.8.12.4:45566, send buffer size=800000, receive buffer size=150000
      14:06:30,593 INFO [STDOUT]
      -------------------------------------------------------
      GMS: address is divoas002:2648 (additional data: 14 bytes)
      -------------------------------------------------------
      14:06:32,656 INFO [DefaultPartition] Number of cluster members: 1
      14:06:32,656 INFO [DefaultPartition] Other members: 0
      14:06:32,656 INFO [DefaultPartition] Fetching state (will wait for 60000 milliseconds):
      14:06:32,671 INFO [DefaultPartition] New cluster view (id: 0, delta: 0) : [10.8.12.4:1099]
      14:06:32,687 INFO [DefaultPartition:ReplicantManager] Dead members: 0
      14:06:32,968 INFO [HANamingService] Listening on /0.0.0.0:1100
      14:06:33,031 INFO [DetachedHANamingService$AutomaticDiscovery] Listening on /0.0.0.0:1102, group=230.0.0.4, HA-JNDI address=10.8.12.4:1100
      14:06:35,281 INFO [interceptors] InterceptorManager started with 0 SIs, 0 CIs and 2 IORIs
      14:06:35,671 INFO [orb] ORB run
      14:06:35,828 INFO [CorbaNamingService] Naming: [IOR:000000000000002B49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578744578743A312E300000000000020000000000000064000102000000000A31302E382E31322E34000DC8000000114A426F73732F4E616D696E672F726F6F74000000000000020000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000010000002C0000000000000001000000010000001C00000000000100010000000105010001000101090000000105010001]
      14:06:36,140 INFO [MailService] Mail Service bound to java:/Mail
      14:06:37,015 INFO [Embedded] Catalina naming disabled
      14:06:38,406 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
      14:06:38,453 INFO [Catalina] Initialization processed in 1297 ms
      14:06:38,453 INFO [StandardService] Starting service jboss.web
      14:06:38,468 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.0.26
      14:06:38,484 INFO [StandardHost] XML validation disabled
      14:06:38,562 INFO [Catalina] Server startup in 109 ms
      14:06:38,671 WARN [DeploymentInfo] Only the root deployment can set the loader repository, ingoring config=null
      14:06:38,718 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=file:/C:/jboss-3.2.5/server/all/deploy/http-invoker.sar/invoker.war/
      14:06:40,421 WARN [DeploymentInfo] Only the root deployment can set the loader repository, ingoring config=null
      14:06:40,437 INFO [TomcatDeployer] deploy, ctxPath=/jboss-net, warUrl=file:/C:/jboss-3.2.5/server/all/deploy/jboss-net.sar/jboss-net.war/
      14:06:40,750 WARN [DeploymentInfo] Only the root deployment can set the loader repository, ingoring config=null
      14:06:40,765 INFO [TomcatDeployer] deploy, ctxPath=, warUrl=file:/C:/jboss-3.2.5/server/all/deploy/jbossweb-tomcat50.sar/ROOT.war/
      14:06:41,093 WARN [DeploymentInfo] Only the root deployment can set the loader repository, ingoring config=null
      14:06:41,093 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=file:/C:/jboss-3.2.5/server/all/deploy-hasingleton/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
      14:06:41,468 INFO [DefaultDS] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=LocalTxCM,name=DefaultDS to JNDI name 'java:/DefaultDS'
      14:06:41,828 INFO [A] Bound to JNDI name: queue/A
      14:06:41,843 INFO [B] Bound to JNDI name: queue/B
      14:06:41,843 INFO [C] Bound to JNDI name: queue/C
      14:06:41,843 INFO [D] Bound to JNDI name: queue/D
      14:06:41,843 INFO [ex] Bound to JNDI name: queue/ex
      14:06:41,906 INFO [testTopic] Bound to JNDI name: topic/testTopic
      14:06:41,906 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
      14:06:41,906 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
      14:06:41,921 INFO [testQueue] Bound to JNDI name: queue/testQueue
      14:06:42,031 INFO [OILServerILService] JBossMQ OIL service available at : /0.0.0.0:8090
      14:06:42,062 INFO [OIL2ServerILService] JBossMQ OIL2 service available at : /0.0.0.0:8092
      14:06:42,203 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
      14:06:42,312 INFO [DLQ] Bound to JNDI name: queue/DLQ
      14:06:42,343 INFO [JmsXA] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=TxCM,name=JmsXA to JNDI name 'java:/JmsXA'
      14:06:42,437 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=file:/C:/jboss-3.2.5/server/all/deploy/jmx-console.war/
      14:06:43,296 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=file:/C:/jboss-3.2.5/server/all/tmp/deploy/tmp20957web-console.war/
      14:06:44,781 INFO [Server] JBoss (MX MicroKernel) [3.2.5 (build: CVSTag=JBoss_3_2_5 date=200406251954)] Started in 32s:938ms
      14:06:44,781 INFO [Tomcat5] Saw org.jboss.system.server.started notification, starting connectors
      14:06:44,859 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
      14:06:45,250 INFO [ChannelSocket] JK2: ajp13 listening on /0.0.0.0:8009
      14:06:45,265 INFO [JkMain] Jk running ID=0 time=0/62 config=null
      14:07:07,625 INFO [DefaultPartition] New cluster view (id: 1, delta: 1) : [10.8.12.4:1099, 10.8.12.5:1099]
      14:07:07,625 INFO [DefaultPartition:ReplicantManager] Dead members: 0
      14:28:45,031 INFO [DefaultPartition] New cluster view (id: 2, delta: -1) : [10.8.12.4:1099]
      14:28:45,031 INFO [DefaultPartition:ReplicantManager] Dead members: 1
      14:36:18,265 INFO [DefaultPartition] New cluster view (id: 3, delta: 1) : [10.8.12.4:1099, 10.8.12.5:1099]
      14:36:18,265 INFO [DefaultPartition:ReplicantManager] Dead members: 0
      16:02:40,890 INFO [EARDeployer] Init J2EE application: file:/C:/jboss-3.2.5/server/all/deploy/deployapp.ear
      16:02:47,437 WARN [DeploymentInfo] Only the root deployment can set the loader repository, ingoring config=null
      16:02:48,218 WARN [EJBDeployer] Verify failed; continuing
      java.lang.NoClassDefFoundError: com/gdlp/sales/application/ejb/trailerRules/PlantKey
      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)
      at java.lang.Class.getConstructor0(Class.java:1930)
      at java.lang.Class.getConstructor(Class.java:1027)
      at org.jboss.verifier.strategy.AbstractVerifier.hasDefaultConstructor(AbstractVerifier.java:574)
      at org.jboss.verifier.strategy.EJBVerifier20.verifyCMPEntityBean(EJBVerifier20.java:1874)
      at org.jboss.verifier.strategy.EJBVerifier20.checkBmpOrCmp2Entity(EJBVerifier20.java:167)
      at org.jboss.verifier.strategy.EJBVerifier20.checkEntity(EJBVerifier20.java:137)
      at org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:154)
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:501)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:790)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:782)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:644)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
      at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy7.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      16:02:48,218 ERROR [MainDeployer] could not create deployment: file:/C:/jboss-3.2.5/server/all/tmp/deploy/tmp20960deployapp.ear-contents/ejb.jar
      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:517)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:790)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:782)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:644)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
      at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy7.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      16:02:48,218 ERROR [MainDeployer] could not create deployment: file:/C:/jboss-3.2.5/server/all/deploy/deployapp.ear
      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:517)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:790)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:782)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:644)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
      at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy7.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      12:03:11,687 INFO [EJBDeployer] Undeploying: file:/C:/jboss-3.2.5/server/all/tmp/deploy/tmp20960deployapp.ear-contents/ejb.jar
      12:03:11,687 INFO [EARDeployer] Undeploying J2EE application, destroy step: file:/C:/jboss-3.2.5/server/all/deploy/deployapp.ear
      12:03:13,640 WARN [DeploymentInfo] Could not delete file:/C:/jboss-3.2.5/server/all/tmp/deploy/tmp20960deployapp.ear restart will delete it
      12:03:44,078 INFO [EARDeployer] Init J2EE application: file:/C:/jboss-3.2.5/server/all/deploy/deployapp2.ear
      12:03:52,093 WARN [DeploymentInfo] Only the root deployment can set the loader repository, ingoring config=null
      12:03:52,546 WARN [EJBDeployer] Verify failed; continuing
      java.lang.NoClassDefFoundError: com/gdlp/sales/application/ejb/trailerRules/PlantKey
      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)
      at java.lang.Class.getConstructor0(Class.java:1930)
      at java.lang.Class.getConstructor(Class.java:1027)
      at org.jboss.verifier.strategy.AbstractVerifier.hasDefaultConstructor(AbstractVerifier.java:574)
      at org.jboss.verifier.strategy.EJBVerifier20.verifyCMPEntityBean(EJBVerifier20.java:1874)
      at org.jboss.verifier.strategy.EJBVerifier20.checkBmpOrCmp2Entity(EJBVerifier20.java:167)
      at org.jboss.verifier.strategy.EJBVerifier20.checkEntity(EJBVerifier20.java:137)
      at org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:154)
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:501)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:790)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:782)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:644)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
      at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy7.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)