Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Java-SCA-M2
-
None
-
All
Description
I am trying to write FVT test cases for WS Bindings. I am trying to run them using the ITest Plugin framework within maven. When the plugin tries to start the tuscany runtime, it throws out the following exception and fails. It seems the binding.ws extension which we use in the scdl file is not supported within the iTest plugin. This is needed in order to make progress with the FVT testcases.
[INFO] [tuscany-itest:start
{execution: start}]
[INFO] Starting Tuscany...
org.apache.tuscany.spi.loader.UnrecognizedElementException:
binding.ws [
{http://www.osoa.org/xmlns/sca/1.0}binding.ws]
Context stack trace: [application]
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistry
Impl.java:93)
at org.apache.tuscany.core.loader.ReferenceLoader.load(ReferenceLoader.j
ava:75)
at org.apache.tuscany.core.loader.ReferenceLoader.load(ReferenceLoader.j
ava:48)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistry
Impl.java:95)
at org.apache.tuscany.core.implementation.composite.CompositeLoader.load
(CompositeLoader.java:88)
at org.apache.tuscany.core.implementation.composite.CompositeLoader.load
(CompositeLoader.java:64)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistry
Impl.java:95)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistry
Impl.java:113)
at org.apache.tuscany.core.implementation.composite.CompositeComponentTy
peLoader.loadFromSidefile(CompositeComponentTypeLoader.java:65)
at org.apache.tuscany.core.implementation.composite.CompositeComponentTy
peLoader.load(CompositeComponentTypeLoader.java:57)
at org.apache.tuscany.core.implementation.composite.CompositeComponentTy
peLoader.load(CompositeComponentTypeLoader.java:39)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.loadComponentType(L
oaderRegistryImpl.java:165)
at org.apache.tuscany.core.deployer.DeployerImpl.load(DeployerImpl.java:
101)
at org.apache.tuscany.core.deployer.DeployerImpl.deploy(DeployerImpl.jav
a:76)
at org.apache.tuscany.core.runtime.AbstractRuntime.deployApplicationScdl
(AbstractRuntime.java:136)
at org.apache.tuscany.sca.plugin.itest.MavenEmbeddedRuntime.initialize(M
avenEmbeddedRuntime.java:85)
at org.apache.tuscany.sca.plugin.itest.TuscanyStartMojo.execute(TuscanyS
tartMojo.java:102)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:412)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:534)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:454)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] null
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.NullPointerException
at org.apache.tuscany.sca.plugin.itest.TuscanyStartMojo.execute(TuscanyS
tartMojo.java:104)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:412)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:534)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:454)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)