You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by babloosony <ba...@gmail.com> on 2005/03/17 13:24:59 UTC

Attempted to write duplicate schema element - AXIS 1.2 RC2

Hi All,

There is code that we got from third party which uses AXIS API's
internally to generate WSDL. I cannot modify their code but can tune
the inputs that I pass to that code so that WSDL can be generated
successfully.


1. When I use AXIS 1.2 RC2 I am getting below error. Can anyone please
tell what workaround I can do for getting
rid of this error. Is this a bug in AXIS 1.2 RC2 ? :

AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.generalException
 faultSubcode:
 faultString: Attempted to write duplicate schema element :
{http://ws.as.com/wsdl/mr}getMRAccount
 faultActor:
 faultNode:
 faultDetail:
    {http://xml.apache.org/axis/}stackTrace:Attempted to write
duplicate schema element : {http://ws.as.com/wsdl/mr}getMRAccount
    at org.apache.axis.wsdl.fromJava.Types.writeSchemaElementDecl(Types.java:853)
    at org.apache.axis.wsdl.fromJava.Types.writeWrapperElement(Types.java:540)
    at org.apache.axis.wsdl.fromJava.Emitter.writeWrapperPart(Emitter.java:1633)
    at org.apache.axis.wsdl.fromJava.Emitter.writeRequestMessage(Emitter.java:1459)
    at org.apache.axis.wsdl.fromJava.Emitter.writeMessages(Emitter.java:1098)
    at org.apache.axis.wsdl.fromJava.Emitter.writePortType(Emitter.java:1067)
    at org.apache.axis.wsdl.fromJava.Emitter.getWSDL(Emitter.java:479)
    at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:326)
    at com.amy.Build.process(Build.java:636)
    at com.amy.Build.main(Build.java:813)

    {http://xml.apache.org/axis/}hostname:hyddl0337

Attempted to write duplicate schema element :
{http://ws.as.com/wsdl/mr}getMRAccount
    at org.apache.axis.wsdl.fromJava.Types.writeSchemaElementDecl(Types.java:853)
    at org.apache.axis.wsdl.fromJava.Types.writeWrapperElement(Types.java:540)
    at org.apache.axis.wsdl.fromJava.Emitter.writeWrapperPart(Emitter.java:1633)
    at org.apache.axis.wsdl.fromJava.Emitter.writeRequestMessage(Emitter.java:1459)
    at org.apache.axis.wsdl.fromJava.Emitter.writeMessages(Emitter.java:1098)
    at org.apache.axis.wsdl.fromJava.Emitter.writePortType(Emitter.java:1067)
    at org.apache.axis.wsdl.fromJava.Emitter.getWSDL(Emitter.java:479)
    at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:326)
    at com.amy.Build.process(Build.java:636)
    at com.amy.Build.main(Build.java:813)


    
    
    
2. When I use AXIS 1.2 RC3 I am getting below error:
java.lang.NoSuchMethodError:
org.apache.axis.encoding.DefaultTypeMappingImpl.getSingleton()Lorg/apache/axis/encoing/TypeMapping;

Can anyone please tell me is there any workaround for this ?




Thanks & Regards,
Kumar.