Hi,

I just did a quick test with Karaf 4.2.1.

Here's what I did:

1. On a fresh Karaf 4.2.1, I install the activemq-broker feature:

karaf@root()> feature:repo-add activemq 5.15.8
karaf@root()> feature:install activemq-broker

2. The activemq-broker installs etc/activemq.xml, I edited this file to
add the ws connector:

<transportConnector name="ws" uri="ws://0.0.0.0:8282"/>

3. I restart Karaf to load the change and start all transport connectors.

4. The ws transport connector starts fine:

18:06:35.029 INFO [Broker Starting Thread] Apache ActiveMQ 5.15.8
(amq-broker, ID:precision-41085-1547399194903-0:1) is starting
18:06:35.045 INFO [Broker Starting Thread] Listening for connections at:
tcp://precision:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600
18:06:35.046 INFO [Broker Starting Thread] Connector openwire started
18:06:35.048 INFO [Broker Starting Thread] Starting Jetty server
18:06:35.050 INFO [Broker Starting Thread] Creating Jetty connector
18:06:35.092 INFO [Broker Starting Thread] jetty-9.4.12.v20180830;
built: 2018-08-30T13:59:14.071Z; git:
27208684755d94a92186989f695db2d7b21ebc51; jvm 1.8.0_172-b11
18:06:35.147 WARN [Broker Starting Thread]
[email protected]@6f7ee618{/,null,STARTING}
has uncovered http methods for path: /
18:06:35.481 INFO [Broker Starting Thread] Started
o.e.j.s.ServletContextHandler@6f7ee618{/,null,AVAILABLE}
18:06:35.496 INFO [Broker Starting Thread] Started
ServerConnector@ad64d7d{HTTP/1.1,[http/1.1]}{0.0.0.0:8282}
18:06:35.497 INFO [Broker Starting Thread] Started @4244ms
18:06:35.498 INFO [Broker Starting Thread] Listening for connections at
ws://precision:8282
18:06:35.498 INFO [Broker Starting Thread] Connector ws started
18:06:35.498 INFO [Broker Starting Thread] Apache ActiveMQ 5.15.8
(amq-broker, ID:precision-41085-1547399194903-0:1) started

You can see the openwire/tcp and ws connectors started.

So all good ;)

Regards
JB

On 12/01/2019 11:08, IODB wrote:
> Of course it is never wise to assume I'm not doing something stupidly wrong
> ;-)
> 
> I just retried with the latest versions:
> 
> - install karaf 4.2.2
> 
> - run shell commands:
> feature:repo-add activemq 5.16.0-SNAPSHOT 
> feature:repo-add spring-legacy
> feature:install shell-compat
> feature:install aries-blueprint
> feature:install activemq-blueprint
> feature:install jetty
> bundle:dynamic-import <id of bundle activemq-osgi>
> bundle:dynamic-import <id of bundle activemq-karaf>
> 
> - copy a blueprint activemq.xml to the /deploy directory containing 
> <transportConnector name="websocket" uri="ws://0.0.0.0:8182" />
> 
> This still seems to result in
> ClassNotFoundException:org.eclipse.jetty.websocket.server.WebSocketServerFactory
>  
> and a failure to start the "activemq.xml" bundle
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> 

-- 
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to