4 Replies Latest reply on Jul 22, 2002 2:06 PM by elmersklew

    interest client error SocketFactory

    listert

      I get the following error when running
      'ant intro-interest-client'
      look like a classapth error but has anyone got a clue which jar is missing

      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

      BUILD SUCCESSFUL

        • 1. Re: interest client error SocketFactory
          listert

          after several more errors i have added jnet.jar, log4j.jar, jboss-common-client.jar as per the following in
          examples\build.xml
          Is this the right way to resolve this, it seems a bit flakey out of the box.

          <path id="base.path_24">
          <pathelement location="${jboss.dist}/client/jboss-j2ee.jar"/>
          <pathelement location="${jboss.dist}/client/jboss-common-client.jar"/>
          <pathelement location="${jboss.dist}/client/jnet.jar"/>
          <pathelement location="${jboss.dist}/client/log4j.jar"/>
          <pathelement location="${jboss.dist}/client/jaas.jar"/>
          <pathelement location="${jboss.dist}/client/jbosssx-client.jar"/>
          <pathelement location="${jboss.dist}/client/jboss-client.jar"/>
          <pathelement location="${jboss.dist}/client/jnp-client.jar"/>
          <pathelement location="${servlet.jar}"/>
          </path>

          • 2. Re: interest client error SocketFactory - version problem
            listert

            Hi
            Sorted
            Running the examples from the 2.4.n docs doesn't work under 3.0.0

            • 3. Re: interest client error SocketFactory
              maniac

              Hi,

              Did you ever get the "interest" example to work?
              I started playing with JBoss yesterday, and hit the same error:

              Thanks.
              Dmitry
              --- snip ---
              interest-client:
              [java] java.lang.NoClassDefFoundError: javax/net/SocketFactory
              [java] at org.jnp.interfaces.NamingContextFactory.getInitialContext(Nam
              ingContextFactory.java:38)
              ...
              [java] Exception in thread "main"
              [java] Java Result: 1
              --- snip ---

              • 4. Re: interest client error SocketFactory - version problem
                elmersklew

                > Hi
                > Sorted
                > Running the examples from the 2.4.n docs doesn't work
                > under 3.0.0
                >

                okay, so where are the 3.0 demos?