Install camel-netty4 feature

74 views
Skip to first unread message

mseakan

unread,
Feb 27, 2017, 2:28:48 PM2/27/17
to ddf-users
All,
 I'm attempting to install the camel-netty4 feature into DDF.2.10.0 and I'm running into issues.

I've added the camel repository:
ddf@local>repo-list
Repository                    | URL
----------------------------------------------------------------------------------------------------------------
org.ops4j.pax.cdi-0.12.0      | mvn:org.ops4j.pax.cdi/pax-cdi-features/0.12.0/xml/features
platform-app-2.10.0           | mvn:ddf.platform/platform-app/2.10.0/xml/features
spring-4.0.7                  | mvn:org.apache.karaf.features/spring/4.0.7/xml/features
admin-app-2.10.0              | mvn:ddf.admin/admin-app/2.10.0/xml/features
opendj-embedded-app-1.3.3     | mvn:org.codice.opendj.embedded/opendj-embedded-app/1.3.3/xml/features
org.ops4j.pax.jdbc-0.9.0      | mvn:org.ops4j.pax.jdbc/pax-jdbc-features/0.9.0/xml/features
security-services-app-2.10.0  | mvn:ddf.security/security-services-app/2.10.0/xml/features
geowebcache-app-2.10.0        | mvn:org.codice.ddf.spatial/geowebcache-app/2.10.0/xml/features
cxf-3.1.7                     | mvn:org.apache.cxf.karaf/apache-cxf/3.1.7/xml/features
jclouds-1.9.2                 | mvn:org.apache.jclouds.karaf/jclouds-karaf/1.9.2/xml/features
org.ops4j.pax.web-4.3.0       | mvn:org.ops4j.pax.web/pax-web-features/4.3.0/xml/features
enterprise-4.0.7              | mvn:org.apache.karaf.features/enterprise/4.0.7/xml/features
resourcemanagement-app-2.10.0 | mvn:org.codice.ddf.resourcemanagement/resourcemanagement-app/2.10.0/xml/features
org.ops4j.pax.cdi-1.0.0.RC1   | mvn:org.ops4j.pax.cdi/pax-cdi-features/1.0.0.RC1/xml/features
kernel-2.10.0                 | mvn:org.codice.ddf/kernel/2.10.0/xml/features
solr-app-2.10.0               | mvn:ddf.catalog.solr/solr-app/2.10.0/xml/features
spatial-app-2.10.0            | mvn:org.codice.ddf.spatial/spatial-app/2.10.0/xml/features
camel-2.18.0                  | mvn:org.apache.camel.karaf/apache-camel/2.18.0/xml/features
registry-app-2.10.0           | mvn:org.codice.ddf.registry/registry-app/2.10.0/xml/features
search-ui-app-2.10.0          | mvn:ddf.ui/search-ui-app/2.10.0/xml/features
standard-4.0.7                | mvn:org.apache.karaf.features/standard/4.0.7/xml/features
catalog-app-2.10.0            | mvn:ddf.catalog/catalog-app/2.10.0/xml/features
install-profiles-2.10.0       | mvn:ddf.distribution/install-profiles/2.10.0/xml/features


Now when I try to install the feature I get missing requirement errors. As you can see from below every time I try to install the feature I'm missing a different requirement:

ddf@local>feature:install camel-netty4
Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=spatial-wfs-v2_0_0; type=karaf.feature; version="[2.10.0,2.10.0]"; filter:="(&(osgi.identity=spatial-wfs-v2_0_0)(type=karaf.feature)(version>=2.10.0)(version<=2.10.0))" [caused by: Unable to resolve spatial-wfs-v2_0_0/2.10.0: missing requirement [spatial-wfs-v2_0_0/2.10.0] osgi.identity; osgi.identity=spatial-wfs-v2_0_0-source; type=osgi.bundle; version="[2.10.0,2.10.0]"; resolution:=mandatory [caused by: Unable to resolve spatial-wfs-v2_0_0-source/2.10.0: missing requirement [spatial-wfs-v2_0_0-source/2.10.0] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.apache.cxf.frontend)(version>=3.1.0)(!(version>=4.0.0)))"]]

ddf@local>feature:install camel-netty4
Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=catalog-solr-provider; type=karaf.feature; version="[2.10.0,2.10.0]"; filter:="(&(osgi.identity=catalog-solr-provider)(type=karaf.feature)(version>=2.10.0)(version<=2.10.0))" [caused by: Unable to resolve catalog-solr-provider/2.10.0: missing requirement [catalog-solr-provider/2.10.0] osgi.identity; osgi.identity=catalog-solr-provider; type=osgi.bundle; version="[2.10.0,2.10.0]"; resolution:=mandatory [caused by: Unable to resolve catalog-solr-provider/2.10.0: missing requirement [catalog-solr-provider/2.10.0] osgi.wiring.package; filter:="(osgi.wiring.package=javax.jms)"]]

ddf@local>feature:install camel-netty4
Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=spatial-kml; type=karaf.feature; version="[2.10.0,2.10.0]"; filter:="(&(osgi.identity=spatial-kml)(type=karaf.feature)(version>=2.10.0)(version<=2.10.0))" [caused by: Unable to resolve spatial-kml/2.10.0: missing requirement [spatial-kml/2.10.0] osgi.identity; osgi.identity=spatial-kml-networklinkendpoint; type=osgi.bundle; version="[2.10.0,2.10.0]"; resolution:=mandatory [caused by: Unable to resolve spatial-kml-networklinkendpoint/2.10.0: missing requirement [spatial-kml-networklinkendpoint/2.10.0] osgi.wiring.package; filter:="(osgi.wiring.package=org.mozilla.javascript)"]]

This is just the first 3 attempts at the installation.

I've successfully followed the same procedure to install camel-netty4 in DDF v2.9.2, v2.9.3 and v2.9.4. Can someone tell me what might have changed in v2.10.0?

Thanks,
 Mike

Keith Wire

unread,
Mar 2, 2017, 1:00:58 AM3/2/17
to mseakan, ddf-users

Mike,

 

I haven’t had the opportunity to try this yet, but you could try `feature:install –f camel-netty4`. The `-r` option tells karaf to not refresh the bundles.  From the errors you’ve listed it looks like install this camel feature is causing a massive refresh.  You could also try installing the camel-netty4 feature prior to going through the installer to see if it yields different results.

 

Ultimately, the log should have full stack track explaining what dependency isn’t satisfied causing the issue when the feature is installed which would be helpful in diagnosing the issue.

 

--Keith

--
You received this message because you are subscribed to the Google Groups "ddf-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ddf-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mseakan

unread,
Mar 3, 2017, 8:53:44 AM3/3/17
to ddf-users
Keith,
 Thanks for your reply. I tried doing a feature:install -r camel-netty4, here are the results:

ddf@local>feature:install -r  camel-netty4
Error executing command: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=catalog-metacardingest-network; type=karaf.feature; version="[2.10.0,2.10.0]"; filter:="(&(osgi.identity=catalog-metacardingest-network)(type=karaf.feature)(version>=2.10.0)(version<=2.10.0))" [caused by: Unable to resolve catalog-metacardingest-network/2.10.0: missing requirement [catalog-metacardingest-network/2.10.0] osgi.identity; osgi.identity=catalog-plugin-metacardingest-network; type=osgi.bundle; version="[2.10.0,2.10.0]"; resolution:=mandatory [caused by: Unable to resolve catalog-plugin-metacardingest-network/2.10.0: missing requirement [catalog-plugin-metacardingest-network/2.10.0] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.codice.ddf.configuration)(version>=2.10.0)(!(version>=3.0.0)))" [caused by: Unable to resolve platform-configuration/2.10.0: missing requirement [platform-configuration/2.10.0] osgi.identity; osgi.identity="root#platform-configuration-2.10.0"; type=karaf.subsystem; version="[0,0.0.0]"; resolution:=mandatory [caused by: Unable to resolve root#platform-configuration-2.10.0: missing requirement [root#platform-configuration-2.10.0] osgi.identity; osgi.identity=platform-configuration; type=karaf.feature; version="[2.10.0,2.10.0]" [caused by: Unable to resolve platform-configuration/2.10.0: missing requirement [platform-configuration/2.10.0] osgi.identity; osgi.identity=landing-page; type=karaf.feature [caused by: Unable to resolve landing-page/2.10.0: missing requirement [landing-page/2.10.0] osgi.identity; osgi.identity=landing-page; type=osgi.bundle; version="[2.10.0,2.10.0]"; resolution:=mandatory [caused by: Unable to resolve landing-page/2.10.0: missing requirement [landing-page/2.10.0] osgi.wiring.package; filter:="(osgi.wiring.package=org.mozilla.javascript)"]]]]]]]


ddf.log snippet:
2017-03-03 08:15:47,348 | INFO  | Thread-19        | FeaturesServiceImpl              | rnal.service.FeaturesServiceImpl 1213 | 8 - org.apache.karaf.features.core - 4.0.7 | Adding features: camel-netty4/[2.18.0,2.18.0]
2017-03-03 08:15:55,094 | ERROR | Thread-19        | ShellUtil                        | he.karaf.shell.support.ShellUtil  149 | 52 - org.apache.karaf.shell.core - 4.0.7 | Exception caught while executing command
org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=catalog-metacardingest-network; type=karaf.feature; version="[2.10.0,2.10.0]"; filter:="(&(osgi.identity=catalog-metacardingest-network)(type=karaf.feature)(version>=2.10.0)(version<=2.10.0))" [caused by: Unable to resolve catalog-metacardingest-network/2.10.0: missing requirement [catalog-metacardingest-network/2.10.0] osgi.identity; osgi.identity=catalog-plugin-metacardingest-network; type=osgi.bundle; version="[2.10.0,2.10.0]"; resolution:=mandatory [caused by: Unable to resolve catalog-plugin-metacardingest-network/2.10.0: missing requirement [catalog-plugin-metacardingest-network/2.10.0] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.codice.ddf.configuration)(version>=2.10.0)(!(version>=3.0.0)))" [caused by: Unable to resolve platform-configuration/2.10.0: missing requirement [platform-configuration/2.10.0] osgi.identity; osgi.identity="root#platform-configuration-2.10.0"; type=karaf.subsystem; version="[0,0.0.0]"; resolution:=mandatory [caused by: Unable to resolve root#platform-configuration-2.10.0: missing requirement [root#platform-configuration-2.10.0] osgi.identity; osgi.identity=platform-configuration; type=karaf.feature; version="[2.10.0,2.10.0]" [caused by: Unable to resolve platform-configuration/2.10.0: missing requirement [platform-configuration/2.10.0] osgi.identity; osgi.identity=landing-page; type=karaf.feature [caused by: Unable to resolve landing-page/2.10.0: missing requirement [landing-page/2.10.0] osgi.identity; osgi.identity=landing-page; type=osgi.bundle; version="[2.10.0,2.10.0]"; resolution:=mandatory [caused by: Unable to resolve landing-page/2.10.0: missing requirement [landing-page/2.10.0] osgi.wiring.package; filter:="(osgi.wiring.package=org.mozilla.javascript)"]]]]]]]
        at org.apache.felix.resolver.ResolutionError.toException(ResolutionError.java:42)[8:org.apache.karaf.features.core:4.0.7]
        at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:235)[8:org.apache.karaf.features.core:4.0.7]
        at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:158)[8:org.apache.karaf.features.core:4.0.7]
        at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:216)[8:org.apache.karaf.features.core:4.0.7]
        at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:263)[8:org.apache.karaf.features.core:4.0.7]
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1176)[8:org.apache.karaf.features.core:4.0.7]
        at org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:1074)[8:org.apache.karaf.features.core:4.0.7]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_121]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_121]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_121]
        at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]


The three features listed in the error message (catalog-metacardingest-network, platform-configuration and landing-page) are all installed according to the features page for the corresponding Applications in the Admin Console.


>> You could also try installing the camel-netty4 feature prior to going through the installer to see if it yields different results.

 Do you mean copying the org/apache/camel/camel-netty4 directory to $DDF_HOME/system and restarting DDF? That does nothing. Not even a message in the log. Otherwise I don't know what you mean.

Thanks,
Mike
Reply all
Reply to author
Forward
0 new messages