-
1. Re: I get exception javax.naming.NameNotFoundException: Defa
vishnukn Sep 10, 2009 3:12 AM (in response to vishnukn)please help me
-
2. Re: I get exception javax.naming.NameNotFoundException: Defa
vishnukn Sep 10, 2009 4:43 AM (in response to vishnukn)somebody please please help
-
3. Re: I get exception javax.naming.NameNotFoundException: Defa
vishnukn Sep 10, 2009 5:49 AM (in response to vishnukn)some body please
-
4. Re: I get exception javax.naming.NameNotFoundException: Defa
jaikiran Sep 10, 2009 5:59 AM (in response to vishnukn)vishnu,
When you post in community forums where participants are mere volunteers, you have to be patient:
http://www.jboss.org/community/wiki/JBossHelp
http://www.jboss.org/community/wiki/ForumPosts
Bumping a thread every hour can lead to people ignoring the topic :) -
5. Re: I get exception javax.naming.NameNotFoundException: Defa
jaikiran Sep 10, 2009 6:00 AM (in response to vishnukn)As for the issue you mention:
i copied the jms-ds.xml file from jboss 4.0.4 and moved it to
jboss 5.1.0 server/all/messaging folder
jms-ds.xml is jboss specific file. Replacing it is not a good idea. Why are you doing that? Do you have some specific changes that you have done in 4.0.4 version of jms-ds.xml that you want to add in 5.1.0? If yes, what are those changes?
-
6. Re: I get exception javax.naming.NameNotFoundException: Defa
vishnukn Sep 10, 2009 7:53 AM (in response to vishnukn)first of all I am extremely sorry,
what i see is there is no jms-ds.xml file in messaging directory of jboss 5.1 ga
so i copied it from 4.0.4 all/deploy/jms directory and when i start jboss 5.x it gives the below errorDeployment "vfsfile:/usr/local/jboss-5.1.0.GA/server/all/deploy/messaging/jms-ds.xml" is in error due to the following reason(s): java.lang.ClassNotFoundException: org.jboss.jms.asf.ServerSessionPoolLoader from BaseClassLoader@6cc542c{VFSClassLoaderPolicy@50aa1830{name=vfsfile:/usr/local/jboss-5.1.0.GA/server/ all/deploy/messaging/jms-ds.xml domain=ClassLoaderDomain@e425743{name=DefaultDomain parentPolicy=BEF ORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader@219106c7} roots=[MemoryContextHandler@1327 112367[path= context=vfsmemory://4sg264-ced9de-fzfch9gr-1-fzfchlfn-2f real=vfsmemory://4sg264-ced9de -fzfch9gr-1-fzfchlfn-2f]] delegates=null exported=[] <IMPORT-ALL>NON_EMPTY}}
in the jms-ds.xml , this line has problem
<mbean code="org.jboss.jms.asf.ServerSessionPoolLoader" name="jboss.mq:service=ServerSessionPoolMBean,name=StdJMSPool"> <depends optional-attribute-name="XidFactory">jboss:service=XidFactory</depends> <attribute name="PoolName">StdJMSPool</attribute> <attribute name="PoolFactoryClass"> org.jboss.jms.asf.StdServerSessionPoolFactory </attribute> </mbean>
-
7. Re: I get exception javax.naming.NameNotFoundException: Defa
vishnukn Sep 10, 2009 7:57 AM (in response to vishnukn)right now i removed the jms-ds.xml file from jboss-5.1 all/deploy/messaging directory
i configured all the topic an queue from the interface
But i get the exception
javax.naming.NameNotFoundException: DefaultJMSProvider not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:779) -
8. Re: I get exception javax.naming.NameNotFoundException: Defa
jaikiran Sep 10, 2009 10:17 AM (in response to vishnukn)"vishnukn" wrote:
i configured all the topic an queue from the interface
You mean from the admin-console?"vishnukn" wrote:
But i get the exception
javax.naming.NameNotFoundException: DefaultJMSProvider not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
Can you post the entire exception stacktrace and a few lines before this exception stacktrace?
While posting logs or xml content or code, please remember to wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure that your post is correctly formatted. -
9. Re: I get exception javax.naming.NameNotFoundException: Defa
vishnukn Sep 10, 2009 1:29 PM (in response to vishnukn)Yes i configured it from admin console
Below is the exception from the log file.09:44:41,242 ERROR [JmsActivation] Unable to reconnect org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@d523af5(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter@74840baa destination=TLIRequestQueue destinationType=javax.jms.Queue tx=true durable=false reconnect=10 provider=DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=10) javax.naming.NameNotFoundException: DefaultJMSProvider not bound at org.jnp.server.NamingServer.getBinding(NamingServer.java:771) at org.jnp.server.NamingServer.getBinding(NamingServer.java:779) at org.jnp.server.NamingServer.getObject(NamingServer.java:785) at org.jnp.server.NamingServer.lookup(NamingServer.java:443) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686) at javax.naming.InitialContext.lookup(InitialContext.java:392) at org.jboss.util.naming.Util.lookup(Util.java:222) at org.jboss.util.naming.Util.lookup(Util.java:182) at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupJMSProviderAdapter(JmsActivation.java:397) at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:346) at org.jboss.resource.adapter.jms.inflow.JmsActivation.handleFailure(JmsActivation.java:292) at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:733) at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:205) at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619)
-
10. Re: I get exception javax.naming.NameNotFoundException: Defa
jaikiran Sep 11, 2009 1:42 AM (in response to vishnukn)what i see is there is no jms-ds.xml file in messaging directory of jboss 5.1 ga
I just checked my 5.1.0 installation and i do see that there is a jms-ds.xml in JBOSS_HOME/server/< servername>/deploy/messaging folder with the following contents:<?xml version="1.0" encoding="UTF-8"?> <connection-factories> <!-- ==================================================================== --> <!-- JMS Stuff --> <!-- ==================================================================== --> <!-- The JMS provider loader. Currently pointing to a non-clustered ConnectionFactory. Need to be replaced with a clustered non-load-balanced ConnectionFactory when it becomes available. See http://jira.jboss.org/jira/browse/JBMESSAGING-843. --> <mbean code="org.jboss.jms.jndi.JMSProviderLoader" name="jboss.messaging:service=JMSProviderLoader,name=JMSProvider"> <attribute name="ProviderName">DefaultJMSProvider</attribute> <attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute> <attribute name="FactoryRef">java:/XAConnectionFactory</attribute> <attribute name="QueueFactoryRef">java:/XAConnectionFactory</attribute> <attribute name="TopicFactoryRef">java:/XAConnectionFactory</attribute> </mbean> <!-- JMS XA Resource adapter, use this to get transacted JMS in beans --> <tx-connection-factory> <jndi-name>JmsXA</jndi-name> <xa-transaction/> <rar-name>jms-ra.rar</rar-name> <connection-definition>org.jboss.resource.adapter.jms.JmsConnectionFactory</connection-definition> <config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Topic</config-property> <config-property name="JmsProviderAdapterJNDI" type="java.lang.String">java:/DefaultJMSProvider</config-property> <max-pool-size>20</max-pool-size> <security-domain-and-application>JmsXARealm</security-domain-and-application> <depends>jboss.messaging:service=ServerPeer</depends> </tx-connection-factory> </connection-factories>
Are you sure, you are using a clean installation of JBoss? Or maybe your build scripts are probably messing up the installation? -
11. Re: I get exception javax.naming.NameNotFoundException: Defa
vishnukn Sep 13, 2009 12:43 PM (in response to vishnukn)yse i am using the clean installation.
Even after that i get the error
javax.naming.NameNotFoundException: DefaultJMSProvider not bound/ -
12. Re: I get exception javax.naming.NameNotFoundException: Defa
vishnukn Sep 15, 2009 1:00 AM (in response to vishnukn)Hey thank you , i got this fixed
Thanks
Vishnu -
13. Re: I get exception javax.naming.NameNotFoundException: Defa
alesj Sep 15, 2009 2:47 AM (in response to vishnukn)"vishnukn" wrote:
Hey thank you , i got this fixed
Can you now, after you spammed/bothered us for a few days, at least share what was wrong? -
14. Re: I get exception javax.naming.NameNotFoundException: Defa
kaneeec Aug 4, 2011 6:40 AM (in response to alesj)Solution which worked for me is commenting a line in jbossts-properties.xml.
<!-- com.arjuna.ats.internal.jta.transaction.jts.UserTransactionImple -->
<!--property name="com.arjuna.ats.jta.recovery.XAResourceRecovery.JBMESSAGING1"
value="org.jboss.jms.server.recovery.MessagingXAResourceRecovery;java:/DefaultJMSProvider"/-->