Hi
When I copy my fragment bundle to pickup dir in dm server, the deployer fails with following error:Code:
Resolver report: Missing constraint: lt;Import-Package: javax.xml.xpath; version=quot;0.0.0quot;gt; in bundle lt;org.myfragmentbundle_1.0.0gt; Missing constraint: lt;Import-Package: org.w3c.dom; version=quot;0.0.0quot;gt; in bundle lt;org.myfragmentbundle_1.0.0gt; Missing constraint: lt;Import-Package: javax.xml.namespace; version=quot;0.0.0quot;gt; in bundle lt;org.myfragmentbundle_1.0.0gt;
Clearly, imported packages should be available via boot delegation.
Yet, when I copy my fragment bundle to dm server usr repo and then deploy other bundle importing packages from master bundle (org.myfragmentbundle_1.0.0 is fragment for), all bundles are resolved and started properly. Any suggestions are welcome. Thanks.
Jaro
Actually, the same problem applies when trying to deploy fragment bundle in STS. I get the 'Missing constraint' errors.
Deploying a fragment could only work in certain circumstances. For example, if the host is already resolved, then the fragment will not attach to its host.
It may be more reliable to deploy the host bundle and put the fragment in a repository so that it is auto-installed. Then it should attach to the host reliably.
However, the diagnostics you are seeing are very confusing. I'd be grateful if you could raise a JIRA defect ideally including a minimal fragment which reproduces the behaviour.
Raised browse/DMS-1510
Thanks for the nicely constructed defect Jaro. |