install Apache ActiveMQ directly in Apache Karaf - activemq

I am trying to install Apache ActiveMQ directly in Apache Karaf as per this link.
step 1: karaf#root()> feature:install jms
step 2: karaf#root()> feature:repo-add activemq
step 1& 2 sucessfully executed
step 3: karaf#root()> feature:install activemq-broker
step 3 shows the following error:
Error executing command: Unable to resolve root: missing requirement [root] osgi
.identity; osgi.identity=camel-jms; type=karaf.feature; version="[2.15.0,3.0.0)"
I am using apache karaf 4.0.0 m2 and apache activemq 5.9.0, please help me to resolve this problem

This doesn't work as per Karaf 4.0 the API provided is Servlet 3.1.
So you need to use a newer version of ActiveMQ a snapshot most likely.
AFAIK this issue has already been addressed at the Karaf user mailinglist.

The current and quick solution for this is to execute with Karaf 3.x. I got this working with Karaf 3.0.3. If you can downgrade Karaf, you may also have Karaf 3.x and install ActiveMQ features in it.

Related

Glassfish with install javamail module problem

I have a Debian linux server with glassfish 6.1 and JDK 11.
When configure the javamail session the server answer with a error javamail module not found.
I have installed the javamail with apt-get install, but it is not working.
How to configure the javamail module inside glassfish system ?
Thank you.

How to configure jboss to run as a service in rhel 7

How to run jboss as a service if installed using zip package ?
You can check the coresponding JBoss EAP 7 documentation Installation Guide - Configuring JBoss EAP to run as a Service for detailed information.

IBM MobileFirst Operations Console does not work with HTTPS

We are unable to use MobileFirst 6.3 Operations Console with HTTPS. I reviewed a couple of links here and installed the last fix pack available for the server side (6.3.0.0-MFPF-Server-IF201504041503.zip).
We are having the same behavior explained in this link:
Unable to use HTTPS for MobileFirst Console 6.3
Need I install another fix or redeploy worklightconsole.war ?
Thanks in advance
You have not installed the last MFP 6.3 ifix as you can see in the messages.log file of your last zipped logs :
[4/15/15 12:00:34:754 ART] 00000012 ht.admin.listeners.WorklightManagementServletContextListener I FWLSE3199I: ========= MobileFirst Administration Services version 6.3.0.00-20141127-1357 started.
When you install a fix you have to do a minimal update of the console applications and the runtime applications with the Server config tools or the installation ant tasks. Otherwise no war files are updated.

Building CouchDB with build_couchDB

I'm attempting to build and run CouchDB following the instructions at https://github.com/jhs/build-couchdb. I am able to build successfully, but when I try to run CouchDB I first receive an error about a bad symbol lookup in a crypto library. Every subsequent time I run it I get the following error:
Apache CouchDB 1.6.0 (LogLevel=info) is starting.
{"init terminating in do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/couchdb/build/etc/couchdb/default.ini","/couchdb/build/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,{shutdown,{failed_to_start_child,couch_secondary_services,{shutdown,{failed_to_start_child,uuids,{undef,[{crypto,rand_bytes",[]},{couch_uuids,new_prefix,0,[{file,"/couchdb/dependencies/couchdb/src/couchdb/couch_uuids.erl"},{line,84}]},{couch_uuids,state,0,[{file,"/couchdb/dependencies/couchdb/src/couchdb/couch_uuids.erl"},{line,100}]},{couch_uuids,init,1,[{file,"/couchdb/dependencies/couchdb/src/couchdb/couch_uuids.erl"},{line,50}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}}}}}}},[{couch_server_sup,start_server,1,[{file,"/couchdb/dependencies/couchdb/src/couchdb/couch_server_sup.erl"},{line,98}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,269}]}]}}}}}},[{couch,start,0,[{file,"/couchdb/dependencies/couchdb/src/couchdb/couch.erl"},{line,18}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
I installed all of the dependencies listed on the github page as well as the dependencies listed on Apache's installation guide. Additionally, I have rebuilt with the option to not strip down erlang/otp
rake otp_keep="*"
I am running on CentOS 6.6
I ended up not using build-couchdb, but followed the instructions from the Apache wiki on installing couchdb. I had to set permissions as explained on the CouchDB guide, but it all worked out just fine.
This has been the best way I could figure out how to install CouchDB on Redhat/CentOS RHEL5/RHEL6.

Compatibility issue between Hbase 0.94.2 and apache nutch dependency

I am trying to install apache nutch 2.2.1 and have successfully build it after making the required changes in the configuration files by following http://www.blogjava.net/paulwong/archive/2013/08/31/403513.html tutorial. But even after building it I am not able to crawl anything and after hours of inspection I realized that the hbase version on my company cluster is Hbase- 0.94.2 whereas the installation dependency for apache nutch 2.2.1 is HBase 0.90.4. As hbase-0.90.4.jar is not compatible with Hbase- 0.94.2 I am getting the following error when I try to inject the url into nutch. Kindly help me in changing the dependency of the apache nutch or fixing the error.
I am posting the error below.
Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: Not a host:port pair: �-11562#bt13acl1node26.comp.com�$3�¿½bt13acl1node26.comp.com,60000,1401268790838
at org.apache.gora.hbase.store.HBaseStore.initialize(HBaseStore.java:127)
at org.apache.gora.store.DataStoreFactory.initializeDataStore(DataStoreFactory.java:102)
at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:161)
... 12 more
Caused by: java.lang.IllegalArgumentException: Not a host:port pair: �-11562#bt13acl1node26.comp.com�$3�¿½bt13acl1node26.comp.com,60000,1401268790838
at org.apache.hadoop.hbase.HServerAddress.(HServerAddress.java:60)
at org.apache.hadoop.hbase.MasterAddressTracker.getMasterAddress(MasterAddressTracker.java:63)
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:354)
at org.apache.hadoop.hbase.client.HBaseAdmin.(HBaseAdmin.java:94)
at org.apache.gora.hbase.store.HBaseStore.initialize(HBaseStore.java:109)
... 14 more
You installed Apache Nutch 2.2.1 it uses Apache Gora 0.3 which only supports old Apache HBase 0.90.x as it stated in the official docs.
Anyway you still can use Nutch 2.2.x using the following workaround:
Clone, configure and build fresh Nutch from the official Git branch 2.x as it migrated to Gora 0.4 which compatible with Apache HBase 0.94.x.
Clone and build my version of Apache HBase 0.94.24-hadoop-2.5.0 to use it with the latest Apache Hadoop 2.5.0.
Similar issue was created for Apache Gora 0.3 project. They don't plan to upgrade Apache HBase dependency to the fresh one in the nearest future.
You can also read compatibility documentation for Apache HBase to figure out how to build your own version for any Hadoop release.
Apache Nutch was tested and works well with the following stack:
Apache Nutch from 2.x git branch which uses Gora 0.4;
Apache Hbase 0.94.24-hadoop-2.5.0;
Apache Hadoop 2.5.0.