2 Replies Latest reply on Jul 13, 2002 1:44 AM by marc.fleury

    java.lang.NoClassDefFoundError: javax/net/SocketFactory

    farrukh

      i am using jboss and when i run my client using command
      ant intro-interest-client
      the following message is printed on the console

      interest-client:
      [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:668)
      [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



      joelvogt

      Posts: 75
      From: Newcastle Australia
      Registered: Jun, 2002


      Re: java.lang.NoClassDefFoundError: javax/net/SocketFactory Posted: Jul 9, 2002 12:17 AM
      Reply

      looks like it needs jnet.jar on cp


      chanly

      Posts: 2
      From: Hong Kong
      Registered: Jul, 2002


      Re: java.lang.NoClassDefFoundError: javax/net/SocketFactory Posted: Jul 9, 2002 12:55 PM
      Reply

      But I still get the following error message with "ant intro-interest-client"


      init:
      [echo] Using JBoss directory=d:\jboss-3.0.0_tomcat-4.0.3
      [echo] Using base classpath=D:\jboss-3.0.0_tomcat-4.0.3\client\jboss-j2ee.j
      ar;D:\jboss-3.0.0_tomcat-4.0.3\client\jaas.jar;D:\jboss-3.0.0_tomcat-4.0.3\clien
      t\jbosssx-client.jar;D:\jboss-3.0.0_tomcat-4.0.3\client\jboss-client.jar;D:\jbos
      s-3.0.0_tomcat-4.0.3\client\jnp-client.jar;D:\jboss-3.0.0_tomcat-4.0.3\client\jn
      et.jar;D:\catalina\common\lib\servlet.jar
      [echo] Using Source directory=D:\jboss-3.0.0_tomcat-4.0.3\docs\examples
      [echo] Using Build directory=D:\jboss-3.0.0_tomcat-4.0.3\docs\examples/buil
      d-examples

      intro-interest-client:

      compile:
      [javac] Compiling 1 source file to D:\jboss-3.0.0_tomcat-4.0.3\docs\examples
      \build-examples\interest\classes

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

      BUILD SUCCESSFUL

      jnet.jar is on my class path
      but still the problem remains there

      thanks i advance