You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Luciano Resende <lu...@gmail.com> on 2010/02/08 21:41:08 UTC

[2.x] Build Issues with WS Binding trying top down build

I was getting some warnings trying to download dependencies to my
local maven repo, so I'm not sure if that is the problem or there is
actually a build issues...
Is anyone else seeing this ?



-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.tuscany.sca.binding.ws.axis2.WSDLBindingURITestCase
Feb 8, 2010 12:17:43 PM org.apache.tuscany.sca.node.impl.NodeImpl start
INFO: Starting node: http://tuscany.apache.org/sca/1.1/nodes/default0
domain: default
Feb 8, 2010 12:17:43 PM
org.apache.tuscany.sca.node.impl.NodeFactoryImpl loadContributions
INFO: Loading contribution:
file:/home/lresende/opensource/apache/tuscany/java-sca-2.x/modules/binding-ws-runtime-axis2/target/test-classes/
Feb 8, 2010 12:17:45 PM
org.apache.tuscany.sca.core.assembly.impl.EndpointRegistryImpl
addEndpoint
INFO: Add endpoint - (@17721467)Endpoint:  URI =
HelloWorldClient#service-binding(HelloWorld/HelloWorld)
2010-02-08 12:17:45.181::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.763
sec <<< FAILURE!
testCalculator(org.apache.tuscany.sca.binding.ws.axis2.WSDLBindingURITestCase)
 Time elapsed: 1.741 sec  <<< ERROR!
java.lang.IllegalStateException: java.lang.ExceptionInInitializerError
	at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:177)
	at org.apache.tuscany.sca.binding.ws.axis2.WSDLBindingURITestCase.setUp(WSDLBindingURITestCase.java:42)
	at junit.framework.TestCase.runBare(TestCase.java:132)
	at junit.framework.TestResult$1.protect(TestResult.java:110)
	at junit.framework.TestResult.runProtected(TestResult.java:128)
	at junit.framework.TestResult.run(TestResult.java:113)
	at junit.framework.TestCase.run(TestCase.java:124)
	at junit.framework.TestSuite.runTest(TestSuite.java:232)
	at junit.framework.TestSuite.run(TestSuite.java:227)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: java.lang.ExceptionInInitializerError
	at org.apache.axis2.deployment.util.Utils.createTempFile(Utils.java:224)
	at org.apache.axis2.deployment.util.Utils.getURLsForAllJars(Utils.java:165)
	at org.apache.axis2.deployment.util.Utils.createClassLoader(Utils.java:899)
	at org.apache.axis2.deployment.DeploymentEngine.loadRepositoryFromURL(DeploymentEngine.java:300)
	at org.apache.axis2.deployment.URLBasedAxisConfigurator.getAxisConfiguration(URLBasedAxisConfigurator.java:74)
	at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
	at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromURIs(ConfigurationContextFactory.java:216)
	at org.apache.tuscany.sca.binding.ws.axis2.Axis2EngineIntegration$1.run(Axis2EngineIntegration.java:144)
	at org.apache.tuscany.sca.binding.ws.axis2.Axis2EngineIntegration$1.run(Axis2EngineIntegration.java:1)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.apache.tuscany.sca.binding.ws.axis2.Axis2EngineIntegration.getAxisConfigurationContext(Axis2EngineIntegration.java:128)
	at org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceBindingProvider.<init>(Axis2ServiceBindingProvider.java:115)
	at org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingProviderFactory.createServiceBindingProvider(Axis2BindingProviderFactory.java:59)
	at org.apache.tuscany.sca.provider.DefaultProviderFactoryExtensionPoint$LazyBindingProviderFactory.createServiceBindingProvider(DefaultProviderFactoryExtensionPoint.java:245)
	at org.apache.tuscany.sca.core.assembly.impl.RuntimeEndpointImpl.getBindingProvider(RuntimeEndpointImpl.java:477)
	at org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.start(CompositeActivatorImpl.java:359)
	at org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.start(CompositeActivatorImpl.java:300)
	at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:149)
	... 19 more
Caused by: java.lang.NullPointerException
	at org.apache.axis2.deployment.util.TempFileManager.recursiveDelete(TempFileManager.java:138)
	at org.apache.axis2.deployment.util.TempFileManager.<clinit>(TempFileManager.java:202)
	... 37 more



-- 
Luciano Resende
http://people.apache.org/~lresende
http://lresende.blogspot.com/

Re: [2.x] Build Issues with WS Binding trying top down build

Posted by Simon Laws <si...@googlemail.com>.
I'm seeing the same on linux but not on windows, which is a little
odd. It's related to the binding.ws changes I made yesterday but not
sure how yet.

Simon

Re: [2.x] Build Issues with WS Binding trying top down build

Posted by Luciano Resende <lu...@gmail.com>.
On Mon, Feb 8, 2010 at 12:41 PM, Luciano Resende <lu...@gmail.com> wrote:
> I was getting some warnings trying to download dependencies to my
> local maven repo, so I'm not sure if that is the problem or there is
> actually a build issues...
> Is anyone else seeing this ?
>
>

Looking further into the stack trace, this seems to be also related

Caused by: java.lang.NoClassDefFoundError: Could not initialize class
org.apache.axis2.deployment.util.TempFileManager
	at org.apache.axis2.deployment.util.Utils.createTempFile(Utils.java:224)
	at org.apache.axis2.deployment.util.Utils.getURLsForAllJars(Utils.java:165)
	at org.apache.axis2.deployment.util.Utils.createClassLoader(Utils.java:899)
	at org.apache.axis2.deployment.DeploymentEngine.loadRepositoryFromURL(DeploymentEngine.java:300)
	at org.apache.axis2.deployment.URLBasedAxisConfigurator.getAxisConfiguration(URLBasedAxisConfigurator.java:74)
	at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
	at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromURIs(ConfigurationContextFactory.java:216)
	at org.apache.tuscany.sca.binding.ws.axis2.Axis2EngineIntegration$1.run(Axis2EngineIntegration.java:144)
	at org.apache.tuscany.sca.binding.ws.axis2.Axis2EngineIntegration$1.run(Axis2EngineIntegration.java:1)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.apache.tuscany.sca.binding.ws.axis2.Axis2EngineIntegration.getAxisConfigurationContext(Axis2EngineIntegration.java:128)
	at org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceBindingProvider.<init>(Axis2ServiceBindingProvider.java:115)
	at org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingProviderFactory.createServiceBindingProvider(Axis2BindingProviderFactory.java:59)
	at org.apache.tuscany.sca.provider.DefaultProviderFactoryExtensionPoint$LazyBindingProviderFactory.createServiceBindingProvider(DefaultProviderFactoryExtensionPoint.java:245)
	at org.apache.tuscany.sca.core.assembly.impl.RuntimeEndpointImpl.getBindingProvider(RuntimeEndpointImpl.java:477)
	at org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.start(CompositeActivatorImpl.java:359)
	at org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.start(CompositeActivatorImpl.java:300)
	at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:149)
	... 19 more



-- 
Luciano Resende
http://people.apache.org/~lresende
http://lresende.blogspot.com/