Topic
  • 2 replies
  • Latest Post - ‏2010-07-02T20:05:43Z by Rohit_R
Rohit_R
Rohit_R
24 Posts

Pinned topic SCA EJB binding does not support WSDL interface?

‏2010-05-27T16:51:09Z |
We are trying to combine our tests which use various SCA bindings into a single composite and the composited definition looks like this

<?xml version=
"1.0" encoding=
"UTF-8"?> <composite xmlns=
"http://www.osoa.org/xmlns/sca/1.0" targetNamespace=
"http://mts.aps.aci.com/audit" xmlns:auditns=
"http://mts.aps.aci.com/audit" xmlns:wsdli=
"http://www.w3.org/2004/08/wsdl-instance" name=
"AuditCompositeScaWS-BU8"> <component name=
"AppAuditServiceSpringScaWSBU8Component"> <implementation.spring location=
"META-INF/spring/application-context.xml"/> <service name=
"AppAuditService"> <interface.wsdl interface=
"http://intf.audit.mts.aps.aci.com/#wsdl.interface(AppAuditService)"/> <binding.sca/> <binding.ws/> <binding.ejb ejb-version=
"EJB3" /> </service> </component> </composite>

If we try to deploy this composite we get the following error.


FFDC Exception:com.ibm.ws.soa.sca.admin.cdf.codegen.ScaCodeGenException SourceId:com.ibm.ws.soa.sca.admin.cdf.content.operation.CreateScaCodeGen.execute ProbeId:152 Reporter:com.ibm.ws.soa.sca.admin.cdf.content.operation.CreateScaCodeGen@31493149 com.ibm.ws.soa.sca.admin.cdf.codegen.ScaCodeGenException: java.lang.ClassCastException: org.apache.tuscany.sca.interfacedef.wsdl.impl.WSDLInterfaceImpl incompatible with org.apache.tuscany.sca.interfacedef.java.JavaInterface at com.ibm.ws.soa.sca.binding.ejb.deploy.EJBBindingCodegenAgent.execute(Unknown Source) at com.ibm.ws.soa.sca.admin.cdf.content.operation.CreateScaCodeGen.createScaCodeGen(CreateScaCodeGen.java:319) at com.ibm.ws.soa.sca.admin.cdf.content.operation.CreateScaCodeGen.execute(CreateScaCodeGen.java:147) at com.ibm.wsspi.management.bla.op.compound.Phase.execute(Phase.java:151) at com.ibm.wsspi.management.bla.op.compound.CompoundOperation._doPhaseExecute(CompoundOperation.java:102) at com.ibm.wsspi.management.bla.op.compound.CompoundOperation.doExecute(CompoundOperation.java:85) at com.ibm.wsspi.management.bla.op.Operation.execute(Operation.java:158) at com.ibm.wsspi.management.bla.op.compound.CompoundOperation.execute(CompoundOperation.java:68) at com.ibm.ws.management.bla.commands.ADTCommand$OperationScheduler.run(ADTCommand.java:524) at java.lang.Thread.run(Thread.java:736) Caused by: java.lang.ClassCastException: org.apache.tuscany.sca.interfacedef.wsdl.impl.WSDLInterfaceImpl incompatible with org.apache.tuscany.sca.interfacedef.java.JavaInterface at com.ibm.ws.soa.sca.binding.ejb.deploy.EJBBindingCodegenAgent.generateBeanModule(Unknown Source) at com.ibm.ws.soa.sca.binding.ejb.deploy.EJBBindingCodegenAgent.execute(Unknown Source) ... 9 more

If we remove the EJB binding then deployment works fine and the client application is able to successfully invoke the service over SCA and WebService bindings.
Updated on 2010-07-02T20:05:43Z at 2010-07-02T20:05:43Z by Rohit_R
  • Tom.Seelbach
    Tom.Seelbach
    11 Posts

    Re: SCA EJB binding does not support WSDL interface?

    ‏2010-06-22T18:22:03Z  
    Rohit,
    interface.wsdl is not supported for binding.ejb. We will update the InfoCenter to list the restriction.

    How important is this feature for you?

    thanks
    Tom Seelbach
  • Rohit_R
    Rohit_R
    24 Posts

    Re: SCA EJB binding does not support WSDL interface?

    ‏2010-07-02T20:05:43Z  
    Tom,
    we don't plan to use SCA-EJB binding at present. We asked the question mainly because it was not clear if we were doing something wrong in our tests.

    regards
    Rohit