Do you have this committed somewhere so I can take a look and debug ?

On Dec 18, 2007 2:48 AM, Rajini Sivaram <[EMAIL PROTECTED]> wrote:
> Sebastien,
>
> Dependent contributions should be installed before the contributions which
> refer to them, because the composite and component type files from the
> contribution are processed during addContribution. If you change the order
> of addContribution (assets followed by store), it should (hopefully) work.
>
>
> Thank you...
>
> Regards,
>
> Rajini
>
>
>
> On 12/14/07, Jean-Sebastien Delfino <[EMAIL PROTECTED]> wrote:
> >
> > Mike Edwards wrote:
> > > Jean-Sebastien,
> > >
> > > You like the adventurous life   ;-)
> > >
> > > Good luck.
> > >
> >
> > Yeah, adventure can be fun, see below :)
> >
> > 1. I am packaging the tutorial assets project as an SCA contribution.
> >
> > 2. The store project is another contribution containing:
> > <contribution xmlns="http://www.osoa.org/xmlns/sca/1.0";
> >                  targetNamespace="http://store";
> >               xmlns:s="http://store";>
> >    <deployable composite="s:store"/>
> >    <import.java package="services"/>
> > </contribution>
> >
> > 3. Starting the store application like that:
> > SCANodeFactory nodeFactory = SCANodeFactory.newInstance();
> > SCANode node = nodeFactory.createSCANode(null, "http://localhost:9998";);
> >
> > node.addContribution("http://store";, new
> > URL("/home/delfinoj/Tuscany/apache-repos/java/sca/tutorial/store"));
> > node.addContribution("http://assets";, new
> > URL("/home/delfinoj/Tuscany/apache-repos/java/sca/tutorial/assets"));
> >
> > node.addToDomainLevelComposite(new QName("http://store";, "store"));
> > node.start();
> >
> > 4. Getting an exception:
> > Exception in thread "main" org.apache.tuscany.sca.node.NodeException:
> > java.lang.ClassNotFoundException: services.Catalog
> >        at
> > org.apache.tuscany.sca.node.impl.SCANodeImpl.addContribution(
> > SCANodeImpl.java:396)
> >        at
> > org.apache.tuscany.sca.node.impl.SCANodeImpl.addContribution(
> > SCANodeImpl.java:342)
> >        at launch.LaunchCloud.main(LaunchCloud.java:47)
> > Caused by:
> > org.apache.tuscany.sca.contribution.service.ContributionResolveException:
> > java.lang.ClassNotFoundException: services.Catalog
> >        at
> >
> > org.apache.tuscany.sca.interfacedef.java.xml.JavaInterfaceProcessor.resolveJavaInterface
> > (JavaInterfaceProcessor.java:113)
> >        at
> >
> > org.apache.tuscany.sca.interfacedef.java.xml.JavaInterfaceProcessor.resolve
> > (JavaInterfaceProcessor.java:136)
> >        at
> >
> > org.apache.tuscany.sca.interfacedef.java.xml.JavaInterfaceProcessor.resolve
> > (JavaInterfaceProcessor.java:1)
> >        at
> >
> > org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint$LazyStAXArtifactProcessor.resolve
> > (DefaultStAXArtifactProcessorExtensionPoint.java:242)
> >        at
> >
> > org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve
> > (ExtensibleStAXArtifactProcessor.java:108)
> >        at
> > org.apache.tuscany.sca.assembly.xml.BaseAssemblyProcessor.resolveContracts
> > (BaseAssemblyProcessor.java:290)
> >        at
> > org.apache.tuscany.sca.assembly.xml.BaseAssemblyProcessor.resolveContracts
> > (BaseAssemblyProcessor.java:258)
> >        at
> > org.apache.tuscany.sca.assembly.xml.ComponentTypeProcessor.resolve(
> > ComponentTypeProcessor.java:339)
> >        at
> > org.apache.tuscany.sca.assembly.xml.ComponentTypeProcessor.resolve(
> > ComponentTypeProcessor.java:1)
> >        at
> >
> > org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve
> > (ExtensibleStAXArtifactProcessor.java:108)
> >        at
> > org.apache.tuscany.sca.assembly.xml.ComponentTypeDocumentProcessor.resolve
> > (ComponentTypeDocumentProcessor.java:109)
> >        at
> > org.apache.tuscany.sca.assembly.xml.ComponentTypeDocumentProcessor.resolve
> > (ComponentTypeDocumentProcessor.java:1)
> >        at
> >
> > org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor.resolve
> > (ExtensibleURLArtifactProcessor.java:86)
> >        at
> >
> > org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.processResolvePhase
> > (ContributionServiceImpl.java:405)
> >        at
> >
> > org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.addContribution
> > (ContributionServiceImpl.java:329)
> >        at
> >
> > org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.contribute
> > (ContributionServiceImpl.java:165)
> >        at
> > org.apache.tuscany.sca.node.impl.SCANodeImpl.addContribution(
> > SCANodeImpl.java:374)
> >        ... 2 more
> > Caused by: java.lang.ClassNotFoundException: services.Catalog
> >        ... 19 more
> >
> > Any idea?
> >
> > --
> > Jean-Sebastien
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to