1 Reply Latest reply on Sep 1, 2002 4:47 PM by adrian.brock

    first example doesn't work

    luigifonti

      System: Windows 2000
      ant: installed and working properly
      Jboss: 3.0 with Tomcat running (seems properly)

      Downloaded and unpacked: documentation-example.zip

      first example bean compiled and deployed
      (apparently all ok):

      ant intro-interest-jar
      ant intro-interest-deploy
      the following is the output of deploy:
      ----------------------------------------------------------
      Buildfile: build.xml

      validate-servlet:

      validate-jboss:

      fail_if_not_valid:

      init:
      [echo] Using JBoss directory=c:\jboss3
      [echo] Using base classpath=C:\jboss3\client\jboss-j2ee.jar;C:\jboss3\client\jaas.jar;C:\jboss3\client\jbosssx-client.jar;C:\jboss3\client\jboss-client.jar;C:\jboss3\client\jnp-client.jar;C:\catalina\common\lib\servlet.jar
      [echo] Using Source directory=C:\examples
      [echo] Using Build directory=C:\examples/build-examples

      intro-interest-deploy:

      compile:

      ejb-jar:
      [delete] Deleting directory C:\examples\build-examples\interest\META-INF
      [mkdir] Created dir: C:\examples\build-examples\interest\META-INF
      [copy] Copying 1 file to C:\examples\build-examples\interest\META-INF
      [copy] Copying 1 file to C:\examples\build-examples\interest\META-INF
      [jar] Building jar: C:\examples\build-examples\interest\interest.jar

      deploy-ejb-jar:
      [copy] Copying 1 file to C:\jboss3\deploy

      BUILD SUCCESSFUL
      Total time: 2 seconds
      ---------------------------------------------------------

      but if I try to compile and launch the test client:
      ant intro-interest-client,
      it seems the bean is not deployed.
      the following is the output:
      ---------------------------------------------------------
      Buildfile: build.xml

      validate-servlet:

      validate-jboss:

      fail_if_not_valid:

      init:
      [echo] Using JBoss directory=c:\jboss3
      [echo] Using base classpath=C:\jboss3\client\jboss-j2ee.jar;C:\jboss3\client\jaas.jar;C:\jboss3\client\jbosssx-client.jar;C:\jboss3\client\jboss-client.jar;C:\jboss3\client\jnp-client.jar;C:\catalina\common\lib\servlet.jar
      [echo] Using Source directory=C:\examples
      [echo] Using Build directory=C:\examples/build-examples

      intro-interest-client:

      compile:
      [javac] Compiling 1 source file to C:\examples\build-examples\interest\classes

      interest-client:
      [java] Got context
      [java] javax.naming.NameNotFoundException: interest not bound

      BUILD SUCCESSFUL
      Total time: 9 seconds
      ---------------------------------------------------------

      How can I check if a bean is correctly deployed ?
      help me, please !
      Luigi Fonti


        • 1. Re: first example doesn't work

          Everybody struggles with this.
          The example is for 2.4.x where the file structure
          was different.

          In file
          org/jboss/docs/interest/build.xml

          find ${jboss.dist}/deploy
          change it to ${jboss.dist}/server/default/deploy

          I'm not sure what other changes might be required?
          I've never tried it with jboss3.

          From your other post, you need c:\jboss3\client\jboss-common-client.jar to get the logger class.

          Regards,
          Adrian