karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Achim Nierbeck <bcanh...@googlemail.com>
Subject Re: Exceptions when installing spring-jms.
Date Thu, 15 Sep 2011 21:15:36 GMT
Hi,

just one note from me, though I didn't take a full look at the
complete history here, sorry I'm quite busy right now  :)

This just smells like a optional dependency since a Refresh or a
restart of the features/spring-jms bundles seems to do the trick.
Lot's of the spring-dm or spring bundles do have optional dependencies
to special providers. For example one I really know of is the
spring-orm it does have a optional dependency to all kind of
implementations for jpa.
Ok this said I'd suggest trying to find out which of the bundle does
actually have a optional dependency

If it is really the optional dependencies you do have a couple of
solutions at hand :)

1) try to make sure the needed jms-implementer bundle is loaded before
the spring-jms bundle, do this by creating your own features.xml where
you make sure the bundle in question has a lower startlevel then the
spring-jms bundle.
2) now this one is dirty :)
create a fragment bundle that patches the manifest of the spring-jms
bundle by just setting all the required dependencies which are
optional right now to "required". Now make sure this fragment is
loaded before the spring-jms bundle, this will make sure that the
spring-jms bundle isn't started before all required imports are
resolved.

Regards, Achim

2011/9/15 tony.cocco <acocco@proteuseng.com>:
> So. I captured some logging. I think I see what the problem is:
>
> 2011-09-15 15:56:45,539 | DEBUG | l Console Thread | FeaturesServiceImpl
> | res.internal.FeaturesServiceImpl  645 | 11 -
> org.apache.karaf.features.core - 2.2.3 | Checking
> mvn:org.springframework/spring-webmvc/3.0.6.RELEASE
> 2011-09-15 15:56:45,539 | DEBUG | l Console Thread | Connection
> | .pax.url.mvn.internal.Connection  145 | 2 - org.ops4j.pax.url.mvn - 1.2.8
> | Resolving [mvn:org.springframework/spring-webmvc/3.0.6.RELEASE]
> 2011-09-15 15:56:45,539 | DEBUG | l Console Thread | Connection
> | .pax.url.mvn.internal.Connection  260 | 2 - org.ops4j.pax.url.mvn - 1.2.8
> | Collecting versions from repository
> [file:C:/apache-karaf-2.2.3/system/,releases=true,snapshots=true]
> 2011-09-15 15:56:45,539 | DEBUG | l Console Thread | Connection
> | .pax.url.mvn.internal.Connection  378 | 2 - org.ops4j.pax.url.mvn - 1.2.8
> |   Resolving exact version
> 2011-09-15 15:56:45,539 | DEBUG | l Console Thread | Connection
> | .pax.url.mvn.internal.Connection  260 | 2 - org.ops4j.pax.url.mvn - 1.2.8
> | Collecting versions from repository
> [file:C:/apache-karaf-2.2.3/local-repo/,releases=true,snapshots=true]
> 2011-09-15 15:56:45,539 | DEBUG | l Console Thread | Connection
> | .pax.url.mvn.internal.Connection  378 | 2 - org.ops4j.pax.url.mvn - 1.2.8
> |   Resolving exact version
> 2011-09-15 15:56:45,539 | DEBUG | l Console Thread | Connection
> | .pax.url.mvn.internal.Connection  166 | 2 - org.ops4j.pax.url.mvn - 1.2.8
> |   Could not download [Version [3.0.6.RELEASE] from URL
> [file:C:/apache-karaf-2.2.3/system/org/springframework/spring-webmvc/3.0.6.RELEASE/spring-webmvc-3.0.6.RELEASE.jar]]
> 2011-09-15 15:56:45,539 | DEBUG | l Console Thread | Connection
> | .pax.url.mvn.internal.Connection  166 | 2 - org.ops4j.pax.url.mvn - 1.2.8
> |   Could not download [Version [3.0.6.RELEASE] from URL
> [file:C:/apache-karaf-2.2.3/local-repo/org/springframework/spring-webmvc/3.0.6.RELEASE/spring-webmvc-3.0.6.RELEASE.jar]]
> 2011-09-15 15:56:45,539 | DEBUG | l Console Thread | Connection
> | .pax.url.mvn.internal.Connection  260 | 2 - org.ops4j.pax.url.mvn - 1.2.8
> | Collecting versions from repository
> [file:/C:/Users/acocco/.m2/repository/,releases=true,snapshots=true]
> 2011-09-15 15:56:45,539 | DEBUG | l Console Thread | Connection
> | .pax.url.mvn.internal.Connection  378 | 2 - org.ops4j.pax.url.mvn - 1.2.8
> |   Resolving exact version
> 2011-09-15 15:56:45,539 | DEBUG | l Console Thread | Connection
> | .pax.url.mvn.internal.Connection  260 | 2 - org.ops4j.pax.url.mvn - 1.2.8
> | Collecting versions from repository
> [http://repo1.maven.org/maven2/,releases=true,snapshots=false]
> 2011-09-15 15:56:45,539 | DEBUG | l Console Thread | Connection
> | .pax.url.mvn.internal.Connection  378 | 2 - org.ops4j.pax.url.mvn - 1.2.8
> |   Resolving exact version
> 2011-09-15 15:56:45,539 | DEBUG | l Console Thread | Connection
> | .pax.url.mvn.internal.Connection  260 | 2 - org.ops4j.pax.url.mvn - 1.2.8
> | Collecting versions from repository
> [http://repository.apache.org/content/groups/snapshots-group/,releases=false,snapshots=true]
> 2011-09-15 15:56:45,539 | DEBUG | l Console Thread | Connection
> | .pax.url.mvn.internal.Connection  301 | 2 - org.ops4j.pax.url.mvn - 1.2.8
> |   Skipping repository
> [http://repository.apache.org/content/groups/snapshots-group/,releases=false,snapshots=true],
> reason: Releases not enabled
> 2011-09-15 15:56:45,539 | DEBUG | l Console Thread | Connection
> | .pax.url.mvn.internal.Connection  260 | 2 - org.ops4j.pax.url.mvn - 1.2.8
> | Collecting versions from repository
> [http://svn.apache.org/repos/asf/servicemix/m2-repo/,releases=true,snapshots=false]
> 2011-09-15 15:56:45,539 | DEBUG | l Console Thread | Connection
> | .pax.url.mvn.internal.Connection  378 | 2 - org.ops4j.pax.url.mvn - 1.2.8
> |   Resolving exact version
> 2011-09-15 15:56:45,539 | DEBUG | l Console Thread | Connection
> | .pax.url.mvn.internal.Connection  260 | 2 - org.ops4j.pax.url.mvn - 1.2.8
> | Collecting versions from repository
> [http://repository.springsource.com/maven/bundles/release/,releases=true,snapshots=false]
> 2011-09-15 15:56:45,539 | DEBUG | l Console Thread | Connection
> | .pax.url.mvn.internal.Connection  378 | 2 - org.ops4j.pax.url.mvn - 1.2.8
> |   Resolving exact version
> 2011-09-15 15:56:45,539 | DEBUG | l Console Thread | Connection
> | .pax.url.mvn.internal.Connection  260 | 2 - org.ops4j.pax.url.mvn - 1.2.8
> | Collecting versions from repository
> [http://repository.springsource.com/maven/bundles/external/,releases=true,snapshots=false]
> 2011-09-15 15:56:45,539 | DEBUG | l Console Thread | Connection
> | .pax.url.mvn.internal.Connection  378 | 2 - org.ops4j.pax.url.mvn - 1.2.8
> |   Resolving exact version
> 2011-09-15 15:56:45,539 | DEBUG | l Console Thread | Connection
> | .pax.url.mvn.internal.Connection  260 | 2 - org.ops4j.pax.url.mvn - 1.2.8
> | Collecting versions from repository
> [http://oss.sonatype.org/content/repositories/releases/,releases=true,snapshots=false]
> 2011-09-15 15:56:45,539 | DEBUG | l Console Thread | Connection
> | .pax.url.mvn.internal.Connection  378 | 2 - org.ops4j.pax.url.mvn - 1.2.8
> |   Resolving exact version
> 2011-09-15 15:56:45,539 | DEBUG | l Console Thread | Connection
> | .pax.url.mvn.internal.Connection  190 | 2 - org.ops4j.pax.url.mvn - 1.2.8
> |   Could not download [Version [3.0.6.RELEASE] from URL
> [file:/C:/Users/acocco/.m2/repository/org/springframework/spring-webmvc/3.0.6.RELEASE/spring-webmvc-3.0.6.RELEASE.jar]]
>
> Sometimes I'm unable to acquire the spring-webmvc and spring-web jars.
> Causing the feature to not install.
>
> My earlier workaround works because I don't grab these?
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Exceptions-when-installing-spring-jms-tp3333414p3340031.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 
--
*Achim Nierbeck*


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/>

Mime
View raw message