On Fri, Mar 12, 2010 at 10: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
>


There are two things here :
1) You need to adjust the SCA related artifacts (e.g composite,
sca-contributions.xml, etc) to the proper namespace... this seems
right as of now

2) You need to have the proper 2.0 dependencies that will register
processors to handle these artifacts, and this seems to be your
problem

Could you please make sure you are using 2.x or 2.x-SNAPSHOT
dependencies to the updated project



-- 
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/

Reply via email to