14 Replies Latest reply on Aug 4, 2011 6:40 AM by kaneeec

    I get exception javax.naming.NameNotFoundException: DefaultJ

      i am moving jboss 4.0.4 to jboss 5.1.0

      i copied the jms-ds.xml file from jboss 4.0.4 and moved it to
      jboss 5.1.0 server/all/messaging folder

      while the server starts i get DEPLOYMENTS IN ERROR

      Deployment "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=BEFORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader@219106c7} roots=[MemoryContextHandler@1327112367[path= context=vfsmemory://4sg264-ced9de-fzfch9gr-1-fzfchlfn-2f real=vfsmemory://4sg264-ced9de-fzfch9gr-1-fzfchlfn-2f]] delegates=null exported=[] <IMPORT-ALL>NON_EMPTY}}
      


      And because of this deployement error , i get the below error message

      javax.naming.NameNotFoundException: DefaultJMSProvider not bound


      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>


      what should be the mbean code instead of org.jboss.jms.asf.ServerSessionPoolLoader

      or am i doing wrong in coping the jms-ds.xml from Jboss 4.x to jboss 5.x

        • 1. Re: I get exception javax.naming.NameNotFoundException: Defa

          please help me

          • 2. Re: I get exception javax.naming.NameNotFoundException: Defa

            somebody please please help

            • 3. Re: I get exception javax.naming.NameNotFoundException: Defa

              some body please

              • 4. Re: I get exception javax.naming.NameNotFoundException: Defa
                jaikiran

                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

                  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

                    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 error


                    Deployment "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

                      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

                         

                        "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

                          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

                             

                            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

                              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

                                Hey thank you , i got this fixed

                                Thanks
                                Vishnu

                                • 13. Re: I get exception javax.naming.NameNotFoundException: Defa
                                  alesj

                                   

                                  "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

                                    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"/-->