activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sonicBasher <sonicBas...@gmail.com>
Subject Embedded Jetty + AMQ 5.4.2 + https
Date Wed, 19 Oct 2011 08:57:51 GMT
Hi, 

I'm trying to configure an SSL Connector in embedded Jetty (I'm using AMQ
5.4.2 so Jetty's version is 7.1.6.v20100715). I read the following tutorial:
SSL_TUTORIAL_LINK but it seems to apply to standalone Jetty. Anyway, the
whole point is making it possible for the AMQ WebConsole users to access it
via https, which needs to be done via
org.eclipse.jetty.server.ssl.SslSelectChannelConnector
I already created the necessary keystore and imported the self-signed
certificate into the truststore. Also, here's how I updated my Jetty
connectors in jetty.xml: 

        <property name="connectors">
            <list>
                <bean id="Connector"
class="org.eclipse.jetty.server.nio.SelectChannelConnector">
                    <property name="port" value="8161" />
                </bean>

                <bean id="ConnectorSSL"
class="org.eclipse.jetty.server.ssl.SslSelectChannelConnector">
                    <property name="port" value="8443" />
                    <property name="keystore"
value="/opt/sia/httpsamq/conf/jetty.jks" />
                    <property name="password" value="test123" />
                    <property name="keyPassword" value="test123" />
                    <property name="truststore"
value="/opt/sia/httpsamq/conf/jetty.jts" />
                    <property name="trustPassword" value="test123" />
                </bean>

            </list>
        </property>



But it doesn't work - AMQ says it launched the embedded jetty web console
via http (which is not what I wanted), when I try to reach it, I just get
plaintext SSL exception. 

Also, I know I can deploy AMQ Console into a standalone container, but it's
kinda a measure of last resort to me. I want to make this work, it's gotta
be possible somehow. I'm guessing it's all about the syntax, wrong class
name, wrong parameters. Or am I just missing something?


2011-10-18 13:09:32,619 | INFO  | Refreshing
org.apache.activemq.xbean.XBeanBrokerFactory$1@4f5ad5c6: startup date [Tue
Oct 18 13:09:32 CEST 2011]; root of context hierarchy |
org.apache.activemq.xbean.XBeanBrokerFactory$1 | main 
2011-10-18 13:09:33,433 | WARN  | destroyApplicationContextOnStop parameter
is deprecated, please use shutdown hooks instead |
org.apache.activemq.xbean.XBeanBrokerService | main 
2011-10-18 13:09:33,438 | INFO  |
PListStore:/opt/sia/httpsamq/data/amqcat/tmp_storage started |
org.apache.activemq.store.kahadb.plist.PListStore | main 
2011-10-18 13:09:33,558 | INFO  | JMX consoles can connect to
service:jmx:rmi://localhost:11119/jndi/rmi://localhost:11099/jmxrmi |
org.apache.activemq.broker.jmx.ManagementContext | JMX connector 
2011-10-18 13:09:33,560 | INFO  | Using Persistence Adapter:
KahaDBPersistenceAdapter[/opt/sia/httpsamq/data/kahadb] |
org.apache.activemq.broker.BrokerService | main 
2011-10-18 13:09:33,766 | INFO  | ActiveMQ 5.4.2-fuse-02-00 JMS Message
Broker (amqcat) is starting | org.apache.activemq.broker.BrokerService |
main 
2011-10-18 13:09:33,766 | INFO  | For help or more information please see:
http://activemq.apache.org/ | org.apache.activemq.broker.BrokerService |
main 
2011-10-18 13:09:33,952 | INFO  | Listening for connections at:
tcp://gqsia0001ap.ffm.de.int.atosorigin.com:61616 |
org.apache.activemq.transport.TransportServerThreadSupport | main 
2011-10-18 13:09:33,952 | INFO  | Connector openwire Started |
org.apache.activemq.broker.TransportConnector | main 
2011-10-18 13:09:33,962 | INFO  | Listening for connections at:
tcp://gqsia0001ap.ffm.de.int.atosorigin.com:61618 |
org.apache.activemq.transport.TransportServerThreadSupport | main 
2011-10-18 13:09:33,963 | INFO  | Connector open2 Started |
org.apache.activemq.broker.TransportConnector | main 
2011-10-18 13:09:34,229 | INFO  | Listening for connections at:
ssl://gqsia0001ap.ffm.de.int.atosorigin.com:61617 |
org.apache.activemq.transport.TransportServerThreadSupport | main 
2011-10-18 13:09:34,229 | INFO  | Connector ssl Started |
org.apache.activemq.broker.TransportConnector | main 
2011-10-18 13:09:34,231 | INFO  | ActiveMQ JMS Message Broker (amqcat,
ID:gqsia0001ap.ffm.de.int.atosorigin.com-48074-1318936173790-0:1) started |
org.apache.activemq.broker.BrokerService | main 
2011-10-18 13:09:34,316 | INFO  | jetty-7.1.6.v20100715 |
org.eclipse.jetty.util.log | main 
2011-10-18 13:09:34,508 | INFO  | ActiveMQ WebConsole initialized. |
org.apache.activemq.web.WebConsoleStarter | main 
2011-10-18 13:09:34,576 | INFO  | Initializing Spring FrameworkServlet
'dispatcher' | /admin | main 
2011-10-18 13:09:34,668 | INFO  | ActiveMQ Console at
http://0.0.0.0:8161/admin | org.eclipse.jetty.util.log | main 
2011-10-18 13:09:34,668 | INFO  | ActiveMQ Console at
http://0.0.0.0:8443/admin | org.eclipse.jetty.util.log | main
2011-10-18 13:09:34,814 | INFO  | Initializing Spring root
WebApplicationContext | /camel | main 
2011-10-18 13:09:34,931 | INFO  | OSGi environment not detected. |
org.apache.camel.spring.handler.CamelNamespaceHandler | main 
2011-10-18 13:09:35,642 | INFO  | Apache Camel 2.6.0-fuse-00-00
(CamelContext: camel) is starting |
org.apache.camel.spring.SpringCamelContext | main 
2011-10-18 13:09:35,643 | INFO  | JMX enabled. Using
ManagedManagementStrategy. | org.apache.camel.spring.SpringCamelContext |
main 
2011-10-18 13:09:36,261 | INFO  | Found 5 packages with 16 @Converter
classes to load |
org.apache.camel.impl.converter.AnnotationTypeConverterLoader | main 
2011-10-18 13:09:36,283 | INFO  | Loaded 151 type converters in 0.497
seconds | org.apache.camel.impl.converter.DefaultTypeConverter | main 
2011-10-18 13:09:36,694 | WARN  | Broker localhost not started so using
amqcat instead | org.apache.activemq.broker.BrokerRegistry | main 
2011-10-18 13:09:36,695 | INFO  | Connector vm://localhost Started |
org.apache.activemq.broker.TransportConnector | main 
2011-10-18 13:09:36,749 | INFO  | Route: route1 started and consuming from:
Endpoint[activemq://example.A] | org.apache.camel.spring.SpringCamelContext
| main 
2011-10-18 13:09:36,757 | INFO  | Total 1 routes, of which 1 is started. |
org.apache.camel.spring.SpringCamelContext | main 
2011-10-18 13:09:36,757 | INFO  | Apache Camel 2.6.0-fuse-00-00
(CamelContext: camel) started in 1.115 seconds |
org.apache.camel.spring.SpringCamelContext | main 
2011-10-18 13:09:37,621 | INFO  | Camel Console at http://0.0.0.0:8161/camel
| org.eclipse.jetty.util.log | main 
2011-10-18 13:09:37,621 | INFO  | Camel Console at http://0.0.0.0:8443/camel
| org.eclipse.jetty.util.log | main
2011-10-18 13:09:37,642 | INFO  | ActiveMQ Web Demos at
http://0.0.0.0:8161/demo | org.eclipse.jetty.util.log | main 
2011-10-18 13:09:37,642 | INFO  | ActiveMQ Web Demos at
http://0.0.0.0:8443/demo | org.eclipse.jetty.util.log | main
2011-10-18 13:09:37,662 | INFO  | RESTful file access application at
http://0.0.0.0:8161/fileserver | org.eclipse.jetty.util.log | main 
2011-10-18 13:09:37,662 | INFO  | RESTful file access application at
http://0.0.0.0:8443/fileserver | org.eclipse.jetty.util.log | main
2011-10-18 13:09:37,700 | INFO  | FUSE Web Console at
http://0.0.0.0:8161/console | org.eclipse.jetty.util.log | main 
2011-10-18 13:09:37,700 | INFO  | FUSE Web Console at
http://0.0.0.0:8443/console | org.eclipse.jetty.util.log | main
2011-10-18 13:09:37,709 | INFO  | Started
SelectChannelConnector@0.0.0.0:8161 | org.eclipse.jetty.util.log | main 
2011-10-18 13:09:37,712 | INFO  | Started
SslSelectChannelConnector@0.0.0.0:8443 | org.eclipse.jetty.util.log | main
2011-10-18 13:11:11,223 | WARN  | javax.net.ssl.SSLException: Unrecognized
SSL message, plaintext connection? | org.eclipse.jetty.util.log |
qtp61025956-32 
2011-10-18 13:11:19,304 | WARN  | javax.net.ssl.SSLException: Unrecognized
SSL message, plaintext connection? | org.eclipse.jetty.util.log |
qtp61025956-34 
2011-10-18 13:11:25,570 | WARN  | javax.net.ssl.SSLException: Unrecognized
SSL message, plaintext connection? | org.eclipse.jetty.util.log |
qtp61025956-36 
2011-10-18 13:15:44,836 | INFO  | ActiveMQ Message Broker (amqcat,
ID:gqsia0001ap.ffm.de.int.atosorigin.com-48074-1318936173790-0:1) is
shutting down | org.apache.activemq.broker.BrokerService | Thread-21 

--
View this message in context: http://activemq.2283324.n4.nabble.com/Embedded-Jetty-AMQ-5-4-2-https-tp3917998p3917998.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message