How to install `kie-camel` feature in JBoss Fuse 6.2 - apache-camel

I'm trying to deploy a drools component to a vanilla JBoss Fuse 6.2 server.
I first install the drools features url
JBossFuse:karaf#root> features:addurl mvn:org.drools/drools-karaf-features/6.1.0.Final/xml/features
before installing the drools module and kie-spring features
JBossFuse:karaf#root> features:install drools-module/6.1.0.Final
JBossFuse:karaf#root> features:install kie-spring/6.1.0.Final
However, when I attempt to install kie-camel I get the following error
JBossFuse:karaf#root> features:install kie-camel/6.1.0.Final
...
Found installed bundle: org.apache.servicemix.specs.jsr311-api-1.1.1 [267]
Found installed bundle: stax2-api [268]
Found installed bundle: org.apache.cxf.cxf-api [400]
Found installed bundle: org.apache.cxf.cxf-rt-management [402]
Installing bundle mvn:org.apache.cxf/cxf-rt-features-clustering/2.6.6
Error executing command: Can not resolve feature:
Unsatisfied requirement(s):
---------------------------
bundle:(&(symbolicname=org.springframework.beans))
Apache CXF Compatibility Bundle J
Any ideas how to resolve this issue? I suspect that I might need to add another feature url but my research into that hasn't produced any results yet.
Thanks in advance
Lewis Watson

I've been in contact with Red Hat support and they have provided me with a way to install version 1.4.0.redhat-63001 of kie-camel
JBossFuse:karaf#root> config:propappend --pid org.ops4j.pax.url.mvn org.ops4j.pax.url.mvn.repositories ',https://maven.repository.redhat.com/techpreview/all/'
JBossFuse:karaf#root> features:addurl mvn:org.drools/drools-karaf-features/6.4.0.Final-redhat-3/xml/features
JBossFuse:karaf#root> features:addurl mvn:org.drools/drools-karaf-features/6.4.0.Final-redhat-3/xml/features
JBossFuse:karaf#root> features:list | grep kie
[uninstalled] [1.4.0.redhat-630011 ] kie-camel
JBossFuse:karaf#root> features:install kie-camel
Things to note about this answer:
It seems to rely on a tech preview maven repository.
I haven't yet been able to develop an OSGI bundle to test the feature.
As a workaround I was able to get something similar working with drool 5.5.0-Final by following what's on https://github.com/FuseByExample/camel-drools-example

Can you try 6.4.0?
features:addUrl mvn:org.drools/drools-karaf-features/6.4.0.Final/xml/features

Related

apache-camel 3.4.0 - Error executing command: No matching features for camel-catalog/0

Expected behaviour with camel version 2.15.2/2.24.1
Below url has feature as "camel-catalog" 
https://repo1.maven.org/maven2/org/apache/camel/karaf/apache-camel/2.15.2/apache-camel-2.15.2-features.xml
<feature name="camel-catalog" version="2.15.2" resolver="(obr)" start-level="50">
<feature version="2.15.2">camel-core
mvn:org.apache.camel.karaf/camel-karaf-commands-catalog/2.15.2
Exception while deploying feature ="camel-catalog" on Karaf Container with camel 3.x-
karaf#root()> feature:install camel-catalog
Error executing command: No matching features for camel-catalog/0
Query -
Upgraded camel version 3.4.0 now feature ="camel-catalog" is not there and but it require to install in Karaf container So what we can do to resolve this.
https://repo1.maven.org/maven2/org/apache/camel/karaf/apache-camel/3.4.0/apache-camel-3.4.0-features.xml
Any help/suggestion is most welcome.
The camel-catalog feature is not available as a feature in Camel 3, you dont need to install it, you get catalog installed via installing camel - features:install camel.
See the migration 2.x to 3.x guides: https://camel.apache.org/manual/latest/camel-3x-upgrade-guide.html

Django deployment using lightsail site-packages are not updated

I am trying to deploy my Django application on AWS Lightsail.
I've been following the AWS tutorial and thought got it quite well.
I've successfully tested application on 0.0.0.0:8000 and the app is working fine.
However, when I deployed with apache, it keeps giving me the Internal Error 500. Hence, I've gone to look up the error_logs to investigate.
Based on my investigation, it seems like all of pip packages I've installed for my app are not installed on system's python's site-packages.
This is the list of packages when I run pip list
pip list
Package Version
appdirs 1.4.4
argon2-cffi 20.1.0
asgiref 3.2.10
astroid 2.4.2
async-generator 1.10
attrs 20.2.0
backcall 0.2.0
bleach 3.2.1
boto3 1.15.18
botocore 1.18.18
cffi 1.14.3
decorator 4.4.2
defusedxml 0.6.0
distlib 0.3.1
Django 3.1
django-carton 1.2.1
django-extensions 3.0.9
django-storages 1.10.1
entrypoints 0.3
filelock 3.0.12
importlib-metadata 2.0.0
ipykernel 5.3.4
ipython 7.16.1
ipython-genutils 0.2.0
ipywidgets 7.5.1
isort 5.6.4
jedi 0.17.2
Jinja2 2.11.2
jmespath 0.10.0
jsonschema 3.2.0
jupyter 1.0.0
jupyter-client 6.1.7
jupyter-console 6.2.0
jupyter-core 4.6.3
jupyterlab-pygments 0.1.2
lazy-object-proxy 1.4.3
MarkupSafe 1.1.1
mccabe 0.6.1
mistune 0.8.4
mysqlclient 1.4.6
nbclient 0.5.1
nbconvert 6.0.7
nbformat 5.0.8
nest-asyncio 1.4.1
notebook 6.1.4
packaging 20.4
pandocfilters 1.4.2
parso 0.7.1
pexpect 4.8.0
pickleshare 0.7.5
Pillow 8.0.0
pip 20.2.1
prometheus-client 0.8.0
prompt-toolkit 3.0.8
psycopg2 2.8.5
ptyprocess 0.6.0
pycparser 2.20
Pygments 2.7.1
pylint 2.6.0
pyparsing 2.4.7
pyrsistent 0.17.3
python-dateutil 2.8.1
pytz 2020.1
pyzmq 19.0.2
qtconsole 4.7.7
QtPy 1.9.0
s3transfer 0.3.3
Send2Trash 1.5.0
setuptools 46.4.0
six 1.15.0
sorl-thumbnail 12.6.3
sqlparse 0.4.1
terminado 0.9.1
testpath 0.4.4
toml 0.10.1
tornado 6.0.4
traitlets 4.3.3
typed-ast 1.4.1
urllib3 1.25.10
virtualenv 20.0.30
wcwidth 0.2.5
webencodings 0.5.1
widgetsnbextension 3.5.1
wrapt 1.12.1
zipp 3.3.1
However, these are not shown in the site-packages folder.
bitnami#ip-172-26-7-56:/opt/bitnami/python/lib/python3.8/site-packages$ ls
appdirs-1.4.4-py3.8.egg mysqlclient-1.4.6-py3.8.egg-info setuptools-46.4.0-py3.8.egg
asgiref MySQLdb setuptools.pth
asgiref-3.2.10.dist-info pip-20.2.1-py3.8.egg six-1.15.0-py3.8.egg
distlib-0.3.1-py3.8.egg psycopg2 sqlparse
django psycopg2-2.8.5-py3.8.egg-info sqlparse-0.3.1.dist-info
Django-3.1-py3.8.egg-info pytz virtualenv-20.0.30-py3.8.egg
easy-install.pth pytz-2020.1.dist-info
filelock-3.0.12-py3.8.egg README.txt
As a result, when the app is run by apache, there is internal server error and the packages I installed are not recognised.
I have spent about 3 days in a row trying to figure out deployment. For me, deployment is the most difficult task and I don't know where I am going. Would anyone recommend the easiest way to deploy django application?
Thanks a million!!

features:uninstall -v or features:uninstall --verbose is not showing what is being done in Karaf 2.4.0.redhat-630310

I am using Jboss fuse 6.3 and one of my features file when trying to uninstall throwing TimeoutException (below mentioned is detail). This features has one bundle which is communicate with service cloud using camel steaming API.
I wanted to see what Karaf is uninstalling when ran features:uninstall -v . But Karaf is showing only
Uninstalling feature . Any suggestion, how can we see what Karaf is trying to uninstall and where it is stuck to get timeout exception.
Any idea suggestion will be highly appreciated. Thank you so much in advance.
java.util.concurrent.TimeoutException
at java.util.concurrent.AbstractExecutorService.doInvokeAny(AbstractExecutorService.java:184)[:1.8.0_144]
at java.util.concurrent.AbstractExecutorService.invokeAny(AbstractExecutorService.java:225)[:1.8.0_144]
at org.apache.aries.blueprint.utils.threading.ScheduledExecutorServiceWrapper$4.call(ScheduledExecutorServiceWrapper.java:184)
at org.apache.aries.blueprint.utils.threading.ScheduledExecutorServiceWrapper$15.call(ScheduledExecutorServiceWrapper.java:452)
at org.apache.aries.blueprint.utils.threading.RWLock.runReadOperation(RWLock.java:35)
at org.apache.aries.blueprint.utils.threading.ScheduledExecutorServiceWrapper.runUnlessShutdown(ScheduledExecutorServiceWrapper.java:447)
at org.apache.aries.blueprint.utils.threading.ScheduledExecutorServiceWrapper.invokeAny(ScheduledExecutorServiceWrapper.java:178)
at org.apache.aries.blueprint.container.BlueprintEventDispatcher.callListener(BlueprintEventDispatcher.java:199)
at org.apache.aries.blueprint.container.BlueprintEventDispatcher.callListeners(BlueprintEventDispatcher.java:189)
at org.apache.aries.blueprint.container.BlueprintEventDispatcher.blueprintEvent(BlueprintEventDispatcher.java:140)
at org.apache.aries.blueprint.container.BlueprintContainerImpl.destroy(BlueprintContainerImpl.java:897)
at org.apache.aries.blueprint.container.BlueprintExtender$3.run(BlueprintExtender.java:325)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_144]
at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_144]

How to install camel-osgi in apache-karaf-4.0.4

I tried to installed camel-osgi using below command. It given an error.
karaf#root()>feature:install camel-osgi
Error:
Error executing command: No matching features for camel-osgi/0.0.0
You first have to install the feature repository of camel before using any camel feature.
feature:repo-add camel 2.16.2
feature:install camel-core
Karaf can also show you the available features using feature:list.

Upgrade Camel on Servicemix

I've version of servicemix: 4.3.1-fuse-03.01 with Camel 2.6.0-fuse-03-01. I would like to upgrade Camel to version 2.8.0. Is it any easy and SAFE way to do this without upgrading whole Servicemix?
I upgraded the camel in serviceMix 7.0.0.M2 as follows. Related to your ServiceMix version, commands may be vary.
feature:feature:repo-list
you will get list of available repo-urls as an example
standard-4.0.5 |
mvn:org.apache.karaf.features/standard/4.0.5/xml/features
jclouds-1.9.1 |
mvn:org.apache.jclouds.karaf/jclouds-karaf/1.9.1/xml/features
camel-2.16.3 |
mvn:org.apache.camel.karaf/apache-camel/2.16.3/xml/features
feature:repo-add [upgraded_camel_repo_url]
As an example
feature:repo-add mvn:org.apache.camel.karaf/apache-camel/3.16.3/xml/features
feature:feature:repo-list
Should display newly added repo url
feature:list
Should display the upgraded camel version
feature:install [upgraded_camel_name with version]
As an example feature:install camel/2.16.3
Refer http://www.andrejkoelewijn.com/blog/2010/06/15/upgrade-apache-camel-in-servicemix-to-version-2-3-0/ for older servicemix versions

Resources