Resolving uses violations [message #873284] |
Thu, 17 May 2012 18:03  |
Eclipse User |
|
|
|
This has had be stumped for quite awhile and I'm at a loss. I am trying to deploy a plan that includes a bundle that itself references a lot of components - the plan is scoped.
I've been trying to track down the problem, however the resolver report (see below) is lacking information I've seen posted in forums - like what package is causing the problem. From what I gather, "Cannot resolve:" should be followed by the package name. However in this case it cites the plan name-version-bundle name. Is there any way to turn up the volume/verbosity of these reports?
It's also not clear to me how this relates the package conflicts org.aopalliance. It looks like the aopalliance bundle is live in both kernel and user regions based on their bundle IDs (4 and 87). Is this OK, or bad? My plan does not explicitly reference the aopalliance or spring framework bundles.
Any help is really, really greatly appreciated. Thanks.
Cannot resolve: plan-1-com.acme.xxx
Resolver report:
Uses violation: <Import-Package: org.eclipse.persistence.logging; version="0.0.0"> in bundle <plan-1-com.acme.xxx_1.0.0[1337290355287]>
Resolver reported uses conflict for import
Uses violation: <Import-Package: org.eclipse.persistence.annotations; version="0.0.0"> in bundle <plan-1-com.acme.xxx_1.0.0[1337290355287]>
Resolver reported uses conflict for import
Uses violation: <Import-Package: org.eclipse.persistence.sessions; version="0.0.0"> in bundle <plan-1-com.acme.xxx_1.0.0[1337290355287]>
Resolver reported uses conflict for import
Uses violation: <Import-Package: org.eclipse.persistence.mappings.converters; version="0.0.0"> in bundle <plan-1-com.acme.xxx_1.0.0[1337290355287]>
Resolver reported uses conflict for import
Uses violation: <Import-Package: org.eclipse.persistence.jpa; version="0.0.0"> in bundle <plan-1-com.acme.xxx_1.0.0[1337290355287]>
Resolver reported uses conflict for import
Uses violation: <Import-Package: org.springframework.jca.work; version="3.0.0"> in bundle <plan-1-com.acme.xxx_1.0.0[1337290355287]>
Found conflicts:
package 'org.aopalliance.intercept_1.0.0' in bundle 'com.springsource.org.aopalliance_1.0.0[87]' used by 'org.springframework.jca.work_3.0.5.RELEASE' in bundle 'org.springframework.transaction_3.0.5.RELEASE[115]'
conflicts with 'org.aopalliance.intercept_1.0.0' in bundle 'com.springsource.org.aopalliance_1.0.0[4]' used by 'org.springframework.aop_3.0.5.RELEASE' in bundle 'org.springframework.aop_3.0.5.RELEASE[54]'
package 'org.aopalliance.aop_1.0.0' in bundle 'com.springsource.org.aopalliance_1.0.0[87]' used by 'org.springframework.jca.work_3.0.5.RELEASE' in bundle 'org.springframework.transaction_3.0.5.RELEASE[115]'
conflicts with 'org.aopalliance.aop_1.0.0' in bundle 'com.springsource.org.aopalliance_1.0.0[4]' used by 'org.springframework.aop_3.0.5.RELEASE' in bundle 'org.springframework.aop_3.0.5.RELEASE[54]'
Uses violation: <Import-Package: org.eclipse.persistence.mappings; version="0.0.0"> in bundle <plan-1-com.acme.xxx_1.0.0[1337290355287]>
Resolver reported uses conflict for import
Uses violation: <Import-Package: org.eclipse.persistence.platform.server; version="0.0.0"> in bundle <plan-1-com.acme.xxx_1.0.0[1337290355287]>
Resolver reported uses conflict for import
Uses violation: <Import-Package: org.eclipse.persistence.queries; version="0.0.0"> in bundle <plan-1-com.acme.xxx_1.0.0[1337290355287]>
Resolver reported uses conflict for import
Uses violation: <Import-Package: com.acme.xxx.internal.transaction; version="0.0.0"> in bundle <plan-1-synthetic.context_8.0.0[1337290355291]>
Resolver reported uses conflict for import constrained to bundle <plan-1-com.acme.xxx> constrained bundle version range "[1.0.0,1.0.0]"
with attributes {module_scope=plan-1}
Uses violation: <Import-Package: com.acme.xxx.logger; version="0.0.0"> in bundle <plan-1-synthetic.context_8.0.0[1337290355291]>
Resolver reported uses conflict for import constrained to bundle <plan-1-com.acme.xxx> constrained bundle version range "[1.0.0,1.0.0]"
with attributes {module_scope=plan-1}
|
|
|
|
Re: Resolving uses violations [message #873445 is a reply to message #873284] |
Fri, 18 May 2012 04:58  |
Eclipse User |
|
|
|
2 things made this easy/easier to figure out.
1) Get everything out of the plan and put the jars in pickup
2) Edit the MANIFEST.MF of the bundle that would not resolve. Strip out the Import-Package entries until you find the one(s) preventing the bundle from resolving
My problem was that the bundle imported a package that was exported by a fragment. This may not be proper, but it works in plain'ol Equinox. This might be because it was a fragment on logback-core, which really lives in the kernel region - I'm still trying to get the hang of user versus kernel regions.
|
|
|
Powered by
FUDForum. Page generated in 0.03620 seconds