You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by ant elder <an...@gmail.com> on 2010/03/23 08:33:33 UTC
Build problems in OSGi modules
I've been getting build fails in the OSGi modules and samples which i
thought must be due to local changes but i'm still getting them now
after a clean checkout, and looking in the Hudson logs similar things
are happening there though its not failing the build there for some
reason. The fails are things like:
Mar 23, 2010 12:19:34 AM
org.apache.tuscany.sca.core.DefaultModuleActivatorExtensionPoint start
SEVERE: org/apache/geronimo/transaction/manager/XidFactory
java.lang.NoClassDefFoundError:
org/apache/geronimo/transaction/manager/XidFactory
at org.apache.tuscany.sca.policy.transaction.runtime.geronimo.TransactionModuleActivator.start(TransactionModuleActivator.java:56)
and
Caused by: java.lang.NoClassDefFoundError:
org/apache/tuscany/sca/common/xml/stax/StAXHelper
at org.apache.tuscany.sca.binding.sca.provider.DefaultSCABindingMapper.createDelegatingBinding(DefaultSCABindingMapper.java:209)
at org.apache.tuscany.sca.binding.sca.provider.DefaultSCABindingMapper.<init>(DefaultSCABindingMapper.java:101)
... 61 more
Anyone else seeing these or can see whats wrong?
...ant
Re: Build problems in OSGi modules
Posted by ant elder <an...@apache.org>.
Thanks, that did fix it, but not until I'd built twice which was a bit
confusing and i guess why my attempts at fixing it didn't seem to be
working. Looking at whats going on the node-launcher-equinox and the
test that uses it is they don't use the dependcies from the mvn build
but try to find a tuscany distribution and use that so end up finding
the one in the distribution/all/target folder which isn't going to be
up to date. I've now moved the tests out of the node-launcher-equinox
module to an itest.
...ant
On Tue, Mar 23, 2010 at 4:14 PM, Raymond Feng <en...@gmail.com> wrote:
> It should be fixed now:
>
> http://svn.apache.org/viewvc?rev=926638&view=rev
> http://svn.apache.org/viewvc?rev=926641&view=rev
>
> Thanks,
> Raymond
> --------------------------------------------------
> From: "ant elder" <an...@gmail.com>
> Sent: Tuesday, March 23, 2010 12:33 AM
> To: <de...@tuscany.apache.org>
> Subject: Build problems in OSGi modules
>
>> I've been getting build fails in the OSGi modules and samples which i
>> thought must be due to local changes but i'm still getting them now
>> after a clean checkout, and looking in the Hudson logs similar things
>> are happening there though its not failing the build there for some
>> reason. The fails are things like:
>>
>> Mar 23, 2010 12:19:34 AM
>> org.apache.tuscany.sca.core.DefaultModuleActivatorExtensionPoint start
>> SEVERE: org/apache/geronimo/transaction/manager/XidFactory
>> java.lang.NoClassDefFoundError:
>> org/apache/geronimo/transaction/manager/XidFactory
>> at
>> org.apache.tuscany.sca.policy.transaction.runtime.geronimo.TransactionModuleActivator.start(TransactionModuleActivator.java:56)
>>
>> and
>>
>> Caused by: java.lang.NoClassDefFoundError:
>> org/apache/tuscany/sca/common/xml/stax/StAXHelper
>> at
>> org.apache.tuscany.sca.binding.sca.provider.DefaultSCABindingMapper.createDelegatingBinding(DefaultSCABindingMapper.java:209)
>> at
>> org.apache.tuscany.sca.binding.sca.provider.DefaultSCABindingMapper.<init>(DefaultSCABindingMapper.java:101)
>> ... 61 more
>>
>> Anyone else seeing these or can see whats wrong?
>>
>> ...ant
>
>
Re: Build problems in OSGi modules
Posted by Raymond Feng <en...@gmail.com>.
It should be fixed now:
http://svn.apache.org/viewvc?rev=926638&view=rev
http://svn.apache.org/viewvc?rev=926641&view=rev
Thanks,
Raymond
--------------------------------------------------
From: "ant elder" <an...@gmail.com>
Sent: Tuesday, March 23, 2010 12:33 AM
To: <de...@tuscany.apache.org>
Subject: Build problems in OSGi modules
> I've been getting build fails in the OSGi modules and samples which i
> thought must be due to local changes but i'm still getting them now
> after a clean checkout, and looking in the Hudson logs similar things
> are happening there though its not failing the build there for some
> reason. The fails are things like:
>
> Mar 23, 2010 12:19:34 AM
> org.apache.tuscany.sca.core.DefaultModuleActivatorExtensionPoint start
> SEVERE: org/apache/geronimo/transaction/manager/XidFactory
> java.lang.NoClassDefFoundError:
> org/apache/geronimo/transaction/manager/XidFactory
> at
> org.apache.tuscany.sca.policy.transaction.runtime.geronimo.TransactionModuleActivator.start(TransactionModuleActivator.java:56)
>
> and
>
> Caused by: java.lang.NoClassDefFoundError:
> org/apache/tuscany/sca/common/xml/stax/StAXHelper
> at
> org.apache.tuscany.sca.binding.sca.provider.DefaultSCABindingMapper.createDelegatingBinding(DefaultSCABindingMapper.java:209)
> at
> org.apache.tuscany.sca.binding.sca.provider.DefaultSCABindingMapper.<init>(DefaultSCABindingMapper.java:101)
> ... 61 more
>
> Anyone else seeing these or can see whats wrong?
>
> ...ant
Re: Build problems in OSGi modules
Posted by Simon Laws <si...@googlemail.com>.
Only just got to doing a build ant. Locally I'm see the following failures...
[INFO] ------------------------------------------------------------------------
[INFO] Error for project: Apache Tuscany SCA iTest Distribution Webapp helloworl
d-servlet (during install)
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
Please refer to D:\sca-java-2.x\itest\distribution\webapp-helloworld-servlet\tar
get\surefire-reports for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] Error for project: Apache Tuscany SCA iTest Distribution Webapp helloworl
d-stripes (during install)
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
Please refer to D:\sca-java-2.x\itest\distribution\webapp-helloworld-stripes\tar
get\surefire-reports for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] Error for project: Apache Tuscany SCA WAR Distribution Legal Checks (duri
ng install)
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
Please refer to D:\sca-java-2.x\distribution\tomcat\testing\legal-checks\target\
surefire-reports for the individual test results.
The HelloWorldServlet problem is reported as...
2010-03-23 15:45:11.343::WARN: Error for /helloworld-servlet/HelloworldServlet
java.lang.Error: Unresolved compilation problems:
The import org.oasisopen cannot be resolved
The import org.oasisopen cannot be resolved
Reference cannot be resolved to a type
ComponentContext cannot be resolved to a type
ComponentContext cannot be resolved to a type
at sample.HelloworldServlet.<init>(HelloworldServlet.java:30)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
Simon
On 3/23/10, ant elder <an...@gmail.com> wrote:
> I've been getting build fails in the OSGi modules and samples which i
> thought must be due to local changes but i'm still getting them now
> after a clean checkout, and looking in the Hudson logs similar things
> are happening there though its not failing the build there for some
> reason. The fails are things like:
>
> Mar 23, 2010 12:19:34 AM
> org.apache.tuscany.sca.core.DefaultModuleActivatorExtensionPoint start
> SEVERE: org/apache/geronimo/transaction/manager/XidFactory
> java.lang.NoClassDefFoundError:
> org/apache/geronimo/transaction/manager/XidFactory
> at
> org.apache.tuscany.sca.policy.transaction.runtime.geronimo.TransactionModuleActivator.start(TransactionModuleActivator.java:56)
>
> and
>
> Caused by: java.lang.NoClassDefFoundError:
> org/apache/tuscany/sca/common/xml/stax/StAXHelper
> at
> org.apache.tuscany.sca.binding.sca.provider.DefaultSCABindingMapper.createDelegatingBinding(DefaultSCABindingMapper.java:209)
> at
> org.apache.tuscany.sca.binding.sca.provider.DefaultSCABindingMapper.<init>(DefaultSCABindingMapper.java:101)
> ... 61 more
>
> Anyone else seeing these or can see whats wrong?
>
> ...ant
>
--
Apache Tuscany committer: tuscany.apache.org
Co-author of a book about Tuscany and SCA: tuscanyinaction.com
Re: Build problems in OSGi modules
Posted by Raymond Feng <en...@gmail.com>.
Apparently, we're missing a few packages in Import-Package header. I'll try
to fix them.
Thanks,
Raymond
--------------------------------------------------
From: "ant elder" <an...@gmail.com>
Sent: Tuesday, March 23, 2010 12:33 AM
To: <de...@tuscany.apache.org>
Subject: Build problems in OSGi modules
> I've been getting build fails in the OSGi modules and samples which i
> thought must be due to local changes but i'm still getting them now
> after a clean checkout, and looking in the Hudson logs similar things
> are happening there though its not failing the build there for some
> reason. The fails are things like:
>
> Mar 23, 2010 12:19:34 AM
> org.apache.tuscany.sca.core.DefaultModuleActivatorExtensionPoint start
> SEVERE: org/apache/geronimo/transaction/manager/XidFactory
> java.lang.NoClassDefFoundError:
> org/apache/geronimo/transaction/manager/XidFactory
> at
> org.apache.tuscany.sca.policy.transaction.runtime.geronimo.TransactionModuleActivator.start(TransactionModuleActivator.java:56)
>
> and
>
> Caused by: java.lang.NoClassDefFoundError:
> org/apache/tuscany/sca/common/xml/stax/StAXHelper
> at
> org.apache.tuscany.sca.binding.sca.provider.DefaultSCABindingMapper.createDelegatingBinding(DefaultSCABindingMapper.java:209)
> at
> org.apache.tuscany.sca.binding.sca.provider.DefaultSCABindingMapper.<init>(DefaultSCABindingMapper.java:101)
> ... 61 more
>
> Anyone else seeing these or can see whats wrong?
>
> ...ant