2 Replies Latest reply on Mar 29, 2012 3:55 AM by Ali Yagmur

    jboss 7.1.0 Final : Disabling jmx client ssl check

    Ali Yagmur Newbie

      Hello,

       

      Some conditions force us to use jdk1.6.11 version but we want to upgrade jboss version from 4.2.3 to as 7.1.0 final.

       

      Currently, I get an exception : No such method error, getDefault() in SSLContext in jsse.jar. It is true that there is no such method in jsse.jar, and we want it keep this situation. We have already developed some security mechasims and we don't want to use JBOSS security mechanism. But we want to use jmx facility of jboss client.

       

       

      Thus, I want to ask : is there any way to disable this security check?

       

      Thanks in advance,

        • 1. Re: jboss 7.1.0 Final : Disabling jmx client ssl check
          Darran Lofthouse Master

          Can you please show me the full stack for the error you are seeing and also the output of java -version

          • 2. Re: jboss 7.1.0 Final : Disabling jmx client ssl check
            Ali Yagmur Newbie

            I have been using jdk1.6.11 customized version. Customized means we make some changes regarding our client`s security concerns.

            I follow the stackrace and it is true, there is no such method in SSLContext in jsse.jar.

             

            The only thing i can do is to disable this security mechanism by decompile-compile jboss code or by a configuration.

             

            I just want to be sure whether there is any way to disable it by configuration.

             

            Thanks your help in advance,

             

             

            java version "1.6.0_11"

            Java(TM) SE Runtime Environment (build 1.6.0_11-b03)

            Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode)

             

            --------------------------------

             

             

            Mar 29, 2012 10:47:37 AM org.xnio.Xnio <clinit>

            INFO: XNIO Version 3.0.3.GA

            Mar 29, 2012 10:47:37 AM org.xnio.nio.NioXnio <clinit>

            INFO: XNIO NIO Implementation Version 3.0.3.GA

            Mar 29, 2012 10:47:37 AM org.jboss.remoting3.EndpointImpl <clinit>

            INFO: JBoss Remoting version 3.2.2.GA

            Exception in thread "main" java.lang.NoSuchMethodError: javax.net.ssl.SSLContext.getDefault()Ljavax/net/ssl/SSLContext;

                at org.xnio.ssl.JsseSslUtils.createSSLContext(JsseSslUtils.java:87)

                at org.xnio.ssl.JsseSslUtils.createSSLContext(JsseSslUtils.java:66)

                at org.xnio.ssl.JsseXnioSsl.<init>(JsseXnioSsl.java:73)

                at org.xnio.Xnio.getSslProvider(Xnio.java:209)

                at org.jboss.remoting3.remote.RemoteConnectionProvider.connect(RemoteConnectionProvider.java:145)

                at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:296)

                at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:251)

                at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:349)

                at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:333)

                at org.jboss.remoting3.jmx.RemotingConnector.connect(RemotingConnector.java:147)

                at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)

                at jmx_client.JMXExample.Connection(JMXExample.java:21)

                at jmx_client.JMXExample.main(JMXExample.java:53)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)