0 Replies Latest reply on Aug 28, 2002 4:11 AM by sanjay

    NoClassDefFoundError: javax/net/SocketFactory when executing

    sanjay Newbie

      Hi,
      When I try executing example of documentation-example.zip by running ant script for JMS

      ant jms-hello-sender25

      get an basic error saying....

      **********************************************************
      jms-hello-sender25:
      [echo] Using resources from: F:\jboss-3.0.0\examples/resources
      [java] java.lang.NoClassDefFoundError: javax/net/SocketFactory
      [java] at org.jnp.interfaces.NamingContextFactory.getInitialContext(Nam
      ingContextFactory.java:38)
      [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.jms.client.HelloSender.(HelloSender.java
      :64)
      [java] at org.jboss.docs.jms.client.HelloSender25.(HelloSender25.
      java:26)
      [java] at org.jboss.docs.jms.client.HelloSender25.main(HelloSender25.ja
      va:38)
      [java] Exception in thread "main"
      **********************************************************

      But when I give javap javax.net.SocketFactory its there in the classpath.

      Please let me know how to fix up this problem.

      Regards
      P.Sanjay