users@glassfish.java.net

Re: Glassfish v2 clustering problem with JMS

From: <glassfish_at_javadesktop.org>
Date: Tue, 07 Aug 2007 15:06:34 PDT

Thanks for the info, how ever it does not work. The domain.xml now looking like this:

<servers>
    <server config-ref="server-config" lb-weight="100" name="server">
      <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="adminapp" virtual-servers="__asadmin"/>
      <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="admingui" virtual-servers="__asadmin"/>
      <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="JBIFramework"/>
      <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="WSTXServices"/>
      <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="WSTCPConnectorLCModule"/>
      <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="MEjbApp" virtual-servers="server"/>
      <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="__ejb_container_timer_app" virtual-servers="server"/>
      <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="__JWSappclients" virtual-servers="server"/>
      <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="j2core"/>
      <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="clusterjsp"/>
      <resource-ref enabled="true" ref="jdbc/__TimerPool"/>
      <resource-ref enabled="true" ref="jdbc/__CallFlowPool"/>
      <resource-ref enabled="true" ref="jdbc/__default"/>
      <resource-ref enabled="true" ref="jdbc/j2core"/>
      <resource-ref enabled="true" ref="jdbc/isppower"/>
      <resource-ref enabled="true" ref="mail/ZumaMailSession"/>
      <resource-ref enabled="true" ref="jms/StatementMDB"/>
      <resource-ref enabled="true" ref="jms/AuditQueue"/>
      <resource-ref enabled="true" ref="jms/StatementMDBFactory"/>
      <resource-ref enabled="true" ref="jms/TaskRunnerMDBFactory"/>
      <resource-ref enabled="true" ref="jms/ISPCollectionInfoChangeQueue"/>
      <resource-ref enabled="true" ref="jms/ISPCustomerChangeQueue"/>
      <resource-ref enabled="true" ref="jms/ISPCustomerMigrateQueue"/>
      <resource-ref enabled="true" ref="jms/ISPJournalItemChangeQueue"/>
      <resource-ref enabled="true" ref="jms/QueueConnectionFactory"/>
      <resource-ref enabled="true" ref="jms/TaskRunnerMDB"/>
    </server>
    <server config-ref="cluster1-config" lb-weight="100" name="instance-ONE" node-agent-ref="cluster1-nodeagent">
      <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="MEjbApp"/>
      <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="__ejb_container_timer_app"/>
      <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="__JWSappclients"/>
      <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="WSTXServices"/>
      <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="JBIFramework"/>
      <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="clusterjsp" virtual-servers="server"/>
      <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="j2core"/>
      <resource-ref enabled="true" ref="jdbc/__CallFlowPool"/>
      <resource-ref enabled="true" ref="jdbc/j2core"/>
      <resource-ref enabled="true" ref="jdbc/isppower"/>
      <resource-ref enabled="true" ref="jms/QueueConnectionFactory"/>
      <resource-ref enabled="false" ref="jms/StatementMDB"/>
      <resource-ref enabled="false" ref="jms/AuditQueue"/>
      <resource-ref enabled="false" ref="jms/ISPCollectionInfoChangeQueue"/>
      <resource-ref enabled="false" ref="jms/ISPCustomerChangeQueue"/>
      <resource-ref enabled="false" ref="jms/ISPCustomerMigrateQueue"/>
      <resource-ref enabled="false" ref="jms/ISPJournalItemChangeQueue"/>
      <resource-ref enabled="false" ref="mail/ZumaMailSession"/>
      <resource-ref enabled="false" ref="jms/StatementMDBFactory"/>
      <resource-ref enabled="false" ref="jms/TaskRunnerMDBFactory"/>
      <resource-ref enabled="false" ref="jms/TaskRunnerMDB"/>
      <system-property name="HTTP_LISTENER_PORT" value="1110"/>
      <system-property name="HTTP_SSL_LISTENER_PORT" value="2220"/>
      <system-property name="IIOP_SSL_LISTENER_PORT" value="4440"/>
      <system-property name="IIOP_LISTENER_PORT" value="3330"/>
      <system-property name="JMX_SYSTEM_CONNECTOR_PORT" value="8687"/>
      <system-property name="IIOP_SSL_MUTUALAUTH_PORT" value="5550"/>
      <system-property name="JMS_PROVIDER_PORT" value="37677"/>
    </server>
    <server config-ref="cluster1-config" lb-weight="100" name="instance-TWO" node-agent-ref="cluster1-nodeagent">
      <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="MEjbApp"/>
      <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="__ejb_container_timer_app"/>
      <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="__JWSappclients"/>
      <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="WSTXServices"/>
      <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="JBIFramework"/>
      <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="clusterjsp" virtual-servers="server"/>
      <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="j2core"/>
      <resource-ref enabled="true" ref="jdbc/__CallFlowPool"/>
      <resource-ref enabled="true" ref="jdbc/j2core"/>
      <resource-ref enabled="true" ref="jdbc/isppower"/>
      <resource-ref enabled="true" ref="jms/QueueConnectionFactory"/>
      <resource-ref enabled="false" ref="jms/StatementMDB"/>
      <resource-ref enabled="false" ref="jms/AuditQueue"/>
      <resource-ref enabled="false" ref="jms/ISPCollectionInfoChangeQueue"/>
      <resource-ref enabled="false" ref="jms/ISPCustomerChangeQueue"/>
      <resource-ref enabled="false" ref="jms/ISPCustomerMigrateQueue"/>
      <resource-ref enabled="false" ref="jms/ISPJournalItemChangeQueue"/>
      <resource-ref enabled="false" ref="mail/ZumaMailSession"/>
      <resource-ref enabled="false" ref="jms/StatementMDBFactory"/>
      <resource-ref enabled="false" ref="jms/TaskRunnerMDBFactory"/>
      <resource-ref enabled="false" ref="jms/TaskRunnerMDB"/>
      <system-property name="HTTP_LISTENER_PORT" value="1111"/>
      <system-property name="HTTP_SSL_LISTENER_PORT" value="2221"/>
      <system-property name="IIOP_SSL_LISTENER_PORT" value="4441"/>
      <system-property name="IIOP_LISTENER_PORT" value="3331"/>
      <system-property name="JMX_SYSTEM_CONNECTOR_PORT" value="8688"/>
      <system-property name="IIOP_SSL_MUTUALAUTH_PORT" value="5551"/>
      <system-property name="JMS_PROVIDER_PORT" value="37678"/>
    </server>
  </servers>

But I still get the same exceptions on both instances:

[#|2007-08-07T14:48:44.463-0700|SEVERE|sun-appserver9.1|javax.enterprise.system.core.naming|_ThreadID=10;_ThreadName=main;jms/TaskRunnerMDB;java:comp/env/com.j2.core.zuma.ejb.JobSessionBean/taskMDB;_RequestID=1e7c6cf2-3561-4626-a49c-3c6862ac0d74;|NAM0008 : Invalid Destination: jms/TaskRunnerMDB for java:comp/env/com.j2.core.zuma.ejb.JobSessionBean/taskMDB|#]

[#|2007-08-07T14:48:44.463-0700|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=10;_ThreadName=main;javax.naming.NamingException [Root exception is javax.naming.NameNotFoundException: TaskRunnerMDB not found];_RequestID=1e7c6cf2-3561-4626-a49c-3c6862ac0d74;|EJB5090: Exception in creating EJB container [javax.naming.NamingException [Root exception is javax.naming.NameNotFoundException: TaskRunnerMDB not found]]|#]

[#|2007-08-07T14:48:44.463-0700|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=10;_ThreadName=main;_RequestID=1e7c6cf2-3561-4626-a49c-3c6862ac0d74;|appId=j2core moduleName=zuma-ejb_jar ejbName=JobSessionBean|#]

[#|2007-08-07T14:48:44.463-0700|SEVERE|sun-appserver9.1|javax.enterprise.system.core.classloading|_ThreadID=10;_ThreadName=main;_RequestID=1e7c6cf2-3561-4626-a49c-3c6862ac0d74;|LDR5004: UnExpected error occured while creating ejb container
javax.naming.NamingException [Root exception is javax.naming.NameNotFoundException: TaskRunnerMDB not found]
        at com.sun.enterprise.naming.NamingManagerImpl.bindObjects(NamingManagerImpl.java:509)
        at com.sun.ejb.containers.BaseContainer.setupEnvironment(BaseContainer.java:2743)
        at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:653)
        at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:174)
        at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:500)
        at com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:535)
        at com.sun.enterprise.server.ApplicationLoader.doLoad(ApplicationLoader.java:188)
        at com.sun.enterprise.server.TomcatApplicationLoader.doLoad(TomcatApplicationLoader.java:126)
        at com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:243)
        at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:225)
        at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:217)
        at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:442)
        at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:120)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:411)
        at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.server.PELaunch.main(PELaunch.java:294)
Caused by: javax.naming.NameNotFoundException: TaskRunnerMDB not found
        at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.java:216)
        at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:188)
        at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:192)
        at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:80)
        at com.sun.enterprise.naming.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:111)
        at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:339)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)
        at com.sun.enterprise.naming.NamingManagerImpl.bindObjects(NamingManagerImpl.java:493)
        ... 19 more
|#]
[Message sent by forum member 'evanyang168' (evanyang168)]

http://forums.java.net/jive/thread.jspa?messageID=229925