[jboss-user] [JBoss Messaging] - Re: Jboss Messaging How To

sudheer_java26 do-not-reply at jboss.com
Mon Apr 21 09:44:45 EDT 2008


"sudheer_java26" wrote : thanks for your reply.
  | 	
  | I created connection factory as given here 
  | http://www.jboss.org/file-access/default/members/jbossmessaging/freezone/docs/userguide-1.4.0.SP3/html/configuration.html#conf.destination
  | 
  | but when I run my program , i am getting error as 
  | -----------------
  | Exception in thread "main" javax.naming.NameNotFoundException: MyConnectionFactory not bound
  | 	at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
  | --------------
  | 
  | but when I start server 
  | 
  | I tried by running as fallows 
  | 
  | 
  | C:\myjboss-4.2.2\jboss-4.2.2.GA\bin>run -c messaging (i did not change anything while installing so , my messaging path is as default)
  | =====================================================
  | 18:57:42,078 INFO  [TransactionManagerService] Setting up property manager MBean
  |  and JMX layer
  | 18:57:42,312 INFO  [TransactionManagerService] Starting recovery manager
  | 18:57:42,421 INFO  [TransactionManagerService] Recovery manager started
  | 18:57:42,421 INFO  [TransactionManagerService] Binding TransactionManager JNDI R
  | eference
  | 18:57:46,062 INFO  [EJB3Deployer] Starting java:comp multiplexer
  | 18:57:47,515 INFO  [STDOUT] no object for null
  | 18:57:47,531 INFO  [STDOUT] no object for null
  | 18:57:47,562 INFO  [STDOUT] no object for null
  | 18:57:47,593 INFO  [STDOUT] no object for {urn:jboss:bean-deployer}supplyType
  | 18:57:47,609 INFO  [STDOUT] no object for {urn:jboss:bean-deployer}dependsType
  | 18:57:50,437 INFO  [NativeServerConfig] JBoss Web Services - Native
  | 18:57:50,437 INFO  [NativeServerConfig] jbossws-native-2.0.1.SP2 (build=20071021
  | 0837)
  | 18:57:51,062 INFO  [ServiceConfigurator] Problem configuring service jboss.messa
  | ging.connectionfactory:service=MyConnectionFactory
  | org.jboss.deployment.DeploymentException: Exception setting attribute javax.mana
  | gement.Attribute at 1b94ea2 on mbean jboss.messaging.connectionfactory:service=MyCo
  | nnectionFactory; - nested throwable: (javax.management.AttributeNotFoundExceptio
  | n: Attribute 'ClientID' is not writable)
  |         at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator
  | .java:707)
  |         at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.ja
  | va:332)
  |         at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura
  | tor.java:462)
  |         at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
  | :157)
  |         at org.jboss.system.ServiceController.install(ServiceController.java:226
  | )
  |         at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  | sorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:585)
  |         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
  | er.java:155)
  |         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  |         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  |         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
  | java:264)
  |         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  |         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  |         at $Proxy4.install(Unknown Source)
  |         at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
  |         at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
  |         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
  |         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  | java:39)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  | sorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:585)
  |         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
  | er.java:155)
  |         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  |         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
  | or.java:133)
  |         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  |         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
  | BeanOperationInterceptor.java:142)
  |         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  |         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
  | java:264)
  |         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  |         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  |         at $Proxy9.deploy(Unknown Source)
  |         at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
  | tScanner.java:421)
  |         at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
  | canner.java:634)
  |         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
  | doScan(AbstractDeploymentScanner.java:263)
  |         at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
  | bstractDeploymentScanner.java:336)
  |         at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
  | upport.java:289)
  |         at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
  | eanSupport.java:245)
  |         at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  | sorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:585)
  |         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
  | er.java:155)
  |         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  |         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  |         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
  | java:264)
  |         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  |         at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
  | ler.java:978)
  |         at $Proxy0.start(Unknown Source)
  |         at org.jboss.system.ServiceController.start(ServiceController.java:417)
  |         at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  | sorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:585)
  |         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
  | er.java:155)
  |         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  |         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  |         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
  | java:264)
  |         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  |         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  |         at $Proxy4.start(Unknown Source)
  |         at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
  |         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
  |         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
  |         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
  |         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  | java:39)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  | sorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:585)
  |         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
  | er.java:155)
  |         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  |         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
  | or.java:133)
  |         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  |         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
  | BeanOperationInterceptor.java:142)
  |         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  |         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
  | java:264)
  |         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  |         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  |         at $Proxy5.deploy(Unknown Source)
  |         at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
  |         at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
  |         at org.jboss.Main.boot(Main.java:200)
  |         at org.jboss.Main$1.run(Main.java:508)
  |         at java.lang.Thread.run(Thread.java:595)
  | Caused by: javax.management.AttributeNotFoundException: Attribute 'ClientID' is
  | not writable
  |         at org.jboss.mx.server.AbstractMBeanInvoker.setAttribute(AbstractMBeanIn
  | voker.java:431)
  |         at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java
  | :608)
  |         at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator
  | .java:703)
  |         ... 83 more
  | 18:57:52,015 INFO  [Embedded] Catalina naming disabled
  | 18:57:52,234 INFO  [AprLifecycleListener] The Apache Tomcat Native library which
  |  allows optimal performance in production environments was not found on the java
  | .library.path: C:\Program Files\Java\jdk1.5.0_11\bin;.;C:\WINDOWS\system32;C:\WI
  | NDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\bea\weblogic81\
  | server\lib;C:\bea\weblogic81\server\bin;D:\Work\apache-ant-1.6.5\bin;C:\Program
  | Files\Java\jdk1.5.0_11\bin;C:\Program Files\Java\jdk1.5.0_11\jre\bin;
  | 18:57:52,343 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0
  | .1-8080
  | 18:57:52,343 INFO  [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-80
  | 09
  | 18:57:52,343 INFO  [Catalina] Initialization processed in 330 ms
  | 18:57:52,359 INFO  [StandardService] Starting service jboss.web
  | 18:57:52,359 INFO  [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
  | 18:57:52,421 INFO  [Catalina] Server startup in 77 ms
  | 18:57:52,578 INFO  [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-w
  | eb.deployer/ROOT.war/
  | 18:57:53,281 INFO  [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/
  | http-invoker.sar/invoker.war/
  | 18:57:53,656 INFO  [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/
  | jbossws.sar/jbossws-context.war/
  | 18:57:54,015 INFO  [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../dep
  | loy/management/console-mgr.sar/web-console.war/
  | 18:57:54,578 INFO  [MailService] Mail Service bound to java:/Mail
  | 18:57:54,812 INFO  [RARDeployment] Required license terms exist, view META-INF/r
  | a.xml in .../deploy/jboss-ha-local-jdbc.rar
  | 18:57:54,875 INFO  [RARDeployment] Required license terms exist, view META-INF/r
  | a.xml in .../deploy/jboss-ha-xa-jdbc.rar
  | 18:57:54,921 INFO  [RARDeployment] Required license terms exist, view META-INF/r
  | a.xml in .../deploy/jboss-local-jdbc.rar
  | 18:57:54,968 INFO  [RARDeployment] Required license terms exist, view META-INF/r
  | a.xml in .../deploy/jboss-xa-jdbc.rar
  | 18:57:55,031 INFO  [RARDeployment] Required license terms exist, view META-INF/r
  | a.xml in .../deploy/jms-ra.rar
  | 18:57:55,078 INFO  [RARDeployment] Required license terms exist, view META-INF/r
  | a.xml in .../deploy/mail-ra.rar
  | 18:57:55,140 INFO  [RARDeployment] Required license terms exist, view META-INF/r
  | a.xml in .../deploy/quartz-ra.rar
  | 18:57:55,140 INFO  [QuartzResourceAdapter] start quartz!!!
  | 18:57:55,218 INFO  [SimpleThreadPool] Job execution threads will use class loade
  | r of thread: main
  | 18:57:55,265 INFO  [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
  | 18:57:55,265 INFO  [RAMJobStore] RAMJobStore initialized.
  | 18:57:55,265 INFO  [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzSchedule
  | r' initialized from default resource file in Quartz package: 'quartz.properties'
  | 
  | 18:57:55,281 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.5.2
  | 18:57:55,281 INFO  [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUS
  | TERED started.
  | 18:57:55,984 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
  | oss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
  | 18:57:56,671 WARN  [SecurityMetadataStore] WARNING! POTENTIAL SECURITY RISK. It
  | has been detected that the MessageSucker component which sucks messages from one
  |  node to another has not had its password changed from the installation default.
  |  Please see the JBoss Messaging user guide for instructions on how to do this.
  | 18:57:56,687 INFO  [ServerPeer] JBoss Messaging 1.4.0.SP3 server [0] started
  | 18:57:57,078 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has l
  | easing enabled, lease period 10000 milliseconds
  | 18:57:57,078 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.Co
  | nnectionFactory at 1f49969 started
  | 18:57:57,078 WARN  [ConnectionFactoryJNDIMapper] supportsFailover attribute is t
  | rue on connection factory: jboss.messaging.connectionfactory:service=ClusteredCo
  | nnectionFactory but post office is non clustered. So connection factory will *no
  | t* support failover
  | 18:57:57,093 WARN  [ConnectionFactoryJNDIMapper] supportsLoadBalancing attribute
  |  is true on connection factory: jboss.messaging.connectionfactory:service=Cluste
  | redConnectionFactory but post office is non clustered. So connection factory wil
  | l *not* support load balancing
  | 18:57:57,093 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has l
  | easing enabled, lease period 10000 milliseconds
  | 18:57:57,093 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.Co
  | nnectionFactory at fa97f started
  | 18:57:57,093 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has l
  | easing enabled, lease period 10000 milliseconds
  | 18:57:57,093 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.Co
  | nnectionFactory at 862041 started
  | 18:57:57,125 INFO  [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pa
  | geSize=2000, downCacheSize=2000
  | 18:57:57,125 INFO  [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=20
  | 0000, pageSize=2000, downCacheSize=2000
  | 18:57:57,125 INFO  [TopicService] Topic[/topic/testTopic] started, fullSize=2000
  | 00, pageSize=2000, downCacheSize=2000
  | 18:57:57,125 INFO  [TopicService] Topic[/topic/securedTopic] started, fullSize=2
  | 00000, pageSize=2000, downCacheSize=2000
  | 18:57:57,125 INFO  [TopicService] Topic[/topic/testDurableTopic] started, fullSi
  | ze=200000, pageSize=2000, downCacheSize=2000
  | 18:57:57,140 INFO  [QueueService] Queue[/queue/testQueue] started, fullSize=2000
  | 00, pageSize=2000, downCacheSize=2000
  | 18:57:57,140 INFO  [QueueService] Queue[/queue/A] started, fullSize=200000, page
  | Size=2000, downCacheSize=2000
  | 18:57:57,140 INFO  [QueueService] Queue[/queue/B] started, fullSize=200000, page
  | Size=2000, downCacheSize=2000
  | 18:57:57,140 INFO  [QueueService] Queue[/queue/C] started, fullSize=200000, page
  | Size=2000, downCacheSize=2000
  | 18:57:57,156 INFO  [QueueService] Queue[/queue/D] started, fullSize=200000, page
  | Size=2000, downCacheSize=2000
  | 18:57:57,156 INFO  [QueueService] Queue[/queue/ex] started, fullSize=200000, pag
  | eSize=2000, downCacheSize=2000
  | 18:57:57,156 INFO  [QueueService] Queue[/queue/PrivateDLQ] started, fullSize=200
  | 000, pageSize=2000, downCacheSize=2000
  | 18:57:57,156 INFO  [QueueService] Queue[/queue/PrivateExpiryQueue] started, full
  | Size=200000, pageSize=2000, downCacheSize=2000
  | 18:57:57,171 INFO  [QueueService] Queue[/queue/QueueWithOwnDLQAndExpiryQueue] st
  | arted, fullSize=200000, pageSize=2000, downCacheSize=2000
  | 18:57:57,171 INFO  [TopicService] Topic[/topic/TopicWithOwnDLQAndExpiryQueue] st
  | arted, fullSize=200000, pageSize=2000, downCacheSize=2000
  | 18:57:57,171 INFO  [QueueService] Queue[/queue/QueueWithOwnRedeliveryDelay] star
  | ted, fullSize=200000, pageSize=2000, downCacheSize=2000
  | 18:57:57,171 INFO  [TopicService] Topic[/topic/TopicWithOwnRedeliveryDelay] star
  | ted, fullSize=200000, pageSize=2000, downCacheSize=2000
  | 18:57:57,171 INFO  [QueueService] Queue[/queue/testDistributedQueue] started, fu
  | llSize=200000, pageSize=2000, downCacheSize=2000
  | 18:57:57,187 INFO  [TopicService] Topic[/topic/testDistributedTopic] started, fu
  | llSize=200000, pageSize=2000, downCacheSize=2000
  | 18:57:57,187 INFO  [TopicService] Topic[/topic/myTopic] started, fullSize=200000
  | , pageSize=2000, downCacheSize=2000
  | 18:57:57,375 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
  | oss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
  | 18:57:57,406 INFO  [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../dep
  | loy/jmx-console.war/
  | 18:57:57,531 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
  | 
  | --- MBeans waiting for other MBeans ---
  | ObjectName: jboss.messaging.connectionfactory:service=MyConnectionFactory
  |   State: FAILED
  |   Reason: org.jboss.deployment.DeploymentException: Exception setting attribute
  | javax.management.Attribute at 1b94ea2 on mbean jboss.messaging.connectionfactory:se
  | rvice=MyConnectionFactory; - nested throwable: (javax.management.AttributeNotFou
  | ndException: Attribute 'ClientID' is not writable)
  |   I Depend On:
  |     jboss.messaging:service=ServerPeer
  |     jboss.messaging:service=Connector,transport=bisocket
  |     jboss.messaging:service=PostOffice
  | 
  | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
  | ObjectName: jboss.messaging.connectionfactory:service=MyConnectionFactory
  |   State: FAILED
  |   Reason: org.jboss.deployment.DeploymentException: Exception setting attribute
  | javax.management.Attribute at 1b94ea2 on mbean jboss.messaging.connectionfactory:se
  | rvice=MyConnectionFactory; - nested throwable: (javax.management.AttributeNotFou
  | ndException: Attribute 'ClientID' is not writable)
  |   I Depend On:
  |     jboss.messaging:service=ServerPeer
  |     jboss.messaging:service=Connector,transport=bisocket
  |     jboss.messaging:service=PostOffice
  | 18:57:57,671 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8
  | 080
  | 18:57:57,703 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-800918:57:57,718 INFO  [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBos
  | s_4_2_2_GA date=200710221139)] Started in 19s:672ms
  | 
  | ===========================
  | 
  | i created file connection-factories-service.xml(content is same as in url ) and placed C:\myjboss-4.2.2\jboss-4.2.2.GA\server\messaging\deploy
  | 
  | I have to create any entries in any other xml file (or) any thing i need to do for clinet id , etc... ? 
  | 
  | Please help me 
  | 
  | 
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145518#4145518

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145518



More information about the jboss-user mailing list