3 Replies Latest reply on Sep 20, 2004 9:21 AM by Dave Smith

    Missing class in jbosssx-client.jar in 3.2.5

    Dave Smith Newbie

      I am trying to call a remote method with the http invokers. The client has the jar files in the client directory of the jboss configuration. When I run it I get (see trace below)
      if I use the jbosssx.jar in the lib dir it works fine.


      Exception in thread "main" javax.naming.NamingException: Failed to retrieve Naming
      interface. Root exception is java.net.ConnectException: Connection refused
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
      at java.net.Socket.connect(Socket.java:426)
      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(DashoA6275)
      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.(DashoA6275)
      at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(DashoA627
      5)
      at sun.net.www.protocol.https.HttpsClient.doConnect(DashoA6275)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:386)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:602)
      at sun.net.www.protocol.https.HttpsClient.(DashoA6275)
      at sun.net.www.protocol.https.HttpsClient.a(DashoA6275)
      at sun.net.www.protocol.https.HttpsClient.a(DashoA6275)
      at sun.net.www.protocol.https.HttpsClient.a(DashoA6275)
      at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.plainConne
      ct(DashoA6275)
      at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Da
      shoA6275)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnec
      tion.java:574)
      at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnec
      tion.java:1169)
      at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:475)
      at java.net.URLConnection.getContentLength(URLConnection.java:370)
      at sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentLength(Dasho
      A6275)
      at org.jboss.naming.HttpNamingContextFactory.getNamingServer(HttpNamingCont
      extFactory.java:112)
      at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingCo
      ntextFactory.java:65)
      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
      at javax.naming.InitialContext.init(InitialContext.java:219)
      at javax.naming.InitialContext.(InitialContext.java:195)
      at com.candata.util.ejb.PropertiesBusFactory.lookupHome(Unknown Source)
      at com.candata.util.ejb.PropertiesBusFactory.getHome(Unknown Source)
      at com.candata.client.test.LocalTest.main(Unknown Source)

        • 1. Re: Missing class in jbosssx-client.jar in 3.2.5
          Dave Smith Newbie

          Sorry wrong backtrace. Try

          Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/security/GetPrincipalInfoAction
          at org.jboss.security.SecurityAssociationAuthenticator.getPasswordAuthentication(SecurityAssociationAuthenticator.java:23)
          at java.net.Authenticator.requestPasswordAuthentication(Authenticator.java:198)
          at sun.net.www.protocol.http.HttpURLConnection$1.run(HttpURLConnection.java:147)
          at java.security.AccessController.doPrivileged(Native Method)
          at sun.net.www.protocol.http.HttpURLConnection.privilegedRequestPasswordAuthentication(HttpURLConnection.java:143)
          at sun.net.www.protocol.http.HttpURLConnection.getServerAuthentication(HttpURLConnection.java:985)
          at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:618)
          at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1169)
          at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:475)
          at java.net.URLConnection.getContentLength(URLConnection.java:370)
          at sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentLength(DashoA6275)
          at org.jboss.naming.HttpNamingContextFactory.getNamingServer(HttpNamingContextFactory.java:112)
          at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingContextFactory.java:65)
          at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
          at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
          at javax.naming.InitialContext.init(InitialContext.java:219)
          at javax.naming.InitialContext.(InitialContext.java:195)
          at com.candata.util.ejb.PropertiesBusFactory.lookupHome(Unknown Source)
          at com.candata.util.ejb.PropertiesBusFactory.getHome(Unknown Source)
          at com.candata.client.test.LocalTest.main(Unknown Source)

          • 2. Re: Missing class in jbosssx-client.jar in 3.2.5
            Dan Thompson Newbie

            Could you be mixing and matching jars from different versions of JBoss?

            • 3. Re: Missing class in jbosssx-client.jar in 3.2.5
              Dave Smith Newbie

              Well I did a quick check of 3.2.6RC2 and definately the class is not in the client and the invoker calls it..