Ok, I see the loader class. IIUC, I need to add:
<component name="composite.implementationLoader">
<system:implementation.system
class="org.apache.tuscany.core.implementation.composite.ImplementationCompositeLoader"/>
</component>
to composite.scdl. Anything else? I still get the exception. But for some
reason I am not able to do a full build from the top, so I build sca/core
and samples/sca after mvn clean and mvn -e go as far as they can from the
top.
----- Original Message -----
From: "Raymond Feng" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, August 23, 2006 1:51 PM
Subject: Re: Can't load implementation.composite
Hi,
This is a bug. The corresponding loader
"org.apache.tuscany.core.implementation.composite.ImplementationCompositeLoader"
is not registered in the system SCDLs. Would you like to contribute a
patch? You will have to define a component in the
"META-INF/tuscany/composite.scdl" for "test", "launcher" and "webapp-host"
modules (unfortunately we don't have a good packaging story for the system
SCDLs).
Thanks,
Raymond
----- Original Message -----
From: "Ignacio Silva-Lepe" <[EMAIL PROTECTED]>
To: "Tuscany Dev" <[email protected]>
Sent: Wednesday, August 23, 2006 10:44 AM
Subject: Can't load implementation.composite
I am trying to run a more complete sample version of the inner composite
test case and I am getting the following exception:
Running innercomposite.InnerCompositeTestCase
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.482 sec
<<< FA
ILURE!
test(innercomposite.InnerCompositeTestCase) Time elapsed: 0.452 sec <<<
ERROR!
org.apache.tuscany.spi.loader.UnrecognizedElementException:
{http://www.osoa.org
/xmlns/sca/1.0}implementation.composite
[{http://www.osoa.org/xmlns/sca/1.0}impl
ementation.composite]
Context stack trace: [application][SourceComponent]
at
org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistry
Impl.java:90)
at
org.apache.tuscany.core.loader.ComponentLoader.loadImplementation(Com
ponentLoader.java:130)
at
org.apache.tuscany.core.loader.ComponentLoader.load(ComponentLoader.j
ava:84)
at
org.apache.tuscany.core.loader.ComponentLoader.load(ComponentLoader.j
ava:57)
at
org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistry
Impl.java:92)
at
org.apache.tuscany.core.implementation.composite.CompositeLoader.load
(CompositeLoader.java:77)
at
org.apache.tuscany.core.implementation.composite.CompositeLoader.load
(CompositeLoader.java:52)
at
org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistry
Impl.java:92)
at
org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistry
Impl.java:109)
at
org.apache.tuscany.core.implementation.composite.CompositeComponentTy
peLoader.loadFromSidefile(CompositeComponentTypeLoader.java:64)
at
org.apache.tuscany.core.implementation.composite.CompositeComponentTy
peLoader.load(CompositeComponentTypeLoader.java:56)
at
org.apache.tuscany.core.implementation.composite.CompositeComponentTy
peLoader.load(CompositeComponentTypeLoader.java:38)
at
org.apache.tuscany.core.loader.LoaderRegistryImpl.loadComponentType(L
oaderRegistryImpl.java:159)
at
org.apache.tuscany.core.deployer.DeployerImpl.load(DeployerImpl.java:
118)
at
org.apache.tuscany.core.deployer.DeployerImpl.deploy(DeployerImpl.jav
a:93)
at
org.apache.tuscany.core.launcher.LauncherImpl.bootApplication(Launche
rImpl.java:190)
at org.apache.tuscany.test.SCATestCase.setUp(SCATestCase.java:65)
at
innercomposite.InnerCompositeTestCase.setUp(InnerCompositeTestCase.ja
va:30)
I am not sure if I need to something extra to get the appropriate loader
added to the loader registry, assuming such a loader exists. I tried
looking in commands/launcher/.../META-INF/tuscany/*.scdl but I don't see
anything quick that I can try.
In case it helps, here's the default.scdl of the sample:
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
name="OuterComposite">
<component name="SourceComponent">
<implementation.composite name="InnerComposite"/>
<reference name="TargetComponentRef">TargetComponent</reference>
</component>
<component name="TargetComponent">
<implementation.java class="innerComposite.TargetImpl"/>
</component>
</composite>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
name="InnerComposite">
<service name="InnerSourceService" target="InnerSourceComponent">
<interface.java interface="innerComposite.Source"/>
<reference name="innerSource">InnerSourceComponent</reference>
</service>
<component name="InnerSourceComponent">
<implementation.java class="innerComposite.SourceImpl"/>
<reference name="targetReference">TargetComponentRef</reference>
</component>
<reference name="TargetComponentRef">
<interface.java interface="innerComposite.Target"/>
</reference>
</composite>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]