Issue while deploying IPF2.5.0

154 kali dilihat
Langsung ke pesan pertama yang belum dibaca

Sushmita Chandra

belum dibaca,
13 Sep 2013, 04.56.0413/09/13
kepadaipf-...@googlegroups.com

Hi All,

I am trying to deploy IPF v2.5.0 on Karaf 2.3.1 , where already a few bundles related to Camel (v 2.10.4) and CXF (v 2.7.3) are deployed along with few other bundles.

I am able to deploy the following features successfully  out of all the features available in IPF:

<feature version="2.5.0">ipf-specs</feature>
<feature version="2.5.0">ipf-spring</feature>
<feature version="2.5.0">ipf-core</feature>
<feature version="2.5.0">ipf-core-extenders</feature>
<feature version="2.5.0">ipf-core-map</feature>
<feature version="2.5.0">ipf-core-flow</feature>
<feature version="2.5.0">ipf-cxf</feature>


But for the other IPF features as listed below :

<feature version="2.5.0">ipf-core-ihe</feature>
<feature version="2.5.0">ipf-modules-hl7</feature>
<feature version="2.5.0">ipf-amq</feature>
<feature version="2.5.0">ipf-camel</feature>
<feature version="2.5.0">ipf-platform-camel</feature>
<feature version="2.5.0">ipf-platform-camel-flow</feature>
<feature version="2.5.0">ipf-platform-camel-ihe</feature>
<feature version="2.5.0">ipf-osgi</feature>
<feature version="2.5.0">ipf-commands</feature>


Whether I am trying to install the features individually or through the feature-set I am getting the following error:

ERROR: Bundle org.ops4j.pax.web.pax-web-extender-whiteboard [85] EventDispatcher: Error during dispatch. (java.lang.IllegalArgumentException: Alias [/services] was never registered)
java.lang.IllegalArgumentException: Alias [/services] was never registered
        at org.ops4j.pax.web.service.internal.HttpServiceStarted.unregister(HttpServiceStarted.java:266)
        at org.ops4j.pax.web.service.internal.HttpServiceProxy.unregister(HttpServiceProxy.java:72)
        at org.ops4j.pax.web.extender.whiteboard.internal.element.ServletWebElement.unregister(ServletWebElement.java:94)
        at org.ops4j.pax.web.extender.whiteboard.internal.WebApplication.unregisterWebElement(WebApplication.java:279)
        at org.ops4j.pax.web.extender.whiteboard.internal.WebApplication.removeWebElement(WebApplication.java:122)
        at org.ops4j.pax.web.extender.whiteboard.internal.tracker.AbstractTracker.removedService(AbstractTracker.java:163)
        at org.ops4j.pax.web.extender.whiteboard.internal.tracker.ServletTracker.removedService(ServletTracker.java:42)
        at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:956)
        at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:1)
        at org.osgi.util.tracker.AbstractTracked.untrack(AbstractTracked.java:341)
        at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:902)
        at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932)
        at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)
        at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)
        at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4260)
        at org.apache.felix.framework.Felix.access$000(Felix.java:74)
        at org.apache.felix.framework.Felix$1.serviceChanged(Felix.java:390)
        at org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceRegistry.java:148)
        at org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:127)
        at org.apache.aries.util.AriesFrameworkUtil.safeUnregisterService(AriesFrameworkUtil.java:114)
        at org.apache.aries.blueprint.container.ServiceRecipe.unregister(ServiceRecipe.java:209)
        at org.apache.aries.blueprint.container.BlueprintContainerImpl.unregisterServices(BlueprintContainerImpl.java:701)
        at org.apache.aries.blueprint.container.BlueprintContainerImpl.tidyupComponents(BlueprintContainerImpl.java:907)
        at org.apache.aries.blueprint.container.BlueprintContainerImpl.destroy(BlueprintContainerImpl.java:857)
        at org.apache.aries.blueprint.container.BlueprintExtender$3.run(BlueprintExtender.java:284)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at org.apache.aries.blueprint.container.BlueprintExtender.destroyContainer(BlueprintExtender.java:305)
        at org.apache.aries.blueprint.container.BlueprintExtender.stop(BlueprintExtender.java:156)
        at org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:667)
        at org.apache.felix.framework.Felix.stopBundle(Felix.java:2361)
        at org.apache.felix.framework.Felix$RefreshHelper.stop(Felix.java:4629)
        at org.apache.felix.framework.Felix.refreshPackages(Felix.java:3951)
        at org.apache.felix.framework.FrameworkWiringImpl.run(FrameworkWiringImpl.java:172)
        at java.lang.Thread.run(Thread.java:724)
log4j:WARN No appenders could be found for logger (org.ops4j.pax.web.pax-web-runtime).
log4j:WARN Please initialize the log4j system properly.
Error executing command: Invalid BundleContext

Earlier I was able to deploy IPF 2.5.0 on plain Karaf 2.3.1.

Any clue as to why I am facing this issue. 
Any help will be appreciated.

-- 
Thanks,
Sushmita 

Boris Stanojević

belum dibaca,
13 Sep 2013, 05.18.3413/09/13
kepadaipf-...@googlegroups.com
Hi Sushmita,

I guess it happens when you try to register some (WS?) endpoint over pax-whiteboard on the CXF-Servlet. So it is probably some interference with already existing CXF bundles. You may try to uninstall those CXF bundles before installing the features from IPF,

hope that helps,
best regards,
Boris


2013/9/13 Sushmita Chandra <flightsof...@gmail.com>

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

Sushmita Chandra

belum dibaca,
16 Sep 2013, 06.36.0016/09/13
kepadaipf-...@googlegroups.com
Hi Boris,

I tried to change the version  to CXF 2.7.4 and tried installing IPF feature set , but got different error:

05:10:17,878[FelixFrameworkWiring]|INFO|org.apache.aries.blueprint.container.BlueprintExtender|9-org.apache.aries.blueprint.core-1.1.0|Destroying BlueprintContainer for bundle org.apache.cxf.cxf-rt-ws-addr

2013-09-16 05:10:18,425[Karaf Shell Console Thread]|INFO|org.apache.karaf.shell.console.jline.Console|22-org.apache.karaf.shell.console-2.3.1|Exception caught while executing command

java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.Comparable

at org.apache.felix.framework.resolver.CandidateComparator.compare(CandidateComparator.java:50)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.CandidateComparator.compare(CandidateComparator.java:28)[org.apache.felix.framework-4.0.3.jar:]

at java.util.TreeMap.compare(TreeMap.java:1188)[:1.7.0_25]

at java.util.TreeMap.put(TreeMap.java:531)[:1.7.0_25]

at java.util.TreeSet.add(TreeSet.java:255)[:1.7.0_25]

at org.apache.felix.framework.StatefulResolver$ResolverStateImpl.getCandidates(StatefulResolver.java:1309)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:275)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.processCandidates(Candidates.java:469)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.populateRevision(Candidates.java:277)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.Candidates.populate(Candidates.java:158)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.resolver.ResolverImpl.resolve(ResolverImpl.java:89)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.StatefulResolver.resolve(StatefulResolver.java:168)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3819)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.Felix.startBundle(Felix.java:1868)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:944)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:931)[org.apache.felix.framework-4.0.3.jar:]

at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:479)[48:org.apache.karaf.features.core:2.3.1]

at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:396)[48:org.apache.karaf.features.core:2.3.1]

at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:392)[48:org.apache.karaf.features.core:2.3.1]

at org.apache.karaf.features.command.InstallFeatureCommand.doExecute(InstallFeatureCommand.java:62)[33:org.apache.karaf.features.command:2.3.1]

at org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.java:41)[33:org.apache.karaf.features.command:2.3.1]

at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[22:org.apache.karaf.shell.console:2.3.1]

at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[22:org.apache.karaf.shell.console:2.3.1]

at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[22:org.apache.karaf.shell.console:2.3.1]

at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[22:org.apache.karaf.shell.console:2.3.1]

at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[22:org.apache.karaf.shell.console:2.3.1]

at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[22:org.apache.karaf.shell.console:2.3.1]

at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[22:org.apache.karaf.shell.console:2.3.1]

at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[22:org.apache.karaf.shell.console:2.3.1]

at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[22:org.apache.karaf.shell.console:2.3.1]

at org.apache.karaf.shell.console.jline.Console.run(Console.java:174)[22:org.apache.karaf.shell.console:2.3.1]

at java.lang.Thread.run(Thread.java:724)[:1.7.0_25]

Any clue as to why I am getting this error.

Thanks,

Sushmita


--
Thanks and Regards,
Sushmita Chandra

Boris Stanojević

belum dibaca,
16 Sep 2013, 07.01.2216/09/13
kepadaipf-...@googlegroups.com
This appears to be an internal Felix problem, see JIRA:

https://issues.apache.org/jira/browse/FELIX-3887

The latest Karaf (2.3.2) still uses internally the felix-4.0.3 framework. This bug is fixed in felix-4.2.0, so I would suggest to switch on equinox (karaf.framework=equinox in config.properties) since there is still no Karaf-Release available with this fix.

Regards,
Boris



2013/9/16 Sushmita Chandra <flightsof...@gmail.com>

Sushmita Chandra

belum dibaca,
16 Sep 2013, 09.54.0316/09/13
kepadaipf-...@googlegroups.com
Hi Boris,

I changed the following properties in config.properties as suggested by you and restarted Karaf in clean mode:
#
# Framework selection properties
#
karaf.framework=equinox


Even then I got this exception:

2013-09-16 08:42:54,260[Karaf Shell Console Thread]|INFO|org.apache.karaf.shell.console.jline.Console|22-org.apache.karaf.shell.console-2.3.1|Exception caught while executing command

Not sure if I missed anything.

Thanks,
Sushmita

Boris Stanojević

belum dibaca,
16 Sep 2013, 10.13.1816/09/13
kepadaipf-...@googlegroups.com
Hi Sushmita,

from the stacktrace it is obvious that your Karaf is still using Felix as undelying framework. For some reason the property change didn't have any effect. Please make sure that Karaf really uses this file you have changed - do you have more than one file with such a property inside the classpath, or maybe you are already setting this property over jvm-arguments??.

http://karaf.apache.org/index/community/faq/how-do-i-choose-between-felix-and-equinox.html

Regards,
Boris

Balas ke semua
Balas ke penulis
Teruskan
0 pesan baru