Hi Scott,

did you try to do an update via command?
For example install the wab via shell:

bundle:install -s mvn:groupId/artifactId/version/war

and a later

bundle:update <bundleID>

does it also happen there?

If you want to update such bundles during development might also want to
take a look at bundle:watch <bundleID>


regards, Achim

2015-11-13 21:18 GMT+01:00 Leschke, Scott <slesc...@medline.com>:

> I have an issue with deploying an updated WAB over the top of an existing
> one. Services (created using Blueprint) are mapped to URLs.  The WAB has a
> single servlet that does a service lookup using JNDI based on the URL.
> Everything works fine until I update the WAB by dropping an updated version
> in the deploy folder. Everything appears to deploy just fine (old version
> stops, new version starts), after which I get the following.  The only way
> I’ve been able to clear this condition is to stop karaf and restart it.
> Any help regarding this appreciated.
>
>
>
> Scott
>
>
>
> Caused by: java.lang.IllegalStateException: Invalid BundleContext.
>
>         at
> org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:511)
>
>         at
> org.apache.felix.framework.BundleContextImpl.getServiceReferences(BundleContextImpl.java:427)
>
>         at
> org.apache.aries.jndi.services.ServiceHelper.findService(ServiceHelper.java:394)
>
>         at
> org.apache.aries.jndi.services.ServiceHelper.getService(ServiceHelper.java:236)
>
>         at
> org.apache.aries.jndi.url.ServiceRegistryContext.lookup(ServiceRegistryContext.java:102)
>
>         at
> org.apache.aries.jndi.url.ServiceRegistryContext.lookup(ServiceRegistryContext.java:138)
>
>         at
> org.apache.aries.jndi.DelegateContext.lookup(DelegateContext.java:161)
>
>         at javax.naming.InitialContext.lookup(Unknown Source)
>
>         …More stuff
>
>
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Reply via email to