4 Replies Latest reply on Aug 2, 2007 2:37 PM by bglasco

    Error running the wiki example

    sajid08

      Hi All!,

      While running the the queue example given on the wiki page
      http://wiki.jboss.org/wiki/Wiki.jsp?page=QueueExample, I get the following error:

      Creating jndi context - alternatively use a jndi.properties
      Looking up queue
      Looking up connection factory
      Exception in thread "main" javax.naming.NameNotFoundException: UIL2ConnectionFactory 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 sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
      at sun.rmi.transport.Transport$1.run(Transport.java:153)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
      at java.lang.Thread.run(Thread.java:595)
      at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
      at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
      at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
      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 Client.main(Client.java:33)


      It works alright uptil 'Looking up Queue', but after that it gives error.
      It says UIL2ConnectionFactory not bound, do I have to bind UIL2ConnectionFactory? If yes then how?, I have not changed the default settings that the JBoss App. Server and JBoss Messaging install with. Please help me, I'd be very grateful!!


      Regards,
      Sajid.

        • 1. Re: Error running the wiki example
          timfox

          You're in the wrong foum.

          This is a JBoss Messaging forum

          • 2. Re: Error running the wiki example
            sajid08

            Well How can be this the wrong forum, this is a JBoss messaging example and thats giving the error?, If any other forum suits more to this problem please redirect me towards that...



            Regards,
            Sajid.

            • 3. Re: Error running the wiki example
              ovidiu.feodorov

              "UIL2ConnectionFactory" is a JBoss*MQ* connection factory. This forum is a JBoss Messaging user forum. JBossMQ and JBossMessaging are completely different projects (and products).

              There's a big sticky note right at the top of this forum saying "PLEASE DO NOT POST JBOSS MQ QUESTIONS HERE"

              You failed the test :)

              • 4. Re: Error running the wiki example
                bglasco

                You failed the test...

                You should spend more time answering questions than being an inempt forum cop.

                Since the connection factoy changed from JbossMQ to Jboss messaging this is an appropriate question for the forum. Especialy since it is not covered in the documentation on the upgrade. If someone had been competent enough to mention it in the upgrade material no one would be looking for it here.

                Don't bother with some arogant trivial reply.

                thx