Tuscany
  1. Tuscany
  2. TUSCANY-323

<wire> elements cannot be loaded from SCDL

    Details

      Description

      In an sca.module file, use a <wire> instead of inlining the wiring inside <references></references>, as follows:

      <wire>

      <source.uri>CalculatorServiceComponent/addService</source.uri>

      <target.uri>AddServiceComponent</target.uri>

      </wire>

      Wires do not seem to work at all. You will get the following exception:

      org.apache.tuscany.core.config.ConfigurationLoadException: Unrecognized element [

      {http://www.osoa.org/xmlns/sca/0.9}

      wire]
      at org.apache.tuscany.core.loader.impl.StAXLoaderRegistryImpl.load(StAXLoaderRegistryImpl.java:62)
      at org.apache.tuscany.core.loader.assembly.CompositeLoader.loadComposite(CompositeLoader.java:43)
      at org.apache.tuscany.core.loader.assembly.ModuleLoader.load(ModuleLoader.java:41)
      at org.apache.tuscany.core.loader.assembly.ModuleLoader.load(ModuleLoader.java:34)
      at org.apache.tuscany.core.loader.impl.StAXLoaderRegistryImpl.load(StAXLoaderRegistryImpl.java:66)
      at org.apache.tuscany.core.config.impl.StAXModuleComponentConfigurationLoaderImpl.loadModule(StAXModuleComponentConfigurationLoaderImpl.java:51)
      at org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:142)
      at org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:132)
      at org.apache.tuscany.core.config.impl.AbstractModuleComponentConfigurationLoader.loadModuleComponent(AbstractModuleComponentConfigurationLoader.java:100)
      at org.apache.tuscany.core.client.TuscanyRuntime.<init>(TuscanyRuntime.java:103)
      at org.apache.tuscany.core.client.TuscanyRuntime.<init>(TuscanyRuntime.java:67)
      at calculator.CalculatorTestCase.setUp(CalculatorTestCase.java:36)
      at junit.framework.TestCase.runBare(TestCase.java:125)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:118)
      at junit.framework.TestSuite.runTest(TestSuite.java:208)
      at junit.framework.TestSuite.run(TestSuite.java:203)
      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:585)
      at org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:242)
      at org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.java:216)
      at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
      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:585)
      at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(SurefireBooter.java:285)
      at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:201)
      at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:366)
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:432)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
      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:249)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      To reproduce the problem, use the attached test case.

      1. unrecognizedwire.zip
        18 kB
        Jean-Sebastien Delfino

        Activity

        Hide
        Jean-Sebastien Delfino added a comment -

        Jim, these are the JIRA issues discussed on today's IRC. Thanks.

        Show
        Jean-Sebastien Delfino added a comment - Jim, these are the JIRA issues discussed on today's IRC. Thanks.
        Hide
        Jim Marino added a comment -

        Fixed for wires within a common fragment/module. Cross module/fragment wires should be dealt with separately.

        Show
        Jim Marino added a comment - Fixed for wires within a common fragment/module. Cross module/fragment wires should be dealt with separately.

          People

          • Assignee:
            Jim Marino
            Reporter:
            Jean-Sebastien Delfino
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development