Uploaded image for project: 'JBoss A-MQ'
  1. JBoss A-MQ
  2. ENTMQ-588

ActiveMQ Webconsole can not be browsed when SSL is enabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JBoss A-MQ 6.0
    • JBoss A-MQ 6.0
    • None
    • None
    • Hide

      1. Updated org.ops4j.pax.web.cfg with:
      org.osgi.service.http.enabled=false
      org.osgi.service.http.secure.enabled=true
      org.osgi.service.http.port.secure=8183

      org.ops4j.pax.web.ssl.keystore=/Users/sjavurek/Fuse/activemq/5.8/apache-activemq-5.8.0.redhat-60060/conf/broker.ks

      org.ops4j.pax.web.ssl.keystore.type=JKS
      org.ops4j.pax.web.ssl.password=password
      org.ops4j.pax.web.ssl.keypassword=password
      org.ops4j.pax.web.ssl.clientauthwanted=false
      org.ops4j.pax.web.ssl.clientauthneeded=false

      2. Updated my broker config with an ssl context:

      <sslContext>
      <sslContext
      keyStore="/Users/sjavurek/Fuse/activemq/5.8/apache-activemq-5.8.0.redhat-60060/conf/broker.ks" keyStorePassword="password"
      trustStore="/Users/sjavurek/Fuse/activemq/5.8/apache-activemq-5.8.0.redhat-60060/conf/broker.ts" trustStorePassword="password"/>
      </sslContext>

      3. Add the ssl transport to my broker:

      <transportConnector name="openwire" uri="ssl://0.0.0.0:61616?maximumConnections=1000"/>

      4. Updated the system.properties with the ssl url:

      activemq.url = ssl://${activemq.host}:${activemq.port}

      5. Try to browse a message of a queue:

      https://localhost:8183/activemqweb/index.jsp

      Show
      1. Updated org.ops4j.pax.web.cfg with: org.osgi.service.http.enabled=false org.osgi.service.http.secure.enabled=true org.osgi.service.http.port.secure=8183 org.ops4j.pax.web.ssl.keystore=/Users/sjavurek/Fuse/activemq/5.8/apache-activemq-5.8.0.redhat-60060/conf/broker.ks org.ops4j.pax.web.ssl.keystore.type=JKS org.ops4j.pax.web.ssl.password=password org.ops4j.pax.web.ssl.keypassword=password org.ops4j.pax.web.ssl.clientauthwanted=false org.ops4j.pax.web.ssl.clientauthneeded=false 2. Updated my broker config with an ssl context: <sslContext> <sslContext keyStore="/Users/sjavurek/Fuse/activemq/5.8/apache-activemq-5.8.0.redhat-60060/conf/broker.ks" keyStorePassword="password" trustStore="/Users/sjavurek/Fuse/activemq/5.8/apache-activemq-5.8.0.redhat-60060/conf/broker.ts" trustStorePassword="password"/> </sslContext> 3. Add the ssl transport to my broker: <transportConnector name="openwire" uri="ssl://0.0.0.0:61616?maximumConnections=1000"/> 4. Updated the system.properties with the ssl url: activemq.url = ssl://${activemq.host}:${activemq.port} 5. Try to browse a message of a queue: https://localhost:8183/activemqweb/index.jsp

      When browsing messages from the web console when SSL is enabled, I receive errors:| 12:44:40,205 | DEBUG | on=imgw.OUTGOING | SessionPool | 237 - org.jboss.amq.mq-web-console - 5.8.0.redhat-60024 | Caught exception while attempting to get a new Connection.|

      javax.jms.JMSException: Could not create Transport. Reason: java.io.IOException: Transport scheme NOT recognized: [ssl]
      at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:36)[237:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
      at org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:252)[237:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
      at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:265)[237:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
      at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:238)[237:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
      at org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:184)[237:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
      at org.apache.activemq.web.SessionPool.getConnection(SessionPool.java:48)[237:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
      at org.apache.activemq.web.SessionPool.createSession(SessionPool.java:114)[237:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
      at org.apache.activemq.web.SessionPool.borrowSession(SessionPool.java:93)[237:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
      at org.apache.activemq.web.QueueBrowseQuery.<init>(QueueBrowseQuery.java:40)[237:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.7.0_51]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)[:1.7.0_51]
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[:1.7.0_51]
      at java.lang.reflect.Constructor.newInstance(Constructor.java:526)[:1.7.0_51]
      at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)[237:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
      at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:121)[237:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
      at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)[237:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)[237:org.jboss.amq.mq-web-cons
      ole:5.8.0.redhat-60024]
       
      ...
      Caused by: java.io.IOException: Transport scheme NOT recognized: [ssl]
      at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27)[237:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
      at org.apache.activemq.transport.TransportFactory.findTransportFactory(TransportFactory.java:178)[237:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
      at org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:63)[237:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
      at org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:250)[237:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
      ... 81 more
      Caused by: java.lang.NoClassDefFoundError: javax/net/ssl/SSLServerSocketFactory
      at java.lang.Class.getDeclaredConstructors0(Native Method)[:1.7.0_51]
      at java.lang.Class.privateGetDeclaredConstructors(Class.java:2493)[:1.7.0_51]
      at java.lang.Class.getConstructor0(Class.java:2803)[:1.7.0_51]
      at java.lang.Class.newInstance(Class.java:345)[:1.7.0_51]
      at org.apache.activemq.util.FactoryFinder$StandaloneObjectFactory.create(FactoryFinder.java:61)[237:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
      at org.apache.activemq.util.FactoryFinder.newInstance(FactoryFinder.java:146)[237:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
      at org.apache.activemq.transport.TransportFactory.findTransportFactory(TransportFactory.java:175)[237:org.jboss.amq.mq-web-console:5.8.0.redhat-60024]
      ... 83 more
      Caused by: java.lang.ClassNotFoundException: javax.net.ssl.SSLServerSocketFactory not found by org.jboss.amq.mq-web-console [237]
      at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532)
      at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
      at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:358)[:1.7.0_51]
      ... 90 more
       

      Log attached.

              dejanbosanac Dejan Bosanac
              rhn-support-sjavurek Susan Javurek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: