You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2013/09/11 11:30:53 UTC

[jira] [Comment Edited] (AMQ-4703) activemq-osgi installation fail on Karaf 2.3.x

    [ https://issues.apache.org/jira/browse/AMQ-4703?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13764155#comment-13764155 ] 

Jean-Baptiste Onofré edited comment on AMQ-4703 at 9/11/13 9:30 AM:
--------------------------------------------------------------------

activemq-broker feature works fine:

- karaf@root> activemq:list 
brokerName = amq-broker

- karaf@root> activemq:bstat

TotalConsumerCount = 0
Uptime = 1 minute
TotalDequeueCount = 0
BrokerName = amq-broker
TotalEnqueueCount = 1
TotalMessageCount = 0

Name = KahaDBPersistenceAdapter[/home/jbonofre/apache-karaf-2.3.1/data/amq-broker/kahadb]

connectorName = openwire

- karaf@root> web:list
   ID   State         Web-State       Level  Web-ContextPath           Name
[ 121] [Active     ] [Deployed   ]  [   50] [/activemqweb            ] activemq-web-console (5.9.0.SNAPSHOT)

But, when I access to http://localhost:8181/activemqweb, I got an error in the ActiveMQ webconsole:

2013-09-11 11:18:40,958 | WARN  | qtp925448244-86  | ServletHandler                   | pse.jetty.servlet.ServletHandler  514 | 58 - org.eclipse.jetty.util - 7.6.8.v20121106 | /activemqweb/index.jsp
javax.el.ELException: java.lang.RuntimeException: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: error unmarshalling return; nested exception is: 

The etc/org.apache.activemq.webconsole.cfg defines the correct properties used by the webconsole. I gonna take a look on that.

                
      was (Author: jbonofre):
    activemq-broker feature works fine:

- karaf@root> activemq:list 
brokerName = amq-broker

- karaf@root> activemq:bstat

TotalConsumerCount = 0
Uptime = 1 minute
TotalDequeueCount = 0
BrokerName = amq-broker
TotalEnqueueCount = 1
TotalMessageCount = 0

Name = KahaDBPersistenceAdapter[/home/jbonofre/apache-karaf-2.3.1/data/amq-broker/kahadb]

connectorName = openwire

- karaf@root> web:list
   ID   State         Web-State       Level  Web-ContextPath           Name
[ 121] [Active     ] [Deployed   ]  [   50] [/activemqweb            ] activemq-web-console (5.9.0.SNAPSHOT)

But, when I access to http://localhost:8181/activemqweb, I got an error in the ActiveMQ webconsole:

2013-09-11 11:18:40,958 | WARN  | qtp925448244-86  | ServletHandler                   | pse.jetty.servlet.ServletHandler  514 | 58 - org.eclipse.jetty.util - 7.6.8.v20121106 | /activemqweb/index.jsp
javax.el.ELException: java.lang.RuntimeException: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: error unmarshalling return; nested exception is: 

It's "normal" as the ActiveMQ WebConsole doesn't use the right JMX URL by default. 

We should provide these properties (for instance using custom.properties):

#
# Activemq configuration
#
activemq.port = 61616
activemq.host = localhost
activemq.url = tcp://${activemq.host}:${activemq.port}


#
# Activemq JMX configuration
#
activemq.jmx.url=service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-${karaf.name}
activemq.jmx.user=karaf
activemq.jmx.password=karaf

#
# Activemq Webconsole configuration
#
webconsole.type=properties
webconsole.jms.url=${activemq.url}
webconsole.jmx.url=service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-${karaf.name}
webconsole.jmx.user=karaf
webconsole.jmx.password=karaf

                  
> activemq-osgi installation fail on Karaf 2.3.x
> ----------------------------------------------
>
>                 Key: AMQ-4703
>                 URL: https://issues.apache.org/jira/browse/AMQ-4703
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: OSGi/Karaf
>    Affects Versions: 5.9.0
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 5.9.0
>
>         Attachments: AMQ-4703.patch
>
>
> The installation of the activemq feature fails on Karaf 2.3.x:
> karaf@root> features:install activemq
> Error executing command: Could not start bundle mvn:org.apache.activemq/activemq-osgi/5.9-SNAPSHOT in feature(s) activemq-client-5.9-SNAPSHOT: The bundle "org.apache.activemq.activemq-osgi_5.9.0.SNAPSHOT [88]" could not be resolved. Reason: The native code paths cannot be found: META-INF/native/linux64/libleveldbjni.so; processor=x86-64; osname=Linux

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira