6 Replies Latest reply on Mar 5, 2007 8:27 AM by Sebastián Lacuesta

    Problem with datasources, they start, but my apps cannot use

    Sebastián Lacuesta Newbie

      Hi, I'm having a very strange behavior with a cluster. The main problem is that I have diferent datasources, that they appear to start correctly, when I try to use them I get a NullPointerException. There are some other strange things that occur:

      The first node starts without problem, no matter which one of the node is. All the other nodes start with the following error at the end:

      03:41:47,953 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

      --- MBeans waiting for other MBeans ---
      ObjectName: jboss.mq:service=DestinationManager
      State: CONFIGURED
      I Depend On:
      jboss.mq:service=MessageCache
      jboss.mq:service=PersistenceManager
      jboss.mq:service=StateManager

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: jboss.mq:service=StateManager
      State: NOTYETINSTALLED
      Depends On Me:
      jboss.mq:service=DestinationManager

      03:41:48,076 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-192.168.2.2-8080
      03:41:48,231 INFO [ChannelSocket] JK: ajp13 listening on /192.168.2.2:8009
      03:41:48,242 INFO [JkMain] Jk running ID=0 time=0/29 config=null
      03:41:48,267 INFO [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 27s:894ms

      I'm using jboss 4.0.4.GA, I became mad and tried 4.0.5.GA, I reproduced the same configuration but I got the same errors. The errors pasted above where taken from the 4.0.5 version.

      The permissions in files are all correct (99% sure) permissions to databases are all correct (100% sure).

      I'm using CentOS 4.4, and jdk 1.5.0

      Thanks in advance, if you need more info to diagnose the problem, I'll post it. Excuse me if my english is not good.

        • 1. Re: Problem with datasources, they start, but my apps cannot
          Brian Stansberry Master

          If you're getting that same Incomplete Deployment listing on more than one server in the cluster, that tells me you are not using JMS configured to deploy from the deploy-hasingleton directory, the way it comes in the 'all' config. If you want clustered JBossMQ, it should be deployed from deploy-hasingleton.

          • 2. Re: Problem with datasources, they start, but my apps cannot
            Sebastián Lacuesta Newbie

            Yes, I get the same Incomplete Deployment listing on all servers, except the first I start, no matter which of all is. I don't want JMS being clustered, I want it standalone for each server. The DefaultDS uses a local mysql in each server. I have two more datasources which they point to two different mysql databases in two different machines. That is, I have three (in the future they will be more) servers with one instance of jboss and a local mysql, and two servers with a mysql database each one, which must be accesed by all of the jboss servers. In each AS there are two homemade apps, one clustered deployed in the farm directory, and other which uses jms, and is deployed in the deploy directory, and thus, not clustered.

            • 3. Re: Problem with datasources, they start, but my apps cannot
              Brian Stansberry Master

              OK, that's fine. Then I assume you are deploying JMS as it's done in the 'default' config. If not, that's what you need to do.

              As for the NPE, please post the stack trace.

              • 4. Re: Problem with datasources, they start, but my apps cannot
                Sebastián Lacuesta Newbie

                Well, in the "default" config it seems that JMS uses the hypersonic db, and I read everywhere that this is a bad idea in a production environment (I couldn't find why), so I changed the DefaultDS to use mysql locally, and then I changed the DataSourceBinding at mysql-jdbc2-service.xml to use it, I deleted a hsqldb-jdbc2-service.xml at deploy/jms and/or deploy-hasingleton/jms but a hsqldb-jdbc-state-service.xml exists. I use a custom configuration named "pok" that started as a copy of the "all" configuration, I didn't remove any component, just changed some datasources, and added other datasources. The reason to use the "all" configuration is that I need JBossCache. I'll post the output of two servers, and the stack trace of the exception.

                The startup of the first server is:

                [root@c1 bin]# su jboss -c "./run.sh -cpok -b192.168.2.2"
                =========================================================================

                JBoss Bootstrap Environment

                JBOSS_HOME: /usr/local/jboss-4.0.5.GA

                JAVA: /usr/java/jdk1.5.0_10/bin/java

                JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

                CLASSPATH: /usr/local/jboss-4.0.5.GA/bin/run.jar:/usr/java/jdk1.5.0_10/lib/tools.jar

                =========================================================================

                22:09:37,701 INFO [Server] Starting JBoss (MX MicroKernel)...
                22:09:37,702 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)
                22:09:37,704 INFO [Server] Home Dir: /usr/local/jboss-4.0.5.GA
                22:09:37,704 INFO [Server] Home URL: file:/usr/local/jboss-4.0.5.GA/
                22:09:37,705 INFO [Server] Patch URL: null
                22:09:37,705 INFO [Server] Server Name: pok
                22:09:37,705 INFO [Server] Server Home Dir: /usr/local/jboss-4.0.5.GA/server/pok
                22:09:37,706 INFO [Server] Server Home URL: file:/usr/local/jboss-4.0.5.GA/server/pok/
                22:09:37,706 INFO [Server] Server Log Dir: /usr/local/jboss-4.0.5.GA/server/pok/log
                22:09:37,706 INFO [Server] Server Temp Dir: /usr/local/jboss-4.0.5.GA/server/pok/tmp
                22:09:37,707 INFO [Server] Root Deployment Filename: jboss-service.xml
                22:09:38,048 INFO [ServerInfo] Java version: 1.5.0_10,Sun Microsystems Inc.
                22:09:38,048 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 1.5.0_10-b03,Sun Microsystems Inc.
                22:09:38,049 INFO [ServerInfo] OS-System: Linux 2.6.9-42.0.8.ELsmp,amd64
                22:09:38,672 INFO [Server] Core system initialized
                22:09:42,109 INFO [WebService] Using RMI server codebase: http://192.168.2.2:8083/
                22:09:42,135 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
                22:09:48,611 INFO [ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date=200609291417)
                22:09:49,643 INFO [SnmpAgentService] SNMP agent going active
                22:09:50,382 INFO [InterceptorChainFactory] interceptor chain is:
                class org.jboss.cache.interceptors.CallInterceptor
                class org.jboss.cache.interceptors.PessimisticLockInterceptor
                class org.jboss.cache.interceptors.UnlockInterceptor
                class org.jboss.cache.interceptors.ReplicationInterceptor
                class org.jboss.cache.interceptors.TxInterceptor
                class org.jboss.cache.interceptors.CacheMgmtInterceptor
                22:09:50,767 INFO [STDOUT]
                -------------------------------------------------------
                GMS: address is 192.168.2.2:32937
                -------------------------------------------------------
                22:09:52,792 INFO [TreeCache] viewAccepted(): [192.168.2.2:32937|0] [192.168.2.2:32937]
                22:09:52,797 INFO [TreeCache] TreeCache local address is 192.168.2.2:32937
                22:09:52,806 INFO [TreeCache] State could not be retrieved (we are the first member in group)
                22:09:52,806 INFO [TreeCache] parseConfig(): PojoCacheConfig is empty
                22:09:53,097 INFO [DefaultPartition] Initializing
                22:09:53,282 INFO [STDOUT]
                -------------------------------------------------------
                GMS: address is 192.168.2.2:32940 (additional data: 16 bytes)
                -------------------------------------------------------
                22:09:55,290 INFO [DefaultPartition] Number of cluster members: 1
                22:09:55,290 INFO [DefaultPartition] Other members: 0
                22:09:55,291 INFO [DefaultPartition] Fetching state (will wait for 30000 milliseconds):
                22:09:55,293 INFO [DefaultPartition] State could not be retrieved (we are the first member in group)
                22:09:55,326 INFO [HANamingService] Started ha-jndi bootstrap jnpPort=1100, backlog=50, bindAddress=/192.168.2.2
                22:09:55,333 INFO [DetachedHANamingService$AutomaticDiscovery] Listening on /192.168.2.2:1102, group=230.0.0.4, HA-JNDI address=192.168.2.2:1100
                22:09:56,817 INFO [CorbaNamingService] Naming: [IOR:000000000000002B49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578744578743A312E3000000000000200000000000000E4000102000000000C3139322E3136382E322E32000DC80000000000114A426F73732F4E616D696E672F726F6F74000000000000050000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000210000005C000000000000000100000000000000240000001C0000007E00000000000000010000000A3132372E302E302E31000DC900400000000000000000001004010008060667810201010100000000000000000000000000000000000000000000002000000004000000000000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003]
                22:09:56,900 INFO [CorbaTransactionService] TransactionFactory: [IOR:000000000000003049444C3A6F72672F6A626F73732F746D2F69696F702F5472616E73616374696F6E466163746F72794578743A312E30000000000200000000000000E4000102000000000C3139322E3136382E322E32000DC80000000000144A426F73732F5472616E73616374696F6E732F46000000050000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000210000005C000000000000000100000000000000240000001C0000007E00000000000000010000000A3132372E302E302E31000DC900400000000000000000001004010008060667810201010100000000000000000000000000000000000000000000002000000004000000000000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003]
                22:09:57,735 INFO [Embedded] Catalina naming disabled
                22:09:57,797 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
                22:09:57,799 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
                22:09:58,629 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-192.168.2.2-8080
                22:09:58,631 INFO [Catalina] Initialization processed in 832 ms
                22:09:58,631 INFO [StandardService] Starting service jboss.web
                22:09:58,635 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.20
                22:09:58,886 INFO [StandardHost] XML validation disabled
                22:09:58,914 INFO [Catalina] Server startup in 283 ms
                22:09:59,569 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/httpha-invoker.sar/invoker.war/
                22:09:59,851 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
                22:10:00,715 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
                22:10:01,181 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp27918jbossws-context-exp.war/
                22:10:01,448 INFO [TomcatDeployer] deploy, ctxPath=/juddi, warUrl=.../deploy/juddi-service.sar/juddiws.war/
                22:10:01,782 INFO [RegistryServlet] Loading jUDDI configuration.
                22:10:01,784 INFO [RegistryServlet] Resources loaded from: /WEB-INF/juddi.properties
                22:10:01,784 INFO [RegistryServlet] Initializing jUDDI components.
                22:10:02,315 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy-hasingleton/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
                22:10:03,033 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
                22:10:03,806 INFO [MailService] Mail Service bound to java:/Mail
                22:10:04,342 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
                22:10:04,444 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
                22:10:04,468 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
                22:10:04,530 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
                22:10:04,585 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
                22:10:04,612 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
                22:10:05,228 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
                22:10:05,453 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
                22:10:06,067 INFO [A] Bound to JNDI name: queue/A
                22:10:06,073 INFO [B] Bound to JNDI name: queue/B
                22:10:06,083 INFO [C] Bound to JNDI name: queue/C
                22:10:06,087 INFO [D] Bound to JNDI name: queue/D
                22:10:06,089 INFO [ex] Bound to JNDI name: queue/ex
                22:10:06,133 INFO [testTopic] Bound to JNDI name: topic/testTopic
                22:10:06,136 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
                22:10:06,138 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic22:10:06,143 INFO [testQueue] Bound to JNDI name: queue/testQueue
                22:10:06,195 INFO [UILServerILService] JBossMQ UIL service available at : /192.168.2.2:8093
                22:10:06,283 INFO [DLQ] Bound to JNDI name: queue/DLQ
                22:10:06,427 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=PokUpdateDS' to JNDI name 'java:PokUpdateDS'
                22:10:06,612 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=PokQueryDS' to JNDI name 'java:PokQueryDS'
                22:10:06,766 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
                22:10:06,943 INFO [EARDeployer] Init J2EE application: file:/usr/local/jboss-4.0.5.GA/server/pok/deploy/POKSessionEAR.ear
                22:10:07,277 INFO [EjbModule] Deploying Process
                22:10:07,357 INFO [EjbModule] Deploying SessionServer
                22:10:07,536 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'Process' to jndi 'ProcessLocal'
                22:10:07,552 INFO [ProxyFactory] Bound EJB Home 'Process' to jndi 'Process'
                22:10:07,728 WARN [JMSContainerInvoker] destination not found: queue/SessionServer reason: javax.naming.NameNotFoundException: queue/SessionServer
                22:10:07,728 WARN [JMSContainerInvoker] creating a new temporary destination: queue/SessionServer
                22:10:07,776 INFO [SessionServer] Bound to JNDI name: queue/SessionServer
                22:10:07,908 INFO [EJBDeployer] Deployed: file:/usr/local/jboss-4.0.5.GA/server/pok/tmp/deploy/tmp27962POKSessionEAR.ear-contents/POKSessionServer.jar
                22:10:07,958 INFO [TomcatDeployer] deploy, ctxPath=/POKSessionClient, warUrl=.../tmp/deploy/tmp27962POKSessionEAR.ear-contents/POKSessionClient-exp.war/
                22:10:08,367 INFO [EARDeployer] Started J2EE application: file:/usr/local/jboss-4.0.5.GA/server/pok/deploy/POKSessionEAR.ear
                22:10:08,431 INFO [EARDeployer] Init J2EE application: file:/usr/local/jboss-4.0.5.GA/server/pok/farm/POKSystemEAR.ear
                22:10:09,440 INFO [EjbModule] Deploying CPOKPromo
                22:10:09,449 INFO [EjbModule] Deploying CPOKBlog
                22:10:09,459 INFO [EjbModule] Deploying CPOKTv
                22:10:09,466 INFO [EjbModule] Deploying CPOKAux
                22:10:09,474 INFO [EjbModule] Deploying CPOKFavorite
                22:10:09,483 INFO [EjbModule] Deploying CPOKWEBBlog
                22:10:09,491 INFO [EjbModule] Deploying CPOKWEBFavorite
                22:10:09,502 INFO [EjbModule] Deploying CPOKBanner
                22:10:09,519 INFO [EjbModule] Deploying CPOKMessenger
                22:10:09,527 INFO [EjbModule] Deploying CPOKPrivacy
                22:10:09,535 INFO [EjbModule] Deploying CPOKMail
                22:10:09,542 INFO [EjbModule] Deploying CPOKProfile
                22:10:09,549 INFO [EjbModule] Deploying CPOKWEBAux
                22:10:09,557 INFO [EjbModule] Deploying CPOKWhoPok
                22:10:09,567 INFO [EjbModule] Deploying CPOKWEB
                22:10:09,575 INFO [EjbModule] Deploying CPOK
                22:10:09,583 INFO [EjbModule] Deploying CPOKFree
                22:10:09,610 INFO [EjbModule] Deploying CPOKMM
                22:10:09,620 INFO [EjbModule] Deploying TempPOKName
                22:10:09,627 INFO [EjbModule] Deploying CPOKSubscription
                22:10:09,634 INFO [EjbModule] Deploying CPOKCircle
                22:10:09,670 INFO [EjbModule] Deploying CPOKVideo
                22:10:09,677 INFO [EjbModule] Deploying CPOKWEBWhoPok
                22:10:09,685 INFO [EjbModule] Deploying ActiveSessions
                22:10:09,692 INFO [EjbModule] Deploying CPOKWEBCircle
                22:10:10,290 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKPromo' to jndi 'CPOKPromoLocal'
                22:10:10,298 INFO [ProxyFactory] Bound EJB Home 'CPOKPromo' to jndi 'CPOKPromo'22:10:10,306 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKBlog' to jndi 'CPOKBlogLocal'
                22:10:10,316 INFO [ProxyFactory] Bound EJB Home 'CPOKBlog' to jndi 'CPOKBlog'
                22:10:10,324 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKTv' to jndi 'CPOKTvLocal'
                22:10:10,349 INFO [ProxyFactory] Bound EJB Home 'CPOKTv' to jndi 'CPOKTv'
                22:10:10,357 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKAux' to jndi 'CPOKAuxLocal'
                22:10:10,366 INFO [ProxyFactory] Bound EJB Home 'CPOKAux' to jndi 'CPOKAux'
                22:10:10,378 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKFavorite' to jndi 'CPOKFavoriteLocal'
                22:10:10,388 INFO [ProxyFactory] Bound EJB Home 'CPOKFavorite' to jndi 'CPOKFavorite'
                22:10:10,397 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKWEBBlog' to jndi 'CPOKWEBBlogLocal'
                22:10:10,408 INFO [ProxyFactory] Bound EJB Home 'CPOKWEBBlog' to jndi 'CPOKWEBBlog'
                22:10:10,416 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKWEBFavorite' to jndi 'CPOKWEBFavoriteLocal'
                22:10:10,425 INFO [ProxyFactory] Bound EJB Home 'CPOKWEBFavorite' to jndi 'CPOKWEBFavorite'
                22:10:10,435 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKBanner' to jndi 'CPOKBannerLocal'
                22:10:10,447 INFO [ProxyFactory] Bound EJB Home 'CPOKBanner' to jndi 'CPOKBanner'
                22:10:10,455 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKMessenger' to jndi 'CPOKMessengerLocal'
                22:10:10,467 INFO [ProxyFactory] Bound EJB Home 'CPOKMessenger' to jndi 'CPOKMessenger'
                22:10:10,475 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKPrivacy' to jndi 'CPOKPrivacyLocal'
                22:10:10,483 INFO [ProxyFactory] Bound EJB Home 'CPOKPrivacy' to jndi 'CPOKPrivacy'
                22:10:10,491 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKMail' to jndi 'CPOKMailLocal'
                22:10:10,504 INFO [ProxyFactory] Bound EJB Home 'CPOKMail' to jndi 'CPOKMail'
                22:10:10,512 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKProfile' to jndi 'CPOKProfileLocal'
                22:10:10,520 INFO [ProxyFactory] Bound EJB Home 'CPOKProfile' to jndi 'CPOKProfile'
                22:10:10,528 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKWEBAux' to jndi 'CPOKWEBAuxLocal'
                22:10:10,536 INFO [ProxyFactory] Bound EJB Home 'CPOKWEBAux' to jndi 'CPOKWEBAux'
                22:10:10,544 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKWhoPok' to jndi 'CPOKWhoPokLocal'
                22:10:10,552 INFO [ProxyFactory] Bound EJB Home 'CPOKWhoPok' to jndi 'CPOKWhoPok'
                22:10:10,561 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKWEB' to jndi 'CPOKWEBLocal'
                22:10:10,571 INFO [ProxyFactory] Bound EJB Home 'CPOKWEB' to jndi 'CPOKWEB'
                22:10:10,582 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOK' to jndi 'CPOKLocal'
                22:10:10,591 INFO [ProxyFactory] Bound EJB Home 'CPOK' to jndi 'CPOK'
                22:10:10,599 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKFree' to jndi 'CPOKFreeLocal'
                22:10:10,609 INFO [ProxyFactory] Bound EJB Home 'CPOKFree' to jndi 'CPOKFree'
                22:10:10,616 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKMM' to jndi 'CPOKMMLocal'
                22:10:10,626 INFO [ProxyFactory] Bound EJB Home 'CPOKMM' to jndi 'CPOKMM'
                22:10:10,634 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'TempPOKName' to jndi 'TempPOKNameLocal'
                22:10:10,643 INFO [ProxyFactory] Bound EJB Home 'TempPOKName' to jndi 'TempPOKName'
                22:10:10,651 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKSubscription' to jndi 'CPOKSubscriptionLocal'
                22:10:10,658 INFO [ProxyFactory] Bound EJB Home 'CPOKSubscription' to jndi 'CPOKSubscription'
                22:10:10,666 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKCircle' to jndi 'CPOKCircleLocal'
                22:10:10,676 INFO [ProxyFactory] Bound EJB Home 'CPOKCircle' to jndi 'CPOKCircle'
                22:10:10,684 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKVideo' to jndi 'CPOKVideoLocal'
                22:10:10,695 INFO [ProxyFactory] Bound EJB Home 'CPOKVideo' to jndi 'CPOKVideo'22:10:10,703 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKWEBWhoPok' to jndi 'CPOKWEBWhoPokLocal'
                22:10:10,711 INFO [ProxyFactory] Bound EJB Home 'CPOKWEBWhoPok' to jndi 'CPOKWEBWhoPok'
                22:10:10,719 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'ActiveSessions' to jndi 'ActiveSessionsLocal'
                22:10:10,728 INFO [ProxyFactory] Bound EJB Home 'ActiveSessions' to jndi 'ActiveSessions'
                22:10:10,736 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKWEBCircle' to jndi 'CPOKWEBCircleLocal'
                22:10:10,744 INFO [ProxyFactory] Bound EJB Home 'CPOKWEBCircle' to jndi 'CPOKWEBCircle'
                22:10:10,746 INFO [EJBDeployer] Deployed: file:/usr/local/jboss-4.0.5.GA/server/pok/tmp/deploy/tmp27966POKSystemEAR.ear-contents/POKBeans.jar
                22:10:10,942 INFO [TomcatDeployer] deploy, ctxPath=/POKPresentation, warUrl=.../tmp/deploy/tmp27966POKSystemEAR.ear-contents/POKPresentation-exp.war/
                22:10:11,051 INFO [EARDeployer] Started J2EE application: file:/usr/local/jboss-4.0.5.GA/server/pok/farm/POKSystemEAR.ear
                22:10:11,160 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-192.168.2.2-8080
                22:10:11,350 INFO [ChannelSocket] JK: ajp13 listening on /192.168.2.2:8009
                22:10:11,362 INFO [JkMain] Jk running ID=0 time=0/33 config=null
                22:10:11,373 INFO [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 33s:664ms


                The startup of the second server is:

                [root@c2 bin]# su jboss -c "./run.sh -b192.168.2.3 -cpok"
                =========================================================================

                JBoss Bootstrap Environment

                JBOSS_HOME: /usr/local/jboss-4.0.5.GA

                JAVA: java

                JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

                CLASSPATH: /usr/local/jboss-4.0.5.GA/bin/run.jar:/lib/tools.jar

                =========================================================================

                22:05:33,160 INFO [Server] Starting JBoss (MX MicroKernel)...
                22:05:33,161 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)
                22:05:33,163 INFO [Server] Home Dir: /usr/local/jboss-4.0.5.GA
                22:05:33,163 INFO [Server] Home URL: file:/usr/local/jboss-4.0.5.GA/
                22:05:33,164 INFO [Server] Patch URL: null
                22:05:33,164 INFO [Server] Server Name: pok
                22:05:33,164 INFO [Server] Server Home Dir: /usr/local/jboss-4.0.5.GA/server/pok
                22:05:33,165 INFO [Server] Server Home URL: file:/usr/local/jboss-4.0.5.GA/server/pok/
                22:05:33,165 INFO [Server] Server Log Dir: /usr/local/jboss-4.0.5.GA/server/pok/log
                22:05:33,165 INFO [Server] Server Temp Dir: /usr/local/jboss-4.0.5.GA/server/pok/tmp
                22:05:33,166 INFO [Server] Root Deployment Filename: jboss-service.xml
                22:05:33,509 INFO [ServerInfo] Java version: 1.5.0_10,Sun Microsystems Inc.
                22:05:33,509 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 1.5.0_10-b03,Sun Microsystems Inc.
                22:05:33,509 INFO [ServerInfo] OS-System: Linux 2.6.9-42.0.3.ELsmp,amd64
                22:05:34,126 INFO [Server] Core system initialized
                22:05:37,468 INFO [WebService] Using RMI server codebase: http://192.168.2.3:8083/
                22:05:37,495 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
                22:05:42,928 INFO [ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date=200609291417)
                22:05:44,290 INFO [SnmpAgentService] SNMP agent going active
                22:05:44,896 INFO [InterceptorChainFactory] interceptor chain is:
                class org.jboss.cache.interceptors.CallInterceptor
                class org.jboss.cache.interceptors.PessimisticLockInterceptor
                class org.jboss.cache.interceptors.UnlockInterceptor
                class org.jboss.cache.interceptors.ReplicationInterceptor
                class org.jboss.cache.interceptors.TxInterceptor
                class org.jboss.cache.interceptors.CacheMgmtInterceptor
                22:05:45,301 INFO [STDOUT]
                -------------------------------------------------------
                GMS: address is 192.168.2.3:34943
                -------------------------------------------------------
                22:05:47,522 INFO [TreeCache] TreeCache local address is 192.168.2.3:34943
                22:05:47,799 INFO [TreeCache] viewAccepted(): [192.168.2.2:32937|1] [192.168.2.2:32937, 192.168.2.3:34943]
                22:05:47,810 INFO [TreeCache] received the state (size=1024 bytes)
                22:05:47,825 INFO [TreeCache] state was retrieved successfully (in 303 milliseconds)
                22:05:47,825 INFO [TreeCache] parseConfig(): PojoCacheConfig is empty
                22:05:48,191 INFO [DefaultPartition] Initializing
                22:05:48,374 INFO [STDOUT]
                -------------------------------------------------------
                GMS: address is 192.168.2.3:34946 (additional data: 16 bytes)
                -------------------------------------------------------
                22:05:50,385 INFO [DefaultPartition] Number of cluster members: 2
                22:05:50,386 INFO [DefaultPartition] Other members: 1
                22:05:50,386 INFO [DefaultPartition] Fetching state (will wait for 30000 milliseconds):
                22:05:50,386 INFO [DefaultPartition] New cluster view for partition DefaultPartition: 1 ([192.168.2.2:1099, 192.168.2.3:1099] delta: 0)
                22:05:50,457 INFO [DefaultPartition] state was retrieved successfully (in 71 milliseconds)
                22:05:50,470 INFO [DefaultPartition] I am (192.168.2.3:1099) received membershipChanged event:
                22:05:50,470 INFO [DefaultPartition] Dead members: 0 ([])
                22:05:50,470 INFO [DefaultPartition] New Members : 0 ([])
                22:05:50,470 INFO [DefaultPartition] All Members : 2 ([192.168.2.2:1099, 192.168.2.3:1099])
                22:05:50,534 INFO [HANamingService] Started ha-jndi bootstrap jnpPort=1100, backlog=50, bindAddress=/192.168.2.3
                22:05:50,542 INFO [DetachedHANamingService$AutomaticDiscovery] Listening on /192.168.2.3:1102, group=230.0.0.4, HA-JNDI address=192.168.2.3:1100
                22:05:53,424 INFO [CorbaNamingService] Naming: [IOR:000000000000002B49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578744578743A312E3000000000000200000000000000EC000102000000000C3139322E3136382E322E33000DC80000000000114A426F73732F4E616D696E672F726F6F74000000000000050000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000210000006400000000000000010000000000000024000000220000007E0000000000000001000000103230352E3137382E3138392E313331000DC9004000000000000000000000001004010008060667810201010100000000000000000000000000000000000000000000002000000004000000000000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003]
                22:05:53,547 INFO [CorbaTransactionService] TransactionFactory: [IOR:000000000000003049444C3A6F72672F6A626F73732F746D2F69696F702F5472616E73616374696F6E466163746F72794578743A312E30000000000200000000000000EC000102000000000C3139322E3136382E322E33000DC80000000000144A426F73732F5472616E73616374696F6E732F46000000050000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000210000006400000000000000010000000000000024000000220000007E0000000000000001000000103230352E3137382E3138392E313331000DC9004000000000000000000000001004010008060667810201010100000000000000000000000000000000000000000000002000000004000000000000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003]
                22:05:54,335 INFO [Embedded] Catalina naming disabled
                22:05:54,386 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
                22:05:54,388 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
                22:05:54,911 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-192.168.2.3-8080
                22:05:54,913 INFO [Catalina] Initialization processed in 426 ms
                22:05:54,914 INFO [StandardService] Starting service jboss.web
                22:05:54,968 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.20
                22:05:55,203 INFO [StandardHost] XML validation disabled
                22:05:55,228 INFO [Catalina] Server startup in 315 ms
                22:05:55,396 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/httpha-invoker.sar/invoker.war/
                22:05:55,674 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
                22:05:56,123 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
                22:05:57,172 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp23268jbossws-context-exp.war/
                22:05:58,058 INFO [TomcatDeployer] deploy, ctxPath=/juddi, warUrl=.../deploy/juddi-service.sar/juddiws.war/
                22:05:58,185 INFO [RegistryServlet] Loading jUDDI configuration.
                22:05:58,186 INFO [RegistryServlet] Resources loaded from: /WEB-INF/juddi.properties
                22:05:58,187 INFO [RegistryServlet] Initializing jUDDI components.
                22:05:59,239 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
                22:05:59,951 INFO [MailService] Mail Service bound to java:/Mail
                22:06:00,105 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
                22:06:00,192 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
                22:06:00,217 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
                22:06:00,244 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
                22:06:00,303 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
                22:06:00,331 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
                22:06:01,048 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
                22:06:01,993 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
                22:06:02,675 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=PokUpdateDS' to JNDI name 'java:PokUpdateDS'
                22:06:02,806 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=PokQueryDS' to JNDI name 'java:PokQueryDS'
                22:06:02,929 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
                22:06:03,116 INFO [EARDeployer] Init J2EE application: file:/usr/local/jboss-4.0.5.GA/server/pok/deploy/POKSessionEAR.ear
                22:06:03,558 INFO [EjbModule] Deploying Process
                22:06:03,631 INFO [EjbModule] Deploying SessionServer
                22:06:03,756 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'Process' to jndi 'ProcessLocal'
                22:06:03,770 INFO [ProxyFactory] Bound EJB Home 'Process' to jndi 'Process'
                22:06:04,204 INFO [EJBDeployer] Deployed: file:/usr/local/jboss-4.0.5.GA/server/pok/tmp/deploy/tmp23307POKSessionEAR.ear-contents/POKSessionServer.jar
                22:06:04,268 INFO [TomcatDeployer] deploy, ctxPath=/POKSessionClient, warUrl=.../tmp/deploy/tmp23307POKSessionEAR.ear-contents/POKSessionClient-exp.war/
                22:06:04,465 INFO [EARDeployer] Started J2EE application: file:/usr/local/jboss-4.0.5.GA/server/pok/deploy/POKSessionEAR.ear
                22:06:04,556 INFO [FarmMemberService] **** pullNewDeployments ****
                22:06:04,557 INFO [ClusterFileTransfer] Start pull of file cluster-examples-service.xml from cluster.
                22:06:04,582 INFO [ClusterFileTransfer] Finished cluster pull of file cluster-examples-service.xml to cluster-examples-service.xml
                22:06:04,582 INFO [ClusterFileTransfer] Start pull of file POKSystemEAR.ear from cluster.
                22:06:04,631 INFO [ClusterFileTransfer] Finished cluster pull of file POKSystemEAR.ear to POKSystemEAR.ear
                22:06:04,646 INFO [EARDeployer] Init J2EE application: file:/usr/local/jboss-4.0.5.GA/server/pok/farm/POKSystemEAR.ear
                22:06:05,200 INFO [EjbModule] Deploying CPOKPromo
                22:06:05,208 INFO [EjbModule] Deploying CPOKBlog
                22:06:05,215 INFO [EjbModule] Deploying CPOKTv
                22:06:05,236 INFO [EjbModule] Deploying CPOKAux
                22:06:05,553 INFO [EjbModule] Deploying CPOKFavorite
                22:06:05,560 INFO [EjbModule] Deploying CPOKWEBBlog
                22:06:05,567 INFO [EjbModule] Deploying CPOKWEBFavorite
                22:06:05,634 INFO [EjbModule] Deploying CPOKBanner
                22:06:05,641 INFO [EjbModule] Deploying CPOKMessenger
                22:06:05,649 INFO [EjbModule] Deploying CPOKPrivacy
                22:06:05,656 INFO [EjbModule] Deploying CPOKMail
                22:06:05,663 INFO [EjbModule] Deploying CPOKProfile
                22:06:05,670 INFO [EjbModule] Deploying CPOKWEBAux
                22:06:05,680 INFO [EjbModule] Deploying CPOKWhoPok
                22:06:05,689 INFO [EjbModule] Deploying CPOKWEB
                22:06:05,698 INFO [EjbModule] Deploying CPOK
                22:06:05,706 INFO [EjbModule] Deploying CPOKFree
                22:06:05,713 INFO [EjbModule] Deploying CPOKMM
                22:06:05,720 INFO [EjbModule] Deploying TempPOKName
                22:06:05,727 INFO [EjbModule] Deploying CPOKSubscription
                22:06:05,734 INFO [EjbModule] Deploying CPOKCircle
                22:06:05,741 INFO [EjbModule] Deploying CPOKVideo
                22:06:05,748 INFO [EjbModule] Deploying CPOKWEBWhoPok
                22:06:05,755 INFO [EjbModule] Deploying ActiveSessions
                22:06:05,761 INFO [EjbModule] Deploying CPOKWEBCircle
                22:06:06,438 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKPromo' to jndi 'CPOKPromoLocal'
                22:06:06,448 INFO [ProxyFactory] Bound EJB Home 'CPOKPromo' to jndi 'CPOKPromo'22:06:06,460 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKBlog' to jndi 'CPOKBlogLocal'
                22:06:06,502 INFO [ProxyFactory] Bound EJB Home 'CPOKBlog' to jndi 'CPOKBlog'
                22:06:06,511 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKTv' to jndi 'CPOKTvLocal'
                22:06:06,525 INFO [ProxyFactory] Bound EJB Home 'CPOKTv' to jndi 'CPOKTv'
                22:06:06,533 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKAux' to jndi 'CPOKAuxLocal'
                22:06:06,541 INFO [ProxyFactory] Bound EJB Home 'CPOKAux' to jndi 'CPOKAux'
                22:06:06,552 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKFavorite' to jndi 'CPOKFavoriteLocal'
                22:06:06,562 INFO [ProxyFactory] Bound EJB Home 'CPOKFavorite' to jndi 'CPOKFavorite'
                22:06:06,571 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKWEBBlog' to jndi 'CPOKWEBBlogLocal'
                22:06:06,579 INFO [ProxyFactory] Bound EJB Home 'CPOKWEBBlog' to jndi 'CPOKWEBBlog'
                22:06:06,590 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKWEBFavorite' to jndi 'CPOKWEBFavoriteLocal'
                22:06:06,599 INFO [ProxyFactory] Bound EJB Home 'CPOKWEBFavorite' to jndi 'CPOKWEBFavorite'
                22:06:06,607 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKBanner' to jndi 'CPOKBannerLocal'
                22:06:06,614 INFO [ProxyFactory] Bound EJB Home 'CPOKBanner' to jndi 'CPOKBanner'
                22:06:06,633 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKMessenger' to jndi 'CPOKMessengerLocal'
                22:06:06,643 INFO [ProxyFactory] Bound EJB Home 'CPOKMessenger' to jndi 'CPOKMessenger'
                22:06:06,652 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKPrivacy' to jndi 'CPOKPrivacyLocal'
                22:06:06,660 INFO [ProxyFactory] Bound EJB Home 'CPOKPrivacy' to jndi 'CPOKPrivacy'
                22:06:06,669 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKMail' to jndi 'CPOKMailLocal'
                22:06:06,678 INFO [ProxyFactory] Bound EJB Home 'CPOKMail' to jndi 'CPOKMail'
                22:06:06,686 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKProfile' to jndi 'CPOKProfileLocal'
                22:06:06,713 INFO [ProxyFactory] Bound EJB Home 'CPOKProfile' to jndi 'CPOKProfile'
                22:06:06,721 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKWEBAux' to jndi 'CPOKWEBAuxLocal'
                22:06:06,728 INFO [ProxyFactory] Bound EJB Home 'CPOKWEBAux' to jndi 'CPOKWEBAux'
                22:06:06,737 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKWhoPok' to jndi 'CPOKWhoPokLocal'
                22:06:06,746 INFO [ProxyFactory] Bound EJB Home 'CPOKWhoPok' to jndi 'CPOKWhoPok'
                22:06:06,755 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKWEB' to jndi 'CPOKWEBLocal'
                22:06:06,766 INFO [ProxyFactory] Bound EJB Home 'CPOKWEB' to jndi 'CPOKWEB'
                22:06:06,778 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOK' to jndi 'CPOKLocal'
                22:06:06,788 INFO [ProxyFactory] Bound EJB Home 'CPOK' to jndi 'CPOK'
                22:06:06,796 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKFree' to jndi 'CPOKFreeLocal'
                22:06:06,805 INFO [ProxyFactory] Bound EJB Home 'CPOKFree' to jndi 'CPOKFree'
                22:06:06,813 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKMM' to jndi 'CPOKMMLocal'
                22:06:06,822 INFO [ProxyFactory] Bound EJB Home 'CPOKMM' to jndi 'CPOKMM'
                22:06:06,830 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'TempPOKName' to jndi 'TempPOKNameLocal'
                22:06:06,838 INFO [ProxyFactory] Bound EJB Home 'TempPOKName' to jndi 'TempPOKName'
                22:06:06,846 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKSubscription' to jndi 'CPOKSubscriptionLocal'
                22:06:06,854 INFO [ProxyFactory] Bound EJB Home 'CPOKSubscription' to jndi 'CPOKSubscription'
                22:06:06,865 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKCircle' to jndi 'CPOKCircleLocal'
                22:06:06,874 INFO [ProxyFactory] Bound EJB Home 'CPOKCircle' to jndi 'CPOKCircle'
                22:06:06,882 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKVideo' to jndi 'CPOKVideoLocal'
                22:06:06,893 INFO [ProxyFactory] Bound EJB Home 'CPOKVideo' to jndi 'CPOKVideo'22:06:06,901 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKWEBWhoPok' to jndi 'CPOKWEBWhoPokLocal'
                22:06:06,909 INFO [ProxyFactory] Bound EJB Home 'CPOKWEBWhoPok' to jndi 'CPOKWEBWhoPok'
                22:06:06,916 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'ActiveSessions' to jndi 'ActiveSessionsLocal'
                22:06:06,928 INFO [ProxyFactory] Bound EJB Home 'ActiveSessions' to jndi 'ActiveSessions'
                22:06:06,939 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'CPOKWEBCircle' to jndi 'CPOKWEBCircleLocal'
                22:06:06,948 INFO [ProxyFactory] Bound EJB Home 'CPOKWEBCircle' to jndi 'CPOKWEBCircle'
                22:06:06,949 INFO [EJBDeployer] Deployed: file:/usr/local/jboss-4.0.5.GA/server/pok/tmp/deploy/tmp23311POKSystemEAR.ear-contents/POKBeans.jar
                22:06:07,043 INFO [TomcatDeployer] deploy, ctxPath=/POKPresentation, warUrl=.../tmp/deploy/tmp23311POKSystemEAR.ear-contents/POKPresentation-exp.war/
                22:06:07,342 INFO [EARDeployer] Started J2EE application: file:/usr/local/jboss-4.0.5.GA/server/pok/farm/POKSystemEAR.ear
                22:06:07,434 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

                --- MBeans waiting for other MBeans ---
                ObjectName: jboss.mq:service=DestinationManager
                State: CONFIGURED
                I Depend On:
                jboss.mq:service=MessageCache
                jboss.mq:service=PersistenceManager
                jboss.mq:service=StateManager

                --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
                ObjectName: jboss.mq:service=StateManager
                State: NOTYETINSTALLED
                Depends On Me:
                jboss.mq:service=DestinationManager


                22:06:07,554 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-192.168.2.3-8080
                22:06:07,672 INFO [ChannelSocket] JK: ajp13 listening on /192.168.2.3:8009
                22:06:07,683 INFO [JkMain] Jk running ID=0 time=0/30 config=null
                22:06:07,693 INFO [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 34s:525ms


                The stack trace of the exception is, running in the server:

                22:10:52,214 INFO [POKSystem] existPOK 1
                22:10:52,324 INFO [STDOUT] Error! - DB_Conexion
                22:10:52,325 INFO [STDOUT] PokQueryDs not bound
                22:10:52,325 INFO [STDOUT] Error! - CPersistence_Session - getActiveSession
                22:10:52,325 ERROR [STDERR] java.lang.NullPointerException
                22:10:52,326 ERROR [STDERR] at persistence.DB_Connection.getUpdateConn(DB_Connection.java:62)
                22:10:52,326 ERROR [STDERR] at persistence.CPersistence_ActiveSession.get_ActiveSession(CPersistence_ActiveSession.java:21)
                22:10:52,326 ERROR [STDERR] at logic.CPOKBean.existPOK(CPOKBean.java:122)
                22:10:52,326 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                22:10:52,326 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                22:10:52,326 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                22:10:52,326 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
                22:10:52,327 ERROR [STDERR] at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
                22:10:52,327 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
                22:10:52,327 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
                22:10:52,327 ERROR [STDERR] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
                22:10:52,327 ERROR [STDERR] at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
                22:10:52,327 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
                22:10:52,327 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
                22:10:52,327 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
                22:10:52,328 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
                22:10:52,328 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
                22:10:52,328 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
                22:10:52,328 ERROR [STDERR] at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
                22:10:52,328 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:954)
                22:10:52,328 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                22:10:52,328 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                22:10:52,328 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                22:10:52,328 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
                22:10:52,329 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                22:10:52,329 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                22:10:52,329 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                22:10:52,329 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                22:10:52,329 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                22:10:52,329 ERROR [STDERR] at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
                22:10:52,329 ERROR [STDERR] at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
                22:10:52,329 ERROR [STDERR] at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
                22:10:52,330 ERROR [STDERR] at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
                22:10:52,330 ERROR [STDERR] at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
                22:10:52,330 ERROR [STDERR] at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
                22:10:52,330 ERROR [STDERR] at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112)
                22:10:52,330 ERROR [STDERR] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
                22:10:52,330 ERROR [STDERR] at $Proxy168.existPOK(Unknown Source)
                22:10:52,330 ERROR [STDERR] at presentation.POKSystem.existPOK(POKSystem.java:62)
                22:10:52,330 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                22:10:52,330 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                22:10:52,331 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                22:10:52,331 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
                22:10:52,331 ERROR [STDERR] at org.apache.xmlrpc.Invoker.execute(XmlRpcServer.java)
                22:10:52,331 ERROR [STDERR] at org.apache.xmlrpc.XmlRpcServer$Worker.executeInternal(XmlRpcServer.java)
                22:10:52,331 ERROR [STDERR] at org.apache.xmlrpc.XmlRpcServer$Worker.execute(XmlRpcServer.java)
                22:10:52,331 ERROR [STDERR] at org.apache.xmlrpc.XmlRpcServer.execute(XmlRpcServer.java)
                22:10:52,331 ERROR [STDERR] at org.apache.xmlrpc.XmlRpcServer.execute(XmlRpcServer.java)
                22:10:52,331 ERROR [STDERR] at presentation.POKServlet.doPost(POKServlet.java:35)
                22:10:52,332 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                22:10:52,332 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                22:10:52,332 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                22:10:52,332 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                22:10:52,332 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                22:10:52,332 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                22:10:52,332 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                22:10:52,332 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                22:10:52,332 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                22:10:52,333 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
                22:10:52,333 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
                22:10:52,333 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                22:10:52,333 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                22:10:52,333 ERROR [STDERR] at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
                22:10:52,333 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                22:10:52,333 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                22:10:52,333 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
                22:10:52,334 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
                22:10:52,334 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                22:10:52,334 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                22:10:52,334 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
                22:10:52,334 INFO [STDOUT] Error! - CPOK - existPOK
                22:10:52,334 INFO [STDOUT] null
                22:10:52,335 INFO [POKSystem] {errCode=1}


                Is it safe and recommended to use hypersonic sql database for JMS in a production server? If not, why?

                • 5. Re: Problem with datasources, they start, but my apps cannot
                  Brian Stansberry Master

                  No, using Hypersonic in production is not recommended. It's an in-process DB; if your app server process crashes, so does your DB. The app server needs a database, so we bundle Hypersonic so the AS will work out of the box on a developer's workstation, but it's not meant for production.

                  For your JMS config, here's what I recommend you do:

                  1) Make a copy of your 'pok' config so you still have a backup. :)

                  2) Start with the default config. Modify the JMS configuration so it talks to your mysql database. Get it working so that when you start default, JMS is starting cleanly and working with your mysql database. (No need to deploy anything of your own, except, if you like, your queues/topic.)

                  3) Go to your 'pok' config. Delete the deploy/jms and deploy-hasingleton/jms folders. Copy your modified deploy/jms directory from default.

                  You're not trying to use HA-JMS, so starting with an HA-JMS config and trying to change it to non-HA is much more prone to error than starting with a non-HA config.

                  Re: your NPE, it looks like there is some JNDI lookup problem finding PokQueryDS:

                  22:10:52,325 INFO [STDOUT] PokQueryDs not bound


                  You need to debug exactly what name your code is looking for and why it's not finding it.

                  • 6. Re: Problem with datasources, they start, but my apps cannot
                    Sebastián Lacuesta Newbie

                    Excellent, I deleted the jms configuration, and copied the one in "default", made the necesary changes, and it worked. The problem with PokQueryDs was that in the AS, the pool was named PokQueryDS (that makes me feel like dumb). Thanks for all.