On Sat, Sep 10, 2011 at 4:01 PM, Holly Cummins
<[email protected]> wrote:
> Thanks again Simon, the nightly driver with your fixes worked a treat. I'm
> seeing the same Abdera issues as you, but they don't seem to interfere with
> the operation of the simple calculator sample. I did hit a further problem
> when I moved on to a web services binding. All the Tuscany bundles started
> fine, but when my application bundle was started, the following stack trace
> was spat out:
>
> Caused by: java.lang.ClassNotFoundException:
> org.apache.axiom.om.impl.llom.factory.OMLinkedListMetaFactory
>         at java.lang.Class.forName(Class.java:139)
>         at
> org.apache.axiom.om.OMAbstractFactory.getMetaFactory(OMAbstractFactory.java:133)
>
> The problem seems to be well described by
> https://issues.apache.org/jira/browse/AXIS2-4853, which happily also
> included a suggested solution. I was able to make the stack trace go away
> and get my web services exposed by adding an SCR implementation to my OSGi
> configuration (I used org.apache.felix.scr_1.6.0). It might that Tuscany
> will need to include SCR if it's going to use Axiom 1.2.10 and Axis2 1.5.3?
>
> Holly
>
> On Tue, Sep 6, 2011 at 5:45 PM, Holly Cummins
> <[email protected]> wrote:
>>
>> Hi Simon,
>>
>> Thanks very much, that's brilliant! I'm impressed that you did a fix
>> before I even found time to raise the JIRA. I'll pick up the nightly driver
>> and see how I get on...
>>
>> Holly
>>
>> On Tue, Sep 6, 2011 at 11:58 AM, Simon Laws <[email protected]>
>> wrote:
>>>
>>> On Mon, Sep 5, 2011 at 9:54 AM, Simon Laws <[email protected]>
>>> wrote:
>>> > On Sat, Sep 3, 2011 at 1:09 PM, Holly Cummins
>>> > <[email protected]> wrote:
>>> >> Hi,
>>> >>
>>> >> I'm trying to run Tuscany in an OSGi environment. As a first step, I'm
>>> >> trying to launch Tuscany out of the box inside the OSGi framework.
>>> >> I've
>>> >> downloaded the 2.0-Beta3 release, and am running the following command
>>> >> from
>>> >> the modules directory:
>>> >>
>>> >> java -jar osgi-3.5.0-v20090520.jar -clean -console -configuration
>>> >> ../features/configuration
>>> >>
>>> >> This isn't especially successful. Several of the bundles can't
>>> >> resolve, and
>>> >> I'm seeing errors like the following:
>>> >>
>>> >> osgi> Sep 3, 2011 12:45:11 PM
>>> >>
>>> >> org.apache.tuscany.sca.extensibility.equinox.EquinoxServiceDiscoverer$1 
>>> >> run
>>> >> WARNING: Unresolved resource
>>> >>
>>> >> META-INF/services/org.apache.tuscany.sca.assembly.builder.PolicyBuilder
>>> >> found in bundle: 187 org.apache.tuscany.sca.policy.wspolicy INSTALLED
>>> >> Sep 3, 2011 12:45:11 PM
>>> >>
>>> >> org.apache.tuscany.sca.extensibility.equinox.EquinoxServiceDiscoverer$1 
>>> >> run
>>> >> SEVERE: Bundle: org.apache.tuscany.sca.policy.wspolicy - The bundle
>>> >> could
>>> >> not be resolved. Reason: Missing Constraint: Import-Package:
>>> >> org.apache.neethi; version="0.0.0"
>>> >> ....
>>> >> WARNING: Unresolved resource
>>> >>
>>> >> META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor
>>> >> found in bundle: 187 org.apache.tuscany.sca.policy.wspolicy INSTALLED
>>> >> Sep 3, 2011 12:45:12 PM
>>> >>
>>> >> org.apache.tuscany.sca.extensibility.equinox.EquinoxServiceDiscoverer$1 
>>> >> run
>>> >> SEVERE: Bundle: org.apache.tuscany.sca.policy.wspolicy - The bundle
>>> >> could
>>> >> not be resolved. Reason: Missing Constraint: Import-Package:
>>> >> org.apache.neethi; version="0.0.0"
>>> >>
>>> >> The bundle at the root of the failures seems to be org.apache.neethi.
>>> >> The
>>> >> reason it can't start is the following:
>>> >>
>>> >> osgi> start 137
>>> >> org.osgi.framework.BundleException: The bundle could not be resolved.
>>> >> Reason: Missing Constraint: Import-Package:
>>> >> org.apache.axiom.om.impl.llom.factory; version="0.0.0"
>>> >>
>>> >> I've had a look and the org.apache.axiom.om.impl.llom.factory package
>>> >> isn't
>>> >> actually exported from the axiom-impl-1.2.10.jar - and in fact I
>>> >> wouldn't
>>> >> expect it to be, since it's an implementation package.
>>> >>
>>> >> I've had a quick look through the JIRA and can't see any issues which
>>> >> seem
>>> >> obviously related. Does anyone have any suggestions for getting around
>>> >> this,
>>> >> or is launching Tuscany in this way the wrong thing to do?
>>> >>
>>> >> Thanks for your help,
>>> >> Holly
>>> >>
>>> >>
>>> >>
>>> >>
>>> >
>>> > Hi Holly,
>>> >
>>> > Just tried and I see it too. If you raise a JIRA I'll take a look.
>>> >
>>> > Regards
>>> >
>>> > Simon
>>> >
>>> > --
>>> > Apache Tuscany committer: tuscany.apache.org
>>> > Co-author of a book about Tuscany and SCA: tuscanyinaction.com
>>> >
>>>
>>> Hi
>>>
>>> I went ahead and raised TUSCANY-3938 to cover this. I checked some
>>> changes in that allow me to install the distribution modules in OSGi.
>>> I added a simple sample contribution that can be installed and started
>>> (see samples/learning-more/contribution-osgi). The sample is only very
>>> simple so any further configuration of the composite could uncover
>>> further issues. I'm still seeing some errors reported relating to
>>> Abdera. So still some things to fix.
>>>
>>> Hope this helps.
>>>
>>> Simon
>>>
>>> --
>>> Apache Tuscany committer: tuscany.apache.org
>>> Co-author of a book about Tuscany and SCA: tuscanyinaction.com
>>
>
>

Thanks for the heads up Holly. I'll take a look when I get 5 minutes.

Simon

-- 
Apache Tuscany committer: tuscany.apache.org
Co-author of a book about Tuscany and SCA: tuscanyinaction.com

Reply via email to