0 Replies Latest reply on Mar 13, 2002 11:58 AM by mukul gupta

    Problem running interest client

    mukul gupta Newbie

      Hi,

      I started the tutorial from 'Chapter1: First Steps' and succesfully deployed the interest.jar.
      Next I went on to the 'Coding and compiling the test client' and am getting the error:

      [java] java.lang.NoClassDefFoundError: javax/ejb/HomeHandle

      Please help me resolve my problem, Thanks.

      Mukul
      ----------------------------------------------------------
      E:\jboss\examples\build>ant intro-interest-client
      Buildfile: build.xml

      validate-servlet:

      validate-jboss:

      fail_if_not_valid:

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

      intro-interest-client:

      compile:

      interest-client:
      [java] Got context
      [java] java.lang.NoClassDefFoundError: javax/ejb/HomeHandle
      [java] at java.lang.Class.getMethods0(Native Method)
      [java] at java.lang.Class.getMethods(Class.java:742)
      [java] at sun.misc.ProxyGenerator.generateClassFile(ProxyGenerator.java:176)
      [java] at sun.misc.ProxyGenerator.generateProxyClass(ProxyGenerator.java:77)
      [java] at java.lang.reflect.Proxy.getProxyClass(Proxy.java:475)
      [java] at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:185)
      [java] at java.io.ObjectInputStream.inputProxyClassDescriptor(ObjectInputStream.java:982)
      [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
      [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
      [java] at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
      [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
      [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
      [java] at java.rmi.MarshalledObject.get(MarshalledObject.java:138)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:353)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
      [java] at javax.naming.InitialContext.lookup(InitialContext.java:350)
      [java] at org.jboss.docs.interest.InterestClient.main(InterestClient.java:32)
      [java] Exception in thread "main"
      [java] Java Result: 1

      BUILD SUCCESSFUL

      Total time: 2 seconds

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