2 Replies Latest reply on Mar 13, 2003 4:38 AM by Jeroen Oosterlaar

    Deploymant "succeeds", invokation failes

    Jeroen Oosterlaar Newbie


      I have a strange problem with deployment:

      I have a EJB that prints a simple String to the standard output (JBoss console) using the method "printString()". When I compile and build (creating the jar) everything, everything goes well. Then when I deploy the jar, I get a JBoss message saying:

      09:15:21,805 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
      09:15:22,035 INFO [MainDeployer] Deployed package: file:/C:/jboss-3.0.6/server/

      Here comes the strange thing. I have implemented "System.out.println" in every basic bean method ("ejbCreate()", etc.). When I deploy the bean, there should be output in the JBoss console, shouldn't it? Another thing is, when I deploy a completely empty jar, JBoss gives the same message of success. I guess JBoss does nothing with the jar. I should at least expect some errormessage.

      When I use my client test application, it fails (of course). It gives the exception:

      javax.naming.NameNotFoundException: test not bound

      I'm binding to "test/Test", where my jndi-name is "test/Test" (specified in jboss.xml).

      Can anyone explain this and help me? I assume this is caused by some kind of deploymentflaw (no errors are given, when deploying total nonsense).

      Thanks very much in advance!

      Jeroen Oosterlaar

        • 1. Re: Deploymant "succeeds", invokation failes
          Peter Doornbosch Apprentice

          There should be some output when deploying the bean; something like:
          10:11:57,569 INFO [EjbModule] Creating
          10:11:57,587 INFO [EjbModule] Deploying YourBean
          10:11:57,600 INFO [EjbModule] Deploying YourOtherBean
          10:11:57,635 INFO [EjbModule] Created
          10:11:57,636 INFO [EjbModule] Starting
          10:11:57,693 INFO [EjbModule] Started

          The println's do not necessarily show up during _deployment_, e.g. entity beans and SFSB are created when a user requests them to be created.

          You didn't forget to include the ejb-jar.xml in your jar file, did you? Maybe you should post it, so we can have look....


          • 2. Re: Deploymant "succeeds", invokation failes
            Jeroen Oosterlaar Newbie

            There is no output in that form.

            My jboss.xml:

            <?xml version="1.0" encoding="UTF-8"?>




            My ejb-jar.xml:

            <?xml version="1.0" encoding="UTF-8"?>

            <display-name>Test EJB</display-name>