If you make your code available somewhere we can see it we can help
debug it, maybe raise a JIRA and attach the whole project as a zip
file?

   ...ant

On Sat, Mar 13, 2010 at 7:18 AM, Zoran Jeremic <[email protected]> wrote:
> Hi Luciano,
>
> I still can't solve this converting Tuscany 1.x to 2.x issue. According to
> the error message it looks like it can't resolve xml namespace but I'm using
> good namespace in composite file as you can see from this message.
>
> Mar 12, 2010 7:01:27 PM
> org.apache.tuscany.sca.contribution.processor.ValidatingXMLStreamReader
> [Contribution: c1, Artifact: org/intelleo/ws/lpc.composite] (SchemaError)
> SEVERE: XMLSchema validation error occured in: org/intelleo/ws/lpc.composite
> ,line = 2, column = 1, Message = cvc-elt.1: Cannot find the declaration of
> element 'composite'.
> Mar 12, 2010 7:01:27 PM
> org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor
> [Contribution: c1, Artifact: org/intelleo/ws/lpc.composite]
> (ElementCannotBeProcessed)
> SEVERE: Element {http://docs.oasis-open.org/ns/opencsa/sca/200912}composite
> cannot be processed. ([row,col {unknown-source}]: [2,1])
> Exception in thread "main" java.lang.IllegalStateException:
> java.lang.ClassCastException:
> org.apache.tuscany.sca.assembly.impl.ExtensionImpl cannot be cast to
> org.apache.tuscany.sca.assembly.Composite
>     at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:176)
>     at org.intelleo.main.LaunchWS.main(LaunchWS.java:27)
> Caused by: java.lang.ClassCastException:
> org.apache.tuscany.sca.assembly.impl.ExtensionImpl cannot be cast to
> org.apache.tuscany.sca.assembly.Composite
>
> I'm using a latest Tuscany distribution. I have followed the instructions
> given in
> [1]
> http://cwiki.apache.org/confluence/display/TUSCANYxDOCx2x/Converting+Tuscany+1.x+Extensions
>
>
> Zoran
>
>
> ________________________________
> From: Luciano Resende <[email protected]>
> To: [email protected]
> Sent: Fri, March 12, 2010 1:23:04 AM
> Subject: Re: javascript client
>
> On Thu, Mar 11, 2010 at 4:06 PM, Zoran Jeremic <[email protected]>
> wrote:
>> I'm trying to convert my project to tuscany 2.x and now I got issue:
>>
>> org.apache.tuscany.sca.assembly.impl.ExtensionImpl cannot be cast to
>> org.apache.tuscany.sca.assembly.Composite
>>
>> I found in archive that somebody complained about that but I didn't found
>> the solution that I could apply.
>> Do you have some suggestion?
>>
>> Zoran
>
> This is usually a namespace issue (OSOA from 1.x and OASIS from 2.x)
> Please check the following document, which might help you converting
> from 1.x to 2.x
>
> [1]
> http://cwiki.apache.org/confluence/display/TUSCANYxDOCx2x/Converting+Tuscany+1.x+Extensions
>
> --
> Luciano Resende
> http://people.apache.org/~lresende
> http://twitter.com/lresende1975
> http://lresende.blogspot.com/
>
>

Reply via email to