1 Reply Latest reply on Mar 21, 2006 1:38 PM by Adrian Brock

    javax.naming.NameNotFoundException: DefaultJMSProvider not b

    Pauline Khoo Newbie

      I got this error exception when starting up JBOSS even after I have defined DefaultJMSProvider below...

      00:25:25,174 WARN [JMSContainerInvoker] JMS provider failure detected for ReadMessageMDB
      javax.naming.NameNotFoundException: DefaultJMSProvider not bound
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
      at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
      at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
      at javax.naming.InitialContext.lookup(InitialContext.java:351)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.getJMSProviderAdapter(JMSContainerInvoker.java:1051)

      -----------------------------

      DefaultJMSProvider defined like this ...

       <mbean code="org.jboss.jms.jndi.JMSProviderLoader"
       name="jboss.mq:service=JMSProviderLoader,name=JMSProvider">
       <attribute name="ProviderName">DefaultJMSProvider</attribute>
       <attribute name="ProviderAdapterClass">
       org.jboss.jms.jndi.JBossMQProvider
       </attribute>
       <attribute name="ProvideUrl">jnp://localhost:1099</attribute>
       <!-- The combined connection factory -->
       <attribute name="FactoryRef">java:/ConnectionFactory</attribute>
       <!-- The queue connection factory -->
       <attribute name="QueueFactoryRef">java:/ConnectionFactory</attribute>
       <!-- The topic factory -->
       <attribute name="TopicFactoryRef">java:/ConnectionFactory</attribute>
       <!-- Uncomment to use HAJNDI to access JMS -->
       <attribute name="Properties">
       java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
       java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
       java.naming.provider.url=localhost:1100
       </attribute>
      
       </mbean>