1 Reply Latest reply on Sep 1, 2002 4:54 PM by Adrian Brock

    help!error when run interest example

    cnwy Newbie

      I have run "ant intro-interest-deploy" successfully.
      ([copy] Copying 1 file to D:\jboss-3.0.2\deploy)
      when I run the client raise exception below.
      who can tell me how to do then?

      D:\jb3examples\examples\build>ant intro-interest-client
      Buildfile: build.xml

      validate-servlet:

      validate-jboss:

      fail_if_not_valid:

      init:
      [echo] Using JBoss directory=D:\jboss-3.0.2
      [echo] Using base classpath=D:\jboss-3.0.2\client\jboss-j2ee.jar;D:\jboss-3
      .0.2\client\jaas.jar;D:\jboss-3.0.2\client\jbosssx-client.jar;D:\jboss-3.0.2\cli
      ent\jboss-client.jar;D:\jboss-3.0.2\client\jnp-client.jar;D:\jb3examples\example
      s\COULD_NOT_FIND_SERVLET_JAR
      [echo] Using Source directory=D:\jb3examples\examples
      [echo] Using Build directory=D:\jb3examples\examples/build-examples

      intro-interest-client:

      compile:

      interest-client:
      [java] java.lang.NoClassDefFoundError: javax/net/SocketFactory
      [java] at org.jnp.interfaces.NamingContextFactory.getInitialContext(Nam
      ingContextFactory.java:42)
      [java] at javax.naming.spi.NamingManager.getInitialContext(NamingManage
      r.java:665)
      [java] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.
      java:246)
      [java] at javax.naming.InitialContext.init(InitialContext.java:222)
      [java] at javax.naming.InitialContext.(InitialContext.java:178)
      [java] at org.jboss.docs.interest.InterestClient.main(InterestClient.ja
      va:27)
      [java] Exception in thread "main"
      [java] Java Result: 1

      BUILD SUCCESSFUL
      Total time: 3 seconds