3 Replies Latest reply on Apr 19, 2004 1:21 PM by jack-k

    Chapter 5 JMS example fails

    jack-k

      I can deploy the simplemessage.jar, but when I run the client I get the following:

      ==============================================
      C:\j2eetutorial\examples>ant -f jboss-build.xml run-mdb
      Buildfile: jboss-build.xml

      run-mdb:
      [java] JNDI lookup failed: javax.naming.NameNotFoundException: SimpleMessageClient not bound
      ==============================================

      I'm too much of a NEWBIE to figure out what binding is in this context, why JNDI failed to find SimpleMessageClient.

      What should I do to correct this?

      Jack


      PS: server side deployment of simplemessage.jar in case that helps.

      server:
      ==============================================
      16:44:12,581 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
      -3.2.3/server/default/deploy/simplemessage.jar
      16:44:12,961 INFO [EjbModule] Deploying SimpleMessageEJB
      16:44:13,042 INFO [DLQHandler] Started null
      16:44:13,042 INFO [JMSContainerInvoker] Started jboss.j2ee:binding=message-driv
      en-bean,jndiName=local/SimpleMessageEJB,plugin=invoker,service=EJB
      16:44:13,042 INFO [MessageDrivenInstancePool] Started jboss.j2ee:jndiName=local
      /SimpleMessageEJB,plugin=pool,service=EJB
      16:44:13,042 INFO [MessageDrivenContainer] Started jboss.j2ee:jndiName=local/Si
      mpleMessageEJB,service=EJB
      16:44:13,042 INFO [EjbModule] Started jboss.j2ee:module=simplemessage.jar,servi
      ce=EjbModule
      16:44:13,042 INFO [EJBDeployer] Deployed: file:/C:/jboss-3.2.3/server/default/d
      eploy/simplemessage.jar
      16:44:13,052 INFO [MainDeployer] Deployed package: file:/C:/jboss-3.2.3/server/
      default/deploy/simplemessage.jar
      ===========================================

        • 1. Re: Chapter 5 JMS example fails
          jianjia

          You need to deploy the application client jar on JBoss as well.

          • 2. Re: Chapter 5 JMS example fails
            jack-k

            please explain what
            "you need to deploy on JBoss as well"
            means?

            As far as I can tell, I followed chaper 5 to the letter, and I did put the simplemessage.jar in the default/deploy directory. To me that would indicate it's deployed on JBoss.

            I looked at the JNDIView.list:

            Ejb Module: simplemessage.jar
            java:comp namespace of the SimpleMessageEJB bean:
            +- env (class: org.jnp.interfaces.NamingContext)

            shows simplemessageEJB is in there.

            Is there something else that needs to be 'somewhere', and where is somewhere on JBoss?

            Is it perhaps the simplemessageClient? and if so how do I get JNDI to recognize that?

            Thanks,
            jack

            • 3. Re: Chapter 5 JMS example fails
              jack-k

              Figured it out:

              Chapter 5 fails to mention that you have to copy

              j2eetutorial/examples/jar/mdb-app-client.jar
              to the
              jboss/server/default/deploy

              directory.

              That corrects the problem.

              Jack