You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by sa...@telvent.com on 2009/04/16 16:02:00 UTC
Rm: Problem in OSGi
Hi
I have found the same problem in tuscany 2.02M. I know it's a problem from
Axis libraries that are exporting org.apache.axis2.util two times with the
same name and the same version. But they are different packages with
different classes.
Un saludo.
Santiago Miguel Aranda Rojas
Telvent Interactiva
Extension: 35999
----- Remitido por Santiago Miguel Aranda Rojas/Telvent/Abengoa con fecha
16/04/2009 15:52 -----
Santiago Miguel Aranda Rojas/Telvent/Abengoa
TELVENT
Telvent Interactiva, S.A.
Santiago Miguel Aranda Rojas
26/03/2009 18:11
Para:
user@tuscany.apache.org
cc:
Asunto:
Re: Problem in OSGi
Yes axis2-adb-1.4.1.jar is part of your M1 distro and It exports
org.apache.axis2.util too. This can be a problem. I mean to export two
packages with the same name and the same version. When creatin the
classloaders, OSGi mechanismns only will register the first package from
the different installed bundles. So it is very important, that embeded
packages to be exported in several bundles will include the same set of
classes or different versions
Ok. I am going to open JIRAs tomorrow.
Un saludo.
Santiago Miguel Aranda Rojas
Telvent Interactiva
Extension: 35999
"Raymond Feng" <en...@gmail.com>
"Raymond Feng"
26/03/2009 17:53
Por favor, responda a user
Para:
<us...@tuscany.apache.org>
cc:
Asunto:
Re: Problem in OSGi
Hi,
Thanks for the update. The split package issue in OSGi is very annoying
and
there is no warning from the OSGi runtime. Is axis2-adb-1.4.1.jar part of
our M1 distro? If so, we probably have to tweak the MF as well in M2.
Can you also open JIRAs against Axis2 so that the next release can include
the fixes?
Raymond
From: santiago.aranda@telvent.com
Sent: Thursday, March 26, 2009 8:51 AM
To: user@tuscany.apache.org
Subject: Re: Problem in OSGi
Hi
I have resolved my problem myself. I think there is a problem with tuscany
osgi modules. I mean
1) axis2-kernel.1.4.1.jar exports "org.apache.axis2.util" version
=0.0.0
2) axis2-adb-1.41.jar exports "org.apache.axis2.util" version
=0.0.0
( a package with the same name)
3) tuscany-binding-ws-axis2-2.0-M1.jar imports
"org.apache.axis2.util" version=0.0.0
Both packages are called with the same name but they have differents
classes. Only the first one contains "TargetResolver" class.
Tuscany-binding-ws-axis2 bundle imports the wrong package because all
exported packages have the same version and OSGi framework resolve then by
bundle id.
I have fixed this changing version of exported package from axis2-kernel.
If
it exports a bigger version, tuscany-binding can recover the right
package.
Thank you.
Un saludo.
Santiago Miguel Aranda Rojas
Telvent Interactiva
Extension: 35999
santiago.aranda@telvent.com
santiago.aranda
26/03/2009 13:57
Por favor, responda a user
Para: user@tuscany.apache.org
cc:
Asunto: Re: Problem in OSGi
Hi,
I have download Tuscany Java SCA 2.0. M1 and I have launched OSGi
framework
using "config.ini" file (OSGi configuration). This is in the
features/configuration directory from tuscany distribution. It is working
I
think. This is my deployed bundle list.
0 ACTIVE org.eclipse.osgi_3.3.0.v20070530
1 ACTIVE org.eclipse.core.runtime_3.3.100.v20070530
2 ACTIVE org.apache.commons.io_1.4.0
3 ACTIVE org.apache.tuscany.sca.host.http_2.0.0
4 ACTIVE org.apache.geronimo.specs.geronimo-jms_1.1_spec_1.1.0
5 ACTIVE org.apache.tuscany.sca.host.jetty_2.0.0
6 ACTIVE org.apache.tuscany.sca.binding.ws.axis2.policy_2.0.0
7 ACTIVE org.apache.tuscany.sca.contribution.java_2.0.0
8 ACTIVE org.apache.tuscany.sca.workspace.impl_2.0.0
9 ACTIVE org.apache.ws.commons.axiom.axiom-impl_1.2.7
10 ACTIVE org.apache.axis2.mex_1.41.0
11 ACTIVE org.apache.axis2.axis2-codegen_1.4.1
12 ACTIVE org.apache.tuscany.sca.api_2.0.0
13 ACTIVE org.apache.tuscany.sca.databinding.jaxb_2.0.0
14 ACTIVE org.eclipse.core.jobs_3.3.0.v20070423
15 ACTIVE org.apache.ws.commons.axiom.axiom-api_1.2.7
Fragments=81
16 ACTIVE org.apache.tuscany.sca.xsd_2.0.0
17 ACTIVE org.apache.tuscany.sca.policy_2.0.0
18 ACTIVE org.apache.tuscany.sca.assembly.xml_2.0.0
19 ACTIVE org.apache.tuscany.sca.definitions_2.0.0
20 ACTIVE org.apache.rampart.rampart-trust_1.4.0
21 ACTIVE org.apache.tuscany.sca.implementation.java_2.0.0
22 ACTIVE org.apache.tuscany.sca.extensibility_2.0.0
23 ACTIVE org.apache.tuscany.sca.binding.ws_2.0.0
24 ACTIVE
org.apache.geronimo.specs.geronimo-javamail_1.4_spec_1.2.0
25 ACTIVE org.apache.tuscany.sca.monitor_2.0.0
26 ACTIVE org.eclipse.core.contenttype_3.2.100.v20070319
27 ACTIVE commons-codec.commons-codec_1.2.0
28 ACTIVE javax.annotation.jsr250-api_1.0.0
29 ACTIVE org.apache.tuscany.sca.workspace_2.0.0
30 ACTIVE org.apache.tuscany.sca.contribution_2.0.0
31 ACTIVE org.apache.tuscany.sca.implementation.node.runtime_2.0.0
32 ACTIVE javax.activation.activation_1.1.0
33 ACTIVE org.apache.tuscany.sca.implementation.java.runtime_2.0.0
34 ACTIVE
org.apache.geronimo.specs.geronimo-stax-api_1.0_spec_1.0.1
35 ACTIVE org.apache.ws.security.wss4j_1.5.4
36 ACTIVE org.apache.axis2.axis2-java2wsdl_1.4.1
37 ACTIVE org.apache.tuscany.sca.interface.wsdl.xml_2.0.0
38 ACTIVE org.apache.tuscany.sca.node.api_2.0.0
39 ACTIVE commons-collections.commons-collections_3.1.0
40 ACTIVE org.apache.tuscany.sca.interface.wsdl_2.0.0
41 ACTIVE jaxen.jaxen_1.1.1
42 ACTIVE org.eclipse.equinox.registry_3.3.0.v20070522
43 ACTIVE org.apache.tuscany.sca.core.spi_2.0.0
44 ACTIVE javax.xml.bind.jaxb-api_2.1.0
45 ACTIVE org.apache.tuscany.sca.databinding_2.0.0
46 ACTIVE org.apache.tuscany.sca.assembly_2.0.0
47 ACTIVE org.eclipse.equinox.preferences_3.2.100.v20070522
48 ACTIVE org.apache.tuscany.sca.policy.security_2.0.0
49 RESOLVED org.apache.tuscany.sca.binding.ws.axis2_2.0.0
Master=93
50 ACTIVE javax.mail.mail_1.4.0
51 ACTIVE org.codehaus.woodstox.wstx-asl_3.2.4
52 ACTIVE org.apache.tuscany.sca.binding.sca_2.0.0
53 ACTIVE org.apache.tuscany.sca.policy.xml.ws_2.0.0
54 ACTIVE xalan.xalan_2.7.0
55 ACTIVE log4j.log4j_1.2.15
56 ACTIVE org.apache.tuscany.sca.implementation.java.xml_2.0.0
57 ACTIVE org.apache.tuscany.sca.interface.java.jaxws_2.0.0
58 ACTIVE org.apache.tuscany.sca.binding.ws.wsdlgen_2.0.0
59 ACTIVE org.apache.tuscany.sca.policy.xml_2.0.0
60 ACTIVE commons-logging.commons-logging_1.1.1
61 ACTIVE dom4j.dom4j_1.6.1
62 ACTIVE org.apache.axis2.adb_1.4.0
63 ACTIVE backport-util-concurrent.backport-util-concurrent_3.1.0
64 ACTIVE org.apache.tuscany.sca.binding.rmi.runtime_2.0.0
65 ACTIVE javax.xml.ws.jaxws-api_2.1.0
66 ACTIVE
org.apache.geronimo.specs.geronimo-activation_1.1_spec_1.0.1
67 ACTIVE org.apache.ws.commons.axiom.axiom-dom_1.2.7
68 ACTIVE org.apache.tuscany.sca.xsd.xml_2.0.0
69 ACTIVE org.apache.tuscany.sca.core_2.0.0
71 ACTIVE cglib.cglib_2.2.0
72 ACTIVE commons-cli.commons-cli_1.1.0
73 ACTIVE org.apache.tuscany.sca.workspace.xml_2.0.0
74 ACTIVE org.eclipse.equinox.app_1.0.0.v20070606
75 ACTIVE org.apache.axis2.axis2-mtompolicy_1.4.1
76 ACTIVE org.apache.tuscany.sca.databinding.jaxb.axiom_2.0.0
77 ACTIVE jdom.jdom_1.0.0
78 ACTIVE org.apache.ws.commons.schema_1.4.2
79 ACTIVE javax.jws.jsr181-api_1.0.0.MR1
80 ACTIVE org.apache.rampart.rampart-core_1.4.0
81 RESOLVED org.apache.tuscany.sca.databinding.axiom_2.0.0
Master=15
82 ACTIVE xerces.xmlParserAPIs_2.6.0
83 ACTIVE org.eclipse.equinox.common_3.3.0.v20070426
84 ACTIVE annogen.annogen_0.1.0
85 ACTIVE org.apache.tuscany.sca.node.launcher.equinox_2.0.0
86 ACTIVE org.apache.woden.woden-impl-dom_1.0.0
87 ACTIVE commons-fileupload.commons-fileupload_1.2.0
88 ACTIVE org.apache.tuscany.sca.interface_2.0.0
89 ACTIVE org.apache.axis.axis-ant_1.4.0
90 ACTIVE org.apache.tuscany.sca.interface.java_2.0.0
91 ACTIVE org.mortbay.jetty.util_6.1.7
92 ACTIVE asm.asm_3.1.0
93 ACTIVE org.apache.axis2.kernel_1.4.0
Fragments=49
94 ACTIVE commons-httpclient.commons-httpclient_3.1.0
95 ACTIVE org.apache.tuscany.sca.interface.java.xml_2.0.0
96 ACTIVE org.apache.httpcomponents.httpcore_4.0.0.beta1
97 ACTIVE wsdl4j.wsdl4j_1.6.2
98 ACTIVE org.apache.httpcomponents.httpcore-nio_4.0.0.beta1
99 ACTIVE javax.servlet.servlet-api_2.5.0
100 ACTIVE org.apache.tuscany.sca.assembly.xsd_2.0.0
101 ACTIVE org.apache.tuscany.sca.extensibility.equinox_2.0.0
102 ACTIVE org.apache.tuscany.sca.binding.sca.xml_2.0.0
103 ACTIVE xerces.xercesImpl_2.8.1
104 ACTIVE org.mortbay.jetty.server_6.1.7
105 ACTIVE org.apache.santuario.xmlsec_1.4.2
106 ACTIVE xml-apis.xml-apis_0.0.0.1_3_03
107 ACTIVE org.apache.tuscany.sca.node.launcher_2.0.0
108 ACTIVE org.apache.tuscany.sca.endpoint_2.0.0
109 ACTIVE com.sun.xml.bind.jaxb-impl_2.1.9
110 ACTIVE org.apache.tuscany.sca.node.impl_2.0.0
111 ACTIVE org.apache.tuscany.sca.host.rmi_2.0.0
112 ACTIVE commons-discovery.commons-discovery_0.2.0
113 ACTIVE org.apache.tuscany.sca.binding.ws.xml_2.0.0
114 ACTIVE org.apache.tuscany.sca.contribution.xml_2.0.0
115 ACTIVE org.apache.woden.woden-api_1.0.0
116 ACTIVE org.apache.tuscany.sca.implementation.node_2.0.0
117 ACTIVE org.apache.rampart.rampart-policy_1.4.0
118 ACTIVE org.apache.tuscany.sca.launcher_2.0.0
119 ACTIVE org.apache.neethi_2.0.4
120 ACTIVE org.apache.tuscany.sca.contribution.namespace_2.0.0
121 ACTIVE org.apache.tuscany.sca.binding.rmi_2.0.0
122 ACTIVE org.apache.tuscany.sca.definitions.xml_2.0.0
123 ACTIVE org.apache.tuscany.sca.core.databinding_2.0.0
124 ACTIVE calculatortuscany_1.0.0
I have deployed my little sample calculator as you can see (bundle 123).
It
is the same that is in the sample directory. It is works too and it show
me
its results in the console.
But I have changed "Calculator.composite" file because I want to publish
one
of the components from Calculator service. For example the addService.
<component name="CalculatorServiceComponent">
<implementation.java
class="com.telvent.tuscany.server.CalculatorServiceImpl"/>
<reference name="addService">
<binding.ws uri="http://localhost:8085/AddServiceComponent
"/>
</reference>
<reference name="subtractService" target="SubtractServiceComponent"
/>
<reference name="multiplyService" target="MultiplyServiceComponent"
/>
<reference name="divideService" target="DivideServiceComponent" />
</component>
<component name="AddServiceComponent">
<implementation.java
class="com.telvent.tuscany.server.AddServiceImpl"/>
<service name="AddService">
<binding.ws
uri="http://localhost:8085/AddServiceComponent"/>
</service>
</component>
When I launch OSGi framework (Equinox) again this is my new error.
26-mar-2009 13:42:21 org.apache.tuscany.sca.node.impl.NodeImpl <init>
INFO: Creating node: Calculator.composite
26-mar-2009 13:42:22 org.apache.tuscany.sca.node.impl.NodeImpl
configureNode
INFO: Loading contribution: file:/C:/Tuscanyosgi/testServer-1.0.0.jar
26-mar-2009 13:42:22 org.apache.tuscany.sca.node.impl.NodeImpl start
INFO: Starting node: Calculator.composite
java.lang.NoClassDefFoundError: org/apache/axis2/util/TargetResolver
at
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguratio
n(DeploymentEngine.java:639)
at
org.apache.tuscany.sca.binding.ws.axis2.TuscanyAxisConfigurator.getAx
isConfiguration(TuscanyAxisConfigurator.java:118)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
ionContext(ConfigurationContextFactory.java:68)
at
org.apache.tuscany.sca.binding.ws.axis2.TuscanyAxisConfigurator.getCo
nfigurationContext(TuscanyAxisConfigurator.java:88)
at
org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider.<init>(A
xis2ServiceProvider.java:190)
at
org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceBindingProvider.<
init>(Axis2ServiceBindingProvider.java:65)
at
org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingProviderFactory.c
reateServiceBindingProvider(Axis2BindingProviderFactory.java:73)
at
org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingProviderFactory.c
reateServiceBindingProvider(Axis2BindingProviderFactory.java:1)
at
org.apache.tuscany.sca.provider.DefaultProviderFactoryExtensionPoint$
LazyBindingProviderFactory.createServiceBindingProvider(DefaultProviderFactoryEx
TargetResolverClass can not be found. Do you have any idea about this? I
mean I am using all bundles from modules directory and the config.ini file
that I downloaded from tuscany project site. Has Tuscany project been
checked in OSGi framework?
Thank very much.
Un saludo.
Santiago Miguel Aranda Rojas
Telvent Interactiva
Extension: 35999
"Raymond Feng" <en...@gmail.com>
"Raymond Feng"
25/03/2009 16:49
Por favor, responda a user Para: <us...@tuscany.apache.org>
cc:
Asunto: Re: Problem in OSGi
Hi,
I strongly recommend you use Tuscany Java SCA 2.0 M1 [1] which is fully
OSGi-enabled. All the bundles are shipped under the modules folder and
they
can used as-is.
[1] http://www.apache.org/dist/tuscany/java/sca/2.0-M1
Thanks,
Raymond
From: santiago.aranda@telvent.com
Sent: Wednesday, March 25, 2009 5:11 AM
To: user@tuscany.apache.org
Subject: Re: Problem in OSGi
Hi,
Yes, I have deployed tuscany-extensibility-equinox module and it works. I
mean the monitor is created now. Thank you
But I am debugging my code and I have another problems with serverals
"processors" that aren't being created in the same "init" method. These
processors are created in runtime. For example compositeProcessor and
contributionProcessor. I think I need more deployed bundles. Where can I
find the minimum bundles list to be deployed? I only want to publish the
helloWorld as web service using OSGi. My composite file is very simple.
I have found a directory called "\directory\bundle minimal" in the
apache-tuscany-sca-1.4-src.zip. There is a pom.xml file that have
dependencies with serveral bundles . Are they all bundles I need deploy in
my OSGi framework?
Un saludo.
Santiago Miguel Aranda Rojas
Telvent Interactiva
Extension: 35999
"Raymond Feng" <en...@gmail.com>
"Raymond Feng"
24/03/2009 17:53
Por favor, responda a user Para: <us...@tuscany.apache.org>
cc:
Asunto: Re: Problem in OSGi
Hi,
You are missing one bundle: org.apache.tuscany.sca.extensibility.equinox.
It
is the tuscany-extensiblity-equinox module.
The monitor is created to deal with ERROR/WARNING messages.
Thanks,
Raymond
From: santiago.aranda@telvent.com
Sent: Tuesday, March 24, 2009 9:32 AM
To: user@tuscany.apache.org
Subject: Problem in OSGi
I am developing a little service using tuscany. I only want export its
funcionality like HelloWorld sample. But I don´t know what are the bundles
that I have to deploy in OSGi. This is my console view in Eclipse
0 ACTIVE org.eclipse.osgi_3.3.2.R33x_v20080105
1 INSTALLED org.apache.tuscany.sca.core_1.3.2
3 ACTIVE org.apache.tuscany.sca.api_2.0.0
4 ACTIVE org.apache.tuscany.sca.assembly_2.0.0
5 ACTIVE org.apache.tuscany.sca.node.impl_2.0.0
6 ACTIVE org.apache.tuscany.sca.node.api_2.0.0
7 ACTIVE org.apache.tuscany.sca.core_2.0.0
8 ACTIVE cglib_2.2.0
9 ACTIVE org.apache.tuscany.sca.core.spi_2.0.0
10 ACTIVE org.apache.tuscany.sca.policy_2.0.0
11 ACTIVE org.apache.tuscany.sca.monitor_2.0.0
12 ACTIVE org.apache.tuscany.sca.definitions_2.0.0
13 ACTIVE org.apache.tuscany.sca.extensibility_2.0.0
15 ACTIVE org.apache.tuscany.sca.contribution_2.0.0
16 ACTIVE org.apache.tuscany.sca.interface.java.xml_2.0.0
17 ACTIVE org.apache.tuscany.sca.interface_2.0.0
18 ACTIVE org.apache.tuscany.sca.implementation.node_2.0.0
19 ACTIVE org.apache.tuscany.sca.workspace_2.0.0
20 ACTIVE org.apache.tuscany.sca.interface.java_2.0.0
21 ACTIVE calculatortuscany_1.0.0
I had some problems with cglib because it is not a bundle and I have to
export one package in its manifest. But I think they are working well. My
problem is calculatortuscany. It is the same example from Tuscany
distribution but I have turned it into a bundle. When I start this bundle
I
obtain a NullPointerException in this line "monitor =
monitorFactory.createMonitor()" in the class
org.apache.tuscany.sca.node.impl.NodeImpl in the "init" method.
Do I have deployed all need bundles? Why do I need create a monitor??
Thanks in advance
Re: Rm: Problem in OSGi
Posted by Raymond Feng <en...@gmail.com>.
Hi,
This problem has been fixed in trunk but it didn't get into M2. You can try the latest from the SNAPSHOT builds.
Thanks,
Raymond
From: santiago.aranda@telvent.com
Sent: Thursday, April 16, 2009 7:02 AM
To: user@tuscany.apache.org
Subject: Rm: Problem in OSGi
Hi
I have found the same problem in tuscany 2.02M. I know it's a problem from Axis libraries that are exporting org.apache.axis2.util two times with the same name and the same version. But they are different packages with different classes.
Un saludo.
Santiago Miguel Aranda Rojas
Telvent Interactiva
Extension: 35999
----- Remitido por Santiago Miguel Aranda Rojas/Telvent/Abengoa con fecha 16/04/2009 15:52 -----
Santiago Miguel Aranda Rojas/Telvent/Abengoa
TELVENT
Telvent Interactiva, S.A.
Santiago Miguel Aranda Rojas
26/03/2009 18:11
Para: user@tuscany.apache.org
cc:
Asunto: Re: Problem in OSGiVínculo
Yes axis2-adb-1.4.1.jar is part of your M1 distro and It exports org.apache.axis2.util too. This can be a problem. I mean to export two packages with the same name and the same version. When creatin the classloaders, OSGi mechanismns only will register the first package from the different installed bundles. So it is very important, that embeded packages to be exported in several bundles will include the same set of classes or different versions
Ok. I am going to open JIRAs tomorrow.
Un saludo.
Santiago Miguel Aranda Rojas
Telvent Interactiva
Extension: 35999
"Raymond Feng" <en...@gmail.com>
"Raymond Feng"
26/03/2009 17:53
Por favor, responda a user
Para: <us...@tuscany.apache.org>
cc:
Asunto: Re: Problem in OSGi
Hi,
Thanks for the update. The split package issue in OSGi is very annoying and
there is no warning from the OSGi runtime. Is axis2-adb-1.4.1.jar part of
our M1 distro? If so, we probably have to tweak the MF as well in M2.
Can you also open JIRAs against Axis2 so that the next release can include
the fixes?
Raymond
From: santiago.aranda@telvent.com
Sent: Thursday, March 26, 2009 8:51 AM
To: user@tuscany.apache.org
Subject: Re: Problem in OSGi
Hi
I have resolved my problem myself. I think there is a problem with tuscany
osgi modules. I mean
1) axis2-kernel.1.4.1.jar exports "org.apache.axis2.util" version
=0.0.0
2) axis2-adb-1.41.jar exports "org.apache.axis2.util" version =0.0.0
( a package with the same name)
3) tuscany-binding-ws-axis2-2.0-M1.jar imports
"org.apache.axis2.util" version=0.0.0
Both packages are called with the same name but they have differents
classes. Only the first one contains "TargetResolver" class.
Tuscany-binding-ws-axis2 bundle imports the wrong package because all
exported packages have the same version and OSGi framework resolve then by
bundle id.
I have fixed this changing version of exported package from axis2-kernel. If
it exports a bigger version, tuscany-binding can recover the right package.
Thank you.
Un saludo.
Santiago Miguel Aranda Rojas
Telvent Interactiva
Extension: 35999
santiago.aranda@telvent.com
santiago.aranda
26/03/2009 13:57
Por favor, responda a user
Para: user@tuscany.apache.org
cc:
Asunto: Re: Problem in OSGi
Hi,
I have download Tuscany Java SCA 2.0. M1 and I have launched OSGi framework
using "config.ini" file (OSGi configuration). This is in the
features/configuration directory from tuscany distribution. It is working I
think. This is my deployed bundle list.
0 ACTIVE org.eclipse.osgi_3.3.0.v20070530
1 ACTIVE org.eclipse.core.runtime_3.3.100.v20070530
2 ACTIVE org.apache.commons.io_1.4.0
3 ACTIVE org.apache.tuscany.sca.host.http_2.0.0
4 ACTIVE org.apache.geronimo.specs.geronimo-jms_1.1_spec_1.1.0
5 ACTIVE org.apache.tuscany.sca.host.jetty_2.0.0
6 ACTIVE org.apache.tuscany.sca.binding.ws.axis2.policy_2.0.0
7 ACTIVE org.apache.tuscany.sca.contribution.java_2.0.0
8 ACTIVE org.apache.tuscany.sca.workspace.impl_2.0.0
9 ACTIVE org.apache.ws.commons.axiom.axiom-impl_1.2.7
10 ACTIVE org.apache.axis2.mex_1.41.0
11 ACTIVE org.apache.axis2.axis2-codegen_1.4.1
12 ACTIVE org.apache.tuscany.sca.api_2.0.0
13 ACTIVE org.apache.tuscany.sca.databinding.jaxb_2.0.0
14 ACTIVE org.eclipse.core.jobs_3.3.0.v20070423
15 ACTIVE org.apache.ws.commons.axiom.axiom-api_1.2.7
Fragments=81
16 ACTIVE org.apache.tuscany.sca.xsd_2.0.0
17 ACTIVE org.apache.tuscany.sca.policy_2.0.0
18 ACTIVE org.apache.tuscany.sca.assembly.xml_2.0.0
19 ACTIVE org.apache.tuscany.sca.definitions_2.0.0
20 ACTIVE org.apache.rampart.rampart-trust_1.4.0
21 ACTIVE org.apache.tuscany.sca.implementation.java_2.0.0
22 ACTIVE org.apache.tuscany.sca.extensibility_2.0.0
23 ACTIVE org.apache.tuscany.sca.binding.ws_2.0.0
24 ACTIVE
org.apache.geronimo.specs.geronimo-javamail_1.4_spec_1.2.0
25 ACTIVE org.apache.tuscany.sca.monitor_2.0.0
26 ACTIVE org.eclipse.core.contenttype_3.2.100.v20070319
27 ACTIVE commons-codec.commons-codec_1.2.0
28 ACTIVE javax.annotation.jsr250-api_1.0.0
29 ACTIVE org.apache.tuscany.sca.workspace_2.0.0
30 ACTIVE org.apache.tuscany.sca.contribution_2.0.0
31 ACTIVE org.apache.tuscany.sca.implementation.node.runtime_2.0.0
32 ACTIVE javax.activation.activation_1.1.0
33 ACTIVE org.apache.tuscany.sca.implementation.java.runtime_2.0.0
34 ACTIVE
org.apache.geronimo.specs.geronimo-stax-api_1.0_spec_1.0.1
35 ACTIVE org.apache.ws.security.wss4j_1.5.4
36 ACTIVE org.apache.axis2.axis2-java2wsdl_1.4.1
37 ACTIVE org.apache.tuscany.sca.interface.wsdl.xml_2.0.0
38 ACTIVE org.apache.tuscany.sca.node.api_2.0.0
39 ACTIVE commons-collections.commons-collections_3.1.0
40 ACTIVE org.apache.tuscany.sca.interface.wsdl_2.0.0
41 ACTIVE jaxen.jaxen_1.1.1
42 ACTIVE org.eclipse.equinox.registry_3.3.0.v20070522
43 ACTIVE org.apache.tuscany.sca.core.spi_2.0.0
44 ACTIVE javax.xml.bind.jaxb-api_2.1.0
45 ACTIVE org.apache.tuscany.sca.databinding_2.0.0
46 ACTIVE org.apache.tuscany.sca.assembly_2.0.0
47 ACTIVE org.eclipse.equinox.preferences_3.2.100.v20070522
48 ACTIVE org.apache.tuscany.sca.policy.security_2.0.0
49 RESOLVED org.apache.tuscany.sca.binding.ws.axis2_2.0.0
Master=93
50 ACTIVE javax.mail.mail_1.4.0
51 ACTIVE org.codehaus.woodstox.wstx-asl_3.2.4
52 ACTIVE org.apache.tuscany.sca.binding.sca_2.0.0
53 ACTIVE org.apache.tuscany.sca.policy.xml.ws_2.0.0
54 ACTIVE xalan.xalan_2.7.0
55 ACTIVE log4j.log4j_1.2.15
56 ACTIVE org.apache.tuscany.sca.implementation.java.xml_2.0.0
57 ACTIVE org.apache.tuscany.sca.interface.java.jaxws_2.0.0
58 ACTIVE org.apache.tuscany.sca.binding.ws.wsdlgen_2.0.0
59 ACTIVE org.apache.tuscany.sca.policy.xml_2.0.0
60 ACTIVE commons-logging.commons-logging_1.1.1
61 ACTIVE dom4j.dom4j_1.6.1
62 ACTIVE org.apache.axis2.adb_1.4.0
63 ACTIVE backport-util-concurrent.backport-util-concurrent_3.1.0
64 ACTIVE org.apache.tuscany.sca.binding.rmi.runtime_2.0.0
65 ACTIVE javax.xml.ws.jaxws-api_2.1.0
66 ACTIVE
org.apache.geronimo.specs.geronimo-activation_1.1_spec_1.0.1
67 ACTIVE org.apache.ws.commons.axiom.axiom-dom_1.2.7
68 ACTIVE org.apache.tuscany.sca.xsd.xml_2.0.0
69 ACTIVE org.apache.tuscany.sca.core_2.0.0
71 ACTIVE cglib.cglib_2.2.0
72 ACTIVE commons-cli.commons-cli_1.1.0
73 ACTIVE org.apache.tuscany.sca.workspace.xml_2.0.0
74 ACTIVE org.eclipse.equinox.app_1.0.0.v20070606
75 ACTIVE org.apache.axis2.axis2-mtompolicy_1.4.1
76 ACTIVE org.apache.tuscany.sca.databinding.jaxb.axiom_2.0.0
77 ACTIVE jdom.jdom_1.0.0
78 ACTIVE org.apache.ws.commons.schema_1.4.2
79 ACTIVE javax.jws.jsr181-api_1.0.0.MR1
80 ACTIVE org.apache.rampart.rampart-core_1.4.0
81 RESOLVED org.apache.tuscany.sca.databinding.axiom_2.0.0
Master=15
82 ACTIVE xerces.xmlParserAPIs_2.6.0
83 ACTIVE org.eclipse.equinox.common_3.3.0.v20070426
84 ACTIVE annogen.annogen_0.1.0
85 ACTIVE org.apache.tuscany.sca.node.launcher.equinox_2.0.0
86 ACTIVE org.apache.woden.woden-impl-dom_1.0.0
87 ACTIVE commons-fileupload.commons-fileupload_1.2.0
88 ACTIVE org.apache.tuscany.sca.interface_2.0.0
89 ACTIVE org.apache.axis.axis-ant_1.4.0
90 ACTIVE org.apache.tuscany.sca.interface.java_2.0.0
91 ACTIVE org.mortbay.jetty.util_6.1.7
92 ACTIVE asm.asm_3.1.0
93 ACTIVE org.apache.axis2.kernel_1.4.0
Fragments=49
94 ACTIVE commons-httpclient.commons-httpclient_3.1.0
95 ACTIVE org.apache.tuscany.sca.interface.java.xml_2.0.0
96 ACTIVE org.apache.httpcomponents.httpcore_4.0.0.beta1
97 ACTIVE wsdl4j.wsdl4j_1.6.2
98 ACTIVE org.apache.httpcomponents.httpcore-nio_4.0.0.beta1
99 ACTIVE javax.servlet.servlet-api_2.5.0
100 ACTIVE org.apache.tuscany.sca.assembly.xsd_2.0.0
101 ACTIVE org.apache.tuscany.sca.extensibility.equinox_2.0.0
102 ACTIVE org.apache.tuscany.sca.binding.sca.xml_2.0.0
103 ACTIVE xerces.xercesImpl_2.8.1
104 ACTIVE org.mortbay.jetty.server_6.1.7
105 ACTIVE org.apache.santuario.xmlsec_1.4.2
106 ACTIVE xml-apis.xml-apis_0.0.0.1_3_03
107 ACTIVE org.apache.tuscany.sca.node.launcher_2.0.0
108 ACTIVE org.apache.tuscany.sca.endpoint_2.0.0
109 ACTIVE com.sun.xml.bind.jaxb-impl_2.1.9
110 ACTIVE org.apache.tuscany.sca.node.impl_2.0.0
111 ACTIVE org.apache.tuscany.sca.host.rmi_2.0.0
112 ACTIVE commons-discovery.commons-discovery_0.2.0
113 ACTIVE org.apache.tuscany.sca.binding.ws.xml_2.0.0
114 ACTIVE org.apache.tuscany.sca.contribution.xml_2.0.0
115 ACTIVE org.apache.woden.woden-api_1.0.0
116 ACTIVE org.apache.tuscany.sca.implementation.node_2.0.0
117 ACTIVE org.apache.rampart.rampart-policy_1.4.0
118 ACTIVE org.apache.tuscany.sca.launcher_2.0.0
119 ACTIVE org.apache.neethi_2.0.4
120 ACTIVE org.apache.tuscany.sca.contribution.namespace_2.0.0
121 ACTIVE org.apache.tuscany.sca.binding.rmi_2.0.0
122 ACTIVE org.apache.tuscany.sca.definitions.xml_2.0.0
123 ACTIVE org.apache.tuscany.sca.core.databinding_2.0.0
124 ACTIVE calculatortuscany_1.0.0
I have deployed my little sample calculator as you can see (bundle 123). It
is the same that is in the sample directory. It is works too and it show me
its results in the console.
But I have changed "Calculator.composite" file because I want to publish one
of the components from Calculator service. For example the addService.
<component name="CalculatorServiceComponent">
<implementation.java
class="com.telvent.tuscany.server.CalculatorServiceImpl"/>
<reference name="addService">
<binding.ws uri="http://localhost:8085/AddServiceComponent"/>
</reference>
<reference name="subtractService" target="SubtractServiceComponent"
/>
<reference name="multiplyService" target="MultiplyServiceComponent"
/>
<reference name="divideService" target="DivideServiceComponent" />
</component>
<component name="AddServiceComponent">
<implementation.java
class="com.telvent.tuscany.server.AddServiceImpl"/>
<service name="AddService">
<binding.ws
uri="http://localhost:8085/AddServiceComponent"/>
</service>
</component>
When I launch OSGi framework (Equinox) again this is my new error.
26-mar-2009 13:42:21 org.apache.tuscany.sca.node.impl.NodeImpl <init>
INFO: Creating node: Calculator.composite
26-mar-2009 13:42:22 org.apache.tuscany.sca.node.impl.NodeImpl configureNode
INFO: Loading contribution: file:/C:/Tuscanyosgi/testServer-1.0.0.jar
26-mar-2009 13:42:22 org.apache.tuscany.sca.node.impl.NodeImpl start
INFO: Starting node: Calculator.composite
java.lang.NoClassDefFoundError: org/apache/axis2/util/TargetResolver
at
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguratio
n(DeploymentEngine.java:639)
at
org.apache.tuscany.sca.binding.ws.axis2.TuscanyAxisConfigurator.getAx
isConfiguration(TuscanyAxisConfigurator.java:118)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
ionContext(ConfigurationContextFactory.java:68)
at
org.apache.tuscany.sca.binding.ws.axis2.TuscanyAxisConfigurator.getCo
nfigurationContext(TuscanyAxisConfigurator.java:88)
at
org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider.<init>(A
xis2ServiceProvider.java:190)
at
org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceBindingProvider.<
init>(Axis2ServiceBindingProvider.java:65)
at
org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingProviderFactory.c
reateServiceBindingProvider(Axis2BindingProviderFactory.java:73)
at
org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingProviderFactory.c
reateServiceBindingProvider(Axis2BindingProviderFactory.java:1)
at
org.apache.tuscany.sca.provider.DefaultProviderFactoryExtensionPoint$
LazyBindingProviderFactory.createServiceBindingProvider(DefaultProviderFactoryEx
TargetResolverClass can not be found. Do you have any idea about this? I
mean I am using all bundles from modules directory and the config.ini file
that I downloaded from tuscany project site. Has Tuscany project been
checked in OSGi framework?
Thank very much.
Un saludo.
Santiago Miguel Aranda Rojas
Telvent Interactiva
Extension: 35999
"Raymond Feng" <en...@gmail.com>
"Raymond Feng"
25/03/2009 16:49
Por favor, responda a user Para: <us...@tuscany.apache.org>
cc:
Asunto: Re: Problem in OSGi
Hi,
I strongly recommend you use Tuscany Java SCA 2.0 M1 [1] which is fully
OSGi-enabled. All the bundles are shipped under the modules folder and they
can used as-is.
[1] http://www.apache.org/dist/tuscany/java/sca/2.0-M1
Thanks,
Raymond
From: santiago.aranda@telvent.com
Sent: Wednesday, March 25, 2009 5:11 AM
To: user@tuscany.apache.org
Subject: Re: Problem in OSGi
Hi,
Yes, I have deployed tuscany-extensibility-equinox module and it works. I
mean the monitor is created now. Thank you
But I am debugging my code and I have another problems with serverals
"processors" that aren't being created in the same "init" method. These
processors are created in runtime. For example compositeProcessor and
contributionProcessor. I think I need more deployed bundles. Where can I
find the minimum bundles list to be deployed? I only want to publish the
helloWorld as web service using OSGi. My composite file is very simple.
I have found a directory called "\directory\bundle minimal" in the
apache-tuscany-sca-1.4-src.zip. There is a pom.xml file that have
dependencies with serveral bundles . Are they all bundles I need deploy in
my OSGi framework?
Un saludo.
Santiago Miguel Aranda Rojas
Telvent Interactiva
Extension: 35999
"Raymond Feng" <en...@gmail.com>
"Raymond Feng"
24/03/2009 17:53
Por favor, responda a user Para: <us...@tuscany.apache.org>
cc:
Asunto: Re: Problem in OSGi
Hi,
You are missing one bundle: org.apache.tuscany.sca.extensibility.equinox. It
is the tuscany-extensiblity-equinox module.
The monitor is created to deal with ERROR/WARNING messages.
Thanks,
Raymond
From: santiago.aranda@telvent.com
Sent: Tuesday, March 24, 2009 9:32 AM
To: user@tuscany.apache.org
Subject: Problem in OSGi
I am developing a little service using tuscany. I only want export its
funcionality like HelloWorld sample. But I don´t know what are the bundles
that I have to deploy in OSGi. This is my console view in Eclipse
0 ACTIVE org.eclipse.osgi_3.3.2.R33x_v20080105
1 INSTALLED org.apache.tuscany.sca.core_1.3.2
3 ACTIVE org.apache.tuscany.sca.api_2.0.0
4 ACTIVE org.apache.tuscany.sca.assembly_2.0.0
5 ACTIVE org.apache.tuscany.sca.node.impl_2.0.0
6 ACTIVE org.apache.tuscany.sca.node.api_2.0.0
7 ACTIVE org.apache.tuscany.sca.core_2.0.0
8 ACTIVE cglib_2.2.0
9 ACTIVE org.apache.tuscany.sca.core.spi_2.0.0
10 ACTIVE org.apache.tuscany.sca.policy_2.0.0
11 ACTIVE org.apache.tuscany.sca.monitor_2.0.0
12 ACTIVE org.apache.tuscany.sca.definitions_2.0.0
13 ACTIVE org.apache.tuscany.sca.extensibility_2.0.0
15 ACTIVE org.apache.tuscany.sca.contribution_2.0.0
16 ACTIVE org.apache.tuscany.sca.interface.java.xml_2.0.0
17 ACTIVE org.apache.tuscany.sca.interface_2.0.0
18 ACTIVE org.apache.tuscany.sca.implementation.node_2.0.0
19 ACTIVE org.apache.tuscany.sca.workspace_2.0.0
20 ACTIVE org.apache.tuscany.sca.interface.java_2.0.0
21 ACTIVE calculatortuscany_1.0.0
I had some problems with cglib because it is not a bundle and I have to
export one package in its manifest. But I think they are working well. My
problem is calculatortuscany. It is the same example from Tuscany
distribution but I have turned it into a bundle. When I start this bundle I
obtain a NullPointerException in this line "monitor =
monitorFactory.createMonitor()" in the class
org.apache.tuscany.sca.node.impl.NodeImpl in the "init" method.
Do I have deployed all need bundles? Why do I need create a monitor??
Thanks in advance