Thanks for the information. It's a bit tricky here as I'm trying to package
the calculator.dosgi.operations package in calculator-bundle.jar so that it
can be deployed (to a different JVM) without the operations-bundle.jar.
In this case, operations-bundle's OperationsActivator is in the same package
as the interface (calculator.dosgi.operations) and OSGi tries to follow the
Import-Package which is resolved to an Export-Package in the
calculator-bundle. Since both operations-bundle and calculator-bundle export
the calculator.dosgi.operations package, the resolution is random.
The problem should have been fixed by r758877. Can you try again?
Raymond
--------------------------------------------------
From: "ant elder" <[email protected]>
Sent: Thursday, March 26, 2009 1:08 PM
To: <[email protected]>
Subject: Re: Ship OSGi RFC119 prototype in M2? was: Re: 2.0 M2 release?
osgi> ss
Framework is launched.
id State Bundle
0 ACTIVE org.eclipse.osgi_3.4.0.v20080605-1900
1 ACTIVE org.apache.tuscany.sca.node.launcher.equinox_2.0.0
2 RESOLVED
org.apache.tuscany.sca.node.launcher.equinox.libraries.jaxb-api_2.1.0
3 RESOLVED
org.apache.tuscany.sca.node.launcher.equinox.libraries.cglib_2.2.0
4 RESOLVED
org.apache.tuscany.sca.node.launcher.equinox.libraries.jaxws-api_2.1.0
5 RESOLVED
org.apache.tuscany.sca.node.launcher.equinox.libraries.jsr181-api_1.0.0
6 RESOLVED
org.apache.tuscany.sca.node.launcher.equinox.libraries.servlet-api_2.5.0
7 RESOLVED
org.apache.tuscany.sca.node.launcher.equinox.libraries.asm_3.1.0
8 RESOLVED
org.apache.tuscany.sca.node.launcher.equinox.libraries.jaxb-impl_2.1.9
9 RESOLVED
org.apache.tuscany.sca.node.launcher.equinox.libraries.wstx-asl_3.2.4
10 RESOLVED
org.apache.tuscany.sca.node.launcher.equinox.libraries.junit_4.5.0
11 RESOLVED
org.apache.tuscany.sca.node.launcher.equinox.libraries.activation_1.1.0
12 RESOLVED
org.apache.tuscany.sca.node.launcher.equinox.libraries.jsr250-api_1.0.0
13 RESOLVED org.apache.tuscany.sca.xsd_2.0.0
14 RESOLVED
org.apache.tuscany.sca.implementation.java.runtime_2.0.0
15 RESOLVED org.apache.tuscany.sca.databinding_2.0.0
16 RESOLVED org.apache.commons.cli_1.2.0
17 RESOLVED org.apache.tuscany.sca.assembly.xsd_2.0.0
18 <<LAZY>> org.apache.tuscany.sca.contribution.osgi_2.0.0
19 RESOLVED org.apache.tuscany.sca.assembly.xml_2.0.0
20 RESOLVED org.apache.tuscany.sca.binding.sca.xml_2.0.0
21 RESOLVED org.apache.ws.commons.schema_1.4.2
22 RESOLVED org.apache.tuscany.sca.core_2.0.0
23 RESOLVED org.apache.tuscany.sca.contribution_2.0.0
24 RESOLVED org.apache.tuscany.sca.implementation.java.xml_2.0.0
25 RESOLVED org.apache.tuscany.sca.node.osgi.impl_2.0.0
26 RESOLVED org.eclipse.equinox.util_1.0.0.v20080414
27 RESOLVED org.apache.tuscany.sca.monitor_2.0.0
28 RESOLVED org.apache.tuscany.sca.binding.rmi_2.0.0
29 RESOLVED org.apache.tuscany.sca.contribution.xml_2.0.0
30 RESOLVED org.eclipse.equinox.ds_1.0.0.v20080427-0830
31 RESOLVED org.apache.tuscany.sca.binding.rmi.runtime_2.0.0
32 RESOLVED org.apache.tuscany.sca.core.databinding_2.0.0
33 RESOLVED org.apache.tuscany.sca.assembly_2.0.0
34 RESOLVED org.apache.tuscany.sca.definitions.xml_2.0.0
35 <<LAZY>> org.apache.tuscany.sca.implementation.osgi_2.0.0
36 RESOLVED org.apache.tuscany.sca.extensibility_2.0.0
37 ACTIVE org.apache.tuscany.sca.extensibility.equinox_2.0.0
38 RESOLVED org.apache.tuscany.sca.api_2.0.0
39 RESOLVED org.apache.tuscany.sca.node.api_2.0.0
40 RESOLVED org.apache.tuscany.sca.definitions_2.0.0
41 RESOLVED org.eclipse.osgi.services_3.1.200.v20071203
42 RESOLVED org.apache.tuscany.sca.policy.xml_2.0.0
43 RESOLVED org.apache.tuscany.sca.databinding.jaxb_2.0.0
44 RESOLVED org.apache.tuscany.sca.core.spi_2.0.0
45 RESOLVED org.apache.tuscany.sca.workspace.impl_2.0.0
46 RESOLVED org.apache.tuscany.sca.interface.java_2.0.0
47 RESOLVED org.apache.tuscany.sca.contribution.namespace_2.0.0
48 RESOLVED org.apache.tuscany.sca.contribution.java_2.0.0
49 RESOLVED org.apache.tuscany.sca.policy_2.0.0
50 RESOLVED org.apache.tuscany.sca.interface.java.jaxws_2.0.0
51 RESOLVED org.apache.tuscany.sca.workspace.xml_2.0.0
52 RESOLVED org.apache.tuscany.sca.workspace_2.0.0
53 <<LAZY>>
org.apache.tuscany.sca.implementation.osgi.runtime_2.0.0
54 RESOLVED
org.apache.geronimo.specs.geronimo-stax-api_1.0_spec_1.0.1
55 RESOLVED org.apache.tuscany.sca.host.rmi_2.0.0
56 RESOLVED org.apache.tuscany.sca.interface_2.0.0
57 RESOLVED org.apache.tuscany.sca.endpoint_2.0.0
58 RESOLVED org.apache.tuscany.sca.binding.sca_2.0.0
59 RESOLVED org.apache.tuscany.sca.interface.java.xml_2.0.0
60 RESOLVED org.apache.tuscany.sca.implementation.node_2.0.0
61 RESOLVED org.apache.tuscany.sca.implementation.java_2.0.0
62 INSTALLED calculator.dosgi_1.0.0
63 INSTALLED calculator.dosgi.operations_1.0.0
osgi> diag 63
reference:file:/C:\Tuscany\SVN\trunk\modules\node-impl-osgi\target\test-classes\operations-bundle.jar
[63]
Direct constraints which are unresolved:
Missing imported package calculator.dosgi.operations_1.0.0.
osgi>
On Thu, Mar 26, 2009 at 8:02 PM, Raymond Feng <[email protected]> wrote:
You can add -Dosgi.console=9999 for VM arguments and set a break point
before the bundle.start(). When the thread suspends, open a new window
and
type:
telnet localhost 9999
osgi> ss
osgi> diag <id for the bundle>
Thanks,
Raymond
--------------------------------------------------
From: "ant elder" <[email protected]>
Sent: Thursday, March 26, 2009 12:03 PM
To: <[email protected]>
Subject: Re: Ship OSGi RFC119 prototype in M2? was: Re: 2.0 M2 release?
Ok, sent. It looks ok to me, i get the same fail running in eclipse so
could i put a breakpoint somewhere to help debug?
...ant
On Thu, Mar 26, 2009 at 6:35 PM, Raymond Feng <[email protected]>
wrote:
Can you send me the jar to my gmail?
Thanks,
Raymond
--------------------------------------------------
From: "ant elder" <[email protected]>
Sent: Thursday, March 26, 2009 10:09 AM
To: <[email protected]>
Subject: Re: Ship OSGi RFC119 prototype in M2? was: Re: 2.0 M2 release?
On Thu, Mar 26, 2009 at 5:06 PM, Raymond Feng <[email protected]>
wrote:
Hi,
I just tried on Windows and Lunix. Both are successful.
Can you check if the target/test-classes/operations-bundle.jar
contains
calculator/dosgi/operations/OperationsActivator.class?
It does.
...ant