Hi,
The attr is not in the spec. There are some discussions on this list on how
to locate/resolve SCDL. For now, it's probably the simplest way to get your
case working as I suggested.
Raymond
----- Original Message -----
From: "Ignacio Silva-Lepe" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, August 23, 2006 1:51 PM
Subject: Re: Can't load implementation.composite
Right, but I don't see scdlLocation as an attribute of
implementation.composite in the spec, maybe I don't have the right doc.
----- Original Message -----
From: "Raymond Feng" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, August 23, 2006 4:45 PM
Subject: Re: Can't load implementation.composite
Hi,
I meant to have the following:
<implementation.composite name="InnerComposiste"
scdlLocation="InnerComposite.scdl"/>
And then in ImplementationCompositeLoader, get the "scdlLocation" attr
from the XML stream reader and set its value to the
CompositeImplementation.
Thanks,
Raymond
----- Original Message -----
From: "Ignacio Silva-Lepe" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, August 23, 2006 1:39 PM
Subject: Re: Can't load implementation.composite
Ok. I hacked CompositeComponentTypeLoader to do:
if (scdlLocation == null) {
try { scdlLocation =
getClass().getClassLoader().getResource("META-INF/sca/" +
implementation.getName() + ".scdl"); }
catch(Exception e) { e.printStackTrace(); }
}
but I can move that to ImplementationCompositeLoader. However, how would
that attribute be set? Other than the name in
<implementation.composite/> I don't see any other way of naming the file
where the referred composite is defined.
----- Original Message -----
From: "Raymond Feng" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, August 23, 2006 4:16 PM
Subject: Re: Can't load implementation.composite
Hi,
The ImplementationCompositeLoader needs to be fixed to take a
"scdlLocation" attribute and set it to CompositeImplemention.
Thanks,
Raymond
----- Original Message -----
From: "Ignacio Silva-Lepe" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, August 23, 2006 12:42 PM
Subject: Re: Can't load implementation.composite
On closer inspection, it looks like it may be trying to load the inner
composite from a separate file. Since the implementation.composite
element uses name="InnerComposite", I tried putting the inner
composite scdl in InnerComposite.scdl in the same dir as default.scdl
(META-INF/sca) but I still get the NPE. Of course, this was just a
guess. Any ideas?
----- Original Message -----
From: "Ignacio Silva-Lepe" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, August 23, 2006 3:30 PM
Subject: Re: Can't load implementation.composite
Actually, my mistake, I am now getting a NPE:
Running innercomposite.InnerCompositeTestCase
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.491
sec <<< FA
ILURE!
test(innercomposite.InnerCompositeTestCase) Time elapsed: 0.471 sec
<<< ERROR!
java.lang.NullPointerException
at
org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistry
Impl.java:102)
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
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
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]